/* ========================================= 
   Main stylesheet - modern education theme
   ========================================= */
:root {
    --primary-blue: #0288D1;
    --primary-red: #E53935;
    --dark: #0f1724;
    --muted: #6b7280;
    --card-bg: #ffffff;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    color: var(--dark);
    background: #f7fafc;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ========================
   Header / Navbar
   ======================== */
.header {
    background: #fff;
    border-bottom: 1px solid #e6eef6;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .brand img {
        height: 48px;
    }

/* Links */
.nav-links {
    display: flex;
    gap: 14px;
    align-items: center;
}

    .nav-links a {
        color: var(--dark);
        text-decoration: none;
        padding: 8px 12px;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

.nav-link:hover {
    background-color: #0288D1;
}

/* =========================
   TOP-LEVEL MENU HOVER (Desktop)
   ========================= */
@media (min-width: 993px) {
    .nav-links .nav-item > a:hover, .nav-links .nav-item > a:focus {
        background-color: var(--primary-blue);
        color: #fff;
    }

    .nav-links .nav-item.dropdown:hover > a {
        background-color: var(--primary-blue);
        color: #fff;
    }
}

/* Mega Menu - Desktop */
.mega {
    position: relative;
}

    .mega .dropdown {
        position: absolute;
        left: 0;
        top: calc(100% + 8px);
        width: 100vw; /* Full width */
        background: #fff;
        box-shadow: 0 8px 20px rgba(16,24,40,0.08);
        padding: 20px 40px;
        display: none;
        border-radius: 10px;
        z-index: 999;
    }

    .mega:hover .dropdown {
        display: flex;
    }

    .mega .dropdown .col {
        flex: 1;
        padding: 8px 16px;
    }

        .mega .dropdown .col h4 {
            margin-top: 0;
            font-size: 15px;
            color: var(--primary-blue);
        }

/* Mega menu items hover */
.dropdown-menu.mega-menu a.list-group-item-action:hover {
    background-color: var(--primary-blue);
    color: #fff;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(16,24,40,0.06);
}

/* Carousel */
.carousel img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

/* Buttons */
.btn-primary {
    background: var(--primary-blue);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
}

.btn-outline {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
}

/* Forms */
.form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

    .form-row .field {
        flex: 1;
        min-width: 180px;
    }

input, textarea, select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e6eef6;
    background: #fff;
}

/* Tiny utility */
.kv {
    color: #6b7280;
    font-size: 0.95rem;
}

/* =========================
   Carousel Dots Styling
   ========================= */
.carousel-indicators {
    position: absolute;
    bottom: -35px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

    .carousel-indicators [data-bs-target] {
        background-color: #0288D1 !important;
        opacity: 0.7;
    }

    .carousel-indicators button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: var(--primary-blue);
        border: none;
        opacity: 0.7;
    }

    .carousel-indicators .active {
        background-color: #ED3237 !important;
        opacity: 1;
    }

    .carousel-indicators [data-bs-target]:hover {
        background-color: #333333 !important;
    }

/* Dropdown hover fix */
.nav-item {
    padding: 0.5rem 0px;
}

.dropdown-hover:hover > .dropdown-menu {
    display: inline-block;
}

.dropdown-hover > .dropdown-toggle:active {
    pointer-events: none;
}

/* ========================
   Mobile Navigation Drawer
   ======================== */
.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 24px;
    cursor: pointer;
}

.nav-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: 4px 0 18px rgba(0,0,0,0.1);
    z-index: 1500;
    overflow-y: auto;
    transition: left 0.35s ease;
    padding: 24px 20px;
}

    .nav-drawer.active {
        left: 0;
    }

    .nav-drawer .close-btn {
        display: flex;
        justify-content: flex-end;
        font-size: 22px;
        cursor: pointer;
        color: var(--primary-blue);
        margin-bottom: 12px;
    }

    .nav-drawer ul {
        list-style: none;
        padding: 0;
    }

        .nav-drawer ul li {
            margin: 12px 0;
        }

        .nav-drawer ul a {
            text-decoration: none;
            color: var(--dark);
            font-weight: 600;
            display: block;
            padding: 8px;
            border-radius: 8px;
        }

        .nav-drawer ul li > a:hover,
        .nav-drawer ul li.active > a,
        .nav-drawer ul li .submenu li a:hover {
            background-color: var(--primary-blue);
            color: #fff;
        }

.submenu {
    display: none;
    padding-left: 15px;
}

    .submenu.active {
        display: block;
    }

.submenu-toggle i {
    transition: transform 0.3s ease;
}

    .submenu-toggle i.rotate {
        transform: rotate(180deg);
    }

/* Overlay when drawer opens */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 1400;
    transition: opacity 0.3s ease;
}

    .overlay.active {
        display: block;
        opacity: 1;
    }

/* === Mega Menu Full Width (Desktop) === */
.dropdown-hover.position-static .dropdown-menu.mega-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    border-radius: 0;
    margin: 0;
    padding: 30px 40px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 999;
}

@media (min-width: 993px) {
    .dropdown-hover:hover > .dropdown-menu.mega-menu {
        display: block;
    }
}

.dropdown-menu.mega-menu .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
}
.social-icons a {
    transition: color 0.3s ease;
}

    .social-icons a:hover {
        color: #ED3237; /* Change to any color you want on hover */
    }
    .social-icons a.text-white:hover {
        color: #ED3237 !important;
    }
    .social-icons a.facebook:hover {
        color: #3b5998 !important;
    }
    /* Facebook blue */
    .social-icons a.instagram:hover {
        color: #E1306C !important;
    }
    /* Instagram pink */
    .social-icons a.linkedin:hover {
        color: #0077B5 !important;
    }
footer a.text-white:hover {
    color: #ED3237 !important; /* Red color on hover */
    background-color: transparent !important; /* No background */
    text-decoration: underline; /* Optional */
}
.hover-effect {
    transition: all 0.3s ease;
}

    .hover-effect:hover {
        background-color: #f8f9fa;
        transform: translateY(-4px);
        border-color: #0288D1 !important;
        box-shadow: 0 4px 12px rgba(2, 136, 209, 0.2);
    }
/* LinkedIn blue */

/* ========================
   Responsive Adjustments
   ======================== */
@media (max-width: 992px) {
    .dropdown-hover.position-static .dropdown-menu.mega-menu {
        position: static;
        width: 100%;
        top: auto;
        left: auto;
        padding: 15px 20px;
        display: none;
        box-shadow: none;
        border: 0;
    }

    .dropdown-hover.active .dropdown-menu.mega-menu {
        display: block;
    }

    .mega .dropdown {
        position: static;
        width: 100%;
        margin-top: 8px;
        display: none;
        flex-direction: column;
        box-shadow: none;
        padding: 10px 0;
    }

    .mega:hover .dropdown {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
        color: var(--primary-blue);
    }
}
/* =====================================================
   JRIT Typography Enhancement (Safe Patch)
   Place at end of existing style.css
   ===================================================== */

/* ---------- Font Imports ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600&display=swap');

/* ---------- Global Typography ---------- */
body {
    font-family: "Inter", "Poppins", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #0f1724 !important;
    line-height: 1.7 !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Poppins", "Inter", sans-serif !important;
    color: #0f1724 !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
}

p, li, span, a, button, input, textarea, select {
    font-family: "Inter", sans-serif !important;
}

/* ---------- Link Styling ---------- */
a {
    color: #0288D1 !important;
    text-decoration: none !important;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

    a:hover {
        color: #E53935 !important;
        text-decoration: underline !important;
    }

/* ---------- Buttons ---------- */
button, .btn {
    font-family: "Poppins", sans-serif !important;
    font-weight: 500 !important;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0288D1 !important;
    border: none !important;
}

    .btn-primary:hover {
        background-color: #0270af !important;
    }

/* ---------- Footer Typography ---------- */
footer {
    font-family: "Inter", "Poppins", sans-serif !important;
    font-size: 0.95rem !important;
    color: #ffffff !important;
    line-height: 1.8 !important;
}

    footer h5 {
        font-family: "Poppins", sans-serif !important;
        font-weight: 600 !important;
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
        color: #ffffff !important;
    }

    footer p {
        font-family: "Inter", sans-serif !important;
        color: #f5f7fa !important;
        font-size: 0.95rem !important;
        margin-bottom: 0.6rem !important;
    }

    footer ul li a {
        font-family: "Inter", sans-serif !important;
        font-size: 0.93rem !important;
        color: #f1f5f9 !important;
        transition: color 0.3s ease;
    }

        footer ul li a:hover {
            color: #ED3237 !important;
            text-decoration: underline !important;
        }

    footer .social-icons a {
        transition: color 0.3s ease;
    }

        footer .social-icons a.facebook:hover {
            color: #3b5998 !important;
        }

        footer .social-icons a.instagram:hover {
            color: #E1306C !important;
        }

        footer .social-icons a.linkedin:hover {
            color: #0077B5 !important;
        }

    footer hr {
        border-color: rgba(255, 255, 255, 0.25) !important;
    }

    footer .text-center.small {
        font-size: 0.85rem !important;
        color: rgba(255, 255, 255, 0.85) !important;
    }

/* ---------- Headings (Balanced Sizes) ---------- */
h1 {
    font-size: 2.2rem !important;
}

h2 {
    font-size: 1.8rem !important;
}

h3 {
    font-size: 1.5rem !important;
}

h4 {
    font-size: 1.25rem !important;
}

h5 {
    font-size: 1.1rem !important;
}

h6 {
    font-size: 1rem !important;
}

/* ---------- Paragraph ---------- */
p {
    font-size: 1rem !important;
    color: #374151 !important;
}

/* ---------- Responsive Font Adjustments ---------- */
@media (max-width: 768px) {
    body {
        font-size: 15px !important;
    }

    footer {
        text-align: center !important;
        font-size: 0.9rem !important;
    }

        footer h5 {
            font-size: 1rem !important;
        }
}


/* =====================================================
   JRIT Header + Footer Visual Enhancement (No layout change)
   ===================================================== */

/* ----- Header Area ----- */
.header {
    background: #f9fafc !important;
    border-bottom: 1px solid #e4eaf0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

.nav-links a {
    font-weight: 500 !important;
    font-size: 1rem !important;
    color: #0277BD !important;
    transition: all 0.3s ease;
}

    .nav-links a:hover {
        color: #E53935 !important;
        text-decoration: underline !important;
    }

/* ----- Sign Up Button Fix ----- */
.navbar .btn-primary,
.btn-primary {
    background-color: #0288D1 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 8px 18px !important;
    transition: all 0.3s ease;
}

    .navbar .btn-primary:hover,
    .btn-primary:hover {
        background-color: #026ca4 !important;
        color: #ffffff !important;
        transform: translateY(-1px);
    }

/* ----- Footer Enhancement ----- */
footer {
    background: linear-gradient(90deg, #0288D1 0%, #0277BD 100%) !important;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

    footer h5 {
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    footer p, footer a {
        font-size: 0.95rem !important;
    }

        footer a:hover {
            color: #FFD54F !important; /* soft yellow for hover */
            text-decoration: underline !important;
        }

    footer .social-icons a {
        background: rgba(255,255,255,0.1);
        padding: 8px;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

        footer .social-icons a:hover {
            background: rgba(255,255,255,0.25);
        }

/* ----- Mobile Adjustments ----- */
@media (max-width: 768px) {
    .nav-links a {
        font-size: 0.95rem !important;
    }

    footer {
        text-align: center !important;
    }
}
