/*
Theme Name: RTO Grow Theme
Theme URI: https://rtogrow.com.au
Author: Ehtisham Saeed, Mini Cainer
Author URI: https://ehtishamsaeed.com
Description: Premium ASQA-compliant WordPress theme designed specifically for Australian Registered Training Organisations (RTOs). Features modern, responsive design optimized for student engagement and conversion. Built with full compliance for ASQA Standards for RTOs 2015 (updated 2024) including proper course information display, fees transparency, refund policies, and student support requirements. Fully compatible with Elementor, Cloud Assess, Axcelerate, aXcelerate, JobReady, and all major Student Management Systems. Optimized for speed, SEO, and mobile-first experience.
Version: 1.9.68
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rto-grow

Tags: education, rto, asqa, training, courses, vocational-education, vet, registered-training-organisation, australia, custom-colors, custom-logo, custom-menu, featured-images, theme-options, elementor, responsive, mobile-friendly

Authors:
- Ehtisham Saeed (https://ehtishamsaeed.com) - Lead Developer
- Mini Cainer (https://everyshot.com.au) - Co-Developer

Built for Australian RTOs by RTO marketing specialists.
© 2025 RTO Grow. All rights reserved.
*/

/* ===================================
   DESIGN SYSTEM
   =================================== */
:root {
    /* Primary - Deep Ocean Blue */
    --primary-900: #0a1628;
    --primary-800: #0f2744;
    --primary-700: #153d6b;
    --primary-600: #1a5490;
    --primary-500: #2563eb;
    --primary-400: #3b82f6;
    --primary-300: #60a5fa;
    --primary-200: #93c5fd;
    --primary-100: #dbeafe;
    --primary-50: #eff6ff;
    
    /* Accent - Vibrant Coral/Orange */
    --accent-600: #dc2626;
    --accent-500: #f97316;
    --accent-400: #fb923c;
    --accent-300: #fdba74;
    --accent-100: #ffedd5;
    
    /* Success - Emerald */
    --success-600: #059669;
    --success-500: #10b981;
    --success-400: #34d399;
    --success-100: #d1fae5;
    
    /* Gold/Premium */
    --gold-500: #f59e0b;
    --gold-400: #fbbf24;
    
    /* Neutrals */
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.3);
    --shadow-glow-accent: 0 0 40px rgba(249, 115, 22, 0.3);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================================
   BASE STYLES
   =================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin: 0 0 1rem;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

a { color: var(--primary-500); text-decoration: none; transition: all var(--transition-fast); }
a:hover { color: var(--primary-600); }

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

/* Global Mobile Overflow Prevention */
html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; box-sizing: border-box; }

/* ===================================
   HEADER - PREMIUM DESIGN
   =================================== */
.site-header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

/* Remove body padding since header is no longer fixed */
body {
    padding-top: 0;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

/* Top Bar */
.header-top-bar {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
    color: var(--white);
    padding: 0.625rem 0;
    font-size: 0.875rem;
}

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

.rto-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rto-tagline {
    color: var(--gray-300);
    font-size: 0.8125rem;
}

.rto-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--success-500), var(--success-600));
    color: var(--white);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.rto-badge::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 10px;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.top-bar-contact a {
    color: var(--gray-300);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.top-bar-contact a:hover {
    color: var(--white);
    transform: translateY(-1px);
}

.top-bar-contact svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

/* Main Header */
.header-main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    overflow: visible;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    overflow: visible;
    max-width: 1600px;
}

.site-logo img { max-height: 50px; }

.site-logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   NAVIGATION - DROPDOWN MENUS
   ======================================== */

/* Top-level menu - horizontal flex layout */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation > ul,
.main-navigation > div > ul {
    display: flex;
    gap: 0.25rem;
}

.main-navigation li {
    list-style: none;
    position: relative;
}

.main-navigation > ul > li,
.main-navigation > div > ul > li {
    display: block;
}

.main-navigation a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--gray-700);
    font-weight: 500;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    position: relative;
}

/* Underline effect - only on top-level items */
.main-navigation > ul > li > a::after,
.main-navigation > div > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--primary-600);
}

.main-navigation > ul > li > a:hover::after,
.main-navigation > div > ul > li > a:hover::after,
.main-navigation > ul > .current-menu-item > a::after,
.main-navigation > div > ul > .current-menu-item > a::after {
    width: 20px;
}

/* ----------------------------------------
   DROPDOWN SUBMENUS - Hidden by default
   ---------------------------------------- */
.main-navigation li > ul,
.main-navigation li > .sub-menu,
.main-navigation .menu-item-has-children > ul,
.main-navigation .menu-item-has-children > .sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #ffffff !important;
    min-width: 220px !important;
    padding: 0.5rem 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e5e7eb !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: all 0.2s ease !important;
    z-index: 99999 !important;
    display: block !important;
    flex-direction: column !important;
    list-style: none !important;
    margin: 0 !important;
}

/* Show dropdown on hover */
.main-navigation li:hover > ul,
.main-navigation li:hover > .sub-menu,
.main-navigation .menu-item-has-children:hover > ul,
.main-navigation .menu-item-has-children:hover > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Dropdown items - stack vertically */
.main-navigation li > ul > li,
.main-navigation .sub-menu > li,
.main-navigation ul.sub-menu li,
.main-navigation .sub-menu li {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    overflow: visible !important;
    max-height: none !important;
}

/* Dropdown links styling */
.main-navigation li > ul a,
.main-navigation .sub-menu a {
    display: block !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.9375rem !important;
    color: #374151 !important;
    white-space: nowrap !important;
    border-radius: 0 !important;
    font-weight: 500 !important;
}

.main-navigation li > ul a:hover,
.main-navigation .sub-menu a:hover {
    background: #f3f4f6 !important;
    color: #2563eb !important;
}

/* Remove underline from dropdown items */
.main-navigation li > ul a::after,
.main-navigation .sub-menu a::after {
    display: none !important;
    content: none !important;
}

/* ----------------------------------------
   3RD LEVEL SUBMENUS
   ---------------------------------------- */
.main-navigation li > ul ul,
.main-navigation .sub-menu .sub-menu {
    top: 0 !important;
    left: 100% !important;
    margin-left: 2px !important;
    margin-top: -0.5rem !important;
}

/* Hide 3rd level by default */
.main-navigation li:hover > ul ul,
.main-navigation li:hover > .sub-menu .sub-menu {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Show 3rd level on hover */
.main-navigation li > ul li:hover > ul,
.main-navigation .sub-menu li:hover > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ----------------------------------------
   DROPDOWN ARROW INDICATORS
   ---------------------------------------- */
.main-navigation .menu-item-has-children > a {
    padding-right: 2rem !important;
}

.main-navigation > ul > .menu-item-has-children > a::before,
.main-navigation > div > ul > .menu-item-has-children > a::before {
    content: '' !important;
    position: absolute !important;
    right: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border: 5px solid transparent !important;
    border-top-color: currentColor !important;
    margin-top: 3px !important;
    width: 0 !important;
    height: 0 !important;
}

/* Arrow for nested dropdown items */
.main-navigation .sub-menu .menu-item-has-children > a::before {
    content: '' !important;
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border: 5px solid transparent !important;
    border-left-color: currentColor !important;
    margin-top: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

/* Mobile Navigation - Hidden by default */
.mobile-navigation {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
}

.mobile-navigation.active {
    display: block !important;
}

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

.mobile-navigation li {
    border-bottom: 1px solid var(--gray-100);
    list-style: none;
}

.mobile-navigation a {
    display: block;
    padding: 1rem 0;
    color: var(--gray-700);
    font-size: 1.125rem;
    font-weight: 500;
}

.mobile-navigation a:hover {
    color: var(--primary-500);
}

/* Mobile Submenus */
.mobile-navigation .sub-menu {
    display: none;
    padding-left: 1.25rem;
    background: var(--gray-50);
    margin: 0 -2rem;
    padding: 0.5rem 2rem 0.5rem 3rem;
}

.mobile-navigation .sub-menu a {
    font-size: 1rem;
    padding: 0.75rem 0;
}

.mobile-navigation .menu-item-has-children.active > .sub-menu {
    display: block;
}

.mobile-navigation .menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-navigation .menu-item-has-children > a::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.2s;
}

.mobile-navigation .menu-item-has-children.active > a::after {
    content: '−';
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    position: relative;
    transition: all var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gray-700);
    transition: all var(--transition-fast);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* ===================================
   BUTTONS - PREMIUM STYLES
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-600);
    border-color: var(--primary-200);
}

.btn-secondary:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary-700);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: var(--primary-700);
}

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

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-700);
    border-color: var(--white);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
}

/* ===================================
   HERO SECTION - WOW FACTOR
   =================================== */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 40%, var(--primary-500) 100%);
    color: var(--white);
    padding: 4rem 0;
    overflow: hidden;
    z-index: 1;
}

/* Hero with Background Image */
.hero-section.has-bg-image {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

/* Hide animated elements when background image is set */
.hero-section.has-bg-image::before,
.hero-section.has-bg-image::after {
    display: none;
}

.hero-section.has-bg-image .hero-grid,
.hero-section.has-bg-image .hero-shapes {
    display: none;
}

/* Animated Background Elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

/* Geometric Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: pulse-shape 4s ease-in-out infinite;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 25%;
    animation-delay: 1s;
}

.hero-shape-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 5%;
    animation-delay: 2s;
}

@keyframes pulse-shape {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Grid Pattern Overlay */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--success-500);
    border-radius: 50%;
    font-size: 12px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 800;
    font-style: normal;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-title-highlight {
    position: relative;
    display: inline-block;
}

.hero-title-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
    opacity: 0.4;
    z-index: -1;
    transform: skewX(-5deg);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    justify-content: center;
}

.hero-search {
    margin: 0 auto 2rem;
    animation: fadeInUp 0.8s ease-out 0.25s both;
}

.hero-search-tags {
    justify-content: center;
}

.hero-search-form {
    display: flex;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-width: 650px;
}

@media (max-width: 640px) {
    .hero-search-form {
        flex-direction: column;
        border-radius: var(--radius-lg);
    }
}

.hero-search-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.hero-search-input-wrap svg {
    position: absolute;
    left: 1.25rem;
    color: var(--gray-400);
    pointer-events: none;
}

.hero-search-input-wrap input {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    border: none;
    font-size: 1rem;
    color: var(--gray-900);
    background: transparent;
}

.hero-search-input-wrap input::placeholder {
    color: var(--gray-400);
}

.hero-search-input-wrap input:focus {
    outline: none;
}

.hero-search-btn {
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: var(--white);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .hero-search-btn {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
}

.hero-search-btn:hover {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
}

/* Search Results Dropdown */
.hero-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.hero-search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
    color: var(--gray-700);
    transition: background var(--transition-fast);
}

.search-result-item:hover {
    background: var(--primary-50);
}

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

.search-result-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-result-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary-600);
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.search-result-code {
    background: var(--gray-100);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
}

.search-no-results {
    padding: 1.5rem;
    text-align: center;
    color: var(--gray-500);
}

/* Popular Search Tags */
.hero-search-tags {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.hero-search-tags span {
    font-size: 0.875rem;
    opacity: 0.7;
}

.search-tag,
.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-tag:hover,
.hero-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--white), var(--gray-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.875rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hero Image/Illustration */
.hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 600px;
    z-index: 5;
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% - 20px)); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   STATS SECTION - MODERN CARDS
   =================================== */
.stats-section {
    position: relative;
    background: var(--gray-50);
    padding: 0;
    margin-top: -5rem;
    z-index: 20;
}

.stats-container {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    padding: 3rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--gray-200);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-50));
    border-radius: var(--radius-xl);
    color: var(--primary-500);
    font-size: 1.5rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* ===================================
   SECTION STYLES
   =================================== */
.section {
    padding: 6rem 0;
}

.section-dark {
    background: var(--gray-900);
    color: var(--white);
}

.section-gray {
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* Featured Courses - Logo + Title side by side */
.courses-section .section-header {
    max-width: 950px;
}

.fc-title-row {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: nowrap !important;
}

.fc-title-row img {
    height: auto;
    flex-shrink: 0;
    max-width: 200px;
}

.fc-title-row h2 {
    margin: 0 !important;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .fc-title-row {
        flex-direction: column !important;
        gap: 1rem;
    }
    .fc-title-row h2 {
        white-space: normal;
    }
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-100);
    color: var(--primary-600);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: var(--font-display);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin: 0;
}

/* ===================================
   COURSE CARDS - PREMIUM DESIGN
   =================================== */
.courses-section {
    padding: 5rem 0;
    background: var(--white);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.course-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-slow);
}

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

.course-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%);
    opacity: 0;
    transition: all var(--transition-base);
}

.course-card:hover .course-card-overlay {
    opacity: 1;
}

.course-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: var(--white);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

.course-card-featured {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    color: var(--gray-900);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.5);
}

.course-card-content {
    padding: 1.75rem;
}

.course-card-code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-600);
    background: var(--primary-50);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    display: inline-block;
    margin-bottom: 0.75rem;
    border: 1px solid var(--primary-100);
}

.course-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.course-card-title a {
    color: var(--gray-900);
    transition: color var(--transition-fast);
}

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

.course-card-meta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.course-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.course-card-meta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    font-size: 0.875rem;
}

.course-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-100);
}

.course-card-price {
    font-family: var(--font-heading);
}

.course-card-price .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.course-card-price .price-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 400;
}

/* ===================================
   FEATURES SECTION - ICON CARDS
   =================================== */
.features-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-2xl);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-radius: var(--radius-xl);
    position: relative;
}

.feature-icon svg {
    width: 36px;
    height: 36px;
    color: var(--primary-500);
}

.feature-icon-emoji {
    font-size: 2.25rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.7;
}

/* Feature Card Color Variants */
.feature-card.accent .feature-icon {
    background: linear-gradient(135deg, var(--accent-100), rgba(249, 115, 22, 0.2));
}

.feature-card.accent .feature-icon svg {
    color: var(--accent-500);
}

.feature-card.accent::before {
    background: linear-gradient(90deg, var(--accent-400), var(--accent-500));
}

.feature-card.success .feature-icon {
    background: linear-gradient(135deg, var(--success-100), rgba(16, 185, 129, 0.2));
}

.feature-card.success .feature-icon svg {
    color: var(--success-500);
}

.feature-card.success::before {
    background: linear-gradient(90deg, var(--success-400), var(--success-500));
}

.feature-card.gold .feature-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
}

.feature-card.gold .feature-icon svg {
    color: var(--gold-500);
}

.feature-card.gold::before {
    background: linear-gradient(90deg, var(--gold-400), var(--gold-500));
}

/* ===================================
   INDUSTRIES SECTION
   =================================== */
.industries-section {
    padding: 4rem 0;
    background: var(--white);
}

.industries-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
}

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

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

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

.industry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all var(--transition-base);
}

.industry-card:hover {
    border-color: var(--primary-400);
    background: var(--primary-50);
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

/* Industry Card with Image - Image above, text below with spacing */
.industry-card.has-image {
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--gray-200);
    background: white;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.industry-card.has-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-300);
}

.industry-card .industry-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.75rem !important;
}

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

.industry-card.has-image:hover .industry-image img {
    transform: scale(1.08);
}

/* Hide overlay for this layout */
.industry-card .industry-overlay {
    display: none;
}

.industry-card .industry-content {
    width: 100%;
    text-align: center;
}

.industry-card.has-image .industry-content h3,
.industry-card.has-image h3 {
    color: var(--gray-900) !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    margin: 0 0 1rem 0 !important;
    line-height: 1.3 !important;
}

.industry-card.has-image .industry-count {
    color: var(--gray-500) !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    display: block !important;
    margin-top: 0.25rem !important;
}

.industry-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-50));
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
    color: var(--primary-500);
}

.industry-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem;
}

.industry-count {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    position: relative;
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 100%);
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.cta-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.cta-shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.cta-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -100px;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 100%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -25%;
    width: 100%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(249, 115, 22, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   PAGE CONTENT
   =================================== */
.page-content {
    padding: 3rem 0 5rem;
    min-height: 50vh;
}

.page-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 2rem;
}

.page-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
}

.footer-main {
    padding: 4rem 0 3rem;
}

.footer-grid {
    display: grid !important;
    grid-template-columns: 1.5fr repeat(3, 1fr) !important;
    gap: 3rem !important;
}

/* Footer About Column */
.footer-about {
    padding-right: 2rem;
}

.footer-about p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.footer-rto {
    display: inline-block;
    background: var(--success-500);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: var(--radius-lg);
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-500);
    color: var(--white);
    transform: translateY(-3px);
}

/* Footer Widget Columns */
.footer-widget h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-500);
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget li {
    margin-bottom: 0.75rem;
}

.footer-widget a {
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.footer-widget a:hover {
    color: var(--white);
    padding-left: 5px;
}

/* Footer Contact List */
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact svg {
    flex-shrink: 0;
    color: var(--gray-500);
}

/* Footer Bottom - Simple */
.footer-bottom {
    border-top: 1px solid var(--footer-border, var(--gray-800));
    padding: 1.5rem 0;
}

.footer-bottom-content {
    font-size: 0.875rem;
    text-align: center;
}

.footer-bottom-content a {
    text-decoration: underline;
}

/* Footer Logo Styles */
.footer-logo {
    margin-bottom: 1rem;
}

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

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

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

/* Footer Address */
.footer-address span {
    line-height: 1.5;
}

/* Footer Custom Content */
.footer-custom-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

/* Footer Copyright */
.footer-copyright {
    background: rgba(0,0,0,0.2);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .footer-about {
        padding-right: 0;
    }
}

/* ===================================
   SINGLE COURSE PAGE
   =================================== */
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: var(--gray-400);
}

.footer-contact-item a:hover {
    color: var(--white);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

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

.footer-disclaimer {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: var(--white);
}

/* Footer Copyright */
.footer-copyright {
    background: var(--gray-800);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.footer-about {
    padding-right: 2rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.footer-about p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--gray-800);
    border-radius: var(--radius-lg);
    color: var(--gray-400);
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-500);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-widget h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-500);
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget li {
    margin-bottom: 0.75rem;
}

.footer-widget a {
    color: var(--gray-400);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-widget a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-compliance {
    background: var(--gray-800);
    padding: 1.25rem 0;
    font-size: 0.875rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: 1.5rem 0;
}

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

.footer-bottom a {
    color: var(--primary-400);
}

.footer-bottom a:hover {
    color: var(--primary-300);
}

/* ===================================
   NRT BADGE
   =================================== */
.nrt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--success-100), rgba(16, 185, 129, 0.2));
    color: var(--success-600);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--success-200);
}

.nrt-badge::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--success-500);
    color: var(--white);
    border-radius: 50%;
    font-size: 10px;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1600px) {
    .hero-image {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item:nth-child(2)::after {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-navigation,
    .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .header-top-bar .container {
        justify-content: center;
    }
    
    .top-bar-contact {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        padding: 10rem 0 6rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .hero-stat {
        text-align: center;
    }
    
    .stats-container {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item::after {
        display: none;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .courses-section,
    .features-section {
        padding: 5rem 0;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   INFO CARDS SECTION (ASQA Compliance)
   =================================== */
.compliance-section {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

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

.info-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    color: var(--primary-500);
    margin-bottom: 1rem;
}

.info-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.info-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.info-card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-500);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.info-card-link:hover {
    color: var(--primary-600);
    gap: 0.5rem;
}

/* ===================================
   FOOTER ENHANCEMENTS
   =================================== */
.footer-widget-note {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-contact-list li {
    margin-bottom: 1rem;
}

.footer-contact-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact-list svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.footer-bottom-links span {
    opacity: 0.5;
}

/* ===================================
   BUTTON FIXES - Better Contrast
   =================================== */
.btn-accent {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: var(--white) !important;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
}

.btn-accent svg {
    color: var(--white);
}

/* Outline white button - better visibility */
.btn-outline-white {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-700) !important;
    border-color: var(--white);
}

/* ===================================
   RESPONSIVE FIXES
   =================================== */
@media (max-width: 1024px) {
    .info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===================================
   SINGLE COURSE PAGE
   =================================== */
.single-course-header {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
    color: var(--white);
    padding: 10rem 0 4rem;
}

.single-course-header h1 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 1.5rem;
}

.course-code-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-200);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.course-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.course-info-item {
    display: flex;
    align-items:center;
    gap: 0.5rem;
    font-size: 1rem;
    opacity: 0.9;
}

.course-info-item svg {
    opacity: 0.8;
}

.single-course-content {
    padding: 4rem 0;
    background: var(--gray-50);
}

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

.course-main {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.course-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.course-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.course-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.course-section p {
    color: var(--gray-600);
    line-height: 1.8;
}

.course-section .disclaimer {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.requirements-list,
.outcomes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li,
.outcomes-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.requirements-list li:last-child,
.outcomes-list li:last-child {
    border-bottom: none;
}

.requirements-list li svg,
.outcomes-list li svg {
    flex-shrink: 0;
    color: var(--success-500);
    margin-top: 2px;
}

.units-table-wrapper {
    overflow-x: auto;
}

.units-table {
    width: 100%;
    border-collapse: collapse;
}

.units-table th,
.units-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.units-table th {
    background: var(--gray-50);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.units-table td code {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--primary-600);
    background: var(--primary-50);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

/* Course Sidebar */
.course-sidebar {
    position: sticky;
    top: 8rem;
}

.course-sidebar-box {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
}

.course-sidebar-price {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.course-sidebar-price .price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.course-sidebar-price .price-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.course-sidebar-content {
    padding: 1.5rem;
}

.course-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.course-sidebar-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9375rem;
}

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

.course-sidebar-list li span {
    color: var(--gray-500);
}

.course-sidebar-list li strong {
    color: var(--gray-900);
}

.course-sidebar-list .funding-available {
    color: var(--success-500) !important;
}

/* Enquiry Form */
.course-enquiry-form {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.course-enquiry-form h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.course-enquiry-form .form-intro {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.course-enquiry-form .form-group {
    margin-bottom: 1rem;
}

.course-enquiry-form input,
.course-enquiry-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.course-enquiry-form input:focus,
.course-enquiry-form textarea:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.course-enquiry-form textarea {
    resize: vertical;
}

/* Responsive */
@media (max-width: 1024px) {
    .course-layout {
        grid-template-columns: 1fr;
    }
    
    .course-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .single-course-header {
        padding: 8rem 0 3rem;
    }
    
    .single-course-content {
        padding: 2rem 0;
    }
    
    .course-main {
        padding: 1.5rem;
    }
    
    .course-info-bar {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ===================================
   COURSES ARCHIVE PAGE
   =================================== */
.courses-archive-header {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
    color: var(--white);
    padding: 10rem 0 4rem;
    text-align: center;
}

.courses-archive-header h1 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin: 0 0 1rem;
}

.courses-archive-header p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.courses-archive-content {
    padding: 4rem 0;
    background: var(--gray-50);
}

/* Filters */
.courses-filters {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: end;
}

.filter-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.filter-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-submit .btn {
    width: 100%;
}

/* No Courses Found */
.no-courses-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    background: var(--white);
    border-radius: var(--radius-2xl);
}

.no-courses-found svg {
    margin-bottom: 1rem;
    opacity: 0.4;
    color: var(--gray-400);
}

.no-courses-found h3 {
    margin-bottom: 0.5rem;
}

.no-courses-found p {
    color: var(--gray-500);
    margin: 0;
}

/* Pagination */
.courses-pagination {
    margin-top: 3rem;
    text-align: center;
}

.courses-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.courses-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.courses-pagination .page-numbers:hover {
    background: var(--gray-50);
    border-color: var(--primary-300);
}

.courses-pagination .page-numbers.current {
    background: var(--primary-500);
    color: var(--white);
    border-color: var(--primary-500);
}

@media (max-width: 768px) {
    .courses-archive-header {
        padding: 8rem 0 3rem;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   SINGLE COURSE PAGE - PREMIUM DESIGN
   Professional RTO Course Layout
   =================================== */

/* Course Hero */
.course-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
    color: var(--white);
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.course-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.course-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.course-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.95) 0%, rgba(37, 99, 235, 0.85) 100%);
}

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

/* Breadcrumb */
.course-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.course-breadcrumb a {
    color: var(--white);
    text-decoration: none;
}

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

.course-breadcrumb .separator {
    opacity: 0.5;
}

/* Course Title Area */
.course-national-code {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.course-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1.5rem;
    color: var(--white);
}

.course-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.course-meta-bar .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    opacity: 0.95;
}

.nrt-badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Main Content Area */
.course-content-area {
    padding: 3rem 0 5rem;
    background: var(--gray-50);
}

.course-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2.5rem;
    align-items: start;
}

.course-main-content {
    min-width: 0;
}

/* Quick Stats */
.course-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.stat-card .stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-50);
    color: var(--primary-500);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.stat-card .stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card .stat-value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-card.funding-available {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #a7f3d0;
}

.stat-card.funding-available .stat-icon {
    background: #10b981;
    color: white;
}

.stat-card.funding-available .stat-value {
    color: #047857;
}

/* Course Sections */
.course-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-2xl);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.course-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.course-section h2 svg {
    color: var(--primary-500);
}

.course-description {
    color: var(--gray-700);
    line-height: 1.8;
}

.section-disclaimer {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-400);
}

.section-intro {
    color: var(--gray-600);
    margin-bottom: 1.25rem;
}

/* Career Outcomes Grid */
.career-outcomes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.career-outcome-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.career-outcome-item:hover {
    background: var(--primary-50);
}

.career-outcome-item svg {
    flex-shrink: 0;
    color: var(--success-500);
}

.career-outcome-item span {
    font-size: 0.9375rem;
    color: var(--gray-700);
}

/* Requirements List */
.course-section .requirements-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.course-section .requirements-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.course-section .requirements-list li:last-child {
    border-bottom: none;
}

.course-section .requirements-list li svg {
    flex-shrink: 0;
    color: var(--primary-500);
    margin-top: 2px;
}

/* LLN Notice */
.lln-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fef3c7;
    border-radius: var(--radius-lg);
    border: 1px solid #fcd34d;
}

.lln-notice svg {
    flex-shrink: 0;
    color: #d97706;
    margin-top: 2px;
}

.lln-notice p {
    margin: 0;
    font-size: 0.875rem;
    color: #92400e;
}

/* RPL Section */
.rpl-section {
    background: linear-gradient(135deg, var(--primary-50), #eff6ff);
    border-color: var(--primary-200);
}

.rpl-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.rpl-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--primary-500);
    color: white;
    border-radius: var(--radius-xl);
    flex-shrink: 0;
}

.rpl-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--gray-900);
}

.rpl-content p {
    color: var(--gray-600);
    margin: 0 0 1rem;
    line-height: 1.6;
}

.rpl-link {
    font-weight: 600;
    color: var(--primary-600);
    text-decoration: none;
}

.rpl-link:hover {
    text-decoration: underline;
}

/* Sidebar */
.course-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 6rem;
}

/* Price Card */
.price-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.price-card-image {
    height: 180px;
    overflow: hidden;
}

.price-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-header {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.price-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount .currency {
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.9;
}

.price-amount .amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.price-amount .period {
    font-size: 1rem;
    opacity: 0.8;
    margin-left: 0.25rem;
}

.price-amount .contact-price {
    font-size: 1.25rem;
    font-weight: 600;
}

.price-note {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    opacity: 0.85;
}

.price-details {
    padding: 1.25rem;
}

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

.detail-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9375rem;
}

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

.detail-label {
    color: var(--gray-500);
}

.detail-value {
    color: var(--gray-900);
}

.funding-row .funding-badge {
    color: var(--success-600);
    font-weight: 600;
}

.price-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1.25rem 1.25rem;
}

.btn-enquire {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
    color: white !important;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.btn-enquire:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
}

.btn-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    background: var(--white);
    color: var(--primary-600) !important;
    border: 2px solid var(--primary-200);
    border-radius: var(--radius-xl);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-call:hover {
    background: var(--primary-50);
    border-color: var(--primary-400);
}

/* Enquiry Card */
.enquiry-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

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

.enquiry-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--gray-900);
}

.enquiry-header p {
    margin: 0;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.enquiry-form .form-group {
    margin-bottom: 1rem;
}

.enquiry-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

.enquiry-form label .required {
    color: #ef4444;
}

.enquiry-form label .optional {
    color: var(--gray-400);
    font-weight: 400;
}

.enquiry-form input,
.enquiry-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: all 0.2s;
    background: var(--white);
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.privacy-notice {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 1rem 0 0;
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Contact Card */
.contact-card {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    border: 1px solid var(--gray-200);
}

.contact-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--gray-900);
}

.contact-card > p {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: var(--white);
    color: var(--gray-700) !important;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
}

.contact-method:hover {
    background: var(--primary-50);
    color: var(--primary-600) !important;
}

.contact-method svg {
    color: var(--primary-500);
}

/* Related Courses */
.related-courses {
    padding: 4rem 0;
    background: var(--white);
}

.related-courses h2 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 2rem;
}

.related-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-course-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    text-decoration: none;
    transition: all 0.3s;
}

.related-course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.related-course-image {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-50));
}

.related-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-course-content {
    padding: 1.25rem;
}

.related-code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary-600);
    background: var(--primary-50);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.related-course-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.75rem 0 0.5rem;
    color: var(--gray-900);
    line-height: 1.3;
}

.related-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* Single Course Responsive */
@media (max-width: 1024px) {
    .course-layout {
        grid-template-columns: 1fr;
    }
    
    .course-sidebar {
        order: -1;
    }
    
    .sidebar-sticky {
        position: static;
    }
    
    .price-card-image {
        display: none;
    }
    
    .related-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .course-hero {
        padding: 7rem 0 3rem;
    }
    
    .course-title {
        font-size: 1.5rem;
    }
    
    .course-meta-bar {
        gap: 1rem;
    }
    
    .course-quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .course-section {
        padding: 1.5rem;
    }
    
    .career-outcomes-grid {
        grid-template-columns: 1fr;
    }
    
    .rpl-card {
        flex-direction: column;
        text-align: center;
    }
    
    .related-courses-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .course-quick-stats {
        grid-template-columns: 1fr;
    }
    
    .price-amount .amount {
        font-size: 2.5rem;
    }
}

/* ===================================
   COURSE ARCHIVE PAGE
   =================================== */

/* Archive Hero */
.archive-hero {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-600) 100%);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
}

.archive-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin: 0 0 1rem;
}

.archive-hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.archive-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

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

.archive-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.archive-stat .stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* Filters Section */
.archive-filters-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-bar-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 0 1.25rem;
    transition: all 0.2s;
}

.search-input-group:focus-within {
    border-color: var(--primary-400);
    background: white;
}

.search-input-group svg {
    color: var(--gray-400);
    flex-shrink: 0;
}

.search-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem 0;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    padding: 1rem 2rem;
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.search-btn:hover {
    background: var(--primary-600);
}

.filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.375rem;
}

.filter-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    background: white;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-400);
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-filter {
    padding: 0.75rem 1.5rem;
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-filter:hover {
    background: var(--primary-600);
}

.btn-clear {
    padding: 0.75rem 1.5rem;
    background: var(--gray-100);
    color: var(--gray-600);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-clear:hover {
    background: var(--gray-200);
}

/* Active Filters */
.active-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.active-filters-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-500);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--primary-50);
    color: var(--primary-700);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
}

.filter-tag a {
    color: var(--primary-500);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1;
}

.filter-tag a:hover {
    color: var(--primary-700);
}

.results-info {
    margin-top: 1rem;
}

.results-count {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Courses Archive Section */
.courses-archive-section {
    padding: 3rem 0 5rem;
    background: var(--gray-50);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Course Card */
.course-card {
    position: relative;
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.course-featured {
    border-color: var(--accent-300);
}

.featured-ribbon {
    position: absolute;
    top: 1rem;
    left: -2rem;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
    color: white;
    padding: 0.375rem 3rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
}

.course-card-image {
    display: block;
    position: relative;
    height: 180px;
    overflow: hidden;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.course-placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-50));
    color: var(--primary-300);
}

.course-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-nrt {
    background: #10b981;
    color: white;
}

/* NRT Logo Badge - Completely separate from text badge */
.badge-nrt-logo {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.badge-nrt-logo img {
    display: block;
    height: 24px;
    width: auto;
    object-fit: contain;
}

.badge-funding {
    background: #f59e0b;
    color: white;
}

.course-card-content {
    padding: 1.5rem;
}

.course-card-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.course-code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-600);
    background: var(--primary-50);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.course-level {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.course-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.75rem;
}

.course-card-title a {
    color: var(--gray-900);
    text-decoration: none;
}

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

.course-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.course-card-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.course-card-meta .meta-item svg {
    color: var(--gray-400);
}

.course-card-excerpt {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.course-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.course-price .price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
}

.course-price .price-contact {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    background: var(--primary-50);
    color: var(--primary-600);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-view:hover {
    background: var(--primary-100);
    color: var(--primary-700);
}

/* Pagination */
.courses-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.courses-pagination a,
.courses-pagination span {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 500;
}

.courses-pagination a {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.courses-pagination a:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-600);
}

.courses-pagination .current {
    background: var(--primary-500);
    color: white;
}

/* No Results */
.no-courses-found {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-icon {
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

.no-courses-found h2 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    color: var(--gray-700);
}

.no-courses-found p {
    color: var(--gray-500);
    margin: 0 0 1.5rem;
}

/* Archive CTA */
.archive-cta {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    padding: 4rem 0;
}

.archive-cta .cta-content {
    text-align: center;
    color: white;
}

.archive-cta h2 {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
}

.archive-cta p {
    opacity: 0.9;
    margin: 0 0 1.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cta-primary {
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-600);
    border-radius: var(--radius-xl);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-xl);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-cta-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* Archive Responsive */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Hero tablet adjustments */
    .hero-section {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-search {
        max-width: 100% !important;
    }
    
    .hero-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .archive-hero {
        padding: 7rem 0 3rem;
    }
    
    .archive-stats {
        gap: 2rem;
    }
    
    .archive-filters-section {
        position: relative;
        top: 0;
    }
    
    .search-bar-wrapper {
        flex-direction: column;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-actions {
        width: 100%;
    }
    
    .btn-filter, .btn-clear {
        flex: 1;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

/* No Courses Notice */
.no-courses-notice {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-2xl);
    border: 2px dashed var(--gray-200);
}

.no-courses-notice svg {
    margin: 0 auto 1rem;
    opacity: 0.5;
    color: var(--gray-400);
}

.no-courses-notice h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    color: var(--gray-700);
}

.no-courses-notice p {
    color: var(--gray-500);
    margin: 0 0 1.5rem;
}

.courses-view-all {
    text-align: center;
    margin-top: 3rem;
}

/* Course Placeholder Image */
.course-placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-50));
    color: var(--primary-300);
}

/* Course Card Image Link */
a.course-card-image {
    display: block;
    position: relative;
    height: 200px;
    overflow: hidden;
}

a.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

/* =====================================================
   ADDITIONAL MOBILE OPTIMIZATIONS
   ===================================================== */

/* Mobile-first base adjustments */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hero adjustments */
    .hero-section {
        padding: 5rem 0 2.5rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.25;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    
    .hero-search {
        margin: 1.5rem 0 !important;
        max-width: 100% !important;
    }
    
    .hero-search-form {
        flex-direction: column !important;
        border-radius: 12px !important;
    }
    
    .hero-search-input-wrap {
        width: 100% !important;
    }
    
    .hero-search-input-wrap input {
        padding: 1rem 1rem 1rem 3rem !important;
        font-size: 1rem !important;
    }
    
    .hero-search-input-wrap svg {
        left: 1rem !important;
        width: 20px !important;
        height: 20px !important;
    }
    
    .hero-search-btn {
        width: 100% !important;
        border-radius: 0 0 12px 12px !important;
        padding: 1rem !important;
        font-size: 1rem !important;
    }
    
    .hero-search-tags {
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem !important;
    }
    
    .hero-search-tags > span {
        width: 100%;
        text-align: center;
        margin-bottom: 0.25rem;
    }
    
    .hero-tag,
    .search-tag {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    /* Stats adjustments */
    .stats-bar {
        padding: 2rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    /* Section adjustments */
    .section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    /* Course cards */
    .course-card-content {
        padding: 1rem;
    }
    
    .course-card h3 {
        font-size: 1rem;
    }
    
    /* Footer adjustments */
    .footer-grid {
        gap: 2rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    /* Navigation mobile */
    .site-header {
        padding: 0.75rem 0;
    }
    
    .mobile-menu-toggle {
        padding: 0.5rem;
    }
}

/* Small tablet adjustments */
@media (max-width: 640px) {
    /* Industry grid */
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA section */
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn, button, a {
        min-height: 44px;
    }
    
    /* Remove hover effects that don't work on touch */
    .course-card:hover {
        transform: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .industry-card:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .course-card {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-shape {
        animation: none;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .hero-search,
    .cta-section,
    .enquiry-section,
    .filters-section {
        display: none;
    }
    
    .course-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* =====================================================
   ELEMENTOR COMPATIBILITY OVERRIDES
   ===================================================== */

/* Ensure theme styles don't conflict with Elementor */
.elementor-page .container {
    max-width: 100%;
    padding: 0;
}

.elementor-page .site-main {
    padding: 0;
}

/* Elementor section width fixes */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: var(--container-max-width, 1280px);
}

/* Elementor widget spacing */
.elementor-widget-wrap > .elementor-widget {
    margin-bottom: 20px;
}

/* Fix for Elementor header/footer builder */
.elementor-location-header .site-header,
.elementor-location-footer .site-footer {
    display: none;
}

/* =====================================================
   WOOCOMMERCE COMPATIBILITY
   ===================================================== */

/* Basic WooCommerce styling */
.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.woocommerce .product {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}

.woocommerce .product:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.woocommerce .button {
    background: var(--primary-500);
    color: white;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s;
}

.woocommerce .button:hover {
    background: var(--primary-600);
}

/* =====================================================
   BLOG ARCHIVE STYLES
   ===================================================== */

/* Blog Hero */
.blog-hero {
    position: relative;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
    overflow: hidden;
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.blog-hero-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.blog-hero-content .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.blog-hero h1 {
    color: white;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Blog Section */
.blog-section {
    background: var(--gray-50);
    padding: 4rem 0;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

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

/* Blog Card */
.blog-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.blog-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    display: block;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.blog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.blog-card:hover .blog-card-overlay {
    opacity: 1;
}

.blog-card-no-image {
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-50) 100%);
}

.blog-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--primary-300);
}

.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.blog-card-category {
    display: inline-block;
    background: var(--primary-100);
    color: var(--primary-600);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.blog-card-category:hover {
    background: var(--primary-500);
    color: white;
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--gray-500);
    font-size: 0.8125rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.blog-card-title a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.blog-card-excerpt {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.blog-card-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-card-author span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--primary-500);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.blog-card-link:hover {
    color: var(--primary-600);
    gap: 0.5rem;
}

/* Blog Pagination */
.blog-pagination {
    margin-top: 3rem;
}

.blog-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.blog-pagination a {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.blog-pagination a:hover {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
}

.blog-pagination .current {
    background: var(--primary-500);
    color: white;
}

.blog-pagination .prev,
.blog-pagination .next {
    gap: 0.5rem;
}

/* Blog Empty */
.blog-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.blog-empty svg {
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

.blog-empty h2 {
    font-size: 1.5rem;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.blog-empty p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* =====================================================
   SINGLE POST STYLES
   ===================================================== */

/* Post Hero */
.post-hero {
    position: relative;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
    overflow: hidden;
}

.post-hero-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.post-hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.post-categories {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.post-category {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.post-category:hover {
    background: rgba(255,255,255,0.25);
}

.post-title {
    color: white;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.post-excerpt {
    color: rgba(255,255,255,0.85);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}

.post-author-info {
    text-align: left;
}

.post-author-name {
    display: block;
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.8125rem;
}

.post-reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}

/* Featured Image */
.post-featured-image {
    margin-top: -3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.post-image-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.post-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content Layout */
.post-content-wrapper {
    padding: 2rem 0 4rem;
}

.post-layout {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Post Sidebar */
.post-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

@media (max-width: 768px) {
    .post-sidebar {
        position: static;
        order: -1;
    }
    
    .post-share {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .post-share-buttons {
        flex-direction: row !important;
    }
}

.post-share-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.post-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    color: var(--gray-600);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-facebook:hover { background: #1877f2; color: white; }
.share-twitter:hover { background: #000; color: white; }
.share-linkedin:hover { background: #0077b5; color: white; }
.share-email:hover { background: var(--primary-500); color: white; }

/* Post Content */
.post-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--gray-900);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.post-content h2 { font-size: 1.75rem; }
.post-content h3 { font-size: 1.375rem; }
.post-content h4 { font-size: 1.125rem; }

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

.post-content a {
    color: var(--primary-500);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

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

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

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--primary-500);
    background: var(--gray-50);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-style: italic;
    color: var(--gray-700);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.post-content pre,
.post-content code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.post-content pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content code {
    background: var(--gray-100);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    color: var(--accent-500);
}

.post-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Post Tags */
.post-tags {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.post-tags-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    white-space: nowrap;
}

.post-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tag {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.post-tag:hover {
    background: var(--primary-500);
    color: white;
}

/* Author Box */
.post-author-box {
    display: flex;
    gap: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    .post-author-box {
        flex-direction: column;
        text-align: center;
    }
}

.author-box-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
}

.author-box-info {
    flex: 1;
}

.author-box-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.author-box-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.author-box-bio {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-box-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--primary-500);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.author-box-link:hover {
    color: var(--primary-600);
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--gray-200);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    .post-navigation {
        grid-template-columns: 1fr;
    }
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.post-nav-link:hover {
    background: var(--gray-100);
}

.post-nav-next {
    text-align: right;
}

.post-nav-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-nav-next .post-nav-label {
    justify-content: flex-end;
}

.post-nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
}

.post-nav-empty {
    display: none;
}

/* Related Posts */
.related-posts {
    background: var(--gray-50);
}

.related-posts .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.related-posts .section-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.related-posts .section-header p {
    color: var(--gray-600);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* =====================================================
   DEFAULT PAGE STYLES
   ===================================================== */

/* Page Hero */
.page-hero {
    position: relative;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    color: white;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-excerpt {
    color: rgba(255,255,255,0.85);
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Page Content */
.page-content-section {
    padding: 4rem 0;
}

.page-featured-image {
    max-width: 900px;
    margin: 0 auto 3rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.page-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.page-content h2,
.page-content h3,
.page-content h4 {
    color: var(--gray-900);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.page-content h2 { font-size: 1.75rem; }
.page-content h3 { font-size: 1.375rem; }
.page-content h4 { font-size: 1.125rem; }

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

.page-content a {
    color: var(--primary-500);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

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

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

.page-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--primary-500);
    background: var(--gray-50);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-style: italic;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

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

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

.page-content th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-800);
}

.page-content tr:nth-child(even) {
    background: var(--gray-50);
}

/* Category / Archive Pages */
.archive .blog-hero h1::before {
    content: 'Category: ';
    font-weight: 400;
    opacity: 0.7;
}

.tag .blog-hero h1::before {
    content: 'Tag: ';
    font-weight: 400;
    opacity: 0.7;
}

.author .blog-hero h1::before {
    content: 'Author: ';
    font-weight: 400;
    opacity: 0.7;
}

.search .blog-hero h1::before {
    content: 'Search: ';
    font-weight: 400;
    opacity: 0.7;
}

/* =====================================================
   TESTIMONIALS SECTION
   ===================================================== */

.testimonials-section {
    background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

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

.testimonial-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

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

.testimonial-rating {
    display: flex;
    gap: 0.125rem;
    margin-bottom: 1rem;
    color: var(--gold-400);
}

.testimonial-content {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
}

.testimonial-content p {
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.testimonial-name {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 0.9375rem;
}

.testimonial-course {
    font-size: 0.8125rem;
    color: var(--primary-500);
    font-weight: 500;
}

.testimonial-employment {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* =====================================================
   FAQ SECTION
   ===================================================== */

.faq-section {
    background: white;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--gray-300);
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
    border-color: var(--primary-300);
    background: white;
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    transition: all var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary-600);
}

.faq-question span {
    flex: 1;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--gray-400);
    transition: transform var(--transition-base);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-500);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--gray-600);
}

.faq-answer-content p {
    margin: 0;
}

.faq-answer-content p + p {
    margin-top: 1rem;
}

.faq-answer-content ul,
.faq-answer-content ol {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.faq-answer-content li {
    margin-bottom: 0.25rem;
}

.faq-answer-content a {
    color: var(--primary-500);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq-answer-content a:hover {
    color: var(--primary-600);
}

/* =====================================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES v1.9.17
   Complete mobile-first responsive design
   ===================================================== */

/* ============================================
   BASE MOBILE FIXES
   ============================================ */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    width: 100%;
}

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

.container {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

/* ============================================
   HEADER & NAVIGATION RESPONSIVE
   ============================================ */
@media (max-width: 1199px) {
    .top-bar {
        padding: 0.5rem 0;
    }
    
    .top-bar-contact {
        gap: 1rem;
    }
    
    .top-bar-contact a {
        font-size: 0.8125rem;
    }
    
    .rto-badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.625rem;
    }
}

@media (max-width: 991px) {
    .top-bar .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .rto-info {
        justify-content: center;
    }
    
    .top-bar-contact {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .top-bar {
        display: none;
    }
    
    .header-main .container {
        padding: 0.75rem 1rem;
    }
    
    .site-logo img {
        max-height: 40px !important;
    }
}

/* ============================================
   HERO SECTIONS RESPONSIVE
   ============================================ */
@media (max-width: 1199px) {
    .hero-section {
        padding: 5rem 0 3rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-image {
        display: none;
    }
}

@media (max-width: 991px) {
    .hero-section {
        padding: 4rem 0 2.5rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 3rem 0 2rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.25;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-stat {
        text-align: center;
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 479px) {
    .hero-section {
        padding: 2.5rem 0 1.5rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-search-tags {
        display: none;
    }
}

/* ============================================
   SEARCH FORM RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .hero-search-form {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .hero-search-input-wrap {
        width: 100%;
    }
    
    .hero-search-input-wrap input {
        padding: 1rem 1rem 1rem 3rem;
        border-radius: 12px 12px 0 0;
    }
    
    .hero-search-btn {
        width: 100%;
        border-radius: 0 0 12px 12px;
        padding: 1rem;
    }
}

/* ============================================
   STATS SECTION RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .stats-section {
        margin-top: -3rem;
    }
    
    .stats-container {
        padding: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 575px) {
    .stats-section {
        margin-top: -2rem;
    }
    
    .stats-container {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item::after {
        display: none;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
        padding: 0.75rem 0;
    }
    
    .stat-icon {
        margin: 0;
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
}

/* ============================================
   COURSE CARDS / GRID RESPONSIVE
   ============================================ */
@media (max-width: 1199px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .courses-section {
        padding: 3rem 0;
    }
}

@media (max-width: 575px) {
    .courses-section {
        padding: 2rem 0;
    }
    
    .course-card {
        border-radius: 12px;
    }
    
    .course-card-image,
    a.course-card-image,
    .card-image {
        height: 160px;
    }
    
    .card-content,
    .course-card-content {
        padding: 1rem;
    }
    
    .card-title,
    .course-card-title {
        font-size: 1rem;
    }
    
    .card-meta,
    .course-card-meta {
        flex-direction: column;
        gap: 0.375rem;
    }
    
    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .card-footer .view-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   COURSE ARCHIVE PAGE RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .archive-hero {
        padding: 3rem 0 2rem;
    }
    
    .archive-hero h1 {
        font-size: 2rem;
    }
    
    .archive-stats {
        gap: 2rem;
    }
    
    .filters-section {
        padding: 1rem 0;
    }
    
    .filter-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .archive-hero {
        padding: 2.5rem 0 1.5rem;
    }
    
    .archive-hero h1 {
        font-size: 1.625rem;
    }
    
    .archive-hero p {
        font-size: 1rem;
    }
    
    .archive-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .archive-stat .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 575px) {
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .search-row {
        flex-direction: column;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .btn-apply,
    .btn-clear {
        width: 100%;
        text-align: center;
    }
    
    .results-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .courses-archive {
        padding: 2rem 0;
    }
}

/* ============================================
   SINGLE COURSE PAGE RESPONSIVE
   ============================================ */
@media (max-width: 1199px) {
    .course-layout {
        grid-template-columns: 1fr 360px;
        gap: 1.5rem;
    }
}

@media (max-width: 991px) {
    .course-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .course-sidebar {
        order: -1;
    }
    
    .sidebar-sticky {
        position: relative;
        top: 0;
    }
    
    .course-hero {
        padding: 5rem 0 2rem;
    }
    
    .course-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 767px) {
    .course-hero {
        padding: 4rem 0 1.5rem;
    }
    
    .course-title {
        font-size: 1.5rem;
    }
    
    .course-meta-bar {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .course-quick-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .course-section,
    .course-main {
        padding: 1.25rem;
    }
    
    .course-section h2,
    .course-section h3,
    .course-section-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 575px) {
    .course-hero {
        padding: 3.5rem 0 1.25rem;
    }
    
    .course-quick-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: row;
        gap: 0.75rem;
        text-align: left;
    }
    
    .stat-card .stat-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .career-outcomes-grid {
        grid-template-columns: 1fr;
    }
    
    .rpl-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
}

/* ============================================
   TEMPLATE 2 RESPONSIVE ENHANCEMENTS
   ============================================ */
@media (max-width: 1199px) {
    .t2-layout {
        grid-template-columns: 1fr 380px;
    }
}

@media (max-width: 991px) {
    .t2-layout {
        grid-template-columns: 1fr;
    }
    
    .t2-sidebar {
        order: -1;
    }
    
    .t2-sticky-card {
        position: relative;
        top: 0;
        border-radius: 0;
    }
    
    .t2-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .t2-hero {
        padding: 1.5rem 0 2rem;
    }
    
    .t2-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .t2-hero-image {
        max-width: 250px;
        margin: 0 auto 1rem;
        order: -1;
    }
    
    .t2-title {
        font-size: 1.5rem;
    }
    
    .t2-content {
        padding: 1.5rem;
    }
    
    .t2-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .t2-section-title {
        font-size: 1.125rem;
    }
    
    .t2-meta {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .t2-meta-tag {
        font-size: 0.75rem;
        padding: 0.375rem 0.625rem;
    }
    
    .t2-breadcrumb {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .t2-related-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .t2-related {
        padding: 2rem 0;
    }
    
    .t2-related-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 575px) {
    .t2-hero {
        padding: 1rem 0 1.5rem;
    }
    
    .t2-breadcrumb {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .t2-code {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .t2-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .t2-nrt {
        font-size: 0.6875rem;
        padding: 0.375rem 0.75rem;
    }
    
    .t2-content {
        padding: 1rem;
    }
    
    .t2-list li {
        padding: 0.5rem 0;
        font-size: 0.9375rem;
    }
    
    .t2-contact-card {
        padding: 1rem;
    }
    
    .t2-enquiry-section {
        padding: 1rem;
    }
    
    .t2-form input,
    .t2-form textarea {
        padding: 0.625rem;
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .t2-hero-enquire-btn {
        margin-left: 0;
        margin-top: 0.75rem;
        display: inline-flex;
    }
    
    .t2-sidebar .rto-tab-btn {
        padding: 0.625rem 0.25rem !important;
        font-size: 0.625rem !important;
    }
    
    .t2-sidebar .rto-tab-price .price-amount {
        font-size: 2rem !important;
    }
    
    .t2-hero-image {
        max-width: 180px;
    }
    
    .t2-hero-image-placeholder svg {
        width: 40px;
        height: 40px;
    }
    
    .t2-related-img {
        height: 140px;
    }
    
    .t2-related-content {
        padding: 1rem;
    }
}

/* ============================================
   RELATED COURSES RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .related-courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 575px) {
    .related-courses {
        padding: 2rem 0;
    }
    
    .related-courses h2 {
        font-size: 1.375rem;
        margin-bottom: 1.5rem;
    }
    
    .related-courses-grid {
        grid-template-columns: 1fr;
    }
    
    .related-course-image {
        height: 140px;
    }
    
    .related-course-content {
        padding: 1rem;
    }
}

/* ============================================
   FOOTER RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .site-footer {
        padding: 3rem 0 0;
    }
}

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 0;
    }
    
    .footer-section h4 {
        margin-bottom: 1rem;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-contact-item {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem 0;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 479px) {
    .footer-logo img {
        max-height: 36px;
    }
    
    .footer-section p {
        font-size: 0.875rem;
    }
}

/* ============================================
   ABOUT US PAGE RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-hero {
        padding: 5rem 0 3rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .about-hero {
        padding: 4rem 0 2rem;
    }
    
    .about-hero h1 {
        font-size: 1.75rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* ============================================
   CONTACT US PAGE RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        order: 1;
    }
    
    .contact-hero {
        padding: 5rem 0 3rem;
    }
}

@media (max-width: 575px) {
    .contact-hero {
        padding: 4rem 0 2rem;
    }
    
    .contact-hero h1 {
        font-size: 1.75rem;
    }
    
    .contact-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px; /* Prevents iOS zoom */
    }
}

/* ============================================
   POLICY PAGE RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .policy-hero {
        padding: 4rem 0 2rem;
    }
    
    .policy-hero h1 {
        font-size: 1.75rem;
    }
    
    .policy-content {
        padding: 2rem 0;
    }
    
    .policy-body {
        padding: 1.25rem;
    }
}

/* ============================================
   FAQ SECTION RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.9375rem;
    }
    
    .faq-answer-content {
        padding: 0 1rem 1rem;
    }
}

/* ============================================
   BUTTONS RESPONSIVE
   ============================================ */
@media (max-width: 575px) {
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
    }
    
    .btn-xl {
        padding: 1rem 1.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   SECTION HEADERS RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.9375rem;
    }
    
    .section-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* ============================================
   FORMS RESPONSIVE
   ============================================ */
@media (max-width: 575px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
    }
    
    /* Prevent iOS zoom on input focus */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* ============================================
   TABLES RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .table-responsive,
    .rto-booking-table {
        display: block !important;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-responsive table,
    .rto-booking-table table {
        min-width: 500px;
    }
    
    /* Units table */
    .rto-units-table {
        display: block;
        overflow-x: auto;
    }
}

/* ============================================
   BOOKING TABLE & LMS INSTANCES RESPONSIVE
   ============================================ */
/* Note: Do NOT force display:block on all booking elements - 
   the plugin CSS handles responsive table/cards toggle.
   Only ensure the table wrapper is visible on desktop. */
.rto-booking-table-wrapper {
    /* Desktop: table wrapper visible (cards hidden by plugin CSS) */
}

@media (max-width: 992px) {
    /* Mobile: Plugin CSS hides table-wrapper and shows cards */
    .rto-booking-table,
    .rto-booking-table-wrapper,
    [class*="booking-table"],
    [class*="course-instances"] {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 767px) {
    .booking-table-section {
        padding: 1rem;
    }
    
    .booking-table-toggle {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Booking table mobile styles */
    .rto-booking-table,
    .rto-booking-table-wrapper,
    [class*="booking-table"] {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        width: calc(100% + 2rem);
    }
    
    .rto-booking-table table,
    [class*="booking-table"] table {
        min-width: 480px;
        font-size: 0.875rem;
    }
    
    .rto-booking-table th,
    .rto-booking-table td,
    [class*="booking-table"] th,
    [class*="booking-table"] td {
        padding: 0.625rem 0.5rem !important;
        white-space: nowrap;
    }
    
    /* aXcelerate instances */
    .ax-course-instances,
    .ax-instance-list,
    [class*="ax-"] {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Wisenet instances */
    .wisenet-instances,
    [class*="wisenet-"] {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 575px) {
    .rto-booking-table,
    .rto-booking-table-wrapper,
    [class*="booking-table"] {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        width: calc(100% + 1.5rem);
    }
    
    .rto-booking-table table,
    [class*="booking-table"] table {
        font-size: 0.8125rem;
    }
    
    .rto-booking-table th,
    .rto-booking-table td {
        padding: 0.5rem 0.375rem !important;
    }
}

/* ============================================
   ARCHIVE CTA RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .archive-cta {
        padding: 3rem 0;
    }
    
    .archive-cta h2 {
        font-size: 1.5rem;
    }
    
    .archive-cta p {
        font-size: 0.9375rem;
    }
}

/* ============================================
   FEATURED COURSES SECTION RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .featured-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .featured-courses-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-section {
        padding: 2.5rem 0;
    }
}

/* ============================================
   PAGINATION RESPONSIVE
   ============================================ */
@media (max-width: 575px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .courses-pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        padding: 0 0.75rem;
    }
}

/* ============================================
   UTILITY CLASSES FOR MOBILE
   ============================================ */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
    
    .stack-mobile {
        flex-direction: column !important;
    }
}

@media (min-width: 768px) {
    .show-mobile {
        display: none !important;
    }
    
    .hide-desktop {
        display: none !important;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn,
    button,
    a.btn {
        min-height: 44px;
    }
    
    /* Remove hover transforms on touch */
    .course-card:hover {
        transform: none;
    }
    
    .related-course-card:hover {
        transform: none;
    }
    
    .t2-related-card:hover {
        transform: none;
    }
    
    /* Better tap targets for nav */
    .main-navigation a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Mobile navigation adjustments */
    .mobile-navigation a {
        min-height: 48px;
    }
}

/* ============================================
   iOS SPECIFIC FIXES
   ============================================ */
@supports (-webkit-touch-callout: none) {
    /* Fix for iOS momentum scrolling */
    .mobile-navigation {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix for iOS input zoom */
    input,
    textarea,
    select {
        font-size: 16px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .course-sidebar,
    .t2-sidebar,
    .mobile-menu-toggle,
    .mobile-navigation,
    .hero-search,
    .filters-section,
    .archive-cta,
    .no-print {
        display: none !important;
    }
    
    .course-layout,
    .t2-layout {
        grid-template-columns: 1fr !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
}

/* ===================================
   BOOKING TABLE OVERRIDES
   Remove scroll, better responsive
   =================================== */

/* Remove horizontal scroll wrapper */
.rto-booking-table-wrapper {
    overflow-x: visible !important;
    overflow: visible !important;
    -webkit-overflow-scrolling: auto !important;
}

/* Table layout - no scroll needed */
.rto-booking-table {
    width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
    font-size: 0.875rem !important;
}

/* Header styling */
.rto-booking-table thead {
    background: linear-gradient(135deg, #ea580c, #f97316) !important;
}

.rto-booking-table thead th {
    padding: 0.875rem 0.75rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important;
    color: #fff !important;
    white-space: nowrap !important;
    border: none !important;
}

/* Body rows */
.rto-booking-table tbody tr {
    border-bottom: 1px solid #e2e8f0 !important;
}

.rto-booking-table tbody tr:hover {
    background: #f8fafc !important;
}

.rto-booking-table tbody td {
    padding: 0.875rem 0.75rem !important;
    vertical-align: middle !important;
    font-size: 0.8125rem !important;
    color: #334155 !important;
    border: none !important;
}

/* Column widths to prevent scroll */
.rto-booking-table .rto-col-name {
    width: 18% !important;
    min-width: 120px !important;
}

.rto-booking-table .rto-col-date {
    width: 14% !important;
    min-width: 90px !important;
}

.rto-booking-table .rto-col-time {
    width: 14% !important;
    min-width: 90px !important;
}

.rto-booking-table .rto-col-location {
    width: 18% !important;
    min-width: 100px !important;
}

.rto-booking-table .rto-col-spaces {
    width: 12% !important;
    min-width: 80px !important;
    text-align: center !important;
}

.rto-booking-table .rto-col-cost {
    width: 10% !important;
    min-width: 70px !important;
    font-weight: 600 !important;
}

.rto-booking-table .rto-col-action {
    width: 14% !important;
    min-width: 90px !important;
    text-align: center !important;
}

/* Available spaces badge */
.rto-booking-table .rto-spaces-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 0.5rem !important;
    background: #dcfce7 !important;
    color: #166534 !important;
    border-radius: 50% !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
}

/* Apply button - customizable via CSS variable */
.rto-booking-table .rto-btn-apply,
.rto-booking-table .rto-btn-primary,
.rto-booking-table .rto-apply-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 1.25rem !important;
    background: var(--rto-primary, #2563eb) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
}

.rto-booking-table .rto-btn-apply:hover,
.rto-booking-table .rto-btn-primary:hover,
.rto-booking-table .rto-apply-btn:hover {
    background: var(--rto-primary-hover, #1d4ed8) !important;
    transform: translateY(-1px) !important;
}

/* Delivery mode badge */
.rto-booking-table .rto-delivery-mode {
    display: inline-block !important;
    margin-top: 0.25rem !important;
    padding: 0.125rem 0.5rem !important;
    background: #dbeafe !important;
    color: #1e40af !important;
    border-radius: 4px !important;
    font-size: 0.6875rem !important;
    font-weight: 500 !important;
}

/* Mobile Cards View - show on mobile, hide table */
@media (max-width: 900px) {
    .rto-booking-table-wrapper {
        display: none !important;
    }
    
    .rto-booking-cards {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Card styling */
    .rto-booking-card,
    .rto-instance-card {
        background: #fff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    }
    
    .rto-booking-card-header {
        background: linear-gradient(135deg, #ea580c, #f97316) !important;
        color: #fff !important;
        padding: 1rem !important;
    }
    
    .rto-booking-card-body {
        padding: 1rem !important;
    }
    
    .rto-booking-card-footer {
        padding: 0 1rem 1rem !important;
    }
    
    .rto-booking-card .rto-btn-apply,
    .rto-booking-card .rto-btn-primary {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0.875rem !important;
    }
}

/* Desktop - hide cards, show table */
@media (min-width: 901px) {
    .rto-booking-cards {
        display: none !important;
    }
    
    .rto-booking-table-wrapper {
        display: block !important;
    }
}

/* Title styling */
.rto-booking-title {
    display: flex !important;
    align-items: center !important;
    gap: 0.625rem !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 1.5rem !important;
}

.rto-booking-title-icon {
    font-size: 1.5rem !important;
}

/* No instances message */
.rto-booking-no-instances {
    text-align: center !important;
    padding: 3rem 2rem !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    border: 2px dashed #e2e8f0 !important;
}

.rto-no-instances-icon {
    font-size: 3rem !important;
    margin-bottom: 1rem !important;
}

.rto-booking-no-instances p {
    color: #64748b !important;
    margin: 0.5rem 0 !important;
}

.rto-booking-no-instances .rto-enquiry-btn {
    margin-top: 1.5rem !important;
    display: inline-flex !important;
    padding: 0.75rem 1.5rem !important;
    background: var(--rto-primary, #2563eb) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Print styles for booking table */
@media print {
    .rto-booking-table-wrapper {
        overflow: visible !important;
    }
    
    .rto-booking-cards {
        display: none !important;
    }
    
    .rto-booking-table {
        font-size: 10pt !important;
    }
    
    .rto-btn-apply,
    .rto-btn-primary {
        background: #000 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}
