:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #eef2ff;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --warning-color: #f59e0b;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --border-radius: 16px;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Avatar Utils */
.avatar-circle {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    flex-shrink: 0;
}

.avatar-circle-sm { width: 32px; height: 32px; font-size: 0.85rem; }
.avatar-circle-md { width: 80px; height: 80px; font-size: 1.75rem; }
.avatar-circle-lg { width: 150px; height: 150px; font-size: 3.5rem; }

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #334155;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

/* Navigation */
nav.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 1000;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

nav.navbar-custom:hover {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    margin-right: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.navbar-logo {
    height: 50px;
    width: auto;
    border-radius: 50%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.navbar-brand:hover {
    transform: scale(1.03);
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.nav-link {
    color: #1e293b !important;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    margin: 0 0.15rem;
    padding: 0.6rem 1rem !important;
    position: relative;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: var(--primary-light);
    font-weight: 700;
}

.nav-link::after {
    display: none;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: var(--primary-light);
}

.nav-divider {
    width: 2px;
    height: 28px;
    background: linear-gradient(to bottom, transparent, #ccc, transparent);
    margin: 0 0.75rem;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    animation: slideDown 0.3s ease;
}

.dropdown-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 1.25rem;
}

.dropdown-item i {
    color: var(--primary-color);
}

/* Hover dropdowns (Courses / Internships) */
.nav-hover-dropdown:hover>.dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown-mega {
    min-width: 220px;
    max-width: 280px;
    padding: 0.5rem 0;
}

.dropdown-mega-inner {
    padding: 0.25rem 0;
}

.dropdown-mega .dropdown-header {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
    color: inherit;
}

.dropdown-mega .dropdown-item {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0;
    border-radius: 0;
    transition: all 0.2s ease;
}

.dropdown-mega .dropdown-item:hover {
    background-color: #f8f9fa;
    padding-left: 1.25rem;
}

.dropdown-cta {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem 0.25rem;
    border-top: 1px solid #eee;
}

.dropdown-cta .btn {
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
}

/* Social Links */
.navbar-social {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: #666;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
}

/* Facebook */
.facebook-link {
    color: #1877F2;
}

.facebook-link:hover {
    color: #0A66C2;
    filter: drop-shadow(0 0 5px rgba(24, 119, 242, 0.4));
}

/* LinkedIn */
.linkedin-link {
    color: #0A66C2;
}

.linkedin-link:hover {
    color: #054399;
    filter: drop-shadow(0 0 5px rgba(10, 102, 194, 0.4));
}

/* Instagram */
.instagram-link {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #833AB4, #FD1D1D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.instagram-link:hover {
    filter: drop-shadow(0 0 5px rgba(221, 42, 123, 0.4));
}

/* YouTube */
.youtube-link {
    color: #FF0000;
}

.youtube-link:hover {
    color: #CC0000;
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.4));
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Components */
.premium-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-bounce);
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Navbar Button Styling */
.navbar .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem !important;
    border-radius: 10px;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    color: #fff !important;
}

.navbar .btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    color: #fff !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fallback gradient - overridden by inline background-image when set */
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #312e81 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    overflow: hidden;
    margin-top: 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInDown 0.8s ease;
    padding: 2rem;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -1px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: #e0e7ff;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards */
.card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: var(--transition);
    overflow: hidden;
    background: #fff;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-light);
}

.hover-lift {
    transition: var(--transition-bounce);
}

.hover-lift:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl) !important;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.service-card {
    border-top: 4px solid var(--primary-color);
    border-radius: 16px;
}

.course-card {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card .card-body {
    flex: 1;
    padding: 0.75rem 1rem;
}

.course-card .card-footer {
    padding: 0.75rem 1rem;
    margin-top: auto;
}

.course-card .card-title {
    font-size: 1rem;
    margin-top: 0.5rem !important;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.course-card .card-text {
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.course-card .course-meta {
    font-size: 0.8rem;
    margin: 0.5rem 0 0 0;
}

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

.course-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.course-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.course-price {
    display: inline-block;
    background-color: var(--success-color, #28a745);
    color: #fff;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.course-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #666;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    border: none;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.75rem 1.75rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #4f46e5 0%, var(--primary-color) 100%);
}

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

/* Sections */
section {
    padding: 6rem 0;
}

section h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 3.5rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), #818cf8);
    border-radius: 10px;
}

/* Alternate section backgrounds */
.section-muted {
    background: linear-gradient(135deg, #f8f9ff 0%, #fdfdff 100%);
}

.section-highlight {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.06) 0%, rgba(13, 110, 253, 0.02) 100%);
}

/* About Section Styles */
.about-section {
    padding: 5rem 0;
}

.about-heading {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.about-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #0b5ed7);
    border-radius: 2px;
}

.about-tagline {
    font-size: 1.35rem;
    font-weight: 600;
    color: #444;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 1.05rem;
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.about-features li:last-child {
    border-bottom: none;
}

.about-features li i {
    font-size: 1.1rem;
    margin-top: 0.15rem;
}

.about-features li span {
    font-weight: 500;
}

.about-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
}

.about-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
}

.about-card-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

.about-card hr {
    border-color: rgba(0, 0, 0, 0.1);
}

/* Team Section Styles */
.team-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.team-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    object-position: top center;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}

.team-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Feature Box */
.feature-box {
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    background-color: #f5f5f5;
}

.feature-box:hover {
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--light-color);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.feature-box h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.value-box {
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, #ffffff 0%, #f3f6ff 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.value-box:hover {
    background-color: var(--light-color);
    transform: translateY(-5px);
}

/* Contact Icon */
.contact-icon {
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    display: inline-block;
    margin-bottom: 1rem;
}

/* Buttons */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    padding: 0.6rem 1.25rem;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
}

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

.btn {
    border-radius: 8px;
    transition: var(--transition);
}

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

/* Forms */
.form-control,
.form-select {
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    margin-top: 5rem;
    padding: 4rem 0 2rem;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #fff;
    font-size: 1.1rem;
}

footer a {
    transition: var(--transition);
    color: #94a3b8;
    text-decoration: none;
}

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

.footer-links a {
    color: #e2e8f0;
    display: inline-block;
    padding: 0.25rem 0;
}

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

footer hr {
    border-color: #334155;
    margin: 2rem 0;
}

/* Dashboard / stats */
.stat-card {
    border-radius: var(--border-radius);
    padding: 1.4rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

.stat-card-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.stat-card-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

.stat-card-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-card.primary {
    background: linear-gradient(135deg, #0d6efd, #2563eb);
}

.stat-card.success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.stat-card.warning {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.stat-card.info {
    background: linear-gradient(135deg, #06b6d4, #0ea5e9);
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Extra Small Devices (phones, 320px and up) */
@media (max-width: 479px) {
    .hero-section {
        min-height: 70vh;
        margin-top: 60px;
        padding: 1.5rem;
        background-attachment: scroll;
        background-size: cover !important;
        background-position: center center !important;
    }

    .hero-section h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        padding: 0 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .hero-section .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }

    /* Navigation */
    nav.navbar-custom {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-logo {
        height: 35px;
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-social {
        justify-content: center;
        padding: 1rem 0;
        gap: 2rem;
    }

    .nav-divider {
        display: none;
    }

    /* Sections */
    section {
        padding: 2.5rem 0;
    }

    section h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    section h2::after {
        width: 40px;
        height: 3px;
    }

    /* Cards */
    .card {
        margin-bottom: 1rem;
    }

    .course-card .card-body {
        padding: 1rem;
    }

    .course-image {
        height: 160px;
    }

    .course-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    /* Feature boxes */
    .feature-box {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .feature-box h4 {
        font-size: 1.1rem;
    }

    /* Value boxes */
    .value-box {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Buttons - Touch friendly (min 44px) */
    .btn {
        min-height: 44px;
        padding: 0.6rem 1rem;
    }

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

    .btn-sm {
        min-height: 40px;
        padding: 0.5rem 0.75rem;
    }

    /* Forms */
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px;
        /* Prevents iOS zoom */
    }

    /* Footer */
    footer {
        padding: 2.5rem 0 1.5rem;
        margin-top: 3rem;
    }

    footer .row>div {
        text-align: center;
        margin-bottom: 2rem;
    }

    footer h5 {
        margin-bottom: 1rem;
    }

    footer .list-unstyled li {
        margin-bottom: 0.5rem;
    }

    /* Stat cards */
    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .stat-card-value {
        font-size: 1.5rem;
    }

    /* Modals */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-body {
        padding: 1rem;
    }

    /* Dropdown mega menu */
    .dropdown-mega {
        min-width: 100%;
        max-width: 100%;
    }

    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Small Devices (landscape phones, 480px - 575px) */
@media (min-width: 480px) and (max-width: 575px) {
    .hero-section {
        min-height: 85vh;
        margin-top: 70px;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.6rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .course-image {
        height: 180px;
    }
}

/* Small Devices (tablets portrait, 576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-section {
        min-height: 75vh;
        margin-top: 65px;
        background-attachment: scroll;
        background-size: cover !important;
        background-position: center center !important;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    nav.navbar-custom {
        padding: 0.8rem 0;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    section {
        padding: 3rem 0;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .course-image {
        height: 180px;
    }

    .feature-box {
        padding: 1.5rem;
    }

    footer .row>div {
        text-align: left;
    }

    /* Two column layout for cards */
    .service-card,
    .course-card {
        margin-bottom: 1.5rem;
    }
}

/* Medium Devices (tablets landscape, 768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        min-height: 80vh;
        margin-top: 60px;
        background-attachment: scroll;
        background-size: cover !important;
        background-position: center center !important;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    nav.navbar-custom {
        padding: 1rem 0;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-logo {
        height: 40px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.5rem !important;
    }

    section {
        padding: 4rem 0;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .course-image {
        height: 180px;
    }

    .feature-box {
        padding: 1.75rem;
    }

    .stat-card {
        padding: 1.2rem;
    }

    .stat-card-value {
        font-size: 1.6rem;
    }

    /* Dropdown adjustments */
    .dropdown-mega {
        min-width: 400px;
    }
}

/* Large Devices (desktops, 992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-section {
        min-height: 100vh;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .navbar-brand {
        font-size: 1.6rem;
    }

    .nav-link {
        font-size: 0.92rem;
        padding: 0.4rem 0.6rem !important;
    }

    section h2 {
        font-size: 2.2rem;
    }

    .course-image {
        height: 190px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    section h2 {
        font-size: 2.5rem;
    }

    .course-image {
        height: 200px;
    }

    /* Maximum content width */
    .container {
        max-width: 1140px;
    }
}

/* Extra Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-section h1 {
        font-size: 4rem;
    }
}

/* Print Styles */
@media print {

    .navbar,
    footer,
    .btn {
        display: none !important;
    }

    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    section {
        padding: 1rem 0;
    }
}

/* Hover effects only for devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: translateY(-8px);
    }

    .course-card:hover {
        transform: translateY(-5px);
    }

    .nav-link:hover::after {
        width: 80%;
    }

    .social-link:hover {
        transform: translateY(-3px);
    }

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

/* Touch devices - disable hover transforms */
@media (hover: none) {

    .card:hover,
    .course-card:hover {
        transform: none;
    }

    .btn-primary:hover {
        transform: none;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ==================== DARK MODE ==================== */

/* Dark mode toggle button */
.dark-mode-toggle {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1001;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: #1e293b;
    color: #fbbf24;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.dark-mode-toggle .icon-sun { display: none; }
.dark-mode-toggle .icon-moon { display: inline; }

[data-theme="dark"] .dark-mode-toggle {
    background: #fbbf24;
    color: #1e293b;
}

[data-theme="dark"] .dark-mode-toggle .icon-sun { display: inline; }
[data-theme="dark"] .dark-mode-toggle .icon-moon { display: none; }

/* Dark Mode Styles */
[data-theme="dark"] {
    --primary-color: #6366f1;
    --primary-hover: #818cf8;
    --primary-light: #312e81;
    --dark-color: #e2e8f0;
    --light-color: #0f172a;
}

[data-theme="dark"] body {
    background: #0f172a;
    color: #cbd5e1;
}

[data-theme="dark"] .main-content {
    background: #0f172a;
}

/* Navbar dark mode */
[data-theme="dark"] nav.navbar-custom {
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
}

[data-theme="dark"] nav.navbar-custom.scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
}

[data-theme="dark"] .nav-link {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .nav-link:hover {
    color: #818cf8 !important;
}

[data-theme="dark"] .navbar-brand strong {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .navbar-toggler-icon {
    filter: invert(1);
}

/* Card dark mode */
[data-theme="dark"] .card {
    background: #1e293b;
    border-color: rgba(255,255,255,0.05);
    color: #cbd5e1;
}

[data-theme="dark"] .card-body {
    color: #cbd5e1;
}

[data-theme="dark"] .card-footer {
    background: #1e293b !important;
    border-color: rgba(255,255,255,0.05);
}

[data-theme="dark"] .card .text-muted {
    color: #94a3b8 !important;
}

[data-theme="dark"] .card-title {
    color: #f1f5f9;
}

[data-theme="dark"] .card .text-dark {
    color: #e2e8f0 !important;
}

/* Section backgrounds */
[data-theme="dark"] .section-muted,
[data-theme="dark"] .bg-light {
    background: #1e293b !important;
}

[data-theme="dark"] section {
    background: #0f172a;
}

/* Text colors */
[data-theme="dark"] h1, [data-theme="dark"] h2,
[data-theme="dark"] h3, [data-theme="dark"] h4,
[data-theme="dark"] h5, [data-theme="dark"] h6 {
    color: #f1f5f9;
}

[data-theme="dark"] p {
    color: #94a3b8;
}

[data-theme="dark"] .text-muted {
    color: #64748b !important;
}

[data-theme="dark"] .lead {
    color: #94a3b8;
}

/* Forms */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background: #1e293b;
    border-color: #6366f1;
    color: #e2e8f0;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

[data-theme="dark"] .form-control::placeholder {
    color: #64748b;
}

/* Dropdowns */
[data-theme="dark"] .dropdown-menu {
    background: #1e293b;
    border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .dropdown-item {
    color: #cbd5e1;
}

[data-theme="dark"] .dropdown-item:hover {
    background: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .dropdown-header {
    color: #818cf8 !important;
}

/* Buttons */
[data-theme="dark"] .btn-outline-primary {
    color: #818cf8;
    border-color: #818cf8;
}

[data-theme="dark"] .btn-outline-primary:hover {
    background: #818cf8;
    color: #fff;
}

[data-theme="dark"] .btn-outline-secondary {
    color: #94a3b8;
    border-color: #475569;
}

[data-theme="dark"] .btn-light {
    background: #f1f5f9;
    color: #1e293b;
}

/* Feature boxes */
[data-theme="dark"] .feature-box {
    background: #1e293b !important;
    border-color: rgba(255,255,255,0.05) !important;
}

[data-theme="dark"] .feature-box:hover {
    border-color: #6366f1 !important;
}

[data-theme="dark"] .feature-box h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .feature-box p {
    color: #94a3b8;
}

/* About section */
[data-theme="dark"] .about-description {
    color: #94a3b8;
}

[data-theme="dark"] .about-features li span {
    color: #cbd5e1;
}

[data-theme="dark"] .about-card {
    background: linear-gradient(135deg, #1e293b, #334155);
}

[data-theme="dark"] .about-card-text {
    color: #94a3b8 !important;
}

/* Badges */
[data-theme="dark"] .badge.bg-light {
    background: #334155 !important;
    color: #818cf8 !important;
}

/* Alert and modals */
[data-theme="dark"] .alert-info {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
}

[data-theme="dark"] .modal-content {
    background: #1e293b;
    color: #cbd5e1;
}

[data-theme="dark"] .modal-header {
    border-color: #334155;
}

[data-theme="dark"] .modal-footer {
    border-color: #334155;
}

[data-theme="dark"] .btn-close {
    filter: invert(1);
}

/* Accordion */
[data-theme="dark"] .accordion-item {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .accordion-button {
    background: #1e293b;
    color: #e2e8f0;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background: #334155;
    color: #818cf8;
}

[data-theme="dark"] .accordion-body {
    background: #1e293b;
}

[data-theme="dark"] .list-group-item {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

/* Hero section dark mode */
[data-theme="dark"] .hero-section {
    background-color: #0f172a;
}

/* Footer stays dark anyway, but tweak borders */
[data-theme="dark"] .footer-modern {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
}

/* Breadcrumbs and page headers */
[data-theme="dark"] .breadcrumb-item a {
    color: #818cf8;
}

[data-theme="dark"] .breadcrumb-item.active {
    color: #94a3b8;
}

/* Course search/filter */
[data-theme="dark"] .course-filters-box {
    background: #1e293b;
    border-color: #334155;
}

/* Tables */
[data-theme="dark"] .table {
    color: #cbd5e1;
}

[data-theme="dark"] .table thead th {
    border-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .table td {
    border-color: #334155;
}

/* Contact page cards */
[data-theme="dark"] .contact-info-card {
    background: #1e293b;
    border-color: rgba(255,255,255,0.05);
}

/* Border utility override */
[data-theme="dark"] .border {
    border-color: #334155 !important;
}

[data-theme="dark"] hr {
    border-color: #334155;
    opacity: 0.3;
}

/* Scrollbar dark mode */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #0f172a;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Course description */
[data-theme="dark"] .course-description div {
    color: #94a3b8;
}

/* Pagination */
[data-theme="dark"] .page-link {
    background: #1e293b;
    border-color: #334155;
    color: #818cf8;
}

[data-theme="dark"] .page-link:hover {
    background: #334155;
    color: #c7d2fe;
}

/* WhatsApp float stays green */

/* ==================== UTILITIES ==================== */

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Fluid Typography */
html {
    scroll-behavior: smooth;
    font-size: clamp(14px, 2vw, 16px);
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Hide on mobile utility */
@media (max-width: 767px) {
    .d-mobile-none {
        display: none !important;
    }
}

/* Hide on desktop utility */
@media (min-width: 768px) {
    .d-desktop-none {
        display: none !important;
    }
}

/* Full width on mobile */
@media (max-width: 575px) {
    .w-mobile-100 {
        width: 100% !important;
    }
}

/* Better text wrapping */
h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

/* Alert Messages - Always visible above navbar */
.alert {
    position: relative;
    z-index: 1001;
    margin-bottom: 1rem;
}

/* Form page alerts to appear above navbar */
section[style*="margin-top: 100px"] .alert {
    margin-top: -80px;
    margin-bottom: 20px;
}

/* Course Description Formatting */
.course-description div {
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
}

.course-description div::before {
    content: '';
}

/* Bold key sections using regex-like approach via text content */
.course-description strong {
    font-weight: 700;
    color: var(--primary-color);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-float i {
    margin: 0;
}

/* Modern Footer Redesign */
.footer-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.footer-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-description {
    line-height: 1.8;
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-offer-list li {
    font-size: 0.95rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
}

.footer-link-item {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.3rem 0;
    font-size: 0.95rem;
}

.footer-link-item i {
    color: transparent;
    transition: all 0.3s ease;
    transform: translateX(-10px);
}

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

.footer-link-item:hover i {
    color: var(--primary-color);
    transform: translateX(0);
}

.footer-contact-info p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

/* Glowing Social Circles */
.footer-social-wrapper {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-circle:hover {
    transform: translateY(-5px) scale(1.1);
    color: #fff;
}

.footer-social-circle.facebook {
    background: #1877f2;
    border-color: #1877f2;
}

.footer-social-circle.facebook:hover {
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.footer-social-circle.linkedin {
    background: #0077b5;
    border-color: #0077b5;
}

.footer-social-circle.linkedin:hover {
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.footer-social-circle.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}

.footer-social-circle.instagram:hover {
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.4);
}

.footer-social-circle.youtube {
    background: #ff0000;
    border-color: #ff0000;
}

.footer-social-circle.youtube:hover {
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}