/*
Theme Name: AstroSchool
Theme URI: https://theastroschool.com
Author: AstroSchool Team
Author URI: https://theastroschool.com
Description: A professional astrology-themed WordPress theme with warm golden gradients, burgundy accents, and elegant earth-tone colors inspired by celestial wisdom
Version: 1.2.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astroschool
Tags: astrology, education, warm, gold, burgundy, elegant
*/

/* ========================================
   CSS VARIABLES - Astrology Color Scheme
   ======================================== */
:root {
    /* Primary Colors - Warm Astrology */
    --color-golden-sand: #E8D5B7;
    --color-warm-beige: #F5E6D3;
    --color-deep-burgundy: #8B1A1A;
    --color-rich-maroon: #6B0F1A;
    
    /* Accent Colors - Celestial Warm Tones */
    --color-antique-gold: #D4AF37;
    --color-wheat-gold: #F5DEB3;
    --color-amber-warm: #FFBF00;
    --color-bronze: #CD7F32;
    
    /* Secondary Colors - Earth Tones */
    --color-warm-brown: #8B4513;
    --color-light-cream: #FFF8E7;
    --color-soft-peach: #FFDAB9;
    
    /* Gradient Backgrounds */
    --gradient-cosmic: linear-gradient(135deg, #F5E6D3 0%, #E8D5B7 50%, #D4AF37 100%);
    --gradient-galaxy: linear-gradient(180deg, #FFF8E7 0%, #F5E6D3 50%, #E8D5B7 100%);
    --gradient-nebula: linear-gradient(45deg, #E8D5B7 0%, #D4AF37 50%, #CD7F32 100%);
    --gradient-sunset: linear-gradient(90deg, #FFDAB9 0%, #F5DEB3 50%, #E8D5B7 100%);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F5DEB3 50%, #E8D5B7 100%);
    
    /* Text Colors */
    --color-text-light: #FFFFFF;
    --color-text-muted: #8B7355;
    --color-text-dark: #2C1810;
    
    /* Border & Ghost Button */
    --color-border-gold: #D4AF37;
    --color-border-burgundy: #8B1A1A;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   GLOBAL RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: transparent;
    color: var(--color-text-dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

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

/* ========================================
   HEADER STYLES
   ======================================== */
.site-header {
    background: #fff;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
}

.top-bar {
    background: var(--color-deep-burgundy);
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
}

.top-contact {
    display: flex;
    gap: 1.5rem;
}

.top-contact a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s;
}

.top-contact a:hover {
    opacity: 0.8;
}

.top-contact i {
    color: var(--color-antique-gold);
}

.top-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    flex-grow: 1;
    max-width: 400px;
}

.top-search .search-input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    font-size: 0.85rem;
}

.top-search .search-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.top-search .search-submit {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

.top-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
}

.top-auth a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: opacity 0.3s;
}

.top-auth a:hover {
    opacity: 0.8;
}

.top-auth i {
    color: var(--color-antique-gold);
}

.top-auth .cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.top-auth .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-antique-gold);
    color: var(--color-deep-burgundy);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.1rem 0.35rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    gap: var(--spacing-md);
}

/* ========================================
   LOGO STYLES
   ======================================== */
.site-logo {
    flex-shrink: 0;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-deep-burgundy);
    transition: var(--transition-normal);
}

.site-logo a:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.logo-icon {
    font-size: 2rem;
    color: var(--color-antique-gold);
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
}

/* ========================================
   SEARCH BOX STYLES
   ======================================== */
.header-search {
    flex: 1;
    max-width: 400px;
}

.search-form {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-full);
    color: var(--color-text-dark);
    font-size: 0.95rem;
    transition: var(--transition-normal);
    backdrop-filter: blur(5px);
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-border-gold);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.search-submit {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-antique-gold);
    border: none;
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.search-submit:hover {
    transform: translateY(-50%) scale(1.05);
    background: var(--color-bronze);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* ========================================
   NAVIGATION MENU STYLES
   ======================================== */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-antique-gold);
    font-size: 0.8rem;
}

.nav-menu li a {
    padding: 0.75rem 1.25rem;
    color: var(--color-text-dark);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu li a i {
    font-size: 1rem;
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--color-deep-burgundy);
    transition: var(--transition-normal);
}

.nav-menu li a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-deep-burgundy);
}

.nav-menu li a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-deep-burgundy);
}

/* Desktop Dropdown Menu */
.nav-menu li.menu-item-has-children {
    position: relative;
}

.nav-menu li.menu-item-has-children > a i.fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.nav-menu li.menu-item-has-children:hover > a i.fa-chevron-down {
    transform: rotate(180deg);
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

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

.nav-menu .sub-menu li {
    display: block;
}

.nav-menu .sub-menu li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--color-text-dark);
    font-size: 0.95rem;
    border-radius: 0;
    white-space: nowrap;
}

.nav-menu .sub-menu li a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-deep-burgundy);
}

.nav-menu .sub-menu li a::before {
    display: none;
}

/* ========================================
   HEADER ACTIONS (Login & Cart)
   ======================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

/* Login Button - Primary with Burgundy */
.login-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--color-deep-burgundy);
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-deep-burgundy);
    transition: var(--transition-normal);
    box-shadow: 0 2px 8px rgba(139, 26, 26, 0.1);
}

.login-btn:hover {
    transform: translateY(-2px);
    background: var(--color-deep-burgundy);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 26, 26, 0.3);
}

/* Cart Icon - Ghost Button Style */
.cart-icon {
    position: relative;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-antique-gold);
    border-radius: var(--radius-full);
    color: var(--color-antique-gold);
    font-size: 1.25rem;
    transition: var(--transition-normal);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-icon:hover {
    background: var(--color-antique-gold);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-deep-burgundy);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(139, 26, 26, 0.4);
}

/* ========================================
BUTTON STYLES - Reusable
    ======================================== */
.btn-primary {
    padding: 0.75rem 1.5rem;
    background: var(--color-antique-gold);
    color: var(--color-deep-burgundy);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--color-bronze);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-ghost {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--color-deep-burgundy);
    font-weight: 600;
    border: 2px solid var(--color-deep-burgundy);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-ghost:hover {
    background: var(--color-deep-burgundy);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 26, 26, 0.3);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: var(--color-antique-gold);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--color-bronze);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-menu li a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .header-main {
        flex-wrap: nowrap;
    }
    
    .header-search {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: var(--spacing-sm);
        display: none;
    }
    
    .main-navigation {
        display: none;
    }
    
    .header-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }
}

@media (max-width: 768px) {
    /* Global container fix for consistent mobile padding */
    .container {
        padding: 0 1rem;
    }
    
    .header-container {
        padding: 0 0.75rem;
        overflow: hidden;
    }
    
    .header-main {
        gap: 0.5rem;
        padding: 0.75rem 0;
    }
    
    .main-navigation {
        display: none;
    }
    
    .header-search {
        display: none;
    }
    
    .header-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.35rem;
        flex-shrink: 0;
    }
    
    .login-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .login-btn span {
        display: none;
    }
    
    .login-btn i {
        margin: 0;
    }
    
    .site-logo {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .site-logo a {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .logo-icon {
        font-size: 1.25rem;
        flex-shrink: 0;
    }
    
    .cart-icon {
        padding: 0.4rem 0.5rem;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        padding: 6px;
        flex-shrink: 0;
    }
}

/* ========================================
   MOBILE MENU TOGGLE BUTTON
   ======================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #FFFFFF !important;
    border: 2px solid #8B1A1A !important;
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    transition: var(--transition-normal);
    z-index: 100;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: #8B1A1A !important;
}

.mobile-menu-toggle:hover .hamburger-line {
    background: #FFFFFF !important;
}

.hamburger-line {
    display: block !important;
    width: 20px;
    height: 2px;
    background-color: #8B1A1A !important;
    border-radius: 2px;
    transition: var(--transition-normal);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
    }
    
    .mobile-menu-toggle .hamburger-line {
        display: block !important;
        visibility: visible !important;
        background: #8B1A1A !important;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle .hamburger-line {
        width: 18px;
    }
    
    .top-bar-inner {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .top-contact {
        gap: 1rem;
    }
    
    .top-auth {
        gap: 0.5rem;
    }
    
    .top-search {
        display: none;
    }
}

/* ========================================
   MOBILE NAVIGATION MENU
   ======================================== */
.mobile-navigation {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    max-width: 80vw;
    height: 100%;
    background: #ffffff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    overflow-y: auto;
    overflow-x: hidden;
    transition: right 0.3s ease;
}

/* Admin bar offset for mobile navigation */
.admin-bar .mobile-navigation {
    top: 32px;
    height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .mobile-navigation {
        top: 46px;
        height: calc(100% - 46px);
    }
}

.mobile-navigation.active {
    right: 0;
}

.mobile-navigation.active .mobile-search,
.mobile-navigation.active .mobile-nav-menu,
.mobile-navigation.active .mobile-nav-actions {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-nav-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #8B1A1A;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    color: #ffffff;
}

.mobile-nav-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
}

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

.mobile-search {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    display: block !important;
    background: #f9f9f9;
}

.mobile-search .search-form {
    position: relative;
    display: flex;
    width: 100%;
}

.mobile-search .search-input {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 1px solid #D4AF37;
    border-radius: 25px;
    font-size: 0.9rem;
    background: #ffffff;
}

.mobile-search .search-submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: #D4AF37;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    background: #ffffff;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #eee;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-nav-menu li a {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    color: #2C1810 !important;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    background: #ffffff;
}

.mobile-nav-menu li a i {
    width: 20px;
    color: #D4AF37;
    text-align: center;
}

.mobile-nav-menu li a:hover,
.mobile-nav-menu li a:active {
    background: #f5f0e6;
    color: #8B1A1A;
}

.mobile-nav-menu li.current-menu-item a {
    background: #f5f0e6;
    color: #8B1A1A;
    border-left: 3px solid #8B1A1A;
}

/* Mobile Dropdown Menu */
.mobile-nav-menu li.menu-item-has-children > a {
    position: relative;
}

.mobile-nav-menu li.menu-item-has-children > a .dropdown-arrow {
    position: absolute;
    right: 1.25rem;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.mobile-nav-menu li.menu-item-has-children.open > a .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-nav-menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f5f0e6;
    display: none;
}

.mobile-nav-menu li.menu-item-has-children.open .sub-menu {
    display: block;
}

.mobile-nav-menu .sub-menu li {
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.mobile-nav-menu .sub-menu li a {
    padding-left: 2.5rem;
    font-size: 0.9rem;
    background: #f5f0e6;
}

.mobile-nav-menu .sub-menu li a:hover {
    background: #eee5d5;
}

.mobile-nav-actions {
    padding: 1rem 1.25rem;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
}

.mobile-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem;
    background: #8B1A1A;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
}

.mobile-login-btn:hover {
    background: #6B0F1A;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.admin-bar .mobile-menu-overlay {
    top: 32px;
    height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .mobile-menu-overlay {
        top: 46px;
        height: calc(100% - 46px);
    }
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   FOOTER STYLES
   ======================================== */
.site-footer {
    background: #1a1a1a;
    border-top: 2px solid var(--color-antique-gold);
    margin-top: 4rem;
    padding: 1.5rem 0 0.5rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-widget-area,
.footer-widget-area .widget,
.footer-widget-area p,
.footer-widget-area li,
.footer-widget-area a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget-area a:hover {
    color: var(--color-antique-gold);
}

.footer-widget-area .widget-title {
    color: var(--color-antique-gold);
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding-top: 1rem;
    text-align: center;
}

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

.footer-brand {
    color: var(--color-antique-gold);
    font-weight: 600;
}

.footer-credit {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.footer-credit-link {
    color: var(--color-antique-gold);
}

/* ========================================
   GLOBAL MOBILE REFINEMENTS
   ======================================== */
@media (max-width: 992px) {
    .top-bar {
        padding: 0.6rem 0;
    }

    .top-bar-inner {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.5rem;
    }

    .top-contact,
    .top-auth {
        flex-wrap: wrap;
        justify-content: center;
    }

    .top-search {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .footer-widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 0.45rem 0;
    }

    .top-bar-inner {
        flex-direction: column;
        align-items: center;
        row-gap: 0.35rem;
    }

    .top-contact {
        display: flex;
        width: 100%;
        justify-content: center;
        gap: 0.75rem;
        flex-wrap: nowrap;
        font-size: 0.78rem;
        line-height: 1.25;
    }

    .top-contact a {
        gap: 0.3rem;
        white-space: nowrap;
    }

    .top-auth {
        width: 100%;
        gap: 0.65rem;
        font-size: 0.82rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .top-search {
        display: none;
    }

    .site-footer {
        margin-top: 3rem;
        padding: 2.5rem 0 1rem;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .footer-widget-area {
        text-align: center;
    }

    .footer-bottom {
        padding-top: 1rem;
    }
}

@media (max-width: 480px) {
    .top-contact {
        flex-wrap: nowrap;
        gap: 0.5rem;
        font-size: 0.72rem;
    }

    .top-auth {
        font-size: 0.74rem;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 2rem 0 1rem;
    }

    .footer-copyright,
    .footer-credit {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}

.text-gradient-gold {
    color: var(--color-deep-burgundy);
    font-style: italic;
}

.cosmic-glow {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3),
                0 0 40px rgba(139, 26, 26, 0.2);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-warm-beige);
}

::-webkit-scrollbar-thumb {
    background: var(--color-antique-gold);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-bronze);
}

/* ========================================
   GLOBAL OVERRIDE - FORCE FULL WIDTH
   ======================================== */
/* Target any container inside site-main for non-homepage pages */
.site-main:not(.homepage-main) .container,
body:not(.homepage-template) .site-main .container {
    max-width: 1400px !important;
    width: 100% !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Legacy support */
body.page .site-main .container,
body.single-page .site-main .container,
#primary .container {
    max-width: 1400px !important;
    width: 100% !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Gutenberg/Block Editor overrides */
.wp-block {
    max-width: 1400px !important;
}

.wp-block[data-align="full"] {
    max-width: 100% !important;
}

/* Fix for WordPress editor content max-width */
.entry-content,
.entry-content > *,
.page-content > * {
    max-width: 100% !important;
    width: 100% !important;
}

/* Force override ANY max-width on container */
div[class*="container"] {
    max-width: 1400px !important;
    width: 100% !important;
}

/* ========================================
   DEFAULT PAGE TEMPLATE STYLES
   ======================================== */
.site-main:not(.homepage-main):not(.single-course):not(.single-consultation):not(.archive-course):not(.archive-consultation) {
    width: 100%;
    max-width: 100%;
}

.site-main:not(.homepage-main):not(.single-course):not(.single-consultation):not(.archive-course):not(.archive-consultation) .container {
    max-width: 1400px !important;
    width: 100% !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-main {
    padding: 3rem 0;
    min-height: 60vh;
    width: 100%;
    max-width: 100%;
}

.page-main .container {
    max-width: 1400px !important;
    width: 100% !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.page-content-wrapper {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 2.25rem;
    color: var(--color-deep-burgundy);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.page-featured-image {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.page-content {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.page-content p {
    margin-bottom: 1.25rem;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    color: var(--color-deep-burgundy);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content h1 { font-size: 2rem; }
.page-content h2 { font-size: 1.75rem; }
.page-content h3 { font-size: 1.5rem; }
.page-content h4 { font-size: 1.25rem; }

.page-content ul,
.page-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: var(--color-deep-burgundy);
    border-bottom: 1px solid var(--color-antique-gold);
}

.page-content a:hover {
    color: var(--color-antique-gold);
}

.page-content blockquote {
    border-left: 4px solid var(--color-antique-gold);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--color-text-dark);
}

.page-content img {
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.page-content th,
.page-content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-golden-sand);
    text-align: left;
}

.page-content th {
    background: var(--color-warm-beige);
    color: var(--color-deep-burgundy);
    font-weight: 600;
}

.page-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-golden-sand);
}

/* Sidebar Styles */
.page-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(139, 26, 26, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.sidebar-widget .widget-title {
    font-size: 1.1rem;
    color: var(--color-deep-burgundy);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-antique-gold);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--color-warm-beige);
    color: var(--color-text-dark);
    font-weight: 500;
    transition: var(--transition-normal);
}

.sidebar-menu a:hover {
    background: var(--color-deep-burgundy);
    color: var(--color-text-light);
}

.sidebar-menu i {
    color: var(--color-antique-gold);
    width: 20px;
    text-align: center;
}

.sidebar-menu a:hover i {
    color: var(--color-antique-gold);
}

.sidebar-widget p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.btn-small {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
}

/* Page Template Responsive */
@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
    
    .page-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .sidebar-widget {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .page-main {
        padding: 1.5rem 0;
    }
    
    .page-content-wrapper {
        padding: 1.5rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .page-sidebar {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   BLOG/POST LAYOUT IMPROVEMENTS
   ======================================== */
.blog-index-main {
    padding: 2.5rem 0 3rem;
}

.blog-index-section {
    max-width: 1180px;
    margin: 0 auto;
}

.blog-index-header {
    margin-bottom: 1.75rem;
    text-align: center;
}

.blog-index-title {
    color: var(--color-deep-burgundy);
    font-size: 2.1rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.blog-index-description {
    color: var(--color-text-muted);
    max-width: 760px;
    margin: 0 auto;
}

/* ========================================
   INNER PAGE META LAYOUT
   ======================================== */
.inner-page-shell {
    max-width: 1400px !important;
    width: 100% !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    margin: 0 auto !important;
}

.inner-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2.2rem;
    align-items: start;
}

.inner-page-grid.no-sidebar {
    grid-template-columns: 1fr;
}

.inner-page-content-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 245, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(107, 15, 26, 0.08);
}

.inner-page-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.inner-intro-panel,
.inner-meta-content-group {
    background: rgba(245, 230, 211, 0.55);
    border-left: 4px solid var(--color-antique-gold);
    border-radius: 10px;
    padding: 1rem 1rem 0.35rem;
    margin-bottom: 1rem;
}

.inner-meta-content-group h2 {
    margin-top: 0;
    margin-bottom: 0.45rem;
    font-size: 1.25rem;
    color: var(--color-deep-burgundy);
}

.inner-body-content {
    background: #fff;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    padding: 1.1rem;
}

.inner-page-sidebar {
    position: sticky;
    top: 1.2rem;
}

.inner-sidebar-widget {
    padding: 1rem;
}

.ast-inner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.ast-carousel-track {
    position: relative;
}

.ast-carousel-slide {
    display: none;
}

.ast-carousel-slide.active {
    display: block;
}

.ast-carousel-slide img,
.ast-video-embed-wrap iframe,
.ast-video-embed-wrap video {
    width: 100%;
    border: 0;
    border-radius: 10px;
    display: block;
}

.ast-video-embed-wrap {
    background: #111;
    border-radius: 10px;
    overflow: hidden;
}

.ast-video-fallback {
    display: inline-flex;
    padding: 0.8rem 1rem;
    color: #fff;
    background: var(--color-deep-burgundy);
    border-radius: 6px;
}

.ast-carousel-caption {
    margin: 0.55rem 0 0;
    font-size: 0.92rem;
    color: var(--color-text-dark);
}

.ast-carousel-control {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(107, 15, 26, 0.85);
    color: #fff;
    cursor: pointer;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ast-carousel-control.prev {
    left: 8px;
}

.ast-carousel-control.next {
    right: 8px;
}

.ast-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0.6rem 0 0.2rem;
}

.ast-carousel-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(107, 15, 26, 0.35);
    cursor: pointer;
    padding: 0;
}

.ast-carousel-dots button.active {
    background: var(--color-deep-burgundy);
}

.inner-sidebar-cta {
    padding: 1rem;
}

.inner-sidebar-cta .cta-box {
    background: var(--color-deep-burgundy);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.inner-sidebar-cta .cta-overlay {
    text-align: center;
}

.inner-sidebar-cta .cta-title {
    color: var(--color-antique-gold);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.inner-sidebar-cta .cta-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0 0 1rem;
    line-height: 1.4;
}

.inner-sidebar-cta .cta-btn {
    display: inline-block;
    background: var(--color-antique-gold);
    color: #1a1a1a;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.inner-sidebar-cta .cta-btn:hover {
    background: #c9a227;
}

@media (max-width: 992px) {
    .inner-page-grid {
        grid-template-columns: 1fr;
    }

    .inner-page-sidebar {
        position: static;
    }
}

@media (max-width: 576px) {
    .inner-page-shell {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .inner-page-content-card {
        padding: 1rem;
    }
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 22px rgba(107, 15, 26, 0.08);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.post-card .post-thumbnail {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.9rem;
}

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

.post-card .entry-title {
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 0.55rem;
}

.post-card .entry-title a {
    color: var(--color-deep-burgundy);
}

.post-card .entry-title a:hover {
    color: var(--color-rich-maroon);
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.86rem;
    color: var(--color-text-muted);
    margin-bottom: 0.85rem;
}

.entry-meta i {
    color: var(--color-antique-gold);
}

.post-card .entry-content {
    color: var(--color-text-muted);
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.read-more-btn {
    margin-top: auto;
    align-self: flex-start;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
}

.single-fallback-card,
.post-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.compact-meta {
    margin-bottom: 1rem;
}

.single-post-main .post-content {
    font-size: 1.02rem;
    line-height: 1.75;
}

.compact-post-navigation {
    max-width: 900px;
    margin: 1.25rem auto 0;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.compact-post-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 999px;
    color: var(--color-deep-burgundy);
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
}

.compact-post-navigation a:hover {
    background: rgba(212, 175, 55, 0.18);
}

.no-posts {
    text-align: center;
    padding: 3.5rem 0;
}

.no-posts h2 {
    color: var(--color-deep-burgundy);
    margin-bottom: 0.6rem;
}

.no-posts p {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .blog-index-main {
        padding: 1.75rem 0 2.25rem;
    }

    .blog-index-title {
        font-size: 1.75rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .post-card {
        padding: 1rem;
    }

    .post-card .post-thumbnail img {
        height: 180px;
    }

    .post-card .entry-title {
        font-size: 1.2rem;
    }

    .compact-post-navigation {
        flex-direction: column;
    }

    .compact-post-navigation a {
        width: 100%;
        justify-content: center;
    }
}
