/*
Theme Name: Mgwezane Training
Theme URI: https://mgwezane.co.za
Author: Mgwezane Training
Description: Modern, unified WordPress theme for Mgwezane Training (MTEM CC)
Version: 2.1.0
License: GNU General Public License v2 or later
Text Domain: mgwezane
*/

/* ============================================
   1. CSS CUSTOM PROPERTIES - DESIGN TOKENS
   ============================================ */
:root {
    /* Brand Colors */
    --brand-red: #E11D2E;
    --brand-red-dark: #c11525;
    --brand-red-light: #ff2d3f;
    --brand-yellow: #F4C20D;
    --brand-yellow-dark: #d4a20b;
    --brand-dark: #111827;
    --brand-light: #F7F7F9;

    /* Semantic Colors */
    --primary: var(--brand-red);
    --primary-dark: var(--brand-red-dark);
    --primary-light: var(--brand-red-light);
    --secondary: var(--brand-yellow);
    --accent: var(--brand-yellow);

    /* Surface Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: var(--brand-light);
    --bg-dark: var(--brand-dark);
    --bg-overlay: rgba(17, 24, 39, 0.95);

    /* Text Colors */
    --text-primary: var(--brand-dark);
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --text-inverse: #FFFFFF;

    /* Border Colors */
    --border-primary: rgba(17, 24, 39, 0.1);
    --border-secondary: rgba(17, 24, 39, 0.05);
    --border-light: rgba(255, 255, 255, 0.2);
    --border-accent: var(--primary);

    /* Typography Scale */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 28px;
    --text-4xl: 36px;
    --text-5xl: 48px;

    /* Responsive Typography */
    --h1: clamp(2rem, 5vw, 3rem);
    --h2: clamp(1.75rem, 4vw, 2.25rem);
    --h3: clamp(1.375rem, 3vw, 1.75rem);
    --h4: clamp(1.125rem, 2.5vw, 1.25rem);

    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    /* Layout */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1400px;
    --container-max: min(1200px, calc(100% - 40px));
    --gutter: 20px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-Index Scale */
    --z-below: -1;
    --z-base: 0;
    --z-dropdown: 1000;
    --z-sticky: 1100;
    --z-modal: 1300;
    --z-popover: 1400;
    --z-tooltip: 1500;
}

/* ============================================
   2. MODERN CSS RESET
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography Reset */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
}

p,
ul,
ol,
blockquote {
    margin: 0;
}

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

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   HERO TWO-COLUMN LAYOUT (Home Page)
   ============================================ */
.hero-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.hero-text {
    position: relative;
    z-index: 1;
}

/* Image Side */
.hero-image-wrap {
    position: relative;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: right center;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(17, 24, 39, 0.18);
    border: 4px solid var(--bg-primary);
    display: block;
}

/* Floating badge over the image */
.hero-img-badge {
    position: absolute;
    bottom: -16px;
    left: 24px;
    background: var(--primary);
    color: var(--text-inverse);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    box-shadow: 0 4px 16px rgba(225, 29, 46, 0.35);
    white-space: nowrap;
}

.hero-img-badge i {
    font-size: var(--text-base);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-two-col {
        grid-template-columns: 1fr;
    }

    .hero-img {
        height: 320px;
        object-position: center 20%;
    }

    .hero-image-wrap {
        order: -1;
        /* image above text on mobile */
    }
}

@media (max-width: 480px) {
    .hero-img {
        height: 240px;
    }

    .hero-img-badge {
        font-size: var(--text-xs);
        bottom: -12px;
        left: 12px;
    }
}

/* ============================================
   4. LAYOUT SYSTEM
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.section {
    padding: var(--space-16) 0;
}

.section-sm {
    padding: var(--space-12) 0;
}

.section-lg {
    padding: var(--space-24) 0;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-12);
}

.section-header h2 {
    position: relative;
    margin-bottom: var(--space-6);
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: var(--space-4) auto 0;
    border-radius: var(--radius-full);
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--text-muted);
    margin-top: var(--space-4);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

/* Background Variants */
.bg-light {
    background: var(--bg-secondary);
}

.bg-dark {
    background: var(--bg-dark);
    color: var(--text-inverse);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4 {
    color: var(--text-inverse);
}

.bg-dark p,
.bg-dark .muted {
    color: rgba(255, 255, 255, 0.85);
}

.bg-primary {
    background: var(--primary);
    color: var(--text-inverse);
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4 {
    color: var(--text-inverse);
}

.bg-primary p,
.bg-primary .muted {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   5. COMPONENT SYSTEM
   ============================================ */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-base);
    border: 2px solid transparent;
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-inverse);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--brand-dark);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--brand-dark);
    color: var(--text-inverse);
    border-color: var(--brand-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-inverse);
}

.btn-light {
    background: var(--text-inverse);
    color: var(--brand-dark);
    border-color: var(--text-inverse);
}

.btn-light:hover {
    background: var(--brand-dark);
    color: var(--text-inverse);
    border-color: var(--brand-dark);
}

.btn-group {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Cards */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-accent);
}

.card-dark {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-inverse);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.card-dark:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.card-dark h3,
.card-dark h4,
.card-dark .card-title {
    color: var(--text-inverse);
}

.card-dark p,
.card-dark .muted,
.card-dark a {
    color: var(--text-inverse);
}

/* Special styling for contact cards on red background */
.bg-primary .card-dark {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.bg-primary .card-dark:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.bg-primary .card-dark h3,
.bg-primary .card-dark h4,
.bg-primary .card-dark p,
.bg-primary .card-dark a {
    color: var(--text-inverse);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225, 29, 46, 0.1);
    margin-bottom: var(--space-5);
    color: var(--primary);
    font-size: var(--text-xl);
    transition: var(--transition-base);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-dark .card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-inverse);
}

.card-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    font-weight: 600;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

.badge-group {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-6);
}

/* Lists */
.list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.list-item i {
    color: var(--primary);
    margin-top: 4px;
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.card-dark .list-item i {
    color: var(--text-inverse);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-6);
}

.stat {
    text-align: center;
    padding: var(--space-6);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: var(--space-2);
    line-height: 1;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   COMPLETE NAVIGATION FIX
   Add this to your style.css or replace existing navigation section
   ============================================ */

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-primary);
    transition: var(--transition-base);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
    min-height: 72px;
}

.custom-logo {
    max-height: 50px;
    width: auto;
    transition: var(--transition-base);
}

.custom-logo:hover {
    opacity: 0.8;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    z-index: 1101;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Main Navigation */
.main-navigation {
    display: block;
}

.nav-menu,
.main-navigation ul {
    display: flex;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li,
.main-navigation ul li {
    margin: 0;
}

.nav-menu a,
.main-navigation ul a {
    display: block;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition-base);
    text-decoration: none;
}

/* Regular menu items - gray background on hover, text turns red */
.nav-menu li:not(.current-menu-item):not(.current_page_item) a:hover,
.main-navigation ul li:not(.current-menu-item):not(.current_page_item) a:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

/* Current/Active menu item - red background with WHITE text */
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    background: var(--primary) !important;
    color: #FFFFFF !important;
    border-color: var(--primary);
}

/* Current item hover - darker red, WHITE text STAYS WHITE */
.nav-menu .current-menu-item > a:hover,
.nav-menu .current_page_item > a:hover,
.main-navigation .current-menu-item > a:hover,
.main-navigation .current_page_item > a:hover {
    background: var(--primary-dark) !important;
    color: #FFFFFF !important;
    border-color: var(--primary-dark);
}

/* ============================================
   MOBILE NAVIGATION (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .main-navigation {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        background: #FFFFFF;
        transform: translateX(-100%);
        transition: all 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
        padding: 20px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        visibility: hidden;
        opacity: 0;
    }
    
    .main-navigation.active {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }
    
    .nav-menu,
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        display: flex !important;
    }
    
    .nav-menu li,
    .main-navigation ul li {
        width: 100%;
        display: block !important;
    }
    
    .nav-menu a,
    .main-navigation ul a {
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-primary);
        border-radius: 0;
        width: 100%;
        display: block !important;
    }
    
    .nav-menu li:not(.current-menu-item):not(.current_page_item) a:hover,
    .main-navigation ul li:not(.current-menu-item):not(.current_page_item) a:hover {
        background: var(--bg-secondary);
        color: var(--primary);
    }
    
    /* Mobile current item styling - RED background, WHITE text */
    .nav-menu .current-menu-item > a,
    .nav-menu .current_page_item > a,
    .main-navigation .current-menu-item > a,
    .main-navigation .current_page_item > a {
        background: var(--primary) !important;
        color: #FFFFFF !important;
        border-left: 4px solid var(--accent);
    }
    
    .nav-menu .current-menu-item > a:hover,
    .nav-menu .current_page_item > a:hover,
    .main-navigation .current-menu-item > a:hover,
    .main-navigation .current_page_item > a:hover {
        background: var(--primary-dark) !important;
        color: #FFFFFF !important;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
    }
}

/* Desktop - ensure toggle is hidden */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .main-navigation {
        display: block !important;
        position: static;
        transform: none;
        height: auto;
        width: auto;
        padding: 0;
        overflow: visible;
        box-shadow: none;
        background: transparent;
        visibility: visible;
        opacity: 1;
    }
}

/* ============================================
   MOBILE NAVIGATION (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
    }

    .main-navigation {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        background: var(--bg-primary);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }

    .main-navigation.active {
        transform: translateX(0);
    }

    .nav-menu,
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-menu li,
    .main-navigation ul li {
        width: 100%;
    }

    .nav-menu a,
    .main-navigation ul a {
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-primary);
        border-radius: 0;
        width: 100%;
    }

    .nav-menu a:hover,
    .main-navigation ul a:hover {
        background: var(--bg-secondary);
        color: var(--primary);
    }

    /* Mobile current item styling */
    .nav-menu .current-menu-item>a,
    .nav-menu .current_page_item>a,
    .main-navigation .current-menu-item>a,
    .main-navigation .current_page_item>a {
        background: var(--primary) !important;
        color: #FFFFFF !important;
        border-left: 4px solid var(--accent);
    }

    .nav-menu .current-menu-item>a:hover,
    .nav-menu .current_page_item>a:hover,
    .main-navigation .current-menu-item>a:hover,
    .main-navigation .current_page_item>a:hover {
        background: var(--primary-dark) !important;
        color: #FFFFFF !important;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Desktop - ensure toggle is hidden */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    .main-navigation {
        display: block !important;
        position: static;
        transform: none;
        height: auto;
        width: auto;
        padding: 0;
        overflow: visible;
        box-shadow: none;
        background: transparent;
    }
}

/* ============================================
   8. HERO SECTIONS
   ============================================ */
.hero-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, rgba(225, 29, 46, 0.05) 0%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-8);
    flex-wrap: wrap;
}

/* ============================================
   9. COURSE-SPECIFIC COMPONENTS
   ============================================ */
.course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-details {
    background: var(--bg-secondary);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
    margin-bottom: var(--space-5);
}

.course-details p {
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.course-details strong {
    color: var(--primary);
    font-weight: 600;
}

/* Category Cards */
.category-card {
    text-align: center;
    transition: var(--transition-base);
}

.category-card:hover {
    transform: translateY(-6px);
}

/* Info Cards */
.info-card {
    min-height: 280px;
}

/* ============================================
   10. SERVICE-SPECIFIC COMPONENTS
   ============================================ */
.service-card h3 {
    color: var(--text-primary);
}

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-inverse);
    padding: var(--space-20) 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--text-inverse);
    margin-bottom: var(--space-4);
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons Container - Centered */
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* ============================================
   11. FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-inverse);
    padding: var(--space-12) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-6);
}

.site-footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.site-footer a {
    color: var(--text-inverse);
    transition: var(--transition-base);
}

.site-footer a:hover {
    color: var(--secondary);
}

/* ============================================
   12. UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Spacing Utilities */
.mb-1 {
    margin-bottom: var(--space-1);
}

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-3 {
    margin-bottom: var(--space-3);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-5 {
    margin-bottom: var(--space-5);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mb-xs {
    margin-bottom: var(--space-2);
}

.mb-sm {
    margin-bottom: var(--space-4);
}

.mb-md {
    margin-bottom: var(--space-6);
}

.mb-lg {
    margin-bottom: var(--space-8);
}

.mb-xl {
    margin-bottom: var(--space-12);
}

.mt-1 {
    margin-top: var(--space-1);
}

.mt-2 {
    margin-top: var(--space-2);
}

.mt-3 {
    margin-top: var(--space-3);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-5 {
    margin-top: var(--space-5);
}

.mt-6 {
    margin-top: var(--space-6);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mt-xs {
    margin-top: var(--space-2);
}

.mt-sm {
    margin-top: var(--space-4);
}

.mt-md {
    margin-top: var(--space-6);
}

.mt-lg {
    margin-top: var(--space-8);
}

.mt-xl {
    margin-top: var(--space-12);
}

/* Display Utilities */
.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

/* Flex Utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* ============================================
   13. ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp var(--transition-slow) ease-out;
}

.stat-number {
    animation: countUp 0.8s ease-out;
}

/* ============================================
   14. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .two-column {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 768px) {
    :root {
        --h1: clamp(1.75rem, 5vw, 2.5rem);
        --h2: clamp(1.5rem, 4vw, 2rem);
        --h3: clamp(1.25rem, 3vw, 1.625rem);
        --space-16: 48px;
        --space-20: 64px;
        --space-24: 80px;
    }

    .section {
        padding: var(--space-12) 0;
    }

    .section-lg {
        padding: var(--space-16) 0;
    }

    .btn-group,
    .hero-actions,
    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: var(--space-16) 0;
    }

    .section-header {
        margin-bottom: var(--space-8);
    }
}

@media (max-width: 480px) {
    :root {
        --gutter: 16px;
    }

    .card {
        padding: var(--space-6);
    }

    .stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   15. PRINT STYLES
   ============================================ */
@media print {

    .site-header,
    .site-footer,
    .btn,
    .hero-actions,
    .cta-section {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* ============================================
   16. WORDPRESS CORE COMPATIBILITY
   ============================================ */
.alignwide {
    max-width: var(--container-xl);
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100vw;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.wp-block-image {
    margin: var(--space-8) 0;
}

.wp-block-image img {
    border-radius: var(--radius-lg);
}

.wp-caption-text {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-2);
    text-align: center;
}

/* WordPress Gallery */
.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
}

/* ============================================
   17. ACCESSIBILITY IMPROVEMENTS
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--text-inverse);
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    z-index: var(--z-tooltip);
}

.skip-link:focus {
    top: 0;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   18. PAGE-SPECIFIC REFINEMENTS
   ============================================ */

/* Home Page Specific */
.home .hero-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
}

.home .stats .stat {
    background: var(--primary);
    color: var(--text-inverse);
    border: none;
    transition: var(--transition-base);
}

.home .stats .stat:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.home .stats .stat .stat-number {
    color: var(--text-inverse);
    font-size: 3rem;
}

.home .stats .stat .stat-label {
    color: rgba(255, 255, 255, 0.95);
    font-size: var(--text-sm);
}

/* About Page Specific */
.about .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.about .stats-grid .card {
    padding: var(--space-8);
    text-align: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
}

.about .stats-grid .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: var(--space-2);
    line-height: 1;
}

.about .stats-grid .stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Services Page Specific */
.services .service-card {
    border: 2px solid var(--border-primary);
    transition: all var(--transition-base);
}

.services .service-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
}

.services .service-card h3 {
    color: var(--text-primary);
    font-size: var(--text-xl);
}

.services .cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #c11525 100%);
}

.services .btn-cta-outline {
    background: transparent;
    color: var(--text-inverse);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.services .btn-cta-outline:hover {
    background: var(--text-inverse);
    color: var(--brand-dark);
    border-color: var(--text-inverse);
}

/* Courses Page Specific */
.courses .category-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    transition: all var(--transition-base);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.courses .category-card .card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(225, 29, 46, 0.1);
    margin-bottom: var(--space-5);
    font-size: 28px;
}

.courses .course-card {
    border: 2px solid var(--border-primary);
    overflow: hidden;
}

.courses .course-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.courses .course-card .card-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
}

.courses .course-details {
    background: var(--bg-secondary);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    margin-bottom: var(--space-5);
}

.courses .course-details p {
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-primary);
    line-height: 1.5;
}

.courses .course-details strong {
    color: var(--primary);
    font-weight: 700;
}

.courses .info-card {
    min-height: 300px;
    padding: var(--space-8);
    border: 2px solid var(--border-primary);
    transition: all var(--transition-base);
}

.courses .info-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.courses .info-card .card-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.courses .info-card .list-item {
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* ============================================
   19. FORM STYLES
   ============================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition-base);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.form-group {
    margin-bottom: var(--space-6);
}

/* Search Form */
.search-form {
    display: flex;
    gap: var(--space-2);
}

.search-form input[type="search"] {
    flex: 1;
}

/* ============================================
   20. LOADING & SKELETON STATES
   ============================================ */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--border-primary);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.skeleton {
    background: linear-gradient(90deg,
            var(--bg-secondary) 0%,
            #e0e0e0 50%,
            var(--bg-secondary) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   21. MODAL & OVERLAY COMPONENTS
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: var(--transition-base);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* ============================================
   22. NOTIFICATION & ALERT STYLES
   ============================================ */
.alert {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* ============================================
   23. PAGINATION STYLES
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-12);
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-3);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-base);
}

.pagination a:hover {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
}

/* ============================================
   24. BREADCRUMBS
   ============================================ */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-muted);
    transition: var(--transition-base);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs .separator {
    color: var(--text-light);
}

/* ============================================
   25. TABLES
   ============================================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-8) 0;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

thead {
    background: var(--bg-secondary);
}

th {
    padding: var(--space-4);
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-primary);
}

td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-secondary);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: var(--bg-secondary);
}

/* ============================================
   26. RESPONSIVE TABLES
   ============================================ */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ============================================
   27. CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: var(--radius-full);
    border: 3px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   28. SELECTION STYLES
   ============================================ */
::selection {
    background: var(--primary);
    color: var(--text-inverse);
}

::-moz-selection {
    background: var(--primary);
    color: var(--text-inverse);
}

/* ============================================
   29. SMOOTH SCROLL BEHAVIOR
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   30. DARK MODE SUPPORT (Optional)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --text-primary: #ffffff;
        --text-secondary: #d1d5db;
        --text-muted: #9ca3af;
        --border-primary: rgba(255, 255, 255, 0.1);
    }
    */
}

/* =============================================
 Contact Form 7 Styling 
  =============================================*/
.wpcf7-form p {
    margin-bottom: 20px;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.wpcf7-form textarea {
    min-height: 150px;
}

.wpcf7-form input[type="submit"] {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.wpcf7-form input[type="submit"]:hover {
    background: var(--primary-dark);
}

.contact-sidebar .card {
    margin-bottom: 0;
}

/* ============================================
   SCREEN READER UTILITIES
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   NAVIGATION HOVER FIXES
   ============================================ */

/* Desktop hover effects */
@media (min-width: 769px) {
    .nav-menu a:hover {
        background: var(--bg-secondary);
        color: var(--primary);
    }
    
    /* Current item should always stay red with white text */
    .nav-menu .current-menu-item > a,
    .nav-menu .current_page_item > a {
        background: var(--primary) !important;
        color: var(--text-inverse) !important;
        border-color: var(--primary) !important;
    }
    
    .nav-menu .current-menu-item > a:hover,
    .nav-menu .current_page_item > a:hover {
        background: var(--primary-dark) !important;
        color: var(--text-inverse) !important;
        border-color: var(--primary-dark) !important;
    }
}

/* Touch device optimization */
@media (hover: none) and (pointer: coarse) {
    .nav-menu a:active {
        background: var(--bg-secondary);
        color: var(--primary);
    }
    
    .nav-menu .current-menu-item > a:active,
    .nav-menu .current_page_item > a:active {
        background: var(--primary-dark) !important;
        color: var(--text-inverse) !important;
    }
}

/* Clearer keyboard focus */
.nav-menu a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--radius-full);
}

/* ============================================
   COURSE PAGE SPECIFIC STYLES (moved from page-course.php)
   ============================================ */
body.page-course .accredited-courses {
  padding: 4rem 0;
}

body.page-course .accredited-courses .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

body.page-course .section-intro {
  margin-bottom: 2.5rem;
  color: #555;
  font-size: 1.1rem;
}

body.page-course .accreditation-category {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  background: #fff;
}

body.page-course .accreditation-category summary {
  padding: 1.5rem;
  background: #f8f9fa;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

body.page-course .accreditation-category summary:hover {
  background: #e9ecef;
}

body.page-course .accreditation-category summary::-webkit-details-marker {
  display: none;
}

body.page-course .accreditation-category summary::after {
  content: "▼";
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  color: #007bff;
}

body.page-course .accreditation-category[open] summary::after {
  transform: rotate(180deg);
}

body.page-course .accreditation-category summary h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #333;
  font-weight: 600;
}

body.page-course .category-content {
  padding: 1.5rem;
}

body.page-course .subcategory {
  margin-bottom: 2rem;
}

body.page-course .subcategory h4 {
  margin-bottom: 1rem;
  color: #444;
  font-size: 1.1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

body.page-course .table-container {
  overflow-x: auto;
  margin: 1rem 0;
}

body.page-course .qualifications-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

body.page-course .qualifications-table thead {
  background: #f1f5f9;
}

body.page-course .qualifications-table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #334155;
  border-bottom: 2px solid #cbd5e1;
}

body.page-course .qualifications-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

body.page-course .qualifications-table tbody tr:hover {
  background: #f8fafc;
}

body.page-course .note {
  font-size: 0.9rem;
  color: #64748b;
  font-style: italic;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  body.page-course .accredited-courses {
    padding: 2.5rem 0;
  }
  
  body.page-course .accreditation-category summary {
    padding: 1.25rem;
  }
  
  body.page-course .accreditation-category summary h3 {
    font-size: 1.1rem;
  }
  
  body.page-course .qualifications-table {
    font-size: 0.9rem;
  }
  
  body.page-course .qualifications-table th,
  body.page-course .qualifications-table td {
    padding: 0.625rem 0.75rem;
  }
}

/* ============================================
   CONTACT PAGE SPECIFIC STYLES (moved from page-contact.php)
   ============================================ */
body.page-contact .contact-hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

body.page-contact .contact-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

body.page-contact .contact-hero p {
  max-width: 800px;
  font-size: 1.1rem;
  color: #64748b;
}

body.page-contact .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

body.page-contact .contact-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
}

body.page-contact .contact-card h3 {
  margin-bottom: 14px;
}

body.page-contact .contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.page-contact .contact-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  color: #334155;
}

body.page-contact .contact-list i {
  color: var(--primary);
  margin-top: 4px;
}

@media (max-width: 900px) {
  body.page-contact .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   GALLERY PAGE SPECIFIC STYLES (moved from page-gallery.php)
   ============================================ */
body.page-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

body.page-gallery .gallery-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: transform var(--transition-base);
}

body.page-gallery .gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

body.page-gallery .gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

body.page-gallery .gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 900px) {
  body.page-gallery .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  body.page-gallery .gallery-item img {
    height: 220px;
  }
}

@media (max-width: 520px) {
  body.page-gallery .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  body.page-gallery .gallery-item img {
    height: 200px;
  }
}

/* ============================================
   31. FINAL ADJUSTMENTS & OVERRIDES
   ============================================ */

/* Ensure all interactive elements have pointer cursor */
a,
button,
.btn,
.card:hover {
    cursor: pointer;
}

/* Smooth font rendering */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent layout shift from scrollbar */
html {
    overflow-y: scroll;
}

/* Image loading optimization */
img {
    image-rendering: -webkit-optimize-contrast;
}

/*===========================================
  32.  Courses css 
  ===========================================
  /* Accordion Styles */
  .accordion-container {
      max-width: 1200px;
      margin: 0 auto;
  }

  .accreditation-category {
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      margin-bottom: 1rem;
      overflow: hidden;
      background: #fff;
  }

  .accreditation-category summary {
      padding: 1.5rem;
      background: #f8f9fa;
      cursor: pointer;
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: all 0.3s ease;
      position: relative;
  }

  .accreditation-category summary:hover {
      background: #e9ecef;
  }

  .accreditation-category[open] summary {
      background: #e9ecef;
      border-bottom: 1px solid #dee2e6;
  }

  .accreditation-category summary::-webkit-details-marker {
      display: none;
  }

  .accreditation-category summary h3 {
      margin: 0;
      font-size: 1.25rem;
      color: #333;
      font-weight: 600;
  }

  .accordion-toggle {
      color: #007bff;
      font-size: 0.8rem;
      transition: transform 0.3s ease;
  }

  .accreditation-category[open] .accordion-toggle {
      transform: rotate(180deg);
  }

  .category-content {
      padding: 1.5rem;
  }

  .subcategory {
      margin-bottom: 2rem;
  }

  .subcategory:last-child {
      margin-bottom: 0;
  }

  .subcategory h4 {
      margin-bottom: 1rem;
      color: #444;
      font-size: 1.1rem;
      border-bottom: 1px solid #eee;
      padding-bottom: 0.5rem;
  }

  /* Table Styles */
  .table-responsive {
      overflow-x: auto;
      margin: 1rem 0;
  }

  .qualifications-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.95rem;
      min-width: 600px;
  }

  .qualifications-table thead {
      background: #f1f5f9;
      border-bottom: 2px solid #cbd5e1;
  }

  .qualifications-table th {
      padding: 0.875rem 1rem;
      text-align: left;
      font-weight: 600;
      color: #334155;
      white-space: nowrap;
  }

  .qualifications-table td {
      padding: 0.75rem 1rem;
      border-bottom: 1px solid #e2e8f0;
      vertical-align: top;
  }

  .qualifications-table tbody tr:hover {
      background: #f8fafc;
  }

  .qualifications-table tbody tr:last-child td {
      border-bottom: none;
  }

  .note {
      font-size: 0.9rem;
      color: #64748b;
      font-style: italic;
      margin-top: 1rem;
      padding-top: 1rem;
      border-top: 1px dashed #e2e8f0;
  }

  /* ============================================
   MOBILE TABLE FIXES FOR COURSES PAGE
   Find the existing @media (max-width: 768px) section
   in your style.css (around line 2547) and REPLACE it
   with this updated version
   ============================================ */

  @media (max-width: 768px) {
      .accreditation-category summary {
          padding: 1.25rem;
      }

      .accreditation-category summary h3 {
          font-size: 1.1rem;
          padding-right: 1.5rem;
      }

      .category-content {
          padding: 1rem;
      }

      .qualifications-table {
          font-size: 0.85rem;
          display: block;
          overflow-x: auto;
          white-space: nowrap;
          -webkit-overflow-scrolling: touch;
      }

      .qualifications-table thead,
      .qualifications-table tbody,
      .qualifications-table tr {
          display: table;
          width: 100%;
          table-layout: fixed;
      }

      .qualifications-table th,
      .qualifications-table td {
          padding: 0.625rem 0.5rem;
          font-size: 0.8rem;
          word-wrap: break-word;
          white-space: normal;
      }

      /* Make first column (Qualification Title) wider on mobile */
      .qualifications-table th:first-child,
      .qualifications-table td:first-child {
          width: 55%;
      }

      /* Make NQF Level column narrower */
      .qualifications-table th:nth-child(2),
      .qualifications-table td:nth-child(2) {
          width: 15%;
      }

      /* Make Credits/SAQA ID columns narrower */
      .qualifications-table th:nth-child(3),
      .qualifications-table td:nth-child(3),
      .qualifications-table th:nth-child(4),
      .qualifications-table td:nth-child(4) {
          width: 15%;
      }

      .subcategory h4 {
          font-size: 1rem;
      }

      /* Add scroll hint for tables */
      .table-responsive::after {
          content: '→ Scroll horizontally to see more';
          display: block;
          text-align: center;
          font-size: 0.75rem;
          color: var(--text-muted);
          margin-top: 0.5rem;
          font-style: italic;
      }
  }

  @media (max-width: 480px) {
      .qualifications-table {
          font-size: 0.75rem;
      }

      .qualifications-table th,
      .qualifications-table td {
          padding: 0.5rem 0.375rem;
          font-size: 0.75rem;
      }

      .accreditation-category summary h3 {
          font-size: 1rem;
          line-height: 1.3;
      }

      /* Alternative: Stack table data vertically on very small screens */
      .qualifications-table.mobile-stacked {
          display: block;
      }

      .qualifications-table.mobile-stacked thead {
          display: none;
      }

      .qualifications-table.mobile-stacked tbody,
      .qualifications-table.mobile-stacked tr {
          display: block;
          width: 100%;
      }

      .qualifications-table.mobile-stacked tr {
          margin-bottom: 1rem;
          border: 1px solid #e2e8f0;
          border-radius: 8px;
          padding: 0.75rem;
          background: #f8fafc;
      }

      .qualifications-table.mobile-stacked td {
          display: block;
          width: 100%;
          text-align: left;
          padding: 0.375rem 0;
          border: none;
      }

      .qualifications-table.mobile-stacked td::before {
          content: attr(data-label);
          font-weight: 600;
          display: inline-block;
          margin-right: 0.5rem;
          color: var(--primary);
      }
  }

  /*========================================
     33. Gallery Css 
   ========================================
  /* Gallery Filter Tabs */
        .gallery-filters {
            background: var(--bg-secondary);
            padding: var(--space-6) 0;
            position: sticky;
            top: 72px;
            z-index: 100;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
    
        .filter-tabs {
            display: flex;
            gap: var(--space-2);
            justify-content: center;
            flex-wrap: wrap;
        }
    
        .filter-btn {
            padding: 10px 24px;
            background: var(--bg-primary);
            border: 2px solid var(--border-primary);
            border-radius: var(--radius-full);
            font-weight: 600;
            font-size: var(--text-sm);
            color: var(--text-primary);
            cursor: pointer;
            transition: all var(--transition-base);
        }
    
        .filter-btn:hover,
        .filter-btn.active {
            background: var(--primary);
            color: var(--text-inverse);
            border-color: var(--primary);
        }
    
        /* Video Section */
        .video-highlight {
            padding-top: var(--space-8);
            padding-bottom: var(--space-8);
        }
    
        .video-wrapper {
            position: relative;
            padding-bottom: 56.25%;
            height: 0;
            overflow: hidden;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-md);
            max-width: 900px;
            margin: 0 auto;
        }
    
        .video-wrapper iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }
    
        /* Gallery Grid */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: var(--space-6);
            margin-top: var(--space-8);
        }
    
        .gallery-item {
            opacity: 1;
            transform: scale(1);
            transition: all var(--transition-base);
        }
    
        .gallery-item.hidden {
            opacity: 0;
            transform: scale(0.8);
            height: 0;
            overflow: hidden;
            margin: 0;
            padding: 0;
        }
    
        .gallery-image {
            position: relative;
            width: 100%;
            height: 300px;
            overflow: hidden;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            cursor: pointer;
            transition: all var(--transition-base);
        }
    
        .gallery-image:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-md);
        }
    
        .gallery-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top;
            transition: transform 0.5s ease;
        }
    
        .gallery-image:hover img {
            transform: scale(1.05);
        }
    
        /* Simplified Gallery Caption */
        .gallery-caption {
            padding: var(--space-4) var(--space-2) 0;
            text-align: center;
        }
    
        .gallery-caption h3 {
            font-size: var(--text-lg);
            margin-bottom: 4px;
            color: var(--text-primary);
        }
    
        .gallery-caption p {
            font-size: var(--text-sm);
            color: var(--text-muted);
            margin: 0;
        }
    
        /* Lightbox */
        .lightbox {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.95);
            z-index: 10000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: var(--space-6);
        }
    
        .lightbox.active {
            display: flex;
        }
    
        .lightbox-content {
            max-width: 90vw;
            max-height: 90vh;
            position: relative;
        }
    
        .lightbox-content img {
            max-width: 100%;
            max-height: 80vh;
            object-fit: contain;
            border-radius: var(--radius-lg);
        }
    
        .lightbox-caption {
            text-align: center;
            color: white;
            padding: var(--space-4);
            font-size: var(--text-lg);
        }
    
        .lightbox-close,
        .lightbox-prev,
        .lightbox-next {
            position: absolute;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            cursor: pointer;
            font-size: var(--text-xl);
            transition: all var(--transition-base);
            backdrop-filter: blur(10px);
        }
    
        .lightbox-close {
            top: var(--space-6);
            right: var(--space-6);
        }
    
        .lightbox-prev {
            left: var(--space-6);
            top: 50%;
            transform: translateY(-50%);
        }
    
        .lightbox-next {
            right: var(--space-6);
            top: 50%;
            transform: translateY(-50%);
        }
    
        .lightbox-close:hover,
        .lightbox-prev:hover,
        .lightbox-next:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }
    
        .lightbox-prev:hover {
            transform: translateY(-50%) scale(1.1);
        }
    
        .lightbox-next:hover {
            transform: translateY(-50%) scale(1.1);
        }
    
        /* Responsive Design */
        @media (max-width: 768px) {
            .gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                gap: var(--space-4);
            }
    
            .gallery-image {
                height: 280px;
            }
    
            .filter-tabs {
                gap: var(--space-2);
            }
    
            .filter-btn {
                padding: 8px 16px;
                font-size: var(--text-xs);
            }
    
            .lightbox-prev,
            .lightbox-next {
                width: 40px;
                height: 40px;
                font-size: var(--text-base);
            }
        }
    
        @media (max-width: 480px) {
            .gallery-grid {
                grid-template-columns: 1fr;
                gap: var(--space-4);
            }
    
            .video-wrapper {
                border-radius: var(--radius-md);
            }
        }
/* =========================================================
   COURSES PAGE — MOBILE UX FIX (ONE BLOCK ONLY)
   • Fix accordion title/toggle overlap
   • Remove horizontal scroll + hide scroll hint
   • Stack table rows into clean mobile cards
   • Desktop stays unchanged
   Target: page-course.php
   ========================================================= */
@media (max-width: 700px) {

  /* -----------------------------------------------------
     Stop any sideways page overflow (common 1–2px issue)
     ----------------------------------------------------- */
  body.page-template-page-course-php,
  body.page-template-page-course {
    overflow-x: hidden;
  }

  body.page-template-page-course-php .container,
  body.page-template-page-course .container,
  body.page-template-page-course-php .category-content,
  body.page-template-page-course .category-content {
    overflow-x: hidden;
  }

  /* -----------------------------------------------------
     Accordion header: prevent heading from overlapping ▼
     ----------------------------------------------------- */
  body.page-template-page-course-php .accreditation-category summary,
  body.page-template-page-course .accreditation-category summary {
    position: relative;
    align-items: flex-start;
    padding-right: 56px; /* room for the ▼ */
  }

  body.page-template-page-course-php .accreditation-category summary h3,
  body.page-template-page-course .accreditation-category summary h3 {
    margin: 0;
    line-height: 1.25;
    font-size: 1.05rem;
  }

  body.page-template-page-course-php .accreditation-category .accordion-toggle,
  body.page-template-page-course .accreditation-category .accordion-toggle {
    position: absolute;
    right: 16px;
    top: 18px;
  }

  /* -----------------------------------------------------
     Remove the old “scroll horizontally to see more” hint
     (covers: pseudo-element + common HTML placements)
     ----------------------------------------------------- */
  body.page-template-page-course-php .table-responsive::after,
  body.page-template-page-course .table-responsive::after {
    content: none !important;
    display: none !important;
  }

  body.page-template-page-course-php .table-responsive > p,
  body.page-template-page-course .table-responsive > p,
  body.page-template-page-course-php .table-responsive p,
  body.page-template-page-course .table-responsive p,
  body.page-template-page-course-php .table-responsive .note,
  body.page-template-page-course .table-responsive .note,
  body.page-template-page-course-php .scroll-hint,
  body.page-template-page-course .scroll-hint,
  body.page-template-page-course-php .horizontal-scroll-hint,
  body.page-template-page-course .horizontal-scroll-hint,
  body.page-template-page-course-php .table-scroll-hint,
  body.page-template-page-course .table-scroll-hint {
    display: none !important;
  }

  /* -----------------------------------------------------
     Kill horizontal scrolling behavior on mobile wrappers
     ----------------------------------------------------- */
  body.page-template-page-course-php .table-responsive,
  body.page-template-page-course .table-responsive {
    overflow-x: visible !important;
    -webkit-overflow-scrolling: auto;
  }

  body.page-template-page-course-php .qualifications-table,
  body.page-template-page-course .qualifications-table {
    min-width: 0 !important; /* overrides any min-width */
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  /* -----------------------------------------------------
     Convert table into stacked cards on mobile
     ----------------------------------------------------- */
  body.page-template-page-course-php .qualifications-table thead,
  body.page-template-page-course .qualifications-table thead {
    display: none !important;
  }

  body.page-template-page-course-php .qualifications-table,
  body.page-template-page-course .qualifications-table,
  body.page-template-page-course-php .qualifications-table tbody,
  body.page-template-page-course .qualifications-table tbody,
  body.page-template-page-course-php .qualifications-table tr,
  body.page-template-page-course .qualifications-table tr,
  body.page-template-page-course-php .qualifications-table td,
  body.page-template-page-course .qualifications-table td {
    display: block;
    width: 100%;
  }

  body.page-template-page-course-php .qualifications-table tr,
  body.page-template-page-course .qualifications-table tr {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
  }

  body.page-template-page-course-php .qualifications-table td,
  body.page-template-page-course .qualifications-table td {
    border: 0 !important;
    padding: 8px 0 !important;
    white-space: normal !important; /* prevents forced horizontal overflow */
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* -----------------------------------------------------
     First cell = Qualification Title (bold)
     ----------------------------------------------------- */
  body.page-template-page-course-php .qualifications-table td:first-child,
  body.page-template-page-course .qualifications-table td:first-child {
    font-weight: 800;
    font-size: 1rem;
    color: #111827;
    padding-top: 0 !important;
    padding-bottom: 10px !important;
  }

  /* -----------------------------------------------------
     Other cells become label/value rows
     ----------------------------------------------------- */
  body.page-template-page-course-php .qualifications-table td:not(:first-child),
  body.page-template-page-course .qualifications-table td:not(:first-child) {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 6px 0 !important;
    border-top: 1px dashed #e5e7eb !important;
    font-weight: 700;
    color: #111827;
  }

  body.page-template-page-course-php .qualifications-table td:not(:first-child)::before,
  body.page-template-page-course .qualifications-table td:not(:first-child)::before {
    font-weight: 700;
    color: #6b7280;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  /* -----------------------------------------------------
     Labels (supports 3 or 4 column tables)
     Typical:
       3 cols: Title | NQF | SAQA
       4 cols: Title | NQF | Credits | SAQA
     ----------------------------------------------------- */
  /* Column 2 is always NQF */
  body.page-template-page-course-php .qualifications-table td:nth-child(2)::before,
  body.page-template-page-course .qualifications-table td:nth-child(2)::before {
    content: "NQF Level";
  }

  /* Default: Column 3 is SAQA (3-col tables) */
  body.page-template-page-course-php .qualifications-table td:nth-child(3)::before,
  body.page-template-page-course .qualifications-table td:nth-child(3)::before {
    content: "SAQA ID";
  }

  /* If 4th cell exists, column 3 becomes Credits */
  body.page-template-page-course-php .qualifications-table tr td:nth-child(4)::before,
  body.page-template-page-course .qualifications-table tr td:nth-child(4)::before {
    content: "SAQA ID";
  }

  body.page-template-page-course-php .qualifications-table tr td:nth-child(3)::before,
  body.page-template-page-course .qualifications-table tr td:nth-child(3)::before {
    content: "Credits";
  }

  /* But if there is NO 4th cell, force column 3 back to SAQA */
  body.page-template-page-course-php .qualifications-table tr td:nth-child(3):last-child::before,
  body.page-template-page-course .qualifications-table tr td:nth-child(3):last-child::before {
    content: "SAQA ID";
  }
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

/* Main Contact Grid */
.contact-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-12);
    margin-top: var(--space-8);
}

/* Contact Form Container */
.contact-form-container {
    background: var(--bg-primary);
    padding: var(--space-10);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-header h2 {
    font-family: var(--font-display);
    font-size: var(--h3);
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.form-header p {
    color: var(--text-muted);
    margin-bottom: var(--space-8);
}

/* Contact Form 7 Styling */
.contact-form .wpcf7-form {
    display: grid;
    gap: var(--space-5);
}

.contact-form .wpcf7-form p {
    margin: 0;
}

.contact-form label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-family: var(--font-body);
    transition: all var(--transition-base);
    background: var(--bg-primary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(225, 29, 46, 0.1);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input[type="submit"] {
    background: var(--primary);
    color: var(--text-inverse);
    border: 2px solid var(--primary);
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--text-base);
    cursor: pointer;
    transition: all var(--transition-base);
    width: 100%;
}

.contact-form input[type="submit"]:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Contact Info Container */
.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* Quick Contact Cards */
.quick-contact-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.quick-contact-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-primary);
    transition: all var(--transition-base);
}

.quick-contact-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.qc-icon {
    width: 48px;
    height: 48px;
    background: rgba(225, 29, 46, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    font-size: var(--text-xl);
}

.qc-content h4 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.qc-content a,
.qc-content p {
    display: block;
    color: var(--text-muted);
    font-size: var(--text-sm);
    text-decoration: none;
    margin-bottom: 4px;
    transition: color var(--transition-base);
}

.qc-content a:hover {
    color: var(--primary);
}

.qc-content p {
    margin: 0;
    line-height: 1.6;
}

/* Info Cards */
.info-card {
    background: var(--bg-primary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-primary);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--border-primary);
}

.info-card-header i {
    color: var(--primary);
    font-size: var(--text-xl);
}

.info-card-header h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin: 0;
    color: var(--text-primary);
}

/* Office Hours List */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-secondary);
}

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

.info-list .day {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.info-list .time {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.info-list .closed {
    color: var(--primary);
    font-weight: 600;
}

/* Social Links Grid */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: var(--text-sm);
    font-weight: 600;
}

.social-link:hover {
    background: var(--primary);
    color: var(--text-inverse);
    transform: translateY(-2px);
}

.social-link i {
    font-size: var(--text-base);
}

/* Map Container */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: var(--space-8);
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.faq-item {
    background: var(--bg-primary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-primary);
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-item h4 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.faq-item h4 i {
    color: var(--primary);
    font-size: var(--text-base);
}

.faq-item p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: var(--space-6);
    }

    .social-links-grid {
        grid-template-columns: 1fr;
    }

    .faq-item h4 {
        font-size: var(--text-base);
    }
}

@media (max-width: 480px) {
    .contact-main-grid {
        gap: var(--space-6);
    }

    .quick-contact-card {
        padding: var(--space-4);
    }

    .qc-icon {
        width: 40px;
        height: 40px;
        font-size: var(--text-lg);
    }

    .map-container iframe {
        height: 350px;
    }
}

/*===============================
Maps additons
================================*/
.map-link {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-base, 0.2s ease);
    display: inline-block;
}

.map-link:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.card-dark .map-link,
.bg-primary .map-link {
    color: var(--text-inverse, #fff);
}

.card-dark .map-link:hover,
.bg-primary .map-link:hover {
    color: var(--accent);
}

.map-link span {
    display: inline-block;
    line-height: 1.6;
}

/* End of Stylesheet */