/* ==========================================================================
   Good Girl WordPress Theme Styles
   ========================================================================== */

/* متغیرهای رنگ و اندازه */
:root {
    /* رنگ‌های اصلی برند */
    --color-primary: #4A90E2;        /* آبی روشن - اعتماد و فناوری */
    --color-primary-dark: #3A7BC8;   /* آبی تیره‌تر */
    --color-primary-light: #6BA5E7;  /* آبی روشن‌تر */
    
    --color-secondary: #9B59B6;      /* بنفش ملایم - خلاقیت و نوآوری */
    --color-secondary-dark: #8E44AD; /* بنفش تیره‌تر */
    --color-secondary-light: #A569BD; /* بنفش روشن‌تر */
    
    /* رنگ‌های Accent */
    --color-accent-orange: #FFA500;  /* نارنجی - اقدام و انرژی */
    --color-accent-yellow: #F1C40F;  /* زرد - توجه و سرعت */
    
    /* رنگ‌های پس‌زمینه */
    --color-bg-primary: #FFFFFF;     /* سفید - تمیز و مدرن */
    --color-bg-secondary: #F5F5F5;   /* خاکستری روشن */
    --color-bg-tertiary: #ECECEC;    /* خاکستری کمی تیره‌تر */
    
    /* رنگ‌های متن */
    --color-text-primary: #333333;   /* خاکستری تیره - متن اصلی */
    --color-text-secondary: #666666; /* خاکستری میانه */
    --color-text-muted: #999999;     /* خاکستری روشن - متن کم‌اهمیت */
    --color-text-white: #FFFFFF;     /* سفید - روی پس‌زمینه تیره */
    
    /* رنگ‌های خاکستری سیستم */
    --color-gray-50: #FAFAFA;
    --color-gray-100: #F5F5F5;
    --color-gray-200: #ECECEC;
    --color-gray-300: #DDDDDD;
    --color-gray-400: #BBBBBB;
    --color-gray-500: #999999;
    --color-gray-600: #666666;
    --color-gray-700: #444444;
    --color-gray-800: #333333;
    --color-gray-900: #1A1A1A;
    
    /* رنگ‌های سیستمی */
    --color-success: #27AE60;        /* سبز - موفقیت */
    --color-warning: #F39C12;        /* نارنجی - هشدار */
    --color-error: #E74C3C;          /* قرمز - خطا */
    --color-info: #3498DB;           /* آبی - اطلاعات */
    
    /* پایه */
    --color-white: #FFFFFF;
    --color-black: #000000;
    
    /* سایه‌ها */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* شعاع گوشه‌ها */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}
/* Debug marker - remove after verification */
body::after {
    content: "nineyr-css-loaded-v2";
    position: fixed;
    right: 8px;
    bottom: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    z-index: 9999999;
    pointer-events: none;
}
/* ریست و استایل پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Layout */
.nineyr-main {
    min-height: 100vh;
    padding: 0;
}

.nineyr-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nineyr-container-narrow {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   HEADER (سربرگ)
   ========================================================================== */

.nineyr-header {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: var(--shadow-md);
    z-index: 50;
}
.nineyr-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nineyr-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

/* Logo */
.nineyr-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.nineyr-logo-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}

.nineyr-logo-icon span {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.nineyr-logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

/* Navigation */
.nineyr-nav {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .nineyr-nav {
        display: flex;
    }
}
/* استایل منوی وردپرس */
.nineyr-nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nineyr-nav-menu li {
    display: inline-block;
    position: relative;
    margin: 0;
}

.nineyr-nav-menu > li > a {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.nineyr-nav-menu > li > a:hover,
.nineyr-nav-menu > li.current-menu-item > a {
    color: white;
    background-color: var(--color-accent-orange);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.nineyr-nav-menu > li.current_page_item > a,
.nineyr-nav-menu > li.current-page-ancestor > a {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

/*منوی دراپ‌داون (اگر زیرمنو داشت) */
.nineyr-nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    min-width: 200px;
    z-index: 1000;
    list-style: none;
    margin: 0.5rem 0 0 0;
}

.nineyr-nav-menu li:hover .sub-menu {
    display: block;
}
.nineyr-nav-menu .sub-menu li {
    display: block;
    margin: 0;
}
.nineyr-nav-menu .sub-menu a {
    color: #374151 !important;
    border: none !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: transparent !important;
    display: block;
}

.nineyr-nav-menu .sub-menu a:hover {
    background-color: rgba(168, 85, 247, 0.1) !important;
    color: var(--color-primary) !important;
    transform: none !important;
    box-shadow: none !important;
}
/* حذف نقطه‌ها و فاصله‌های اضافی */
.nineyr-nav ul,
.nineyr-nav-menu,
.nineyr-nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nineyr-nav-menu li::before {
    content: none !important;
}

.nineyr-nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.nineyr-nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.nineyr-nav-divider {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 0.5rem;
}

.nineyr-nav-icon {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    width: 40px;
    height: 40px;
}

.nineyr-nav-icon:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Ensure SVG icons in nav are white on desktop and mobile */
.nineyr-nav-icon svg,
.nineyr-mobile-nav .nineyr-nav-icon svg,
.nineyr-nav-menu-mobile svg,
.nineyr-nav-menu svg {
    stroke: var(--color-white) !important;
    fill: none !important;
}

/* Also ensure any icon fonts or text icons inside .nineyr-nav-icon are white */
.nineyr-nav-icon,
.nineyr-mobile-nav .nineyr-nav-icon {
    color: var(--color-white) !important;
}

.nineyr-mobile-menu-toggle {
    display: flex;
    color: white;
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0.25rem 0.5rem;
}

@media (min-width: 768px) {
    .nineyr-mobile-menu-toggle {
        display: none;
    }
}

/* Mobile: make nav drop down vertically */
@media (max-width: 767px) {
    .nineyr-header-content {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
    }

    .nineyr-logo {
        order: 1;
        width: auto;
    }

    .nineyr-mobile-menu-toggle {
        order: 2;
        margin-left: auto;
    }

    /* The header's desktop nav remains; use a separate mobile nav element */
    /* Mobile nav is an overlay fixed panel that does not push page content */
    .nineyr-mobile-nav {
        display: block; /* always present in DOM, visibility controlled via transform */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        transform: translateY(-100%);
        transition: transform 300ms ease;
        z-index: 9999;
        background: linear-gradient(180deg, var(--color-primary), var(--color-primary-dark));
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: 64px; /* leave space for header so menu appears below it visually */
        will-change: transform;
        color: var(--color-white);
    }

    .nineyr-mobile-nav.open {
        transform: translateY(0);
    }

    /* Close button inside the mobile nav */
    .nineyr-mobile-nav-close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.08);
        color: var(--color-white);
        border: 0;
        border-radius: 8px;
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
        z-index: 10000;
    }

    .nineyr-mobile-nav-close:hover {
        background: rgba(255,255,255,0.12);
    }

    .nineyr-nav-menu-mobile {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0.25rem 0;
        list-style: none;
        margin: 0;
    }

    .nineyr-nav-menu-mobile > li {
        display: block;
        border-top: 1px solid rgba(255,255,255,0.04);
    }

    .nineyr-nav-menu-mobile > li > a,
    .nineyr-mobile-nav a.nineyr-nav-link {
        display: block;
        padding: 14px 18px;
        background: transparent;
        border-radius: 0;
        font-size: 1rem;
        color: var(--color-white);
    }

    .nineyr-nav-menu-mobile > li > a:hover {
        background: rgba(255,255,255,0.06);
        color: var(--color-white);
    }

    .nineyr-mobile-nav .nineyr-nav-icon {
        display: block;
        padding: 12px 16px;
    }
}

/* Hide the mobile overlay on larger screens entirely */
@media (min-width: 768px) {
    .nineyr-mobile-nav {
        display: none !important;
    }
}

/* Prevent body scroll when mobile nav is open */
.nineyr-no-scroll {
    overflow: hidden !important;
    height: 100% !important;
}

/* ==========================
   High-priority overrides
   Force Read More CTA and icons to theme colors
   ==========================
*/

/* Strongly enforce Read More pill on blog cards */
.nineyr-blog-grid .nineyr-card-footer a.nineyr-readmore-link,
.nineyr-blog-grid article.nineyr-card a.nineyr-readmore-link {
    display: inline-block !important;
    padding: 0.45rem 0.9rem !important;
    background: linear-gradient(135deg, var(--color-accent-orange) 0%, var(--color-warning) 100%) !important;
    color: var(--color-white) !important;
    border: none !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 20px rgba(255,152,0,0.12) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

/* Ensure any SVG inside the readmore link is white */
.nineyr-blog-grid .nineyr-card-footer a.nineyr-readmore-link svg,
.nineyr-blog-grid article.nineyr-card a.nineyr-readmore-link svg {
    stroke: var(--color-white) !important;
    fill: none !important;
}

/* Force nav/account icons white on all screens */
.nineyr-header .nineyr-nav-icon svg,
.nineyr-header #nineyr-primary-nav svg,
.nineyr-mobile-nav .nineyr-nav-icon svg,
.nineyr-nav-menu-mobile svg,
.nineyr-nav-menu svg {
    stroke: var(--color-white) !important;
    fill: none !important;
}

.nineyr-header .nineyr-nav-icon,
.nineyr-mobile-nav .nineyr-nav-icon,
.nineyr-header .nineyr-nav-icon *,
.nineyr-mobile-nav .nineyr-nav-icon * {
    color: var(--color-white) !important;
}

/* If some plugins inject inline styles, increase specificity further */
body .nineyr-blog-grid .nineyr-card-footer a.nineyr-readmore-link {
    background: linear-gradient(135deg, var(--color-accent-orange) 0%, var(--color-warning) 100%) !important;
}


/* ==========================================================================
   FEATURED POST (پست ویژه)
   ========================================================================== */

.nineyr-featured {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    box-shadow: var(--shadow-lg);
    margin: 0;
    padding: 0;
}
.nineyr-featured-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.nineyr-featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 0;
    min-height: 500px;
    align-items: center;
}

@media (min-width: 1024px) {
    .nineyr-featured-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.nineyr-featured-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: white;
}
.nineyr-featured-badge {
    display: inline-flex;
    width: fit-content;
}

.nineyr-featured-badge span {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.nineyr-featured-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
    .nineyr-featured-title {
        font-size: 3rem;
    }
}

.nineyr-featured-summary {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.nineyr-featured-summary {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}
.nineyr-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}
.nineyr-featured-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nineyr-featured-meta svg {
    width: 16px;
    height: 16px;
}
.nineyr-featured-cta {
    margin-top: 1rem;
}
.nineyr-featured-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    min-height: 400px;
    background: rgba(255, 255, 255, 0.1);
}

.nineyr-featured-image img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
}
.nineyr-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
}
.nineyr-featured-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Blog Section Header: improve visual hierarchy and harmony with hero */
.nineyr-section-header {
    margin: 2.5rem 0 1rem;
    text-align: left;
}
.nineyr-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 0.25rem 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
    position: relative;
    padding-left: 0.9rem;
}
.nineyr-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 40px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
}
.nineyr-section-subtitle {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 0.98rem;
    max-width: 64ch;
    opacity: 0.95;
}

@media (min-width: 1024px) {
    .nineyr-section-title { font-size: 2rem; }
}

/* Slight spacing between section header and grid */
.nineyr-blog-grid {
    margin-top: 1.25rem;
}

/* تبلت */
@media (min-width: 768px) and (max-width: 1023px) {
    .nineyr-featured {
        border-bottom-left-radius: 150px;
        border-bottom-right-radius: 150px;
        min-height: 500px;
    }
    
    .nineyr-featured-grid {
        padding: 4rem 2rem;
        min-height: 500px;
    }
    
    .nineyr-featured-image {
        min-height: 350px;
    }
    
    .nineyr-featured-image img {
        min-height: 350px;
    }
}

/* ==========================================================================
   BUTTONS (دکمه‌ها)
   ========================================================================== */

.nineyr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nineyr-btn-primary {
    /* stronger brand gradient to stand out more */
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 2rem;
    font-weight: 700;
}
.nineyr-btn-primary:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.nineyr-btn-ghost {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.nineyr-btn-ghost:hover {
    background-color: rgba(74, 144, 226, 0.1);
    color: var(--color-primary-dark);
}

.nineyr-btn-text {
    /* clearer default style for "Read More" text buttons */
    color: var(--color-primary-dark);
    background: rgba(74, 144, 226, 0.06);
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    font-weight: 600;
    border: 1px solid rgba(74,144,226,0.12);
}

.nineyr-btn-text:hover {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: var(--shadow-md);
}

/* A more attention-grabbing CTA for 'Read Our Blog' (use class .nineyr-read-blog on the button)
   This is optional — if you want, add class="nineyr-read-blog" to the homepage button */
.nineyr-read-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #6EE7B7 0%, #60A5FA 100%); /* lively mint -> blue */
    color: #083344;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(99,102,241,0.12);
    transform: translateZ(0);
}
.nineyr-read-blog:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(99,102,241,0.18);
}

/* ==========================================================================
   BLOG GRID (شبکه پست‌ها)
   ========================================================================== */

.nineyr-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0 3rem;
}

@media (min-width: 768px) {
    .nineyr-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .nineyr-blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   BLOG CARD (کارت پست)
   ========================================================================== */

.nineyr-card {
    background-color: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    transition: all 0.3s ease;
}

.nineyr-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.nineyr-card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.nineyr-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.nineyr-card:hover .nineyr-card-image img {
    transform: scale(1.05);
}

.nineyr-card-content {
    background-color: var(--color-white);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nineyr-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.4;
}

.nineyr-card-title a:hover {
    color: var(--color-primary);
}

.nineyr-card-summary {
    color: rgba(0, 0, 0, 0.8);
    font-size: 0.875rem;
    line-height: 1.6;
}

.nineyr-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.7);
}
.nineyr-card-badge {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}
/* ==========================================================================
   Footer
   ========================================================================== */

.nineyr-footer {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    background-blend-mode: darken;
    box-shadow: var(--shadow-lg), inset 0 0 60px rgba(0, 0, 0, 0.2);
    margin-top: 4rem;
    padding: 0;
}
.nineyr-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.nineyr-footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

/* Brand */
.nineyr-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nineyr-footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.nineyr-footer-logo-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
}

.nineyr-footer-logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

/* High-specificity overrides in case older cached CSS is served.
   Upload this file and clear caches (or use versioning) to see changes. */
.nineyr-btn.nineyr-btn-primary,
.btn.nineyr-read-blog {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: var(--shadow-md) !important;
}

.nineyr-btn.nineyr-btn-text {
    opacity: 1 !important;
    color: var(--color-primary) !important;
    font-weight: 600 !important;
}

/* Ensure inline anchors using legacy .btn classes still pick up CTA styles */
.btn.btn-primary.nineyr-read-blog,
.btn.btn-secondary.nineyr-read-blog {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
    color: #fff !important;
}

/* Default button background (before hover) */
.nineyr-btn,
.nineyr-btn.nineyr-btn-primary,
.btn.nineyr-read-blog,
.btn.btn-primary.nineyr-read-blog,
.btn.btn-secondary.nineyr-read-blog {
    background-color: rgba(0,0,0,0.04) !important;
    color: var(--color-primary) !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
}

/* Read More (text buttons) default state */
.nineyr-btn.nineyr-btn-text {
    background: transparent !important;
    color: var(--color-primary) !important;
    opacity: 1 !important;
}

/* Hover / focus: show brand gradient and white text */
.nineyr-btn:hover,
.nineyr-btn:focus,
.nineyr-btn.nineyr-btn-primary:hover,
.btn.nineyr-read-blog:hover,
.btn.btn-primary.nineyr-read-blog:hover,
.nineyr-btn.nineyr-btn-text:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

/* Ensure anchor text inside text buttons turns white on hover */
.nineyr-card-content .nineyr-btn.nineyr-btn-text:hover,
.nineyr-card-content .nineyr-btn.nineyr-btn-text:focus {
    color: #ffffff !important;
}

/* Featured CTA (Discover More) - orange gradient, strong contrast */
.nineyr-featured-cta .nineyr-btn.nineyr-btn-primary {
    background: linear-gradient(135deg, #ff8a00 0%, #ff4b00 100%) !important;
    color: #ffffff !important;
    padding: 0.9rem 1.25rem !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 20px rgba(255,75,0,0.12), 0 2px 6px rgba(0,0,0,0.06) !important;
    transition: transform .14s ease, box-shadow .14s ease !important;
}
.nineyr-featured-cta .nineyr-btn.nineyr-btn-primary svg {
    stroke: #ffffff !important;
}
.nineyr-featured-cta .nineyr-btn.nineyr-btn-primary:hover,
.nineyr-featured-cta .nineyr-btn.nineyr-btn-primary:focus {
    transform: translateY(-3px) !important;
    box-shadow: 0 18px 30px rgba(255,75,0,0.14) !important;
}

/* Homepage CTA (Read Our Blog) - prominent filled gradient */
.nineyr-read-blog,
.btn.btn-primary.nineyr-read-blog,
.btn.btn-secondary.nineyr-read-blog {
    background: linear-gradient(135deg,#6a8cff 0%, #b85bff 100%) !important;
    color: #fff !important;
    padding: 0.6rem 1.25rem !important;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(106,140,255,0.12) !important;
    font-weight: 600 !important;
}
.nineyr-read-blog:hover,
.nineyr-read-blog:focus {
    transform: translateY(-2px) !important;
    box-shadow: 0 20px 30px rgba(106,140,255,0.18) !important;
}

/* Read More text button: ensure high contrast on hover */
.nineyr-btn.nineyr-btn-text {
    color: var(--color-primary) !important;
    background: rgba(0,0,0,0.02) !important;
    padding: 0.45rem 0.7rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
}
.nineyr-btn.nineyr-btn-text:hover,
.nineyr-btn.nineyr-btn-text:focus {
    background: linear-gradient(135deg, #6a8cff 0%, #b85bff 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 18px rgba(106,140,255,0.12) !important;
}

/* Header & Footer adjustments: shorter header, larger logo, shorter footer */
.nineyr-header,
.nineyr-header .nineyr-header-inner,
.nineyr-header .nineyr-header-content {
    padding: 0.4rem 1rem !important;
    min-height: 56px !important;
    display: flex !important;
    align-items: center !important;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%) !important;
    color: #ffffff !important;
}

/* Logo in header (image has inline max-height; override with !important) */
.nineyr-logo-img {
    max-height: 120px !important;
    height: auto !important;
    width: auto !important;
    display: block !important;
    filter: none !important;
    opacity: 1 !important;
}

/* Footer adjustments and footer logo */
.nineyr-footer {
    padding: 0.6rem 1rem !important;
    min-height: 52px !important;
}
.nineyr-footer .nineyr-footer-logo-img {
    max-height: 84px !important;
    height: auto !important;
    width: auto !important;
    display: block !important;
}

/* Ensure footer text scales a bit */
.nineyr-footer .nineyr-footer-tagline {
    font-size: 0.95rem !important;
}

/* Hide Load More button if you prefer no pagination UI */
.nineyr-load-more {
    display: none !important;
}

/* Discover More: match Contact button color (solid warm orange) */
.nineyr-featured-cta .nineyr-btn.nineyr-btn-primary {
    background: linear-gradient(135deg,#ffb000 0%, #ff9800 100%) !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(255,152,0,0.14) !important;
}
.nineyr-featured-cta .nineyr-btn.nineyr-btn-primary:hover,
.nineyr-featured-cta .nineyr-btn.nineyr-btn-primary:focus {
    transform: translateY(-3px) !important;
    box-shadow: 0 20px 36px rgba(255,152,0,0.18) !important;
}

/* Ensure Read More default is not orange — keep primary accent color, turn white on hover */
.nineyr-card .nineyr-btn.nineyr-btn-text {
    color: var(--color-primary) !important;
    background: transparent !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
}
.nineyr-card .nineyr-btn.nineyr-btn-text:hover,
.nineyr-card .nineyr-btn.nineyr-btn-text:focus {
    background: linear-gradient(135deg,#6a8cff 0%, #b85bff 100%) !important;
    color: #fff !important;
}

/* Force nav links visible on header */
.nineyr-nav-menu > li > a,
.nineyr-nav-link,
.nineyr-nav-icon {
    color: #ffffff !important;
}
.nineyr-nav-menu > li > a {
    background-color: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
}
.nineyr-nav-menu > li > a:hover,
.nineyr-nav-menu > li.current-menu-item > a,
.nineyr-nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(0,0,0,0.12) !important;
    box-shadow: var(--shadow-md) !important;
}

/* Ensure header sits above other elements */
.nineyr-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
}

.nineyr-footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    max-width: 32rem;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}

/* Navigation */
.nineyr-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.nineyr-footer-link {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.nineyr-footer-link:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* Social */
.nineyr-footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.nineyr-social-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.nineyr-social-icon:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* Copyright */
.nineyr-footer-copyright {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nineyr-footer-copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Mobile */
@media (max-width: 767px) {
    .nineyr-footer-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .nineyr-footer-link {
        width: 100%;
        max-width: 300px;
    }
    
    .nineyr-footer-tagline {
        font-size: 0.875rem;
    }
}
/* ==========================================================================
   SINGLE POST (صفحه پست)
   ========================================================================== */

.nineyr-single {
    background-color: white;
}

.nineyr-back-btn {
    margin-bottom: 1rem;
}

.nineyr-single-image {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.nineyr-single-image img {
    width: 100%;
    height: 384px;
    object-fit: cover;
}

.nineyr-single-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.nineyr-single-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.nineyr-single-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(147, 51, 234, 0.1);
    border-bottom: 1px solid rgba(147, 51, 234, 0.1);
}

.nineyr-author-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nineyr-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.nineyr-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nineyr-author-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: #111827;
}

.nineyr-author-name:hover {
    color: var(--color-primary);
}

.nineyr-author-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.nineyr-single-content {
    width: 100%;
}

.nineyr-content-wrapper {
    background-color: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(147, 51, 234, 0.1);
}

.nineyr-content-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.nineyr-content-wrapper h2:first-child {
    margin-top: 0;
}

.nineyr-content-wrapper p {
    color: #374151;
    line-height: 1.75;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.nineyr-content-wrapper ul,
.nineyr-content-wrapper ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #374151;
}

.nineyr-content-wrapper li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

/* ==========================================================================
   RESPONSIVE (موبایل)
   ========================================================================== */

@media (max-width: 767px) {
    .nineyr-featured {
        border-bottom-left-radius: 80px;  /* گوشه کمتر */
        border-bottom-right-radius: 80px;
        min-height: 400px;  /* ارتفاع کمتر */
    }
    
    .nineyr-featured-grid {
        padding: 2rem 1.5rem;
        min-height: 400px;
    }
    
    .nineyr-featured-image {
        min-height: 200px;  /* موبایل کوتاه‌تر */
        margin-top: 2rem;
    }
    
    .nineyr-featured-image img {
        min-height: 200px;
    }
    .nineyr-footer {
        border-top-left-radius: 80px;  /* گوشه کمتر */
        border-top-right-radius: 80px;
        margin-top: 3rem;
    }
    .nineyr-footer-inner {
        padding: 0.75rem 1rem;
    }
    
    .nineyr-footer-content {
        padding: 1rem 0.5rem;
        gap: 0.75rem;
    }
    
    .nineyr-footer-logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .nineyr-footer-logo-icon span {

    /* Final visual polish: stronger header/footer contrast and improved blog card layout */
    .nineyr-header,
    .nineyr-footer {
        /* slightly deeper gradient to improve logo legibility */
        background: linear-gradient(135deg, #2f6fc0 0%, #6ea9ff 100%) !important;
    }
    .nineyr-logo-text {
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0,0,0,0.35) !important;
    }
    .nineyr-logo-img {
        filter: brightness(1.05) contrast(1.05) !important;
    }

    /* Blog card refinements: spacing, meta layout, and CTA styling */
    .nineyr-card {
        border-radius: 12px !important;
        padding: 0 !important;
    }
    .nineyr-card-content {
        padding: 1.25rem !important;
    }
    .nineyr-card-title {
        font-size: 1.2rem !important;
        margin-bottom: 0.25rem !important;
    }
    .nineyr-card-meta {
        gap: 0.75rem !important;
        color: rgba(0,0,0,0.6) !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
    }
    .nineyr-card-meta span { font-size: 0.85rem !important; }

    /* Read More button: inline, orange subtle pill */
    .nineyr-card .nineyr-btn.nineyr-btn-text {
        display: inline-block !important;
        padding: 0.45rem 0.9rem !important;
        background: linear-gradient(135deg,#ffb000 0%, #ff9800 100%) !important;
        color: #fff !important;
        border: none !important;
        box-shadow: 0 8px 20px rgba(255,152,0,0.12) !important;
        border-radius: 999px !important;
        align-self: flex-start !important;
    }
    .nineyr-card .nineyr-btn.nineyr-btn-text:hover { transform: translateY(-2px) !important; }

    /* Improve placeholder/icon visibility */
    .nineyr-card-placeholder { background: #f6f7fb !important; color: #9aa0ab !important; }

    /* Polished Blog Card: improved spacing, image treatment, badge, meta and CTA alignment */
    .nineyr-blog-grid .nineyr-card {
        display: flex !important;
        flex-direction: column !important;
        background-color: var(--color-white) !important;
        border-radius: 14px !important;
        box-shadow: 0 12px 30px rgba(16,24,40,0.06) !important;
        border: 1px solid rgba(16,24,40,0.04) !important;
        overflow: hidden !important;
        transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease !important;
    }
    .nineyr-blog-grid .nineyr-card:hover {
        transform: translateY(-6px) !important;
        box-shadow: 0 22px 46px rgba(16,24,40,0.12) !important;
        border-color: rgba(74,124,226,0.12) !important;
    }
    .nineyr-blog-grid .nineyr-card-image {
        position: relative !important;
        height: 280px !important;
        min-height: 200px !important;
        overflow: hidden !important;
        background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.01)) !important;
    }
    .nineyr-blog-grid .nineyr-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        transition: transform 700ms ease, filter 400ms ease !important;
    }
    .nineyr-blog-grid .nineyr-card:hover .nineyr-card-image img {
        transform: scale(1.04) !important;
        filter: saturate(1.05) contrast(1.02) !important;
    }

    /* Category badge on image */
    .nineyr-blog-grid .nineyr-card-image .nineyr-card-badge {
        position: absolute !important;
        top: 12px !important;
        left: 12px !important;
        z-index: 8 !important;
        background: linear-gradient(90deg, var(--color-primary), var(--color-secondary)) !important;
        color: #fff !important;
        padding: 0.35rem 0.7rem !important;
        border-radius: 999px !important;
        font-size: 0.775rem !important;
        font-weight: 600 !important;
        box-shadow: 0 6px 18px rgba(15,23,42,0.08) !important;
    }

    .nineyr-blog-grid .nineyr-card-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.6rem !important;
        padding: 1.25rem !important;
        flex: 1 1 auto !important;
    }
    .nineyr-blog-grid .nineyr-card-title {
        font-size: 1.125rem !important;
        margin: 0 0 0.35rem 0 !important;
    }
    .nineyr-blog-grid .nineyr-card-summary {
        color: rgba(0,0,0,0.75) !important;
        margin-bottom: 0.5rem !important;
    }
    .nineyr-blog-grid .nineyr-card-meta {
        display: flex !important;
        gap: 0.9rem !important;
        align-items: center !important;
        color: rgba(0,0,0,0.6) !important;
        font-size: 0.86rem !important;
    }

    /* Align CTA to bottom of card */
    .nineyr-blog-grid .nineyr-card-footer {
        margin-top: auto !important;
    }
    .nineyr-blog-grid .nineyr-card .nineyr-btn.nineyr-btn-text {
        display: inline-block !important;
        padding: 0.45rem 0.9rem !important;
        background: linear-gradient(135deg,#ffb000 0%, #ff9800 100%) !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 999px !important;
        box-shadow: 0 8px 20px rgba(255,152,0,0.12) !important;
    }

    /* Ensure Read More link uses the theme accent and matches CTA styling */
    .nineyr-blog-grid .nineyr-card-footer .nineyr-readmore-link,
    .nineyr-blog-grid .nineyr-card .nineyr-readmore-link {
        display: inline-block !important;
        padding: 0.45rem 0.9rem !important;
        background: linear-gradient(135deg, var(--color-accent-orange) 0%, var(--color-warning) 100%) !important;
        color: var(--color-white) !important;
        border: none !important;
        border-radius: 999px !important;
        box-shadow: 0 8px 20px rgba(255,152,0,0.12) !important;
        text-decoration: none !important;
    }


    /* Small screens: more compact card spacing */
    @media (max-width: 767px) {
        .nineyr-blog-grid .nineyr-card-image { height: 220px !important; }
        .nineyr-blog-grid .nineyr-card { border-radius: 12px !important; }
        .nineyr-blog-grid .nineyr-card-content { padding: 1rem !important; }
    }


        font-size: 1.125rem;
    }
    
    .nineyr-footer-logo-text {
        font-size: 1.25rem;
    }
    
    .nineyr-footer-tagline {
        font-size: 0.875rem;
        padding: 0 1rem;
    }
    
    .nineyr-footer-nav {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nineyr-footer-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        width: 90%;
        max-width: 300px;
    }
    
    .nineyr-footer-social {
        gap: 0.75rem;
    }
    
    .nineyr-social-icon {
        width: 40px;
        height: 40px;
    }
    
    .nineyr-footer-copyright {
        padding-top: 0.75rem;
    }
    
    .nineyr-footer-copyright p {
        font-size: 0.75rem;
        padding: 0 1rem;
    }
}

/* تبلت - فوتر */
/* تبلت - فوتر و تبلت - فیچر
   - Consolidated tablet rules into a single media block
*/
@media (min-width: 768px) and (max-width: 1023px) {
    .nineyr-footer {
        border-top-left-radius: 150px;
        border-top-right-radius: 150px;
    }

    .nineyr-footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nineyr-footer-link {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }

    .nineyr-featured {
        border-bottom-left-radius: 80px;
        border-bottom-right-radius: 80px;
    }

    .nineyr-footer {
        border-top-left-radius: 100px;
        border-top-right-radius: 100px;
    }

    .nineyr-featured-title {
        font-size: 1.5rem;
    }

    .nineyr-single-title {
        font-size: 1.875rem;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   COMING SOON (صفحه آینده)
   ========================================================================== */

.nineyr-coming-soon {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    background-blend-mode: darken;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.2);
}

.nineyr-coming-soon-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    text-align: center;
}

.nineyr-coming-soon-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.nineyr-coming-soon-logo {
    display: flex;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.nineyr-coming-soon-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nineyr-coming-soon-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.nineyr-coming-soon-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.nineyr-coming-soon-form {
    margin-top: 2rem;
}

.nineyr-coming-soon-footer {
    margin-top: 2rem;
}

@media (max-width: 767px) {
    .nineyr-coming-soon {
        padding: 1rem;
    }

    .nineyr-coming-soon-title {
        font-size: 2rem;
    }

    .nineyr-coming-soon-subtitle {
        font-size: 1rem;
    }

    .nineyr-coming-soon-content {
        gap: 1.5rem;
    }
}

/* صفحات استاندارد */
.nineyr-page {
    background-color: white;
}

.nineyr-page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(168, 85, 247, 0.1);
}

.nineyr-page-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.nineyr-page-content {
    background-color: white;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.1);
}

.nineyr-page-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.nineyr-page-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.nineyr-page-content p {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.nineyr-page-content ul,
.nineyr-page-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.nineyr-page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.nineyr-page-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.nineyr-page-content a:hover {
    color: var(--color-secondary);
}

.nineyr-page-content img {
    border-radius: 1rem;
    margin: 2rem 0;
}

/* Specific layouts for About and Contact pages */
.page-about .nineyr-page-content,
.page-about .nineyr-page-content .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.page-about .nineyr-page-content img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
}
.page-about .nineyr-page-content .about-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.page-about .nineyr-page-content .about-stat {
    background: linear-gradient(135deg, rgba(74,144,226,0.06), rgba(155,89,182,0.03));
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.page-contact .nineyr-page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem;
}
.page-contact .nineyr-page-content form {
    display: grid;
    gap: 1rem;
}
.page-contact .nineyr-page-content input[type="text"],
.page-contact .nineyr-page-content input[type="email"],
.page-contact .nineyr-page-content textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-200);
    font-size: 1rem;
    background: #fff;
}
.page-contact .nineyr-page-content textarea { min-height: 160px; resize: vertical; }
.page-contact .nineyr-page-content label { font-weight: 600; color: var(--color-gray-700); }
.page-contact .nineyr-page-content .form-actions { margin-top: 0.5rem; }
.page-contact .nineyr-page-content .form-actions .nineyr-btn-primary { padding: 0.75rem 1.5rem; }

/* Improve visibility of Read More link inside card (if it's an anchor with .nineyr-btn-text) */
.nineyr-card .nineyr-btn-text { align-self: flex-start; }

/* ==========================
   Header: short + bright
   Overrides to ensure header is compact and logo/nav are visible
   ========================== */
.nineyr-header {
    background: #ffffff !important; /* solid bright background, not translucent */
    border-bottom: 1px solid rgba(16,24,40,0.04) !important;
    box-shadow: 0 6px 18px rgba(16,24,40,0.03) !important;
}
.nineyr-header .nineyr-header-inner,
.nineyr-header .nineyr-header-content {
    padding: 0.35rem 1rem !important; /* reduce vertical padding */
    min-height: 48px !important; /* shorter header */
}

/* Make logo more visible on bright background */
.nineyr-logo-img {
    max-height: 72px !important;
    width: auto !important;
    display: block !important;
}

/* Nav: use dark text to contrast on white background */
.nineyr-nav-menu > li > a,
.nineyr-nav-link,
.nineyr-nav-icon {
    color: var(--color-text-primary) !important;
    background: transparent !important;
    border: none !important;
}
.nineyr-nav-menu > li > a:hover,
.nineyr-nav-menu > li.current-menu-item > a,
.nineyr-nav-link:hover {
    color: var(--color-primary-dark) !important;
    background-color: rgba(74,124,226,0.06) !important;
    box-shadow: none !important;
}

/* Keep header on top but not visually dominant */
.nineyr-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
}

@media (max-width: 767px) {
    .nineyr-header .nineyr-header-inner,
    .nineyr-header .nineyr-header-content {
        padding: 0.5rem 1rem !important;
        min-height: 56px !important;
    }
    .nineyr-logo-img { max-height: 64px !important; }
}

/* User feedback override: simplify header, remove sticky, brighter and shorter */
.nineyr-header {
    position: relative !important; /* remove sticky feel */
    background: #ffffff !important; /* solid white for clarity */
    box-shadow: 0 6px 12px rgba(16,24,40,0.06) !important;
    border-bottom: 1px solid rgba(16,24,40,0.04) !important;
    padding: 0.25rem 1rem !important;
}
.nineyr-header .nineyr-header-content {
    padding: 0.25rem 1rem !important;
    min-height: 46px !important;
}
.nineyr-logo-img {
    max-height: 72px !important; /* slightly larger but not huge */
}
.nineyr-nav-menu > li > a,
.nineyr-nav-link,
.nineyr-nav-icon {
    color: #111827 !important; /* dark text for contrast */
    background: transparent !important;
    border: none !important;
}
.nineyr-nav-menu > li > a:hover,
.nineyr-nav-menu > li.current-menu-item > a {
    color: var(--color-primary-dark) !important;
    background-color: rgba(74,124,226,0.06) !important;
}

/* Ensure featured section doesn't visually collide with header */
.nineyr-featured {
    margin-top: 0 !important;
}

/* Make sure header remains readable on narrow screens */
@media (max-width: 480px) {
    .nineyr-logo-img { max-height: 56px !important; }
    .nineyr-header .nineyr-header-content { min-height: 52px !important; }
}

/* Restore original header layout and set a brighter brand gradient background.
   Keeps original spacing/alignment but uses a lighter blue gradient so the logo
   still shows and nav links remain readable. */
.nineyr-header {
    position: relative !important;
    top: auto !important;
    z-index: 50 !important;
    background: linear-gradient(135deg, #5bb0ff 0%, #8fb5ff 100%) !important;
    box-shadow: var(--shadow-md) !important;
    border-bottom: none !important;
}
.nineyr-header-inner {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
}
.nineyr-header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1rem 2rem !important;
}

/* Ensure nav links contrast on the brighter gradient (use white) */
.nineyr-nav-menu > li > a,
.nineyr-nav-link {
    color: rgba(255,255,255,0.95) !important;
    background-color: rgba(255,255,255,0.08) !important;
}
.nineyr-nav-menu > li > a:hover,
.nineyr-nav-menu > li.current-menu-item > a,
.nineyr-nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.18) !important;
}

/* Final override: make header background a single solid brand color
   and increase desktop logo size while keeping mobile limits. */
.nineyr-header {
    background: var(--color-primary-dark) !important;
}
.nineyr-logo-img {
    max-height: 140px !important;
}

/* NAV final override: remove framed/pill backgrounds so nav uses header color,
   and make hover use the Discover orange gradient (only on hover). */
.nineyr-nav-menu > li > a,
.nineyr-nav-link {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: rgba(255,255,255,0.95) !important;
    padding: 0.5rem 0.9rem !important;
}
.nineyr-nav-menu > li > a:hover,
.nineyr-nav-menu > li.current-menu-item > a,
.nineyr-nav-link:hover {
    background: linear-gradient(135deg,#ffb000 0%, #ff9800 100%) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}


/* Ultra-specific override: ensure nav items sit flush in the header (no framed boxes).
   This addresses cached/conflicting rules or higher-specificity earlier blocks. */
.nineyr-header .nineyr-nav-menu > li > a,

.nineyr-header .nineyr-nav-link,
.nineyr-header .nineyr-nav-menu > li > a .nineyr-nav-link {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: rgba(255,255,255,0.95) !important;
    padding: 0.5rem 0.8rem !important;
}
.nineyr-header .nineyr-nav-menu > li > a:hover,
.nineyr-header .nineyr-nav-menu > li.current-menu-item > a,
.nineyr-header .nineyr-nav-link:hover {
    background: linear-gradient(135deg,#ffb000 0%, #ff9800 100%) !important;
    color: #ffffff !important;
}

/* Make inner header containers use same header background so there's no centered framed panel */
.nineyr-header {
    /* keep the full-width header background; inner containers should be transparent */
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%) !important;
}
.nineyr-header .nineyr-header-inner,
.nineyr-header .nineyr-header-content,
.nineyr-header .nineyr-container {
    background: transparent !important;
    box-shadow: none !important;
}

/* Hide divider between nav items */
.nineyr-nav-divider { display: none !important; }

/* Brighten header and make logo clearer */
.nineyr-header {
    background: linear-gradient(135deg, #79c8ff 0%, #9fd6ff 100%) !important;
    box-shadow: 0 8px 18px rgba(16,24,40,0.06) !important;
}
.nineyr-header .nineyr-header-inner,
.nineyr-header .nineyr-header-content,
.nineyr-header .nineyr-container {
    background: transparent !important;
}
.nineyr-logo-img {
    max-height: 160px !important;
    height: auto !important;
    width: auto !important;
    display: block !important;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.28)) !important;
    opacity: 1 !important;
}

/* Reduce button rounding and tone down borders so buttons feel sharper */
.nineyr-btn,
.nineyr-btn-primary,
.nineyr-btn-outline,
.nineyr-btn-text {
    border-radius: 0.375rem !important; /* smaller radius */
    border-width: 1px !important;
    border-style: solid !important;
}
.nineyr-btn {
    border-color: rgba(0,0,0,0.06) !important;
}
.nineyr-btn-outline {
    background: transparent !important;
    border-color: rgba(0,0,0,0.08) !important;
}
.nineyr-btn-primary {
    border-color: rgba(0,0,0,0.08) !important;
}

/* Make nav link rounding slightly smaller to match buttons */
.nineyr-header .nineyr-nav-menu > li > a,
.nineyr-header .nineyr-nav-link {
    border-radius: 0.375rem !important;
}


/* Harmonize header and footer with the hero section */
.nineyr-header,
.nineyr-footer {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
}

.nineyr-header .nineyr-header-inner,
.nineyr-header .nineyr-header-content,
.nineyr-footer .nineyr-footer-inner,
.nineyr-footer .nineyr-footer-content {
    background: transparent !important;
}

/* Footer links styling to match header/hero */
.nineyr-footer a,
.nineyr-footer .nineyr-footer-link {
    color: rgba(255,255,255,0.95) !important;
    background: transparent !important;
    border: none !important;
}

/* If featured uses rounded bottom on tablet, reduce radius so header and hero flow together */
@media (min-width: 768px) and (max-width: 1023px) {
    .nineyr-featured {
        border-bottom-left-radius: 40px !important;
        border-bottom-right-radius: 40px !important;
    }
}

/* Make footer logo larger on desktop, keep responsive caps on smaller screens */
.nineyr-footer .nineyr-footer-logo-img {
    max-height: 140px !important;
    height: auto !important;
    width: auto !important;
    display: block !important;
}
@media (max-width: 767px) {
    .nineyr-footer .nineyr-footer-logo-img { max-height: 72px !important; }
}


