


:root {
    --deep-charcoal: #1F2933;
    --safety-amber: #F4B400;
    --chalk-white: #F9FAFB;
    --road-green: #1F7A5C;
    --text-primary: #1F2933;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(31, 41, 51, 0.08);
    --shadow-md: 0 4px 12px rgba(31, 41, 51, 0.12);
    --shadow-lg: 0 8px 24px rgba(31, 41, 51, 0.16);
    --shadow-xl: 0 20px 40px rgba(31, 41, 51, 0.2);
    --transition-speed: 0.3s;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;



::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

html {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

body {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

}


*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    position: relative;
    overflow-x: hidden;
}


h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.25rem); }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: var(--road-green);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--safety-amber);
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

@media (min-width: 850px) {
    .container {
        padding: 0 2rem;
    }
}


header {
    background: linear-gradient(135deg, var(--deep-charcoal) 0%, #2d3748 100%);
    color: var(--chalk-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}


.logo {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 800;
    color: var(--safety-amber);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    z-index: 1002;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}


.mobile-only {
    display: none !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}


.nav-menu a {
    color: var(--chalk-white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--safety-amber);
    color: var(--deep-charcoal);
}


.nav-menu a[href*="dashboard"] {
    background: transparent;
    color: var(--chalk-white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    box-shadow: none;
}

.nav-menu a[href*="dashboard"]:hover,
.nav-menu a[href*="dashboard"].active {
    background: var(--safety-amber);
    color: var(--deep-charcoal);
}


.nav-menu .btn-primary {
    background: linear-gradient(135deg, var(--safety-amber), var(--road-green));
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(244, 180, 0, 0.3);
}

.nav-menu .btn-primary:hover {
    background: linear-gradient(135deg, var(--road-green), var(--safety-amber));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 180, 0, 0.4);
}


.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--chalk-white);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(31, 41, 51, 0.9);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}



.hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 4rem 0;
    overflow: hidden;
    isolation: isolate;
    z-index: 0;
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--hero-bg-desktop, url('/assets/images/uploaded/home-bg.jpg'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}


@media (min-width: 851px) {
    .hero::before {
        background-attachment: fixed;
    }
    
    .hero {
        min-height: 500px;
    }
}


@media (max-width: 850px) {
    .hero::before {
        background-image: var(--hero-bg-mobile, url('/assets/images/uploaded/home-bg-mobile.jpg'));
        background-attachment: scroll;
        background-position: center center;
    }
    
    .hero {
        min-height: 350px;
        padding: 3rem 0;
    }
}


.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 41, 51, 0.85) 0%, rgba(45, 55, 72, 0.85) 100%);
    z-index: -1;
    pointer-events: none;
}


.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;

}

.hero h1 {
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #F4B400 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}


@media (max-width: 480px) {
    .hero {
        min-height: 300px;
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-tagline {
        font-size: 0.95rem;
    }
}




.hero[style*="background-image"] {
    background-image: none !important;
}


.hero[style*="background-image"]::before {
    background-image: inherit;
}


.hero-contact,
.hero-services,
.hero-about,
.hero-blog,
.hero-pricing,
.hero-instructors,
.hero-testimonials,
.hero-locations {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 4rem 0;
    overflow: hidden;
    isolation: isolate;
}

.hero-contact::before,
.hero-services::before,
.hero-about::before,
.hero-blog::before,
.hero-pricing::before,
.hero-instructors::before,
.hero-testimonials::before,
.hero-locations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}


@media (min-width: 851px) {
    .hero-contact::before,
    .hero-services::before,
    .hero-about::before,
    .hero-blog::before,
    .hero-pricing::before,
    .hero-instructors::before,
    .hero-testimonials::before,
    .hero-locations::before {
        background-attachment: fixed;
    }
}


@media (max-width: 850px) {
    .hero-contact::before,
    .hero-services::before,
    .hero-about::before,
    .hero-blog::before,
    .hero-pricing::before,
    .hero-instructors::before,
    .hero-testimonials::before,
    .hero-locations::before {
        background-attachment: scroll;
    }
    
    .hero-contact,
    .hero-services,
    .hero-about,
    .hero-blog,
    .hero-pricing,
    .hero-instructors,
    .hero-testimonials,
    .hero-locations {
        min-height: 300px;
        padding: 3rem 0;
    }
}


.hero-contact::after,
.hero-services::after,
.hero-about::after,
.hero-blog::after,
.hero-pricing::after,
.hero-instructors::after,
.hero-testimonials::after,
.hero-locations::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 41, 51, 0.85) 0%, rgba(45, 55, 72, 0.85) 100%);
    z-index: -1;
    pointer-events: none;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-decoration: none;
    text-align: center;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #F4B400 0%, #FFD54F 100%);
    color: var(--deep-charcoal);
    border-color: var(--safety-amber);
    box-shadow: 0 10px 30px rgba(244, 180, 0, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FFD54F 0%, #F4B400 100%);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(244, 180, 0, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    color: var(--deep-charcoal);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #F4B400 0%, #FFD54F 100%);
    color: var(--deep-charcoal);
    border-color: var(--safety-amber);
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}


.card,
.service-card,
.instructor-card,
.testimonial-card,
.pricing-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover,
.service-card:hover,
.instructor-card:hover,
.testimonial-card:hover,
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}


.service-card {
    padding: 1.5rem;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #F4B400 0%, #FFD54F 100%);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 25px rgba(244, 180, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 40px rgba(244, 180, 0, 0.6);
}

.service-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}


.service-card > div:not(.service-icon),
.instructor-card > div:not(.instructor-photo),
.testimonial-card > div:not(.testimonial-author),
.pricing-card > div:not(.popular-badge):not(.pricing-card-header):not(.price-display) {
    flex: 1;
    display: flex;
    flex-direction: column;
}


.service-card .btn,
.instructor-card .btn,
.testimonial-card .btn,
.pricing-card .btn {
    margin-top: auto;
}


.instructor-card {
    padding: 0;
}

.instructor-photo {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.instructor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(20%) brightness(1.05);
}

.instructor-card:hover .instructor-photo img {
    transform: scale(1.15) rotate(2deg);
    filter: grayscale(0%) brightness(1.1);
}

.instructor-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.instructor-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}


.rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
    flex-wrap: wrap;
    color: var(--safety-amber);
}

.stars {
    display: inline-flex;
    flex-direction: row;
    gap: 0.25rem;
    align-items: center;
    flex-wrap: nowrap;
}

.stars img,
.stars svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    flex-shrink: 0;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.rating-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}


.testimonial-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-left: 4px solid #F4B400;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F4B400 0%, #1F7A5C 100%);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(244, 180, 0, 0.4);
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-course {
    font-size: 0.875rem;
    color: var(--text-muted);
}


.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(31, 41, 51, 0.12);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible; 
}

.pricing-card.popular {
    border-color: var(--safety-amber);
    box-shadow: 0 8px 24px rgba(244, 180, 0, 0.3);
}
.popular-badge {
    position: absolute;
    top: -18px; 
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #F4B400 0%, #FFD54F 100%);
    color: var(--deep-charcoal);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 4px 12px rgba(244, 180, 0, 0.4);
    white-space: nowrap;
    z-index: 10;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .popular-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1.5rem;
        top: -20px;
    }
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.pricing-card-header h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--deep-charcoal);
}

@media (min-width: 640px) {
    .pricing-card-header h3 {
        font-size: 1.25rem;
    }
}

.service-label {
    color: #718096;
    font-size: 0.8rem;
}

@media (min-width: 640px) {
    .service-label {
        font-size: 0.9rem;
    }
}

.price-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #F4B400 0%, #FFD54F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

@media (min-width: 640px) {
    .price-amount {
        font-size: 2.5rem;
    }
}

.price-details {
    color: #718096;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

@media (min-width: 640px) {
    .price-details {
        font-size: 0.9rem;
    }
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.features-list li {
    padding: 0.5rem 0;
    color: #4a5568;
    display: flex;
    align-items: start;
    gap: 0.5rem;
    font-size: 0.85rem;
}
.pricing-grid,
.auto-pricing-grid,
.adi-pricing-grid {
    padding-top: 2rem;  
    margin-top: 1rem;
}
@media (min-width: 640px) {
    .features-list li {
        font-size: 0.9rem;
    }
}

.features-list li::before {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url('/assets/images/placeholders/check-circle.svg');
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    margin-top: 2px;
    filter: brightness(0) saturate(100%) invert(44%) sepia(81%) saturate(371%) hue-rotate(120deg) brightness(94%) contrast(91%);
}


.services-grid,
.instructors-grid,
.testimonials-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .services-grid,
    .instructors-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid,
    .instructors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0 auto;
    max-width: 1400px;
    padding-top: 1.5rem;
}

@media (min-width: 500px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding-top: 2rem;
    }
}

@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.stats-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #F4B400 0%, #FFD54F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}


.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    background: white;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--safety-amber);
    box-shadow: 0 0 0 3px rgba(244, 180, 0, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

@media (max-width: 850px) {
    .form-control {
        font-size: 16px;
    }
}


.icon-inline {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    object-fit: contain;
    flex-shrink: 0;
}

.icon-xs { width: 12px; height: 12px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }

.btn .icon-inline {
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.5rem;
    vertical-align: -0.2em;
}


.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border: 2px solid #17a2b8;
    color: #0c5460;
}


section {
    padding: 5px 0;
    position: relative;
}

@media (min-width: 850px) {
    section {
        padding: 5px 0;
    }
}


.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }


img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[src*=".svg"] {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}



@media (max-width: 850px) {
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    ::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #F4B400, #1F7A5C);
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #FFD54F, #16634B);
    }
}


@media (min-width: 851px) {

    ::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    

    html {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    body {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

*:focus-visible {
    outline: 3px solid var(--safety-amber);
    outline-offset: 2px;
}


@media (max-width: 850px) {

    .mobile-only {
        display: inline-block !important;
        width: 24px !important;
        height: 24px !important;
        flex-shrink: 0;
        filter: brightness(0) invert(1);
    }
    

    .logo {
        font-size: clamp(1rem, 4vw, 1.3rem);
        max-width: 70%;
    }
    

    .nav-toggle {
        display: flex !important;
    }
    

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--deep-charcoal);
        flex-direction: column;
        padding: 5rem 0 2rem;
        gap: 0;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.4);
        overflow-y: auto;
        align-items: stretch;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        visibility: hidden;
    }
    
    .nav-menu.active {
        right: 0;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }
    

    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.35s; }
    .nav-menu.active li:nth-child(7) { transition-delay: 0.4s; }
    .nav-menu.active li:nth-child(8) { transition-delay: 0.45s; }
    .nav-menu.active li:nth-child(9) { transition-delay: 0.5s; }
    .nav-menu.active li:nth-child(10) { transition-delay: 0.55s; }
    

    .nav-menu a {
        width: 100%;
        padding: 1.25rem 1.5rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(249, 250, 251, 0.1);
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        background: transparent;
        color: var(--chalk-white);
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(244, 180, 0, 0.15);
        color: var(--safety-amber);
        padding-left: 2rem;
    }
    

    .nav-menu a[href*="dashboard"] {
        background: transparent;
        color: var(--chalk-white);
        font-weight: 500;
        padding: 1.25rem 1.5rem;
        border-radius: 0;
        box-shadow: none;
    }
    
    .nav-menu a[href*="dashboard"]:hover,
    .nav-menu a[href*="dashboard"].active {
        background: rgba(244, 180, 0, 0.15);
        color: var(--safety-amber);
        padding-left: 2rem;
    }
    

    .nav-menu .login-item {
        margin-top: auto;
        margin-bottom: 1rem;
        order: 999;
    }
    .nav-menu .login-item a.btn-primary,
.nav-menu li:last-child a.btn-primary {
    background: linear-gradient(135deg, var(--safety-amber) 0%, var(--road-green) 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(244, 180, 0, 0.3) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 25px !important;
}

.nav-menu .login-item a.btn-primary:hover,
.nav-menu li:last-child a.btn-primary:hover {
    background: linear-gradient(135deg, var(--road-green) 0%, var(--safety-amber) 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(244, 180, 0, 0.4) !important;
}


@media (max-width: 850px) {
    .nav-menu .login-item,
    .nav-menu li:last-child {
        margin-top: auto !important;
        padding: 1rem !important;
        border-top: 1px solid rgba(249, 250, 251, 0.1) !important;
    }
    
    .nav-menu .login-item a.btn-primary,
    .nav-menu li:last-child a.btn-primary {
        background: linear-gradient(135deg, var(--safety-amber), var(--road-green)) !important;
        color: white !important;
        font-weight: 600 !important;
        text-align: center !important;
        border-radius: 25px !important;
        font-size: 0.95rem !important;
        padding: 0.75rem 1.5rem !important;
        margin: 0 auto !important;
        width: fit-content !important;
        min-width: 180px !important;
        display: inline-flex !important;
        justify-content: center !important;
        border-bottom: none !important;
    }
    
    .nav-menu .login-item a.btn-primary:hover,
    .nav-menu li:last-child a.btn-primary:hover {
        background: linear-gradient(135deg, var(--road-green), var(--safety-amber)) !important;
        transform: translateY(-2px) !important;
    }
}
    
    .nav-menu .login-item a {
        background: linear-gradient(135deg, var(--safety-amber), var(--road-green));
        color: white;
        font-weight: 700;
        text-align: center;
        border-radius: 25px;
        font-size: 1.1rem;
        padding: 1.2rem;
        border-bottom: none;
        justify-content: center;
        margin: 0 1rem;
    }
    
    .nav-menu .login-item a:hover {
        background: linear-gradient(135deg, var(--road-green), var(--safety-amber));
        color: white;
        padding-left: 1.5rem;
    }
    

    .nav-menu a .mobile-only {
        filter: brightness(0) invert(1);
    }
    

    .nav-menu a:hover .mobile-only,
    .nav-menu a.active .mobile-only {
        filter: brightness(0) saturate(100%) invert(77%) sepia(85%) saturate(530%) hue-rotate(359deg) brightness(104%) contrast(95%);
    }
    

    .nav-menu .login-item a .mobile-only {
        filter: brightness(0) invert(1) !important;
    }
    
    .nav-menu .login-item a:hover .mobile-only {
        filter: brightness(0) invert(1) !important;
    }
}


@media (max-width: 480px) {
    .nav-menu {
        width: 90%;
    }
    
    .logo {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
        max-width: 65%;
    }
}


@media (min-width: 851px) {
    .nav-toggle {
        display: none !important;
    }
    
    .mobile-overlay {
        display: none !important;
    }
    

    .nav-menu .mobile-only,
    .nav-menu img.mobile-only,
    .nav-menu svg.mobile-only,
    .icon-inline.mobile-only {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        opacity: 0 !important;
    }
    
    .nav-menu {
        display: flex !important;
        position: static !important;
        height: auto !important;
        width: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        flex-direction: row !important;
        visibility: visible !important;
        overflow: visible !important;
    }
    
    .nav-menu li {
        opacity: 1 !important;
        transform: none !important;
        width: auto !important;
    }
}


@media print {
    header,
    footer,
    .btn,
    nav {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card, .service-card, .instructor-card, .testimonial-card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}