/*
Theme Name: iHowz
Description: Custom theme for iHowz website, converted from Oxygen Builder layout
Version: 1.0.0
Author: iHowz Team
Text Domain: ihowz-theme
*/

/* CSS Variables - Based on Original Design */
:root {
    --primary-green: #9cc130;
    --primary-white: #fff;
    --primary-charcoal: #263238;
    --secondary-forest-green: #77ae02;
    --secondary-sage-green: #9cc130;
    --secondary-light-sgreen-1: #bdea22;
    --accent-gold: #FF8F00;
    --accent-blue: #1976D2;
    --success-green: #388E3C;
    --warning-orange: #F57C00;
    --error-red: #D32F2F;
    --neutral-gray: #757575;
    --light-gray: #BDBDBD;
    --background-pure-white: #FFF;
    --background-subtle: #FAFAFA;
    --background-light-green: #F7FCF0;
    --background-dark: #37474F;
    --background-light-gray: #EAEAEA;
    --primary-font: "Inter", sans-serif;
    --secondary-font: "Gelasio", serif;
    --light: 300;
    --regular: 400;
    --medium: 500;
    --semi-bold: 600;
    --bold: 700;
    --border-radius: 10px;
    --border-width: 2px;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Gelasio:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--primary-font);
    font-weight: var(--regular);
    line-height: 1.6;
    color: var(--primary-charcoal);
    background-color: var(--background-pure-white);
}

p {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

article .page-content > p:first-of-type,
.entry-content > p:first-of-type {
    font-size: 1.5rem;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Container */
#page {
    margin: 0;
    padding: 0;
}

/* Header Styles - Based on Original Design */
.site-header {
    background: var(--background-pure-white);
    position: relative;
    z-index: 100;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
}

.header-top-gray-bar {
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50px;
    padding: 10px 20px;
    background-color: var(--background-light-gray);
}

.header-top-bar {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-top-row {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-top-row-links {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
}

.header-top-row-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.header-top-row-social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.25rem;
    height: 2.25rem;
    color: var(--primary-white);
    font-weight: var(--bold);
    font-size: 1.1rem;
    background-color: var(--secondary-forest-green);
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.header-top-row-social-icon:hover {
    background-color: var(--primary-green);
}

/* Header buttons in gray bar */
.header-top-gray-bar .header-login,
.header-top-gray-bar .header-join-today {
    padding: 4px 12px !important;
    font-size: 0.8rem !important;
    font-weight: var(--bold);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 !important;
}

.header-top-gray-bar .header-login {
    background-color: transparent;
    color: var(--primary-charcoal);
    border: 2px solid var(--primary-charcoal);
}

.header-top-gray-bar .header-login:hover {
    background-color: var(--primary-charcoal);
    color: var(--primary-white);
}

.header-top-gray-bar .header-join-today {
    background-color: var(--primary-green);
    color: var(--primary-white);
    border: none;
}

.header-top-gray-bar .header-join-today:hover {
    background-color: var(--secondary-forest-green);
}

.header-menu-bar {
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    gap: 0px;
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 10px 20px 10px 20px;
    background: var(--background-pure-white);
    transition: all 0.3s ease;
}

/* Removed duplicate sticky header rules - using .header-scrolled instead */

/* Hide gray bar when scrolled */
.header-scrolled .header-top-gray-bar {
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Show only menu bar when scrolled */
.header-scrolled .header-menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    height: auto;
    padding: 20px 20px 8px 20px;
    background-color: var(--background-pure-white);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Prevent content jump when header becomes sticky */
body.header-sticky-active {
    padding-top: 120px; /* Adjusted for new header height (100px menu bar + 20px spacing) */
}

/* Smooth transitions for header elements */
.header-top-gray-bar,
.header-menu-bar {
    transition: all 0.3s ease-in-out;
}

/* Adjust logo and button sizes when sticky */
.header-scrolled .site-branding {
    height: auto;
    display: flex;
    align-items: center;
}

.header-scrolled .site-branding img,
.header-scrolled .custom-logo {
    height: auto;
    width: auto;
    max-height: 60px;
}

.header-scrolled .site-title {
    font-size: 1.5rem;
}

.header-scrolled .button {
    padding: 8px 20px;
    font-size: 1.1rem;
}

/* Ensure logo links are always clickable */
.site-branding a,
.custom-logo-link,
.site-title {
    display: block;
    z-index: 1001;
    position: relative;
    text-decoration: none;
    pointer-events: auto;
}

/* Ensure site-branding container doesn't block clicks */
.site-branding {
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    display: flex;
    align-items: center;
    height: auto;
}

.custom-logo {
    height: auto;
    max-height: 60px;
    width: auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1000;
    height: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

.site-title {
    font-size: 2rem;
    font-weight: var(--bold);
    color: var(--primary-charcoal);
    text-decoration: none;
}

.site-title:hover {
    color: var(--primary-green);
}

.menubar-logo {
    height: 60px;
}

.menubar-menu {
    display: flex;
    justify-content: end;
    align-items: center;
    position: relative;
}

.button {
    color: var(--primary-charcoal);
    font-size: 1.25rem;
    margin: 0 0 0 20px;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    border: var(--border-width) solid var(--primary-charcoal);
    background: transparent;
    text-decoration: none;
    display: inline-block;
}

.menubar-join-today {
    color: var(--primary-white);
    background-color: var(--primary-green);
    border: none;
}

.menubar-login {
    border: none;
}

/* Navigation Styles */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background-color: #3498db;
    color: white;
}

/* Hero Video Section */
.hero-video-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 150px); /* Viewport height minus header bars (50px + 100px) */
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: var(--primary-charcoal);
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 60px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
    background-color: var(--primary-charcoal);
}

/* Hide all video controls completely - Safari specific */
.hero-video::-webkit-media-controls {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.hero-video::-webkit-media-controls-enclosure {
    display: none !important;
    opacity: 0 !important;
}

.hero-video::-webkit-media-controls-panel {
    display: none !important;
}

.hero-video::-webkit-media-controls-play-button {
    display: none !important;
}

.hero-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.hero-video::-webkit-media-controls-timeline {
    display: none !important;
}

.hero-video::-webkit-media-controls-current-time-display {
    display: none !important;
}

.hero-video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

.hero-video::-webkit-media-controls-mute-button {
    display: none !important;
}

.hero-video::-webkit-media-controls-volume-slider {
    display: none !important;
}

.hero-video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-green);
    opacity: 0.6;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    text-align: left;
    color: var(--primary-white);
    overflow-y: auto;
    max-height: 100%;
}

.hero-content-inner {
    max-width: 100%;
    margin: 0;
    padding-left: 30px;
    padding-bottom: 40px;
}

.hero-title {
    font-family: var(--primary-font);
    font-size: 5rem;
    font-weight: 200;
    color: var(--primary-white);
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: var(--primary-font);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-white);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-content-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-shrink: 0;
}

.hero-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.25rem;
    font-weight: var(--bold);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-button-primary {
    background-color: var(--primary-white);
    color: var(--primary-green);
    border: 3px solid var(--primary-white);
}

.hero-button-primary:hover {
    background-color: transparent;
    color: var(--primary-white);
    border-color: var(--primary-white);
}

.hero-button-secondary {
    background-color: transparent;
    color: var(--primary-white);
    border: 3px solid var(--primary-white);
}

.hero-button-secondary:hover {
    background-color: var(--primary-white);
    color: var(--primary-green);
}

.hero-description {
    font-family: var(--primary-font);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--primary-white);
    max-width: 600px;
    text-align: left;
    flex: 1;
}

.hero-description p {
    margin-bottom: 1rem;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

/* Main Content Area */
.site-main {
    min-height: calc(100vh - 200px);
    padding: 40px 0 0 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--bold);
    color: var(--primary-charcoal);
    margin-bottom: 2rem;
    text-align: center;
}

/* News/Posts Grid - Based on Original Design */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 2rem 0;
}

.post-card {
    background: var(--background-pure-white);
    border-radius: 4px;
    box-shadow: 2px 4px 20px 0px rgba(0, 0, 0, 0.06);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 2px 6px 25px 0px rgba(0, 0, 0, 0.1);
}

.post-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.post-card-content {
    width: 100%;
}

.post-card h2 {
    font-size: 1.75rem;
    font-weight: var(--regular);
    margin-bottom: 4px;
    color: var(--primary-charcoal);
    text-align: left;
    line-height: 1.2;
}

.post-card h2 a {
    text-decoration: none;
    color: inherit;
}

.post-card h2 a:hover {
    color: var(--primary-green);
}

.post-meta {
    font-size: 0.75rem;
    font-weight: var(--light);
    color: var(--neutral-gray);
    margin-bottom: 0px;
    text-align: left;
}

.post-meta-item:not(:last-child):after {
    content: "/";
    margin: 0 6px;
}

.post-taxonomy {
    font-size: 1rem;
    font-weight: var(--medium);
    color: var(--primary-green);
    margin-bottom: 9px;
    text-align: left;
}

.post-taxonomy-item:not(:last-child):after {
    content: "/";
    margin: 0 4px;
}

.post-excerpt {
    color: var(--primary-charcoal);
    line-height: 1.6;
    text-align: left;
    margin-top: 0.5rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: var(--medium);
}

.read-more:hover {
    color: var(--secondary-forest-green);
    text-decoration: underline;
}

/* Single Post Styles */
.single-post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.single-post-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.single-post-meta {
    color: #666;
    font-size: 1rem;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    margin: 2rem 0 1rem;
    color: #2c3e50;
}

.post-content p {
    margin-bottom: 1.5rem;
}

/* Page Styles */
.page-header {
    text-align: left;
    margin-bottom: 0;
    padding: 0;
    background: none;
    color: #333;
}

.page-title {
    font-size: 4rem;
    margin-bottom: 0;
    font-weight: 100;
    color: #333;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.page-description {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Page Sidebar Layout */
.page-container-with-sidebar {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.page-main-content {
    flex: 1;
    min-width: 0;
}

.page-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.page-sidebar .widget {
    background: var(--background-subtle);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-sidebar .widget h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: var(--primary-charcoal);
}

/* Advertising Bar Styles */
.advertising-bar {
    background: var(--background-light-gray);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #ddd;
}

.advertising-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.advertising-widget {
    display: inline-block;
    margin: 0 auto;
}

.advertising-widget img {
    max-width: 100%;
    height: auto;
}

.advertising-widget-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Footer Styles - Based on Original Design */
.site-footer {
    background: var(--primary-charcoal);
    color: var(--primary-white);
    display: flex;
    justify-content: center;
    align-items: start;
}

.footer-content {
    width: 100%;
    max-width: 1280px;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 0 20px;
}

.footer-section h3,
.foot-menu-header {
    color: var(--primary-white);
    font-weight: var(--bold);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--primary-white);
    text-decoration: none;
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--primary-green);
}

.footer-resources-menu {
    display: grid;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
}

.footer-logo img,
.footer-logo .footer-logo-img {
    max-height: 80px;
    width: auto;
}

.footer-logo a {
    display: inline-block;
    opacity: 1;
}

.footer-logo a:hover {
    opacity: 0.9;
}

.footer-logo h2 {
    color: var(--primary-white);
    font-size: 1.75rem;
    font-weight: var(--bold);
    margin: 0;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    gap: 15px;
}

.footer-social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    color: var(--primary-white);
    font-weight: var(--bold);
    font-size: 1.5rem;
    background-color: var(--secondary-forest-green);
    border-radius: 50%;
    text-decoration: none;
}

.footer-social-icon:hover {
    background-color: var(--primary-green);
}

.footer-bottom {
    text-align: center;
    width: 100%;
}

.footer-copyright-text {
    color: var(--primary-white);
    font-size: 0.8rem;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0 4rem 0;
}

.pagination ul.page-numbers {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.pagination ul.page-numbers li {
    margin: 0;
    padding: 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.75rem 1rem;
    border: 1px solid #e1e5e9;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    background: white;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.pagination a.page-numbers:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.pagination .page-numbers.current {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
    font-weight: 600;
}

.pagination .page-numbers.dots {
    border: none;
    background: none;
    color: #999;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    font-weight: 600;
}

.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
    background: var(--primary-green);
    color: white;
}

/* Responsive Design - Based on Original Breakpoints */
@media (max-width: 1119px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1023px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2rem;
    }

    .single-post-title {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Stack sidebar below content on tablets and mobile */
    .page-container-with-sidebar {
        flex-direction: column;
    }

    .page-sidebar {
        width: 100%;
        margin-left: 0;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .post-card h2 {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-logo {
        justify-content: center;
        margin-bottom: 1rem;
    }

    /* Hero video responsive */
    .hero-video-section {
        height: calc(100vh - 150px);
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.75rem;
    }

    .hero-button {
        padding: 12px 30px;
        font-size: 1.1rem;
    }

    .hero-content-inner {
        padding-left: 20px;
    }

    .hero-content-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero-description {
        font-size: 1.25rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-video-section {
        height: calc(100vh - 150px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-content-inner {
        padding-left: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-button {
        width: 100%;
        text-align: center;
    }

    .hero-description {
        font-size: 1.1rem;
    }
}

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center;
}

/* Search Form */
.search-form {
    position: relative;
    max-width: 300px;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    font-size: 1rem;
}

.search-form button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
}

.back-to-top:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Header Scroll Effect */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* Enhanced Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e1e5e9;
}

.post-navigation a {
    display: flex;
    flex-direction: column;
    max-width: 45%;
    text-decoration: none;
    color: #333;
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.post-navigation a:hover {
    background: #f8f9fa;
}

.nav-subtitle {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.nav-title {
    font-weight: 600;
    line-height: 1.4;
}

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e5e9;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Breadcrumbs */
.breadcrumb {
    padding: 10px 0 1rem 0;
    font-size: 0.875rem;
    color: #666;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Dashboard Navigation Tabs */
.ihowz-dashboard-nav {
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e5e5;
}

.ihowz-dashboard-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

.ihowz-dashboard-nav li {
    margin: 0;
}

.ihowz-dashboard-nav a {
    display: inline-block;
    padding: 12px 20px;
    text-decoration: none;
    color: #555;
    border-bottom: 3px solid transparent;
    background-color: rgba(156, 193, 48, 0.25);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ihowz-dashboard-nav a.active {
    color: var(--primary-white);
    background-color: var(--primary-green);
    border-bottom-color: transparent;
}

.ihowz-dashboard-nav a:hover {
    background-color: var(--primary-green);
    color: var(--primary-white);
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Post Tags */
.post-tags {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e1e5e9;
}

.post-tags a {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: #3498db;
    color: white;
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1002;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-charcoal);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger animation when toggled */
.menu-toggle.toggled .hamburger-icon span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.toggled .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.toggled .hamburger-icon span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Enhanced Mobile Navigation */
@media (max-width: 1023px) {
    /* Show hamburger button, hide regular menu */
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        max-width: 300px;
        background: var(--background-pure-white);
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        z-index: 1001;
        padding: 1rem 0;
        border-radius: 8px;
        margin-top: 10px;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation a {
        display: block;
        padding: 1rem 1.5rem;
        border-radius: 0;
        transition: background-color 0.3s ease;
    }

    .main-navigation a:hover,
    .main-navigation .current-menu-item a {
        background-color: var(--primary-green);
        color: white;
    }

    /* When header is scrolled and sticky */
    .header-scrolled .main-navigation {
        position: fixed;
        top: 100px; /* Adjust based on sticky header height */
    }
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .main-navigation {
        max-width: 100%;
        right: 0;
        left: 0;
        margin: 10px;
    }
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}
/* ================================
   MEGAMENU STYLES
   ================================ */

/* MegaMenu Base Styles */
.main-navigation {
    position: relative;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-navigation li {
    position: relative;
    margin: 0;
}

.main-navigation a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--primary-charcoal);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.main-navigation a:hover {
    color: var(--primary-green);
    background-color: var(--background-light-green);
}

/* Menu Icons */
.menu-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* Dropdown Indicator */
.dropdown-indicator {
    margin-left: 0.25rem;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover > a .dropdown-indicator {
    transform: rotate(180deg);
}

/* Menu Description (shows in megamenu) */
.menu-description {
    display: block;
    font-size: 0.875rem;
    color: var(--neutral-gray);
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Sub-menu Base (Regular Dropdown) */
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--background-pure-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 1.5rem 0;
    z-index: 1000;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.menu-item-has-children:hover > .sub-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    display: block;
}

.sub-menu a {
    display: block;
    padding: 1rem 1.75rem;
    border-radius: 0;
    white-space: nowrap;
    font-size: 1rem;
    line-height: 1.5;
}

.sub-menu a:hover {
    background-color: var(--background-light-green);
    color: var(--primary-green);
}

/* MegaMenu Dropdown Styles */
.megamenu-enabled > .megamenu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    background: var(--background-pure-white);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    padding: 2rem 1rem;
    z-index: 1000;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    justify-content: center;
}

.megamenu-enabled:hover > .megamenu-dropdown {
    display: grid;
    opacity: 1;
    visibility: visible;
}

/* MegaMenu Column Layouts */
.megamenu-cols-2 > .megamenu-dropdown {
    grid-template-columns: repeat(2, minmax(200px, 350px));
    gap: 2rem;
    align-items: start;
}

.megamenu-cols-3 > .megamenu-dropdown {
    grid-template-columns: repeat(3, minmax(200px, 300px));
    gap: 2rem;
    align-items: start;
}

.megamenu-cols-4 > .megamenu-dropdown {
    grid-template-columns: repeat(4, minmax(180px, 250px));
    gap: 2rem;
    align-items: start;
}

/* MegaMenu Items */
.megamenu-dropdown > li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid var(--background-light-gray);
    width: 100%;
}

.megamenu-dropdown > li:last-child {
    border-bottom: none;
}

.megamenu-dropdown > li > a {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 1.75rem;
    margin-bottom: 0;
    border-radius: 0;
    width: 100%;
}

.megamenu-dropdown > li > a:hover {
    background-color: var(--background-light-green);
    color: var(--primary-green);
}

/* Nested items in megamenu */
.megamenu-dropdown .sub-menu {
    position: static;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    min-width: 0;
    background: transparent;
}

.megamenu-dropdown .sub-menu a {
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--primary-charcoal);
}

.megamenu-dropdown .sub-menu a:hover {
    background-color: var(--background-light-green);
    color: var(--primary-green);
}

/* Featured Items */
.megamenu-featured > a {
    background-color: var(--background-light-green);
    color: var(--secondary-forest-green) !important;
    font-weight: 700;
}

.megamenu-featured:hover > a {
    background-color: var(--primary-green);
    color: var(--primary-white) !important;
}

/* Menu Icons in MegaMenu */
.megamenu-dropdown .menu-icon {
    font-size: 1.5rem;
}

/* Current Menu Item Styling */
.current-menu-item > a,
.current-menu-parent > a {
    color: var(--primary-green);
    background-color: var(--background-light-green);
}

/* MegaMenu Mobile Adjustments */
@media (max-width: 1023px) {
    /* Mobile - Disable MegaMenu, use standard dropdown */
    .megamenu-enabled > .megamenu-dropdown {
        position: static;
        transform: none;
        min-width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr !important;
        gap: 0;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
        margin-top: 0;
    }

    .megamenu-enabled:hover > .megamenu-dropdown {
        display: block;
    }

    .megamenu-dropdown > li {
        border-bottom: 1px solid var(--background-light-gray);
    }

    .megamenu-dropdown > li:last-child {
        border-bottom: none;
    }

    .megamenu-dropdown > li > a {
        border-bottom: none;
        padding: 0.75rem 1.5rem;
        margin-bottom: 0;
    }

    .megamenu-dropdown .sub-menu {
        padding-left: 1rem;
    }

    .dropdown-indicator {
        margin-left: auto;
    }

    /* Mobile dropdown toggle */
    .menu-item-has-children > a {
        position: relative;
    }

    .menu-item-has-children > .sub-menu,
    .megamenu-enabled > .megamenu-dropdown {
        display: none;
    }

    .menu-item-has-children.menu-open > .sub-menu,
    .megamenu-enabled.menu-open > .megamenu-dropdown {
        display: block;
    }
}

/* Tablet Adjustments */
@media (max-width: 1200px) and (min-width: 1024px) {
    .megamenu-cols-4 > .megamenu-dropdown {
        grid-template-columns: repeat(2, 1fr);
    }

    .megamenu-enabled > .megamenu-dropdown {
        max-width: 800px;
    }
}

/* Accessibility Improvements */
.main-navigation a:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Animation for menu items */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item-has-children:hover > .sub-menu,
.megamenu-enabled:hover > .megamenu-dropdown {
    animation: slideDown 0.3s ease;
}

/* Ensure dropdowns don't overflow viewport */
@media (min-width: 1024px) {
    .main-navigation li:nth-last-child(-n+2) .sub-menu:not(.megamenu-dropdown) {
        left: auto;
        right: 0;
    }
}

/* ===================================
   Page Templates - Wireframe Implementations
   =================================== */

/* Common Template Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-content {
    padding: 40px 0;
}

/* ===================================
   HOME PAGE TEMPLATE
   =================================== */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-forest-green));
    color: var(--primary-white);
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: var(--bold);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-cta {
    margin: 30px 0;
}

.cta-highlight {
    background: var(--accent-gold);
    color: var(--primary-white);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: var(--semi-bold);
    display: inline-block;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(255, 143, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Info Cards Section */
.info-cards-section {
    padding: 60px 20px;
    background: var(--background-subtle);
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    background: var(--background-pure-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.08);
}

.info-card h3 {
    color: var(--primary-green);
    margin-bottom: 20px;
    font-size: 24px;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--background-light-gray);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list a {
    color: var(--primary-charcoal);
    text-decoration: none;
    transition: color 0.3s;
}

.info-list a:hover {
    color: var(--primary-green);
}

/* Two Column Section */
.two-column-section {
    padding: 60px 20px;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.content-column {
    background: var(--background-pure-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.08);
}

.content-column h2 {
    color: var(--primary-green);
    margin-bottom: 24px;
}

.benefits-list ul {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: var(--bold);
}

.value-calculator {
    margin-top: 30px;
    padding: 20px;
    background: var(--background-light-green);
    border-radius: 8px;
    text-align: center;
}

.calculator-highlight {
    font-weight: var(--semi-bold);
    color: var(--primary-green);
    font-size: 18px;
}

.news-list {
    margin-bottom: 24px;
}

.news-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--background-light-gray);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h4 a {
    color: var(--primary-charcoal);
    text-decoration: none;
}

.news-item h4 a:hover {
    color: var(--primary-green);
}

.news-excerpt {
    color: var(--neutral-gray);
    margin-top: 8px;
}

/* Social Proof Section */
.social-proof-section {
    padding: 60px 20px;
    background: var(--background-light-green);
}

.social-proof-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--background-pure-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.08);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--primary-charcoal);
}

.testimonial-author strong {
    display: block;
    color: var(--primary-charcoal);
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--neutral-gray);
    font-size: 14px;
}

/* Sponsors Section */
.sponsors-section {
    padding: 60px 20px;
}

.sponsors-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.sponsor-card {
    background: var(--background-pure-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.08);
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-card-placeholder {
    background: var(--background-subtle);
    border: 2px dashed var(--accent-gold);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-ad-space {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light-gray);
    color: var(--neutral-gray);
    text-align: center;
    border-radius: 8px;
}

.sponsors-cta {
    text-align: center;
    margin-top: 30px;
}

/* ===================================
   ARTICLE TEMPLATE
   =================================== */

.template-article {
    padding: 40px 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-content {
    background: var(--background-pure-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.08);
}

.article-header {
    margin-bottom: 40px;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-charcoal);
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--neutral-gray);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.share-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
}

.share-btn {
    padding: 8px 16px;
    background: var(--background-light-gray);
    color: var(--primary-charcoal);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.3s;
}

.share-btn:hover {
    background: var(--primary-green);
    color: var(--primary-white);
}

.article-summary {
    background: var(--background-light-green);
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
    margin-bottom: 30px;
}

.article-summary h3 {
    margin-bottom: 12px;
    color: var(--primary-green);
}

.article-main-content {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.member-only-cta {
    background: linear-gradient(135deg, var(--accent-gold), var(--warning-orange));
    color: var(--primary-white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.member-only-cta h3 {
    margin-bottom: 16px;
}

.downloadable-resources {
    background: var(--background-subtle);
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
}

.downloadable-resources h3 {
    margin-bottom: 20px;
    color: var(--primary-green);
}

.resource-list {
    list-style: none;
    padding: 0;
}

.resource-list li {
    margin-bottom: 12px;
}

.resource-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--background-pure-white);
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary-charcoal);
    transition: all 0.3s;
}

.resource-link:hover {
    background: var(--background-light-green);
    transform: translateX(5px);
}

.file-type {
    background: var(--primary-green);
    color: var(--primary-white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: var(--semi-bold);
}

/* Article Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--background-pure-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.08);
}

.sidebar-widget h3 {
    margin-bottom: 16px;
    color: var(--primary-green);
    font-size: 20px;
}

.ad-widget {
    background: var(--background-subtle);
    border: 2px dashed var(--accent-gold);
}

.ad-placeholder {
    background: var(--background-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-gray);
    border-radius: 8px;
    text-align: center;
}

.related-articles-list {
    list-style: none;
    padding: 0;
}

.related-articles-list li {
    margin-bottom: 12px;
}

.related-articles-list a {
    color: var(--primary-charcoal);
    text-decoration: none;
    transition: color 0.3s;
}

.related-articles-list a:hover {
    color: var(--primary-green);
}

.contact-widget p {
    margin-bottom: 16px;
}

.newsletter-widget p {
    margin-bottom: 16px;
}

/* Related Content Section */
.related-content-section {
    padding: 60px 20px;
    background: var(--background-subtle);
}

.related-content-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.related-content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.recommended-post-card {
    background: var(--background-pure-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.08);
    transition: all 0.3s;
}

.recommended-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(38, 50, 56, 0.12);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.recommended-post-card h3 {
    padding: 20px 20px 0;
    margin-bottom: 12px;
}

.recommended-post-card h3 a {
    color: var(--primary-charcoal);
    text-decoration: none;
}

.recommended-post-card h3 a:hover {
    color: var(--primary-green);
}

.recommended-post-card p {
    padding: 0 20px;
    color: var(--neutral-gray);
    margin-bottom: 16px;
}

.recommended-post-card .read-more {
    display: inline-block;
    padding: 0 20px 20px;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: var(--semi-bold);
}

/* Sponsor Content Section */
.sponsor-content-section {
    padding: 60px 20px;
}

.sponsor-content-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.sponsor-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.sponsor-content-card {
    background: var(--background-pure-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.08);
}

/* ===================================
   GUIDE TEMPLATE
   =================================== */

.template-guide {
    padding: 40px 0;
}

.guide-hero {
    background: var(--background-light-green);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.guide-title {
    font-size: 40px;
    margin-bottom: 20px;
}

.guide-meta {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    color: var(--neutral-gray);
    font-size: 16px;
}

.guide-meta span {
    padding: 8px 16px;
    background: var(--background-pure-white);
    border-radius: 6px;
}

.guide-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.step-navigation {
    background: var(--background-pure-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.08);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.step-navigation h3 {
    margin-bottom: 20px;
    color: var(--primary-green);
}

.step-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.step-item:hover {
    background: var(--background-light-green);
}

.step-item.active {
    background: var(--primary-green);
    color: var(--primary-white);
}

.step-number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light-gray);
    border-radius: 50%;
    font-weight: var(--semi-bold);
    flex-shrink: 0;
}

.step-item.active .step-number {
    background: var(--secondary-forest-green);
    color: var(--primary-white);
}

.step-title {
    flex: 1;
    font-size: 14px;
}

.progress-indicator {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--background-light-gray);
}

.progress-label {
    font-weight: var(--semi-bold);
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--background-light-gray);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-green);
    transition: width 0.3s;
}

.progress-percentage {
    font-size: 14px;
    color: var(--neutral-gray);
}

.step-content-area {
    background: var(--background-pure-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.08);
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.step-content h2 {
    color: var(--primary-green);
    margin-bottom: 24px;
}

.step-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.checklist {
    background: var(--background-light-green);
    padding: 24px;
    border-radius: 12px;
    margin: 30px 0;
}

.checklist h4 {
    margin-bottom: 16px;
    color: var(--primary-green);
}

.checklist-items {
    list-style: none;
    padding: 0;
}

.checklist-items li {
    margin-bottom: 12px;
}

.checklist-items label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.checklist-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.required-documents {
    background: var(--background-subtle);
    padding: 24px;
    border-radius: 12px;
    margin: 30px 0;
}

.required-documents h4 {
    margin-bottom: 16px;
    color: var(--primary-green);
}

.document-list {
    list-style: none;
    padding: 0;
}

.document-list li {
    padding: 10px 0;
    padding-left: 24px;
    position: relative;
}

.document-list li:before {
    content: "📄";
    position: absolute;
    left: 0;
}

.video-tutorial {
    margin: 30px 0;
}

.video-tutorial h4 {
    margin-bottom: 16px;
    color: var(--primary-green);
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.template-downloads {
    background: var(--background-subtle);
    padding: 24px;
    border-radius: 12px;
    margin: 30px 0;
}

.template-downloads h4 {
    margin-bottom: 16px;
    color: var(--primary-green);
}

.template-list {
    list-style: none;
    padding: 0;
}

.template-list li {
    margin-bottom: 12px;
}

.template-download {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--background-pure-white);
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary-charcoal);
    transition: all 0.3s;
}

.template-download:hover {
    background: var(--background-light-green);
    transform: translateX(5px);
}

.file-size {
    color: var(--neutral-gray);
    font-size: 14px;
}

.common-mistakes {
    background: #FFF8E1;
    border-left: 4px solid var(--warning-orange);
    padding: 24px;
    border-radius: 8px;
    margin: 30px 0;
}

.common-mistakes h4 {
    margin-bottom: 16px;
    color: var(--warning-orange);
}

.step-navigation-buttons {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--background-light-gray);
    flex-wrap: wrap;
}

/* Tools & Resources Section */
.tools-resources-section {
    padding: 60px 20px;
    background: var(--background-subtle);
}

.tools-resources-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background: var(--background-pure-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.08);
    text-align: center;
}

.tool-card h4 {
    margin-bottom: 16px;
    color: var(--primary-green);
}

.tool-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: var(--semi-bold);
}

/* Relevant Services Section */
.relevant-services-section {
    padding: 60px 20px;
}

.relevant-services-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--background-pure-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.08);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-ad-space {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

/* ===================================
   RESOURCES TEMPLATE
   =================================== */

.template-resources {
    padding: 40px 0;
}

.page-header {
    background: var(--background-light-green);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 40px;
    margin-bottom: 16px;
}

.page-intro {
    font-size: 18px;
    color: var(--neutral-gray);
    max-width: 800px;
    margin: 0 auto;
}

.filter-search-section {
    padding: 40px 20px;
    background: var(--background-subtle);
}

.resource-filters {
    max-width: 1200px;
    margin: 0 auto;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item label {
    margin-bottom: 8px;
    font-weight: var(--semi-bold);
    color: var(--primary-charcoal);
}

.filter-item select,
.filter-item input[type="text"] {
    padding: 12px 16px;
    border: 1px solid var(--neutral-gray);
    border-radius: 8px;
    font-size: 16px;
    background: var(--background-pure-white);
}

.filter-item select:focus,
.filter-item input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-green);
    border-width: 2px;
}

.resources-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.resources-top-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.featured-resources {
    background: var(--background-pure-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.08);
}

.featured-resources h2 {
    color: var(--primary-green);
    margin-bottom: 24px;
}

.featured-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.featured-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--background-light-gray);
}

.member-benefit-cta {
    background: var(--background-light-green);
    padding: 24px;
    border-radius: 8px;
    text-align: center;
}

.quick-access {
    background: var(--background-pure-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.08);
}

.quick-access h3 {
    color: var(--primary-green);
    margin-bottom: 20px;
}

.quick-access-list {
    list-style: none;
    padding: 0;
}

.quick-access-list li {
    margin-bottom: 12px;
}

.quick-access-list a {
    color: var(--primary-charcoal);
    text-decoration: none;
    transition: color 0.3s;
}

.quick-access-list a:hover {
    color: var(--primary-green);
}

.resource-grid-section {
    padding: 60px 20px;
}

.resource-grid-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.resource-card {
    background: var(--background-pure-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.08);
    transition: all 0.3s;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(38, 50, 56, 0.12);
}

.resource-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.resource-content {
    padding: 24px;
}

.resource-content h3 {
    margin-bottom: 12px;
}

.resource-content h3 a {
    color: var(--primary-charcoal);
    text-decoration: none;
}

.resource-content h3 a:hover {
    color: var(--primary-green);
}

.resource-description {
    color: var(--neutral-gray);
    margin-bottom: 16px;
}

.resource-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.resource-meta span {
    font-size: 12px;
    padding: 4px 8px;
    background: var(--background-light-gray);
    border-radius: 4px;
    color: var(--neutral-gray);
}

.resource-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.load-more-section {
    text-align: center;
    margin-top: 40px;
}

.professional-services-section {
    padding: 60px 20px;
    background: var(--background-subtle);
}

.professional-services-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

/* ===================================
   EVENTS TEMPLATE
   =================================== */

.template-events {
    padding: 40px 0;
}

.featured-event-hero {
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-green));
    color: var(--primary-white);
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.featured-event-hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.event-date {
    font-size: 20px;
    margin-bottom: 20px;
}

.event-discount-badge {
    margin: 20px 0;
}

.discount-highlight {
    background: var(--accent-gold);
    color: var(--primary-white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: var(--semi-bold);
    display: inline-block;
}

.calendar-live-section {
    padding: 60px 20px;
}

.calendar-live-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.calendar-column,
.live-events-column {
    background: var(--background-pure-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.08);
}

.calendar-column h2,
.live-events-column h2 {
    color: var(--primary-green);
    margin-bottom: 24px;
}

.calendar-view-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.view-btn {
    padding: 8px 16px;
    background: var(--background-light-gray);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary-green);
    color: var(--primary-white);
}

.event-calendar {
    min-height: 300px;
    background: var(--background-subtle);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.calendar-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.calendar-filters label {
    font-weight: var(--semi-bold);
}

.calendar-filters select {
    padding: 8px 12px;
    border: 1px solid var(--neutral-gray);
    border-radius: 6px;
    background: var(--background-pure-white);
}

.calendar-actions {
    display: flex;
    gap: 12px;
}

.live-event-card {
    background: var(--background-light-green);
    border: 2px solid var(--success-green);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.live-indicator {
    margin-bottom: 16px;
}

.live-badge {
    background: var(--error-red);
    color: var(--primary-white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: var(--bold);
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.live-event-card h3 {
    margin-bottom: 12px;
}

.upcoming-events-list {
    margin-bottom: 24px;
}

.upcoming-event-item {
    padding: 20px;
    background: var(--background-subtle);
    border-radius: 8px;
    margin-bottom: 16px;
}

.upcoming-event-item h4 {
    margin-bottom: 8px;
    color: var(--primary-green);
}

.upcoming-event-item p {
    font-size: 14px;
    color: var(--neutral-gray);
    margin: 4px 0;
}

.event-recordings {
    padding: 20px;
    background: var(--background-subtle);
    border-radius: 8px;
}

.event-recordings h4 {
    margin-bottom: 12px;
    color: var(--primary-green);
}

.event-categories-section {
    padding: 60px 20px;
    background: var(--background-subtle);
}

.event-categories-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.event-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: var(--background-pure-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.08);
}

.category-card h3 {
    margin-bottom: 16px;
    color: var(--primary-green);
}

.category-card ul {
    list-style: none;
    padding: 0;
}

.category-card li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.category-card li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-green);
}

.member-features-section {
    padding: 60px 20px;
}

.member-features-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.member-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--background-pure-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.08);
}

.feature-card h3 {
    margin-bottom: 16px;
    color: var(--primary-green);
}

.feature-card ul {
    list-style: none;
    padding: 0;
}

.feature-card li {
    padding: 8px 0;
}

.event-sponsors-section {
    padding: 60px 20px;
    background: var(--background-subtle);
}

.event-sponsors-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.event-sponsors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===================================
   CAMPAIGNS TEMPLATE
   =================================== */

.template-campaigns {
    padding: 40px 0;
}

.priority-campaign-hero {
    background: linear-gradient(135deg, var(--warning-orange), var(--accent-gold));
    color: var(--primary-white);
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.priority-campaign-hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.campaign-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.campaign-progress-bar {
    width: 100%;
    max-width: 600px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin: 30px auto 20px;
}

.campaign-stats {
    margin-top: 20px;
}

.stat-highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 8px;
    display: inline-block;
    font-size: 16px;
}

.campaigns-impact-section {
    padding: 60px 20px;
}

.campaigns-impact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.active-campaigns-column,
.campaign-impact-column {
    background: var(--background-pure-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.08);
}

.active-campaigns-column h2,
.campaign-impact-column h2 {
    color: var(--primary-green);
    margin-bottom: 30px;
}

.campaign-card {
    background: var(--background-subtle);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.campaign-card h3 {
    margin-bottom: 12px;
    color: var(--primary-charcoal);
}

.campaign-progress {
    margin: 20px 0;
}

.campaign-meta {
    display: flex;
    gap: 20px;
    margin: 16px 0;
    font-size: 14px;
    color: var(--neutral-gray);
    flex-wrap: wrap;
}

.campaign-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.impact-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.impact-stat-card {
    background: var(--background-light-green);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.impact-stat-card h3 {
    font-size: 14px;
    color: var(--neutral-gray);
    margin-bottom: 12px;
}

.stat-value {
    font-size: 32px;
    font-weight: var(--bold);
    color: var(--primary-green);
}

.success-metrics {
    background: var(--background-subtle);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.success-metrics h4 {
    margin-bottom: 16px;
    color: var(--primary-green);
}

.success-metrics ul {
    list-style: none;
    padding: 0;
}

.success-metrics li {
    padding: 8px 0;
}

.impact-highlight {
    background: var(--accent-gold);
    color: var(--primary-white);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.highlight-text {
    font-size: 18px;
    font-weight: var(--semi-bold);
}

.advocacy-tools-section {
    padding: 60px 20px;
    background: var(--background-subtle);
}

.advocacy-tools-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.advocacy-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.campaign-archive-section {
    padding: 60px 20px;
}

.campaign-archive-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.archive-campaign-card {
    background: var(--background-pure-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.08);
}

.archive-campaign-card h3 {
    margin-bottom: 16px;
    color: var(--primary-green);
}

.campaign-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.campaign-outcome {
    margin-bottom: 20px;
}

.campaign-outcome h4 {
    margin-bottom: 8px;
    color: var(--primary-charcoal);
    font-size: 16px;
}

.impact-metrics {
    background: var(--background-light-green);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.impact-metrics h5 {
    margin-bottom: 8px;
    color: var(--primary-green);
    font-size: 14px;
}

.archive-actions {
    text-align: center;
}

.campaign-supporters-section {
    padding: 60px 20px;
    background: var(--background-subtle);
}

.campaign-supporters-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.supporters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.supporter-card {
    background: var(--background-pure-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.08);
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
    .info-cards-grid,
    .testimonials-grid,
    .sponsors-grid,
    .two-column-grid,
    .related-content-grid,
    .sponsor-content-grid,
    .tools-grid,
    .services-grid,
    .resources-top-section,
    .resource-grid,
    .calendar-live-grid,
    .event-categories-grid,
    .member-features-grid,
    .event-sponsors-grid,
    .campaigns-impact-grid,
    .advocacy-tools-grid,
    .archive-grid,
    .supporters-grid {
        grid-template-columns: 1fr 1fr;
    }

    .article-layout,
    .guide-layout {
        grid-template-columns: 1fr;
    }

    .step-navigation {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .info-cards-grid,
    .testimonials-grid,
    .sponsors-grid,
    .two-column-grid,
    .related-content-grid,
    .sponsor-content-grid,
    .tools-grid,
    .services-grid,
    .resources-top-section,
    .resource-grid,
    .calendar-live-grid,
    .event-categories-grid,
    .member-features-grid,
    .event-sponsors-grid,
    .campaigns-impact-grid,
    .advocacy-tools-grid,
    .archive-grid,
    .supporters-grid,
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .impact-dashboard {
        grid-template-columns: 1fr;
    }
}
