:root {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #475569;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent: #0ea5e9;
    --border-light: #e2e8f0;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header Styles */
.site-header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    transition: all 0.3s ease;
}

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

.logo a {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    gap: 35px;
}

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--text-main);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

/* Submenu Styles */
.has-submenu {
    position: relative;
    padding-bottom: 25px; /* Keeps hover active while moving mouse down */
    margin-bottom: -25px;
}

.dropdown-arrow {
    font-size: 11px;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary);
}

.has-submenu:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.main-nav .submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    min-width: 400px;
    border-radius: 16px;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.08);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.submenu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #0f172a;
    border-left: 1px solid rgba(255,255,255,0.08);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.submenu li {
    display: block;
}

.submenu a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted) !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    white-space: normal;
    line-height: 1.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.2px;
}

.submenu a::after {
    display: none; 
}

.submenu a:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--text-main) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Main Content */
.main-content {
    flex: 1;
}

/* Hero Section (For Index) */
.hero-section {
    padding: 120px 0;
    text-align: center;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.1) 0%, rgba(15, 23, 42, 0) 60%);
}

.hero-section h1 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px rgba(59, 130, 246, 0.7);
    color: white;
}

/* Footer Styles */
.site-footer {
    background-color: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.footer-section h3 span {
    color: var(--primary);
}

.footer-section h4 {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 10px;
}

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

.footer-section.links a {
    color: var(--text-muted);
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section.links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 768px) {
    .main-nav { 
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 20px;
        box-shadow: 0 15px 30px -10px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-light);
    }
    .main-nav.active { display: block; }
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav .submenu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 10px 0 0 15px !important;
        min-width: 100%;
        opacity: 1 !important;
        visibility: visible !important;
        display: none !important;
    }
    .main-nav .has-submenu.active .submenu {
        display: flex !important;
    }
    .submenu::before { display: none !important; }
    .mobile-menu-toggle { display: flex; }
    .hero-section h1 { font-size: 40px; }
}

/* --- CORPORATE LIGHT THEME OVERRIDES --- */

/* Header Override */
.site-header {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid var(--border-light) !important;
    box-shadow: 0 4px 15px -5px rgba(0,0,0,0.05);
}
.main-nav .submenu {
    background: #ffffff !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: 0 15px 30px -5px rgba(0,0,0,0.1) !important;
    padding: 15px !important;
}
.submenu::before {
    background: #ffffff !important;
    border-left: 1px solid var(--border-light) !important;
    border-top: 1px solid var(--border-light) !important;
}
.submenu a {
    background: #f8fafc !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-main) !important;
    margin-bottom: 8px;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}
.submenu a:last-child {
    margin-bottom: 0;
}
.submenu a:hover {
    background: #eff6ff !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    transform: translateX(5px) !important;
    box-shadow: none !important;
}

/* Hero Sections */
.courses-hero, .contact-hero, .home-hero, .services-hero, .about-hero {
    background: linear-gradient(to bottom, #eff6ff 0%, #f8fafc 100%) !important;
    border-bottom: 1px solid var(--border-light);
}
.courses-hero h1, .contact-hero h1, .home-hero h1, .services-hero h1, .about-hero h1 {
    background: none !important;
    -webkit-text-fill-color: var(--text-main) !important;
    color: var(--text-main) !important;
}

/* Cards & Containers */
.service-detail-card, .course-card-detailed, .service-hub-card, .contact-container > div:last-child, div[style*="background:rgba(255,255,255,0.02)"], div[style*="background:rgba(30, 41, 59"] {
    background: #ffffff !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05) !important;
}
.service-hub-card:hover {
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15) !important;
    border-color: var(--primary) !important;
}

/* Global inline border overrides */
[style*="border:1px solid rgba(255,255,255,0.05)"], [style*="border-color='rgba(255,255,255,0.05)'"], [style*="border-bottom:1px dashed rgba(255,255,255,0.1)"] {
    border-color: var(--border-light) !important;
}

/* Lists and Text */
.detail-list li, .course-list li, .feature-list li, ul[style*="color:#cbd5e1"] li {
    color: var(--text-main) !important;
}
h1, h2, h3, h4, p {
    color: var(--text-main);
}
p[style*="color:var(--text-muted)"], p[style*="color:#fff"] {
    color: var(--text-muted) !important;
}
h2[style*="color:#fff"], p[style*="color:#fff"] {
    color: var(--text-main) !important;
}

/* Forms */
.form-control {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: var(--text-main) !important;
}
.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
    background: #ffffff !important;
}
.form-control::placeholder {
    color: #94a3b8 !important;
}

/* Goal Card */
.goal-card {
    background: #eff6ff !important;
    border-left: 4px solid var(--primary) !important;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05) !important;
}
.goal-card h2, .goal-card p {
    color: var(--text-main) !important;
}

/* Badges */
.audience-badge {
    background: #f1f5f9 !important;
    color: var(--primary) !important;
    border-color: #cbd5e1 !important;
    font-weight: 500;
}

/* Footer */
.site-footer {
    background-color: #ffffff !important;
    border-top: 1px solid var(--border-light) !important;
}
.footer-section h4 {
    color: var(--text-main) !important;
}
