/* NIGMT LMS - Premium Frontend CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@700;800;900&display=swap');

:root {
    --primary: #001A33;
    --primary-color: #001A33;
    --secondary-color: #FFB800;
    --accent: #FFB800;
    --gold: #FFB800;
    --text-color: #1a1a2e;
    --text-muted: #6b7280;
    --light-bg: #f4f6fa;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --card-shadow: 0 4px 24px rgba(0,26,51,0.10);
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Inter', sans-serif;
    --radius: 14px;
    --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.7;
    background: var(--light-bg);
    position: relative;
}

body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vmin;
    height: 60vmin;
    background: url('../images/logo.png') no-repeat center;
    background-size: contain;
    opacity: 0.04;
    z-index: -1;
    pointer-events: none;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--heading-font); color: var(--primary); margin-bottom: 12px; line-height: 1.3; }
a { text-decoration: none; color: var(--primary); transition: all 0.3s ease; }
a:hover { color: var(--accent); }
ul { list-style: none; }
img { max-width: 100%; }
    
/* ===== PRELOADER ===== */
#premium-preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #001A33;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}
#premium-preloader.hide-preloader {
    opacity: 0;
    visibility: hidden;
}
.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.preloader-logo {
    width: 220px;
    height: auto;
    animation: pulseLogo 2s infinite ease-in-out;
}
.preloader-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255, 184, 0, 0.15);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spinCircle 1s infinite linear;
}
@keyframes pulseLogo {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}
@keyframes spinCircle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== UTILITIES ===== */
.container { width: 90%; max-width: 1400px; margin: 0 auto; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.text-center { text-align: center; }
.mt-2 { margin-top: 20px; }
.mb-2 { margin-bottom: 20px; }
.py-5 { padding: 70px 0; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

/* GLOBAL STYLISH BUTTONS (Specular Shine) */
.btn::after, .auth-btn::after, .footer-verify-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    transition: all 0.8s;
}

.btn:hover::after, .auth-btn:hover::after, .footer-verify-btn:hover::after {
    left: 150%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #e6a500);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(255,184,0,0.35);
}
.btn-primary:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 35px rgba(255,184,0,0.5);
    color: var(--primary);
    background: linear-gradient(135deg, #ffc933, var(--accent));
}

.btn-outline {
    background: transparent;
    border-color: var(--accent);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--accent);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 35px rgba(255,184,0,0.5);
    color: var(--primary);
}

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

/* ===== TOPBAR ===== */
.topbar {
    background: var(--primary);
    color: rgba(255,255,255,0.85);
    padding: 9px 0;
    font-size: 12.5px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 1001;
}
.topbar .contact-info span { margin-right: 22px; font-weight: 500; }
.topbar .contact-info span i { color: var(--accent); margin-right: 6px; }
.top-auth { border-right: 1px solid rgba(255,255,255,0.15); padding-right: 14px; margin-right: 14px; }
.topbar .social-links a { 
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    color: rgba(255,255,255,0.8); font-size: 12px; text-decoration: none;
    background: rgba(255,255,255,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.topbar .social-links a:hover { transform: translateY(-2px); color: white !important; }
.topbar .social-links a.social-fb:hover { background: #1877F2; }
.topbar .social-links a.social-ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.topbar .social-links a.social-li:hover { background: #0077B5; }
.topbar .social-links a.social-yt:hover { background: #FF0000; }

/* Auth buttons */
.auth-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 6px 16px; border-radius: 50px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    margin-left: 8px; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important; letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.25); color: white;
    position: relative; overflow: hidden;
}
.auth-btn.login { background: transparent; }
.auth-btn.login:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px) scale(1.03); color: white !important; box-shadow: 0 10px 20px rgba(255,255,255,0.15); }
.auth-btn.register { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.auth-btn.register:hover { background: #ffc933; transform: translateY(-3px) scale(1.03); color: var(--primary) !important; box-shadow: 0 10px 25px rgba(255,184,0,0.4); }

/* User dropdown */
.user-dropdown { position: relative; display: inline-block; padding-right: 14px; margin-right: 14px; border-right: 1px solid rgba(255,255,255,0.15); cursor: pointer; padding-bottom: 12px; margin-bottom: -12px; }
.user-welcome {
    font-weight: 600; color: var(--accent); font-size: 13px;
    display: flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 50px; transition: background 0.3s;
}
.user-welcome:hover { background: rgba(255,255,255,0.1); }
.dropdown-content {
    display: none; 
    position: absolute; 
    right: 0; 
    top: 100%;
    margin-top: 0px;
    background: #ffffff !important; 
    min-width: 260px;
    box-shadow: 0 10px 30px rgba(0,26,51,0.25);
    z-index: 99999; 
    border-radius: var(--radius);
    overflow: hidden; 
    border: 1px solid var(--border-color);
    animation: fadeDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dropdown-header {
    background: #ffffff; padding: 22px 20px; border-bottom: 1px solid var(--border-color);
}
.avatar-sm {
    width: 44px; height: 44px; background: var(--primary); color: var(--accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px; flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,26,51,0.1);
}
.user-name { font-size: 15px; font-weight: 800; line-height: 1.2; color: var(--primary); }
.user-role { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px; font-weight: 700; }
.dropdown-body { padding: 8px 0; }
.gap-12 { gap: 12px; }
@keyframes fadeDown { from { opacity:0; transform: translateY(-12px); } to { opacity:1; transform: translateY(0); } }
@media (min-width: 769px) {
    .user-dropdown:hover .dropdown-content { display: block; }
}
.dropdown-content.show { display: block; }
.d-mobile-none { display: inline; }
.dropdown-content a {
    color: var(--primary); padding: 12px 18px;
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 600; transition: background 0.2s;
}
.dropdown-content a i { width: 18px; color: var(--primary); }
.dropdown-content a:hover { background: #f8f9fa; color: var(--accent); }
.dropdown-content a:hover i { color: var(--accent); }
.dropdown-divider { height: 1px; background: var(--border-color); }
.logout-link { color: #e53e3e !important; }
.logout-link i { color: #e53e3e !important; }
.logout-link:hover { background: #fff5f5 !important; }

/* ===== HEADER / NAVBAR ===== */
.header {
    background: white;
    padding: 0;
    box-shadow: 0 2px 20px rgba(0,26,51,0.08);
    position: sticky; top: 0; z-index: 1000;
    transition: all 0.35s ease;
    height: 100px; display: flex; align-items: center;
}
.header .container { width: 90%; max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.header .logo img { height: 90px; width: auto; object-fit: contain; display: block; transition: height 0.3s; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav ul li a {
    font-family: var(--heading-font); font-weight: 600; font-size: 14px;
    padding: 8px 16px; border-radius: 50px; color: var(--primary);
    transition: all 0.25s; display: block; position: relative;
}
.main-nav ul li a:hover, .main-nav ul li a.active-link {
    background: rgba(0,26,51,0.06); color: var(--accent);
}

/* Transparent header (homepage) */
.transparent-topbar {
    background: transparent !important; position: fixed; width: 100%; top: 0; z-index: 1001;
    transition: background 0.35s;
}
.transparent-topbar.scrolled-topbar { background: rgba(0,26,51,0.97) !important; backdrop-filter: blur(10px); }
.transparent-header {
    background: transparent !important; position: fixed; width: 100%;
    top: 43px; z-index: 1000; box-shadow: none;
    border-bottom: 1px solid rgba(255,255,255,0.1); transition: all 0.35s;
}
.transparent-header.scrolled-header {
    background: rgba(0,26,51,0.97) !important; backdrop-filter: blur(10px);
    top: 43px; box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.transparent-header .main-nav ul li a { color: rgba(255,255,255,0.9); }
.transparent-header .main-nav ul li a:hover { color: var(--accent); background: rgba(255,255,255,0.1); }
.transparent-header .logo-colored { display: none !important; }
.transparent-header .logo-white { display: block !important; }
.header:not(.transparent-header) .logo-colored { display: block !important; }
.header:not(.transparent-header) .logo-white { display: none !important; }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(rgba(0,26,51,0.78), rgba(0,26,51,0.78)), url('../images/hero-bg.webp') center/cover;
    height: 500px; display: flex; align-items: center; color: white;
}
.hero h1 { color: white; font-size: 46px; margin-bottom: 16px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 18px; margin-bottom: 28px; max-width: 580px; color: rgba(255,255,255,0.85); }

.homepage-hero {
    position: relative; height: 130vh; min-height: 884px;
    display: flex; flex-direction: column; justify-content: center;
}
.hero-swiper { position: absolute !important; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; background: #000; }
.hero-swiper .swiper-slide {
    position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center;
    background-size: cover; background-position: center; background-color: #000;
}
.hero-swiper .swiper-slide::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.55));
    z-index: 1;
}
.hero-swiper .hero-content { position: relative; z-index: 2; width: 100%; padding-top: 80px; text-align: center; }
.homepage-hero .hero-title {
    font-size: 58px; font-weight: 900; letter-spacing: 3px;
    color: white; text-shadow: 2px 4px 12px rgba(0,0,0,0.4);
}
.hero-bottom-bar {
    position: absolute; bottom: 0; width: 100%;
    background: rgba(0,0,0,0.45); backdrop-filter: blur(6px);
    padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.15);
}
.bar-item { display: flex; align-items: center; color: white; justify-content: center; gap: 14px; }
.bar-item i { font-size: 28px; color: var(--accent); }
.bar-item h4 { margin: 0; color: white; font-size: 18px; }
.bar-item p { margin: 0; font-size: 12px; color: rgba(255,255,255,0.75); }

/* ===== GRIDS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 36px; }

/* ===== COURSE CARDS ===== */
.course-card {
    background: white; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--card-shadow); transition: all 0.35s ease;
    border: 1px solid rgba(0,26,51,0.06); display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,26,51,0.15); }
.course-card img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.4s ease; }
.course-card:hover img { transform: scale(1.04); }
.course-card .content { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.course-card .category {
    color: var(--accent); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
    display: inline-flex; align-items: center; gap: 5px;
}
.course-card h4 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 10px; line-height: 1.4; }
.course-card .meta {
    display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted);
    margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border-color);
}
.course-card .meta span { display: flex; align-items: center; gap: 5px; }
.course-card .meta span i { color: var(--accent); }
.course-card .d-flex { margin-top: auto; }
.course-card .price { font-weight: 800; color: var(--primary); font-size: 22px; }
.course-card .price::before { content: ''; }

/* ===== SECTION HEADERS ===== */
.section-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,184,0,0.12); color: var(--accent);
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    padding: 6px 16px; border-radius: 50px; margin-bottom: 14px;
    border: 1px solid rgba(255,184,0,0.25);
}
.section-title { font-size: 36px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.section-title span { color: var(--accent); }
.section-sub { color: var(--text-muted); font-size: 16px; max-width: 580px; margin: 0 auto; }

/* ===== PAGE HEADER (inner pages) ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #003366 100%);
    padding: 60px 0 50px;
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; top: -50%; right: -10%;
    width: 500px; height: 500px; border-radius: 50%;
    background: rgba(255,184,0,0.07);
}
.page-hero h1 { color: white; font-size: 42px; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 16px; margin: 0; }
.page-hero .breadcrumb { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.page-hero .breadcrumb a { color: var(--accent); font-size: 13px; font-weight: 600; }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.4); font-size: 13px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.form-control {
    width: 100%; padding: 12px 16px;
    border: 2px solid var(--border-color); border-radius: var(--radius-sm);
    font-family: var(--body-font); font-size: 15px; background: white;
    transition: border-color 0.3s, box-shadow 0.3s; outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,184,0,0.12); }
.enquiry-form {
    background: white; padding: 32px; border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,26,51,0.12); border-top: 4px solid var(--accent);
}
.compact {
    background: rgba(255,255,255,0.1) !important; border: 1px solid rgba(255,255,255,0.25) !important;
    color: white !important; border-radius: var(--radius-sm);
}
.compact::placeholder { color: rgba(255,255,255,0.55) !important; }
.compact:focus { border-color: var(--accent) !important; box-shadow: none; }

/* ===== STATS BAR ===== */
.stats-bar {
    background: white; padding: 28px 0;
    box-shadow: 0 4px 20px rgba(0,26,51,0.07);
}
.stat-item { text-align: center; }
.stat-item .num { font-size: 36px; font-weight: 900; color: var(--primary); font-family: var(--heading-font); line-height: 1; }
.stat-item .num span { color: var(--accent); }
.stat-item p { color: var(--text-muted); font-size: 13px; margin: 4px 0 0; font-weight: 500; }

/* ===== OVERLAP SECTION ===== */
.overlap-section { position: relative; margin-top: 40px; z-index: 20; }
.overlap-box { display: flex; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 20, 40, 0.45); }
.overlap-left { flex: 6.6; background: white; padding: 44px; }
.overlap-right { flex: 3.4; background: linear-gradient(160deg, #001A33, #003366); padding: 44px; color: white; }
.check-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; color: #444; }
.check-list li::before { content: '✓'; color: var(--accent); font-weight: 900; font-size: 14px; }

/* ===== TECH SECTION ===== */
.tech-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.tech-card { position: relative; height: 150px; border-radius: var(--radius-sm); overflow: hidden; }
.tech-card .overlay {
    position: absolute; bottom: 0; width: 100%;
    background: rgba(0,0,0,0.65); backdrop-filter: blur(3px);
    color: var(--accent); text-align: center; padding: 10px;
    font-weight: 700; font-size: 13px;
}

/* ===== NOTICE CARDS ===== */
.notice-card {
    border: 2px solid rgba(0,26,51,0.08); border-radius: var(--radius);
    padding: 28px; background: white; position: relative;
    box-shadow: 0 4px 20px rgba(0,26,51,0.06);
    transition: all 0.3s;
}
.notice-card:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(0,26,51,0.12); border-color: var(--accent); }
.notice-card h4 { text-align: center; margin-bottom: 16px; font-size: 18px; }
.notice-content { color: #555; font-size: 14px; }
.notice-content ul { list-style: disc; margin-left: 18px; margin-top: 8px; }
.notice-content ul li { color: #0056b3; margin-bottom: 4px; }

/* ===== MODE CARDS ===== */
.mode-card {
    background: white; padding: 14px 28px; border-radius: 50px;
    font-weight: 700; font-size: 14px; color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,26,51,0.08); transition: all 0.3s;
    display: flex; align-items: center; gap: 10px;
    border: 2px solid transparent;
}
.mode-card i { color: var(--accent); font-size: 18px; }
.mode-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255,184,0,0.2); }

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    background: linear-gradient(135deg, #001A33 0%, #003366 100%);
    position: relative; overflow: hidden;
}
.testimonials-section::before {
    content: '"'; font-size: 300px; color: rgba(255,184,0,0.05);
    position: absolute; top: -50px; left: -20px; font-family: serif; line-height: 1;
}
.testimonials-section .container { position: relative; z-index: 2; }
.testimonial-card {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px); padding: 28px; border-radius: var(--radius);
    transition: all 0.3s;
}
.testimonial-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); }
.testimonial-card .avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px; color: white;
}
.testimonial-card .stars { color: var(--accent); font-size: 13px; letter-spacing: 1px; }
.testimonial-card p { font-size: 14px; color: rgba(255,255,255,0.75); margin-top: 14px; line-height: 1.7; }

/* ===== PLACEMENT SWIPER ===== */
.placementSwiper { width: 100%; padding: 50px 0; }
.placementSwiper .swiper-slide {
    width: 320px; height: 320px; border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.22);
}
.placementSwiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swiper-pagination-bullet-active { background: var(--accent) !important; }

/* Global Premium Swiper Arrows */
.swiper-button-next, .swiper-button-prev {
    background: white;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0,26,51,0.15);
    color: var(--primary) !important;
    transition: all 0.3s ease;
    margin-top: -23px !important;
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: 900 !important;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--accent);
    color: var(--primary) !important;
    transform: scale(1.1);
}

/* ===== COURSE DETAIL PAGE ===== */
.course-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.course-details-hero-title { color: white; font-size: 36px; max-width: 750px; line-height: 1.3; }

.course-sidebar .btn { margin-bottom: 10px; }
.course-main h3 { font-size: 22px; margin: 24px 0 12px; color: var(--primary); }
.course-main p { color: #444; line-height: 1.8; }

/* ===== FOOTER ===== */
.footer { background: linear-gradient(135deg, #021428 0%, var(--primary) 100%); border-top: 4px solid var(--accent); color: rgba(255,255,255,0.7); padding: 75px 0 0; position: relative; }
.footer h3 { color: white; margin-bottom: 22px; font-size: 16px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; }
.footer h3::after { content: ''; display: block; width: 40px; height: 3px; background: linear-gradient(90deg, var(--accent), transparent); margin-top: 12px; border-radius: 2px; }
.footer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 40px; margin-bottom: 50px; }
.footer-col p { font-size: 14.5px; line-height: 1.8; color: #cbd5e1; margin-bottom: 14px; }
.footer-col p:has(i) { display: flex; align-items: flex-start; gap: 12px; }
.footer-col p i { color: var(--accent); background: rgba(255,184,0,0.1); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-right: 0; margin-top: 2px; font-size: 14px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #cbd5e1; font-size: 14.5px; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; }
.footer-col ul li a::before { content: '›'; color: var(--accent); font-size: 20px; font-weight: bold; transition: transform 0.3s ease; }
.footer-col ul li a:hover { color: white; padding-left: 6px; }
.footer-col ul li a:hover::before { transform: translateX(3px); }

/* Premium Social Icons */
.footer-social a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    color: white; font-size: 16px; text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
}
.footer-social a:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); color: white !important; border-color: transparent; }
.footer-social a.social-fb:hover { background: #1877F2; }
.footer-social a.social-ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.footer-social a.social-li:hover { background: #0077B5; }
.footer-social a.social-yt:hover { background: #FF0000; }

/* Verify Certificate Footer Button */
.footer-verify-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent); color: var(--primary) !important;
    padding: 10px 18px; border-radius: 6px;
    font-weight: 700; font-size: 13.5px; text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.15);
    letter-spacing: 0.5px;
    position: relative; overflow: hidden;
}
.footer-verify-btn::before { content: none !important; }
.footer-verify-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 35px rgba(255, 184, 0, 0.4);
    background: #ffc933; color: var(--primary) !important;
    padding-left: 18px !important;
}

.footer-bottom {
    background: rgba(0,0,0,0.35); padding: 24px 0;
    font-size: 14px; color: #94a3b8; border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===== COURSES PAGE SPECIFIC ===== */
.courses-hero {
    background: linear-gradient(135deg, #001A33 0%, #003a6e 60%, #001f4d 100%);
    min-height: 430px !important; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden;
    text-align: center;
}
.courses-hero::before {
    content: '';
    position: absolute; top: -60px; right: -60px;
    width: 350px; height: 350px; border-radius: 50%;
    background: rgba(255,184,0,0.06); pointer-events: none;
}
.courses-hero::after {
    content: '';
    position: absolute; bottom: -1px; left: 0; right: 0; height: 55px;
    background: var(--light-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.courses-hero h1 { color: white; font-size: 44px; margin-bottom: 10px; position: relative; z-index: 2; }
.courses-hero p { color: rgba(255,255,255,0.72); font-size: 16px; position: relative; z-index: 2; }
.courses-hero .section-badge { position: relative; z-index: 2; }

.course-filter-bar {
    display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
    margin: 30px 0 28px;
}
.filter-btn {
    padding: 9px 22px; border-radius: 50px; border: 2px solid var(--border-color);
    background: white; font-family: var(--body-font); font-weight: 600; font-size: 13px;
    cursor: pointer; transition: all 0.25s; color: var(--text-muted);
    box-shadow: 0 2px 8px rgba(0,26,51,0.06);
}
.filter-btn:hover, .filter-btn.active {
    border-color: var(--accent); background: var(--accent); color: var(--primary);
    box-shadow: 0 4px 15px rgba(255,184,0,0.3);
}

/* ===== RESPONSIVE ===== */
.d-none { display: none; }

@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2,1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .course-layout { grid-template-columns: 1fr; }
    .blog-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2,1fr); }
    .overlap-box { flex-direction: column; }
    .tech-grid { grid-template-columns: repeat(2,1fr); }
    .homepage-hero .hero-title { font-size: 42px; }
}

@media (max-width: 768px) {
    .topbar .contact-info { display: none; }
    .top-auth { border-right: none; margin-right: 0; padding-right: 0; }
    
    .mobile-toggle { 
        display: flex !important; 
        font-size: 22px; 
        color: var(--primary); 
        cursor: pointer; 
        width: 40px; height: 40px; 
        align-items: center; justify-content: center;
        background: #f0f2f5; border-radius: 8px;
        margin-right: 15px;
    }
    .transparent-header .mobile-toggle { color: white; background: rgba(255,255,255,0.1); }
    
    .main-nav {
        position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
        background: white; z-index: 9999; padding: 0;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1); transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: block !important;
        overflow-y: auto; /* Enable scrolling for long menus */
    }
    .mobile-nav-header { 
        display: flex !important; justify-content: space-between; align-items: center; 
        padding: 20px; border-bottom: 1px solid #f0f2f5; margin-bottom: 0;
        position: sticky; top: 0; background: white; z-index: 10;
    }
    .main-nav.mobile-active { right: 0; }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; padding: 15px; }
    .main-nav ul li { width: 100%; border-bottom: 1px solid #f1f5f9; }
    .main-nav ul li:last-child { border-bottom: none; }
    .main-nav ul li a { 
        width: 100%; padding: 14px 15px; font-size: 15px; font-weight: 600;
        border-radius: 8px; border-bottom: none;
        color: var(--primary) !important;
        transition: all 0.3s ease;
    }
    .main-nav ul li a:hover, .main-nav ul li a.active-link { 
        background: #f8fafc; color: #001A33 !important;
        transform: translateX(4px);
    }
    
    .d-mobile-none { display: none !important; }
    .user-welcome { padding: 8px 14px; font-size: 14px; }
    .user-welcome i { font-size: 16px; }
    .dropdown-content {
        position: fixed; top: auto; bottom: 0; left: 50%; right: auto;
        transform: translateX(-50%) translateY(100%);
        width: 95%; max-width: 400px; border-radius: 20px;
        margin-bottom: 20px;
        box-shadow: 0 10px 60px rgba(0,0,0,0.5);
        z-index: 100002 !important;
        background: #ffffff !important;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: block !important; visibility: hidden; opacity: 0;
    }
    .dropdown-content.show { 
        visibility: visible; opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    .dropdown-header { padding: 25px 20px; border-radius: 20px 20px 0 0; }
    .dropdown-body { padding: 10px 0 20px; }
    
    .mobile-overlay { 
        display:none; position:fixed; inset:0; 
        background:rgba(0,26,51,0.6); backdrop-filter:blur(3px); z-index:9998; 
    }
    .mobile-overlay.active { display:block; }
    
    .hero h1 { font-size: 32px; }
    .section-title { font-size: 30px; }
    .homepage-hero .hero-title { font-size: 36px; letter-spacing: 1px; }
    .courses-hero h1 { font-size: 30px; }
    .course-details-hero-title { font-size: 28px !important; }
    .skills-grid { grid-template-columns: 1fr; }
    
    .grid-3 { grid-template-columns: 1fr; }
    
    /* Footer Mobile UI Improvements */
    .footer { padding: 45px 0 15px; }
    .footer-grid { grid-template-columns: 1fr; gap: 35px; text-align: center; margin-bottom: 30px; }
    .footer-col { display: flex; flex-direction: column; align-items: center; padding-right: 0 !important; }
    .footer-col img { margin-left: auto; margin-right: auto; }
    .footer h3 { margin-bottom: 16px; font-size: 18px; }
    .footer h3::after { margin: 10px auto 0; }
    .footer-col p { text-align: center; justify-content: center; }
    .footer-col ul { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 0; }
    .footer-col ul li a { justify-content: center; }
    .footer-social { justify-content: center; width: 100%; margin-top: 15px !important; }
    .footer-bottom .container { flex-direction: column; gap: 10px; text-align: center; }
    
    .header .logo img { height: 75px; }
    
    /* Hero Bottom Bar UI Fix */
    .hero-bottom-bar .grid-3 { width: fit-content; margin: 0 auto; gap: 24px; }
    .hero-bottom-bar .bar-item { justify-content: flex-start; text-align: left; }
    
    /* Learning Modes UI Fix */
    .learning-modes .container { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 15px !important; }
    .learning-modes h3 { grid-column: 1 / -1; text-align: center; margin-bottom: 5px !important; }
    .mode-card { justify-content: center; padding: 12px; font-size: 12px; }
}

@media (max-width: 480px) {
    .container { width: 92%; }
    .homepage-hero .hero-title { font-size: 28px; }
    .section-title { font-size: 26px; }
    .btn { padding: 10px 22px; font-size: 12px; }
}

/* ===== MISC ===== */
.tech-modal {
    display: none; position: fixed; z-index: 99999; padding-top: 50px;
    left: 0; top: 0; width: 100%; height: 100%; overflow: auto;
    background: rgba(0,0,0,0.92); backdrop-filter: blur(4px);
}
.tech-modal-content {
    margin: auto; display: block; max-width: 90%; max-height: 90vh;
    border-radius: var(--radius); animation: zoomIn 0.3s ease;
}
.tech-modal-close {
    position: absolute; top: 18px; right: 35px; color: #f1f1f1;
    font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.3s;
}
.tech-modal-close:hover { color: var(--accent); }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
