/* Global Styles and Variables */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0d6e46;
    --primary-dark: #054c2e;
    --primary-light: #dcedde;
    --secondary: #cca43b;
    --secondary-hover: #b58e2d;
    --accent: #8b1322;
    --accent-hover: #720912;
    --text-dark: #1b2620;
    --text-muted: #5c6a62;
    --bg-light: #f4f7f5;
    --bg-mint: #eef5f1;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(13, 110, 70, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Outfit', sans-serif;
    --header-bg: rgba(255, 255, 255, 0.95);
}

/* Dark Mode Override Variables */
.dark-mode {
    --text-dark: #ffffff;
    --text-muted: #b2c7bc;
    --bg-light: #07100b;
    --bg-mint: #0f1e16;
    --white: #112018;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
    --primary-dark: #4cd498;
    --header-bg: rgba(13, 26, 19, 0.96);
}

/* User Public Section Dark Mode Contrast Overrides */
.dark-mode body {
    color: #ffffff;
    background-color: var(--bg-light);
}

.dark-mode h1, 
.dark-mode h2, 
.dark-mode h3, 
.dark-mode h4, 
.dark-mode h5, 
.dark-mode h6,
.dark-mode .section-title,
.dark-mode .hero-title,
.dark-mode .feature-title,
.dark-mode .product-name,
.dark-mode .course-item-title,
.dark-mode .prod-title,
.dark-mode .apply-card h3,
.dark-mode .apply-info-card h4,
.dark-mode .order-form-card h3,
.dark-mode .success-modal-card h3,
.dark-mode .timeline-title,
.dark-mode .sidebar-box h4,
.dark-mode .syllabus-box h3,
.dark-mode .training-content h3,
.dark-mode .testimonial-info h4,
.dark-mode .hero-visual-title,
.dark-mode .hero-prod-feature-text h4,
.dark-mode .logo-text {
    color: #ffffff !important;
}

.dark-mode .nav-link {
    color: #e2eee7;
}

.dark-mode .nav-link:hover,
.dark-mode .nav-link.active {
    color: #4cd498;
}

.dark-mode p,
.dark-mode .section-desc,
.dark-mode .hero-desc,
.dark-mode .feature-desc,
.dark-mode .product-desc,
.dark-mode .course-item-desc,
.dark-mode .training-desc,
.dark-mode .testimonial-quote,
.dark-mode .footer-desc,
.dark-mode .footer-link,
.dark-mode .footer-contact-info span,
.dark-mode .prod-desc-text,
.dark-mode .apply-card p,
.dark-mode .apply-info-card p,
.dark-mode .step-text p,
.dark-mode .spec-label,
.dark-mode .hero-prod-feature-text p {
    color: #b2c7bc !important;
}

.dark-mode .product-price,
.dark-mode .course-item-price,
.dark-mode .prod-price-badge,
.dark-mode .hero-visual-price {
    color: #ffda66 !important;
    font-weight: 800;
}

.dark-mode .product-cat,
.dark-mode .prod-category,
.dark-mode .timeline-day,
.dark-mode .spec-value,
.dark-mode .step-text h5,
.dark-mode .course-meta-box p {
    color: #4cd498 !important;
}

.dark-mode .course-meta-box h5 {
    color: #a0b8ac !important;
}

.dark-mode .form-label,
.dark-mode label,
.dark-mode .radio-option {
    color: #e8f4ed !important;
    font-weight: 600;
}

.dark-mode .form-control,
.dark-mode .form-select,
.dark-mode textarea {
    background-color: #0b1812 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.dark-mode .form-control::placeholder,
.dark-mode textarea::placeholder {
    color: #839b8e !important;
}

.dark-mode .form-control:focus,
.dark-mode .form-select:focus {
    background-color: #0b1812 !important;
    color: #ffffff !important;
    border-color: #0d6e46 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 70, 0.4) !important;
}

.dark-mode .safety-warning-box {
    background-color: rgba(139, 19, 34, 0.2) !important;
    border-left-color: #ff5252 !important;
}

.dark-mode .safety-warning-box h4 {
    color: #ff8a8a !important;
}

.dark-mode .safety-warning-box p {
    color: #f7d2d2 !important;
}

.dark-mode .filter-tab {
    background-color: #112018;
    color: #e2eee7;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .filter-tab:hover,
.dark-mode .filter-tab.active {
    background-color: #0d6e46;
    color: #ffffff;
}

.dark-mode .step-num {
    background-color: #0d6e46;
    color: #ffffff;
}

.dark-mode .home-newsletter {
    background: linear-gradient(135deg, rgba(13, 110, 70, 0.2) 0%, rgba(204, 164, 59, 0.15) 100%) !important;
    border-color: rgba(76, 212, 152, 0.25) !important;
}

.dark-mode .success-modal-card {
    background-color: #112018 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .success-modal-card .modal-subtext {
    background-color: #0b1812 !important;
    color: #4cd498 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(13, 110, 70, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(13, 110, 70, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--secondary), #dcb23c);
    box-shadow: 0 4px 12px rgba(204, 164, 59, 0.15);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(204, 164, 59, 0.25);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(139, 19, 34, 0.2);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(139, 19, 34, 0.3);
}

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

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

.header {
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(13, 110, 70, 0.05);
}

.dark-mode .header {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

#themeToggleBtnMobile {
    display: none;
}

.theme-toggle-btn:hover {
    background-color: var(--bg-mint);
    color: var(--secondary);
    transform: rotate(15deg);
}

.dark-mode .theme-toggle-btn {
    color: var(--secondary);
}

.dark-mode .theme-toggle-btn:hover {
    background-color: var(--bg-mint);
    color: var(--white);
}

/* Base Card Overrides for Dark Mode */
.dark-mode .course-item-card,
.dark-mode .sidebar-box,
.dark-mode .syllabus-box,
.dark-mode .details-video-showcase,
.dark-mode .order-form-card,
.dark-mode .apply-card,
.dark-mode .apply-info-card,
.dark-mode .contact-form-box,
.dark-mode .contact-card-item,
.dark-mode .map-showcase,
.dark-mode .testimonial-card,
.dark-mode .about-value-card,
.dark-mode .feature-card,
.dark-mode .product-card,
.dark-mode .drawer {
    background-color: var(--white);
    border-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .drawer-link {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .footer {
    background-color: #060d0a;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--secondary);
    box-shadow: 0 2px 8px rgba(13, 110, 70, 0.2);
}

.logo-icon span {
    font-size: 24px;
    color: var(--white);
    font-weight: 800;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}

.logo-subtitle {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

/* Mobile Drawer Overlay */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background-color: var(--white);
    z-index: 1100;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bg-mint);
    padding-bottom: 20px;
}

.drawer-close {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

.drawer-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-link {
    font-size: 18px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.drawer-link:hover,
.drawer-link.active {
    color: var(--primary);
    padding-left: 8px;
}

/* Floating Elements */
.floating-container {
    position: fixed;
    bottom: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-right {
    right: 30px;
}

.floating-left {
    left: 30px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
    color: var(--white);
    font-size: 28px;
    position: relative;
    border: none;
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
}

.whatsapp-btn {
    background-color: #25D366;
}

.whatsapp-btn::after {
    content: 'WhatsApp Us';
    position: absolute;
    right: 70px;
    background-color: var(--white);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.whatsapp-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

.apply-btn-floating {
    background: linear-gradient(135deg, var(--secondary), #dcb23c);
    color: var(--text-dark);
}

.apply-btn-floating::after {
    content: 'Apply for Training';
    position: absolute;
    left: 70px;
    background-color: var(--white);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.apply-btn-floating:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Footer styles */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 30px 0;
    border-top: 5px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: radial-gradient(var(--primary) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    opacity: 0.05;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-widget h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
    color: var(--white);
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    font-size: 15px;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-item i {
    font-size: 18px;
    color: var(--secondary);
    margin-top: 3px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: var(--font);
    font-size: 14px;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--secondary);
    background-color: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-link:hover {
    color: var(--secondary);
}

/* Page Header component */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), #093722);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--secondary) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.1;
}

.page-hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.page-hero-subtitle {
    font-size: 18px;
    color: var(--secondary);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 2;
}

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

.breadcrumbs span {
    color: var(--secondary);
}

/* Responsive Grid layouts */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    #themeToggleBtnMobile {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .page-hero-title {
        font-size: 36px;
    }

    .floating-container {
        bottom: 20px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .whatsapp-btn::after {
        right: 60px;
    }

    .apply-btn-floating::after {
        left: 60px;
    }
}