/* =========================================
   5. PREMIUM FOOTER DESIGN
   ========================================= */
.site-footer.custom-footer {
    background-color: #111;
    color: #b0b0b0;
    font-size: 15px;
    margin-top: 80px;
    position: relative;
}

/* --- PRE-FOOTER FLOATING CTA --- */
.footer-cta-wrapper {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
}

.footer-cta-box {
    background: linear-gradient(135deg, #0288B5, #015875);
    border-radius: 16px;
    padding: 35px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 35px rgba(2, 136, 181, 0.25);
    flex-wrap: wrap;
    gap: 20px;
}

.cta-content {
    flex: 1;
    min-width: 250px;
}

.cta-title {
    font-family: 'Merriweather', serif;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px 0;
}

.cta-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
}

.cta-btn {
    background: #fff;
    color: #0288B5;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-btn.outline-btn {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    box-shadow: none;
}

.cta-btn.outline-btn:hover {
    background: #fff;
    color: #0288B5;
}


/* --- MAIN FOOTER --- */
.footer-main {
    padding-top: 100px;
    /* Space left for the CTA box */
}

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

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

/* Headings Styling */
.footer-heading {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: #0288B5;
    border-radius: 2px;
}

/* Brand Column Alignment Fixes */
.custom-footer .brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Footer White Logo SVG FIX */
.footer-white-logo {
    height: 45px;
    /* Changed max-height to fixed height here */
    width: auto;
    min-width: 180px;
    /* Fixed width to prevent the SVG from disappearing */
    display: block;
    margin-bottom: 20px;
    object-fit: contain;
    /* Prevents the image from stretching */
}

.custom-footer .footer-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 280px;
}

.custom-footer .footer-socials {
    display: flex;
    gap: 12px;
}

.custom-footer .social-icon {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    text-decoration: none;
    background: #222;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.custom-footer .social-icon:hover {
    background: #0288B5;
    transform: translateY(-3px);
}

/* Links List */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links li a:hover {
    color: #0288B5;
    padding-left: 5px;
}

/* --- APP STORE BUTTONS --- */
.app-buttons-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #000;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #333;
    transition: all 0.3s ease;
    max-width: 200px;
}

/* App Store Button Hover Fix */
.app-store-btn:hover {
    background: #0288B5;
    /* Your theme blue color on hover */
    border-color: #0288B5;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(2, 136, 181, 0.4);
    /* Soft blue glow */
    color: #fff;
}

.app-store-btn svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.app-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.app-btn-text .small-txt {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    line-height: 1;
    margin-bottom: 3px;
}

.app-btn-text .big-txt {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.5px;
}

/* Bottom Copyright Bar */
.footer-bottom {
    background: #0a0a0a;
    padding: 20px 0;
    border-top: 1px solid #222;
    font-size: 14px;
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Footer Responsive */
@media (max-width: 991px) {
    .footer-col {
        flex: 0 0 45%;
        margin-bottom: 30px;
    }

    .footer-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .site-footer.custom-footer {
        text-align: center;
        margin-top: 120px;
    }

    .footer-col {
        flex: 0 0 100%;
        margin-bottom: 40px;
    }

    .custom-footer .brand-col {
        align-items: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .custom-footer .footer-socials {
        justify-content: center;
    }

    .app-store-btn {
        margin: 0 auto;
        /* Center buttons on mobile */
    }

    .footer-bottom .footer-container {
        flex-direction: column;
        gap: 10px;
    }
}

/* =========================================
   FOOTER DESIGN end
   ========================================= */

/* =========================================
   HERO SECTION (Transparent & Dynamic)
   ========================================= */

.hero-section-wrapper {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* Flex Container - Removed Background & Shadow */
.hero-flex-container {
    display: flex;
    align-items: center;
    /* Center Vertically */
    gap: 50px;
    /* Space between Image & Text */
    background: transparent;
    /* No White Box */
    box-shadow: none;
    /* No Shadow */
    padding: 0;
}

/* --- LEFT: IMAGE --- */
.hero-image-box {
    flex: 1.1;
    /* 55% Width */
    position: relative;
}

.hero-img {
    width: 100%;
    border-radius: 12px;
    /* Smooth Corners */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    /* Shadow only on the image */
    transition: transform 0.4s ease;
    display: block;
}

.hero-image-box:hover .hero-img {
    transform: translateY(-5px);
    /* Hover effect */
}

/* --- RIGHT: CONTENT --- */
.hero-content-box {
    flex: 1;
    /* 45% Width */
    text-align: center;
}

/* Category Label */
.hero-category {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #0288B5;
    margin-bottom: 15px;
    display: block;
}

/* Title Styling - Bigger & Bolder */
.hero-title {
    font-size: 30px;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.hero-title a {
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.3s;
}


/* Excerpt Styling */
.hero-excerpt {
    font-size: 17px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
    font-weight: 400;
}

/* --- DYNAMIC META DATA --- */
.hero-meta-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    font-family: 'Open Sans', sans-serif;
    justify-content: center;
}

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

.meta-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.author-name {
    color: #0288B5;
}

.meta-sep {
    height: 30px;
    width: 1px;
    background: #e0e0e0;
    /* Vertical Line Separator */
}

/* --- ACTION BUTTONS (Like, Comment, Share) --- */
.hero-actions {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    /* Top line for separation */
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    /* Subtle Border */
    background: transparent;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Button Icons */
.action-btn svg {
    width: 18px;
    height: 18px;
}

/* Hover Effects */
.action-btn:hover {
    border-color: #0288B5;
    color: #0288B5;
    background: rgba(2, 136, 181, 0.05);
    /* Light Blue Tint */
}

/* Special Color for Like (Red on hover) */
.like-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 920px) {
    .hero-flex-container {
        flex-direction: column;
        gap: 20px;
    }

    .hero-image-box {
        width: 100%;
    }

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

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

    /* Actions scrollable on very small screens */
    .hero-actions {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .action-btn {
        padding: 6px 12px;
        gap: 2px;
    }
}

/* =========================================
   SECTION 2: FULLY RESPONSIVE NEWS FEED
   ========================================= */

.news-feed-wrapper {
    padding: 60px 0;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.news-layout-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 50px;
    position: relative;
}

/* --- LEFT COLUMN (NEWS GRID) --- */
.news-main-column {
    flex: 3;
    /* Desktop: 75% width */
    min-width: 0;
    /* Fix flexbox overflow issue */
}

/* Header Area */
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
    gap: 20px;
}

.section-title {
    font-family: 'Merriweather', serif;
    font-size: 30px;
    font-weight: 900;
    color: #111;
    margin: 0;
    line-height: 1.2;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #0288B5, #02B588);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    top: -3px;
}

/* Filter Buttons */
.feed-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    /* Button wrap on mobile */
}

.filter-btn {
    background: #f4f6f8;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Prevent text from breaking */
}

.filter-btn:hover,
.filter-btn.active {
    background: #111;
    color: #fff;
}

/* News Grid Layout (Default Desktop) */
.news-grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns */
    gap: 40px 30px;
}

/* Card Design */
.grid-post-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Equal height cards */
}

.grid-image {
    height: 200px;
    /* Fixed height for consistency */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-post-card:hover .grid-image img {
    transform: scale(1.08);
}

/* Content */
.grid-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.grid-cat {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0288B5;
    margin-bottom: 8px;
    display: block;
}

.grid-title {
    font-family: 'Merriweather', serif;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    color: #222;
    margin: 0 0 10px 0;
}

.grid-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.grid-post-card:hover .grid-title a {
    color: #0288B5;
}

.grid-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

/* Action Bar */
.grid-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #f5f5f5;
    padding-top: 12px;
}

.grid-btn {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #aaa;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.grid-btn:hover {
    color: #333;
}

.like-btn:hover {
    color: #e74c3c;
}

.comment-btn:hover {
    color: #0288B5;
}

.share-btn:hover {
    color: #02B588;
}

/* View All Button */
.view-all-wrapper {
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 30px;
}

.view-all-link {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 2px solid #0288B5;
    padding-bottom: 3px;
}


/* --- RIGHT COLUMN (SIDEBAR) --- */
.news-sidebar-column {
    flex: 1;
    /* Desktop: 25% width */
    padding-left: 30px;
    border-left: 1px solid #f0f0f0;
}

.sidebar-widget {
    margin-bottom: 40px;
}

.widget-heading {
    font-size: 15px;
    font-weight: 900;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.sidebar-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.side-img {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.side-title:hover {
    color: #0288B5;
}

.side-author {
    font-size: 11px;
    color: #999;
}

/* Tags */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    font-size: 11px;
    color: #555;
    background: #f4f4f4;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.tag-link:hover {
    background: #0288B5;
    color: #fff;
}


/* =========================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================= */

/* 1. TABLET LANDSCAPE (992px - 1200px) */
@media (max-width: 1200px) {
    .news-grid-row {
        gap: 30px 20px;
        /* Reduced the gap slightly */
    }

    .grid-title {
        font-size: 16px;
        /* Made the title slightly smaller */
    }
}

/* 2. TABLET PORTRAIT (768px - 991px) */
@media (max-width: 991px) {
    .news-layout-container {
        flex-direction: column;
        /* Sidebar will move below */
        gap: 60px;
    }

    .news-sidebar-column {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #f0f0f0;
        padding-top: 40px;

        /* Split the sidebar into 2 columns on tablet */
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .news-grid-row {
        grid-template-columns: repeat(3, 1fr);
        /* Can still keep 3 columns if there is enough space */
    }
}

/* 3. SMALL TABLET / LARGE PHONE (576px - 767px) */
@media (max-width: 767px) {
    .news-grid-row {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Column Grid */
        gap: 25px;
    }

    .news-sidebar-column {
        grid-template-columns: 1fr;
        /* Sidebar back to 1 column */
    }

    .section-title {
        font-size: 24px;
    }

    .feed-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .feed-filters {
        width: 100%;
        overflow-x: auto;
        /* Scrollable filters if there are many */
        padding-bottom: 5px;
    }
}

/* 4. MOBILE PHONE (Max 575px) */
@media (max-width: 575px) {
    .news-grid-row {
        grid-template-columns: 1fr;
        /* 1 Column (Full Width Cards) */
        gap: 35px;
    }

    .grid-image {
        height: 220px;
        /* Slightly larger image looks better on mobile */
    }

    .grid-title {
        font-size: 20px;
        /* Larger font for mobile readability */
    }

    .news-feed-wrapper {
        padding: 40px 0;
    }

    .news-layout-container {
        padding: 0 15px;
    }
}



/* HAMBURGER BUTTON (Highlight in Custom Blue) */
.mobile-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    background: #0288b5 !important;
    /* Your new background color */
    border-radius: 50%;
    /* Perfect circle */
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
    box-shadow: 0 2px 8px rgba(2, 136, 181, 0.3);
    -webkit-tap-highlight-color: transparent;
    /* Removes the default blue highlight box on tap/click */
}

/* On Focus or Hover, the background will not disappear, it will become slightly darker */
.mobile-toggle-btn:hover,
.mobile-toggle-btn:focus {
    background: #02759c !important;
}

.mobile-toggle-btn .line {
    width: 16px;
    height: 2px;
    background-color: #fff !important;
    /* Lines will always remain white */
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active animation (When the menu is open) */
.mobile-toggle-btn.active {
    background: #111 !important;
    /* It will appear dark/black when opened */
    box-shadow: none;
}

.mobile-toggle-btn.active .line1 {
    transform: translateY(6px) rotate(45deg);
}

.mobile-toggle-btn.active .line2 {
    opacity: 0;
}

.mobile-toggle-btn.active .line3 {
    transform: translateY(-6px) rotate(-45deg);
}


/* Pagination Wrapper */
.pagination-wrapper {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    display: block !important;
    /* Force show */
    min-height: 50px;
    /* Reserve space */
}

/* Page Buttons Design */
.page-numbers {
    background-color: #f0f0f0;
    /* Light Grey Background */
    border: 1px solid #ccc;
    color: #333;
    padding: 8px 16px;
    margin: 0 5px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    font-size: 14px;
}

.page-numbers.current,
.page-numbers:hover {
    background-color: #0288B5;
    /* Blue */
    color: white;
    border-color: #0288B5;
}

/* Pagination Wrapper end*/














/* new css*/

.hero-section-wrapper {
    padding: 0px;
}


.ast-separate-container #primary {
    margin: 0 !important;
    padding: 0;
}

@media (min-width: 1024px) {
    .ast-separate-container #primary {
        margin: 2rem 0 !important;
    }
}









/* =========================================
   1. PREMIUM HEADER DESIGN
   ========================================= */
.site-header.solid-header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

/* 3-Column Container */
.custom-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
}

.header-left {
    flex: 1;
    justify-content: flex-start;
}

.header-center {
    flex: 1;
    justify-content: center;
}

.header-right {
    flex: 1;
    justify-content: flex-end;
    gap: 20px;
}

/* Desktop Favicon & Fallback Text */
.header-favicon-img {
    height: 55px;
    width: auto;
    border-radius: 6px;
    display: block;
}

.logo-icon-text {
    font-size: 20px;
    font-weight: 900;
    color: #0288B5;
    background: #f0f4ff;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
}

/* Main Logo Sizes */
.header-center img.custom-logo,
.mobile-main-logo img.custom-logo {
    max-height: 45px;
    width: auto;
}

/* Site Title Fallback */
.site-main-title,
.site-title {
    font-family: 'Merriweather', serif;
    font-size: 26px;
    font-weight: 800;
    color: #111;
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Right Actions */
.header-action-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.desktop-nav-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.action-icon {
    color: #444;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.action-icon:hover {
    color: #0288B5;
}

.sign-in-link {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.sign-in-link:hover {
    color: #0288B5;
}

/* Subscribe Button */
.header-btn.pledge-btn {
    background: #0288B5;
    color: #fff !important;
    padding: 9px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.header-btn.pledge-btn:hover {
    background: #3b6be0;
    transform: translateY(-1px);
}

/* Utility Classes for Show/Hide */
.hide-on-desktop {
    display: none !important;
}


/* Custom Text Logo Center Size */
.center-text-logo-img {
    max-height: 40px;
    /* You can increase or decrease the text logo height from here */
    width: auto;
    display: block;
}

/* =========================================
   2. DESKTOP VIEW 
   ========================================= */
@media (min-width: 992px) {

    /* Main bar 80px height for solid-header setup */
    .site-header.solid-header {
        height: 80px;
    }

    .custom-header-container {
        height: 100%;
    }

    /* Body padding adjusted for 40px top bar + 80px main bar = 120px */
    body {
        padding-top: 120px;
    }

    .mobile-toggle-btn,
    .mobile-menu-drawer {
        display: none !important;
    }
}

/* =========================================
   3. MOBILE VIEW (PREMIUM APP-STYLE)
   ========================================= */
@media (max-width: 991px) {

    /* Main bar 70px height for solid-header setup */
    .site-header.solid-header {
        height: 70px;
    }

    .custom-header-container {
        height: 100%;
    }

    /* Body padding adjusted for 35px top bar + 70px main bar = 105px */
    body {
        padding-top: 50px;
    }

    /* Show/Hide Toggles for Mobile */
    .hide-on-desktop {
        display: block !important;
    }

    .hide-on-mobile {
        display: none !important;
    }

    /* Hide the center (text logo) and desktop buttons */
    .header-center {
        display: none !important;
    }

    .desktop-nav-actions {
        display: none !important;
    }

    /* -----------------------------------------
       CREATIVE "PILL" DESIGN FOR RIGHT ICONS
       ----------------------------------------- */
    .header-right {
        gap: 8px;
        flex: 0 0 auto;
        background: #ffffff;
        border: 1px solid #f0f2f5;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
        border-radius: 50px;
        padding: 5px 6px 5px 12px;
        display: flex;
        align-items: center;
    }

    .header-action-icons {
        gap: 8px;
    }

    .action-icon {
        background: #f4f6f8;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #333;
        transition: all 0.3s;
    }

    .action-icon svg {
        width: 20px;
        height: 20px;
        stroke-width: 2;
    }

    .action-icon:hover {
        background: #e9ecef;
        color: #0288b5;
    }

    /* HAMBURGER BUTTON (Highlight in Custom Blue) */
    .mobile-toggle-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        width: 38px;
        height: 38px;
        background: #0288b5 !important;
        border-radius: 50%;
        border: none;
        cursor: pointer;
        padding: 0;
        outline: none;
        box-shadow: 0 2px 8px rgba(2, 136, 181, 0.3);
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-toggle-btn:hover,
    .mobile-toggle-btn:focus {
        background: #02759c !important;
    }

    .mobile-toggle-btn .line {
        width: 16px;
        height: 2px;
        background-color: #fff !important;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-toggle-btn.active {
        background: #111 !important;
        box-shadow: none;
    }

    .mobile-toggle-btn.active .line1 {
        transform: translateY(6px) rotate(45deg);
    }

    .mobile-toggle-btn.active .line2 {
        opacity: 0;
    }

    .mobile-toggle-btn.active .line3 {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* SLIDING DRAWER */
    .mobile-menu-drawer {
        position: fixed;
        top: 105px;
        left: 0;
        width: 100%;
        height: 0;
        background: #fff;
        overflow: hidden;
        transition: height 0.4s cubic-bezier(0.65, 0, 0.35, 1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .mobile-menu-drawer.open {
        height: calc(100vh - 105px);
        overflow-y: auto;
    }

    .drawer-inner {
        padding: 30px 20px;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .mobile-actions-area {
        display: flex;
        flex-direction: column;
        gap: 15px;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 20px;
    }

    .sign-in-link-mobile {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        text-decoration: none;
    }

    .header-btn.full-width {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .mobile-navigation ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-navigation ul li {
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 10px;
    }

    .mobile-navigation ul li a {
        display: block;
        font-size: 18px;
        font-weight: 600;
        color: #333;
        text-decoration: none;
        padding: 10px 0;
    }
}

/* =========================================
   HEADER SEARCH OVERLAY (FIXED & FULL SCREEN)
   ========================================= */
.header-search-overlay {
    position: fixed;
    /* Changed from absolute to fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Changed from 100% to 100vh (Full viewport height) */
    background: rgba(255, 255, 255, 0.98);
    /* Added a light blur-like overlay effect */
    z-index: 10005;
    /* Above header and everything else */
    display: block;
    /* Removed flex centering */
    padding-top: 12vh;
    /* Added some top spacing so the search bar appears nicely */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    /* Allows scrolling if there are many results */
}

.header-search-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-overlay-container {
    width: 100%;
    max-width: 800px;
    /* Adjusted width slightly to keep search focused in the center */
    margin: 0 auto;
    padding: 0 20px;
}

.header-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.search-form-icon {
    color: #999;
    position: absolute;
    left: 0;
}

.header-search-field {
    width: 100%;
    border: none !important;
    border-bottom: 2px solid #e0e0e0 !important;
    font-size: 24px;
    padding: 15px 50px 15px 40px;
    outline: none !important;
    background: transparent !important;
    font-weight: 700;
    color: #111;
    transition: border-color 0.3s;
    font-family: inherit;
}

.header-search-field::placeholder {
    color: #aaa;
    font-weight: 400;
}

.header-search-field:focus {
    border-bottom-color: #0288B5 !important;
    box-shadow: none !important;
}

.close-search-btn {
    background: transparent !important;
    border: none !important;
    font-size: 40px;
    line-height: 1;
    color: #777;
    cursor: pointer;
    position: absolute;
    right: 0;
    padding: 0;
    transition: color 0.2s;
    outline: none;
}

.close-search-btn:hover {
    color: #0288B5;
}

/* =========================================
   LIVE SEARCH RESULTS STYLING
   ========================================= */
.live-search-results-box {
    margin-top: 30px;
    padding-bottom: 50px;
}

.search-results-title {
    font-size: 13px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.live-search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.live-search-results-list li {
    margin-bottom: 10px;
}

.live-search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #333;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s;
    border: 1px solid transparent;
}

.live-search-item:hover {
    background: #f8fafe;
    border-color: #e5edff;
}

.ls-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.ls-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ls-content h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-family: 'Merriweather', serif;
    color: #111;
    line-height: 1.4;
}

.ls-content span {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.search-loading {
    color: #0288B5;
    font-weight: 600;
    font-size: 15px;
}

.view-all-search {
    display: inline-block;
    margin-top: 20px;
    color: #0288B5;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}

.view-all-search:hover {
    text-decoration: underline;
}

.no-search-results {
    color: #777;
    font-size: 16px;
    margin-top: 20px;
}

/* Mobile Adjustments for Search */
@media (max-width: 991px) {
    .header-search-overlay {
        padding-top: 15vh;
    }

    .header-search-field {
        font-size: 20px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .close-search-btn {
        font-size: 35px;
    }
}

input[type="search"] {
    padding: 12px 22px;
}

body {
    padding-top: 50px;
}

/* =========================================
   SUBSTACK STYLE OTP AUTH MODAL
   ========================================= */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal-box {
    background: #fff;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #eee;
}

.auth-modal-overlay.active .auth-modal-box {
    transform: translateY(0);
}

.close-auth-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 30px;
    color: #888;
    cursor: pointer;
    outline: none;
}

.close-auth-btn:hover {
    color: #e74c3c;
}

.auth-modal-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 24px;
    color: #111;
    margin-bottom: 10px;
}

.auth-modal-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.auth-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
}

.auth-input:focus {
    border-color: #0288B5;
}

.auth-submit-btn {
    width: 100%;
    padding: 12px;
    background: #0288B5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.auth-submit-btn:hover {
    background: #3b6be0;
}

.auth-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.auth-msg {
    margin-top: 15px;
    font-size: 13px;
    color: #e74c3c;
    font-weight: 600;
}



/* =========================================
   6-BOX OTP UI DESIGN
   ========================================= */
.otp-input-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 25px;
    margin-top: 15px;
}

.otp-box {
    width: 48px;
    height: 55px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    color: #111;
    transition: all 0.2s ease;
    outline: none;
    font-family: monospace;
    padding: 0;
}

/* On clicking/focusing the box, a blue border will appear */
.otp-box:focus {
    border-color: #0288B5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(75, 131, 254, 0.15);
}

/* Hide arrows in Chrome/Safari */
.otp-box::-webkit-outer-spin-button,
.otp-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Search and Share made slightly larger (Bigger Icons) */
.action-icon {
    background: #f4f6f8;
    width: 40px;
    /* Previously 36px, now increased */
    height: 40px;
    /* Previously 36px */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #333;
    transition: all 0.3s;
}

.action-icon svg {
    width: 20px;
    /* Previously 16px, icon size increased to 20px */
    height: 20px;
    stroke-width: 2;
    /* Slightly normal thickness so it looks sharper */
}

.action-icon:hover {
    background: #e9ecef;
    color: #0288b5;
}

/* Custom Text Logo Center Size - SVG FIX */
.center-text-logo-img {
    height: 40px;
    /* Use fixed height instead of max-height */
    width: auto;
    min-width: 150px;
    /* Minimum width to prevent SVG from disappearing */
    display: block;
    object-fit: contain;
    /* Prevents the image from stretching */
}


/* 6. SVG ITSELF: No margin below SVG */
.custom-footer .social-icon svg {
    display: block;
    margin: 0 !important;
    /* Removes the default margin space below SVG */
    padding: 0;
}





/* -----------------------------------------
       SLIDING DRAWER (MOBILE MENU) SPACING FIX
       ----------------------------------------- */
.mobile-menu-drawer {
    position: fixed;
    top: 70px;
    /* Changed from 105px to 70px (actual header height) */
    left: 0;
    width: 100%;
    height: 0;
    background: #fff;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.mobile-menu-drawer.open {
    height: calc(100vh - 70px);
    /* Also changed this from 105px to 70px */
    overflow-y: auto;
}

/* Reduced padding-top from 30px to 10px so the gap does not appear */
.drawer-inner {
    padding: 10px 20px 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Also slightly reduced the gap between Actions and Menu */
}

.mobile-actions-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    /* Bottom spacing is also made slightly tighter */
}

/* =========================================
   LOGGED IN USER FOOTER SPACING FIX
   ========================================= */
body.logged-in .site-footer.custom-footer {
    margin-top: 50px;
}

body.logged-in .footer-main {
    padding-top: 50px;
}

/* =========================================
   AUTH BUTTONS & LOGOUT (VISIBILITY FIX)
   ========================================= */

/* Direct Logout Button Desktop & Mobile */
.logout-direct-btn,
.logout-btn {
    /* For clear red border visibility */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* Hover Effect - Turns Solid Red */
.logout-direct-btn:hover,
.logout-btn:hover {
    background: #e74c3c !important;
    /* Full red background */
    color: #fff !important;
    /* Text becomes white */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.25);
    /* Slight red glow */
}

/* Mobile User View Styling */
.mobile-user-welcome {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin-bottom: 20px;
    font-family: 'Merriweather', serif;
}



/* =========================================
   MOBILE LOGOUT BUTTON ALIGNMENT FIX
   ========================================= */
.mobile-actions-area .logout-btn.full-width {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    /* Perfect spacing between icon and text */
}

/* Remove inline margin so it stays perfectly centered */
.mobile-actions-area .logout-btn svg {
    margin: 0 !important;
    display: block;
}



/* =========================================
   CREATIVE 404 PAGE DESIGN (FINAL)
   ========================================= */
.error-404-section {
    padding: 100px 20px 120px;
    text-align: center;
    background: #fdfdfd;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-404-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

/* The Big 404 Animation */
.huge-404-text {
    font-size: 140px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    color: #111;
    font-family: 'Inter', sans-serif;
    letter-spacing: -5px;
}

.huge-404-text .digit {
    background: linear-gradient(135deg, #111, #0288B5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 10px 20px rgba(2, 136, 181, 0.15);
}

.bounce-animation {
    animation: bounce404 2s infinite ease-in-out;
}

@keyframes bounce404 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Typography */
.title-404 {
    font-family: 'Merriweather', serif;
    font-size: 32px;
    font-weight: 800;
    color: #222;
    margin-bottom: 15px;
}

.desc-404 {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* =========================================
   404 PAGE SEARCH BOX (PREMIUM UNIFIED LAYOUT)
   ========================================= */
.search-box-404 {
    max-width: 480px;
    margin: 0 auto 40px;
    position: relative;
}

.search-form-404 {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 6px 8px 6px 25px;
    border: 2px solid rgba(2, 136, 181, 0.4);
    box-shadow: 0 10px 25px rgba(2, 136, 181, 0.15);
    transition: all 0.3s ease;
}

.search-form-404:focus-within {
    border-color: #0288B5;
    box-shadow: 0 12px 30px rgba(2, 136, 181, 0.25);
}

/* Input Field - Seamless */
.search-field-404 {
    flex: 1;
    border: none !important;
    font-size: 16px;
    background: transparent !important;
    color: #111;
    outline: none !important;
    padding: 10px 10px 10px 0;
    -webkit-appearance: none;
}

.search-field-404::placeholder {
    color: #999;
}

/* Submit Button - Perfect Floating Circle */
.search-submit-404 {
    background: #0288B5;
    color: #fff;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(2, 136, 181, 0.3);
    flex-shrink: 0;
}

.search-submit-404 svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* Hover on Button */
.search-submit-404:hover {
    background: #0288B5;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* =========================================
   GO HOME BUTTON & MOBILE RESPONSIVE
   ========================================= */
.btn-404-home {
    display: inline-flex;
    align-items: center;
    background: #111;
    color: #fff;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-404-home:hover {
    background: #0288B5;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(2, 136, 181, 0.25);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .huge-404-text {
        font-size: 100px;
    }

    .title-404 {
        font-size: 26px;
    }

    .error-404-section {
        padding: 80px 20px;
    }
}



button:focus, .menu-toggle:hover, button:hover, .ast-button:hover, .ast-custom-button:hover .button:hover, .ast-custom-button:hover, input[type=reset]:hover, input[type=reset]:focus, input#submit:hover, input#submit:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="submit"]:hover, input[type="submit"]:focus, form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button:hover, form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button:focus, body .wp-block-file .wp-block-file__button:hover, body .wp-block-file .wp-block-file__button:focus {
    color: var(--ast-global-color-2);
    background-color: transparent;
    border-color: #0289b5;
}