﻿/* ===============================
   GLOBAL CONTENT WIDTH
================================ */
@media (min-width: 1200px) {
    .container {
        max-width: 1100px;
    }
}

/*.container {
    max-width: 1100px !important;
}
*/
/* ======================================
   GLOBAL SCALE SYSTEM
====================================== */

/* ================================
   GLOBAL RESET & BASE
================================ */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #212529;
    background-color: #ffffff;
}

a {
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
    }


   /* ============================*/
.navbar-brand img {
    height: 40px;
    width: auto;
}
section {
    padding: 70px 0;
}

/* ================================
   NAVBAR STYLING
================================ */
/* Compact Navbar */
/* ===== FORCE NAVBAR ONE LINE ===== */

.navbar-nav {
    flex-wrap: nowrap; /* prevent wrapping */
}

.nav-custom {
    font-size: 0.95rem; /* slightly smaller */
    font-weight: 500;
    padding: 0.4rem 0.6rem; /* less horizontal space */
    white-space: nowrap; /* prevent text break */
}

/* Reduce space between items */
.navbar-nav {
    gap: 0.5rem;
}

/* Smaller brand */
.navbar-brand {
    font-size: 1.2rem;
}

/* Smaller buttons */
.navbar .btn {
    padding: 6px 12px;
    font-size: 0.9rem;
}
.btn-outline-purple {
    color: #6163f0;
    border: 1px solid #6163f0;
    background-color: transparent;
    border-radius: 8px;
}

    .btn-outline-purple:hover {
        color: #fff;
        background-color: #6163f0;
        border-color: #6163f0;
    }
.navbar {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.nav-custom {
    padding: 0.3rem 0.6rem;
    font-size: 0.95rem;
}



/* Brand */

/* Main nav links */
/*.nav-custom {
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    color: #444;
}*/

    .nav-custom:hover,
    .nav-custom:focus {
        color: #6062ef;
    }

/* Space between menu items */
.navbar-nav {
    gap: 0.75rem;
}

/* ================================
   STICKY NAVBAR
================================ */
.navbar.sticky-top {
    z-index: 1030;
}

/* ================================
   COURSES DROPDOWN (MEGA MENU)
================================ */

/* Desktop hover dropdown */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    /* Hover buffer to prevent flicker */
    .navbar .dropdown {
        position: relative;
    }

        .navbar .dropdown::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -15px;
            height: 14px;
        }
}

/* Dropdown container */
.dropdown-menu {
    border-radius: 14px;
    padding: 1.25rem;
}

    /* Section headings */
    .dropdown-menu h6 {
        font-size: 0.8rem;
        letter-spacing: 0.06em;
        margin-bottom: 0.2rem;
        color: #111;
    }

/* Dropdown items (compact) */
.dropdown-item {
    padding: 0.3rem 0;
    font-size: 1rem;
    color: #555;
    background-color: transparent;
}

    .dropdown-item:hover {
        color: #6062ef;
        background-color: transparent;
    }

/* Highlight card in dropdown */
.dropdown-menu .bg-light {
    background-color: #f6f7fb !important;
    border-radius: 12px;
}

.dropdown-menu .badge {
    position: static !important;
    font-size: 0.65rem;
    padding: 0.35em 0.6em;
}

/* ================================
   BUTTONS (LOGIN / ENROLL)
================================ */
.btn {
    font-weight: 600;
}

.btn-outline-primary {
    border-width: 1.5px;
}

.btn-primary {
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.25);
}
/* ======================================
   STUDYISLE PIXEL-PERFECT DARK FOOTER
====================================== */
.main-footer {
    background-color: #0f172a;
    color: #ffffff;
    padding: 80px 0 40px 0; /* Increased top padding */
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.2px;
}

/* Column Header Titles */
.footer-title {
    font-size: 0.75rem; /* Precise small caps look */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px; /* Precise gap from title to list */
    display: flex;
    align-items: center;
}

    .footer-title::before {
        content: "●";
        color: #6163f0;
        font-size: 9px;
        margin-right: 12px;
    }

/* Specific Gap for Different Sections */
.footer-section-group {
    margin-bottom: 45px; /* Gap between stacked sections like JEE and Foundation */
}

/* Link Styling & Line Height */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 10px; /* Tight, clean spacing from screenshot */
    }

    .footer-links a {
        color: #9499ad; /* Exact muted blue-grey */
        font-size: 0.72rem;
        text-decoration: none;
        transition: 0.2s ease-in-out;
        display: flex;
        align-items: center;
    }

        .footer-links a:hover {
            color: #ffffff !important;
        }

        /* Video Lecture Icons (Circles) */
        .footer-links a i {
            font-size: 14px;
            margin-right: 10px;
            opacity: 0.6;
        }

/* Contact Section Spacing */
.contact-block {
    margin-bottom: 25px;
}

.contact-label {
    font-size: 0.68rem;
    color: #5d6175;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.contact-value {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Official Channels - Circle Icons */
.social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9499ad;
    margin-right: 10px;
    font-size: 16px;
    transition: 0.3s;
}

    .social-icon:hover {
        background: #6163f0;
        color: white;
    }

/* Notice Board Card - Precise Sizing */
.notice-box {
    background: #14182d; /* Slightly lighter than background */
    border-radius: 18px;
    padding: 24px;
    margin-top: 30px;
    max-width: 240px;
}

    .notice-box .tag {
        color: #3b82f6;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

/* Telegram CTA Card - Matching Image */
.telegram-card {
    background: linear-gradient(145deg, #5b61f1, #3c41b8);
    border-radius: 24px;
    padding: 20px 12px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.btn-join {
    background: #ffffff;
    color: #3c41b8;
    border-radius: 22px;
    padding: 8px 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    width: 90%;
    border: none;
}

/* Footer Bottom Strip */
.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: 10px;
    padding-top: 20px;
}

.legal-links a {
    color: #F5F5F5;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* ================================
   ANIMATIONS
================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation to dropdown */
@media (min-width: 992px) {
    .dropdown-menu {
        animation: fadeIn 0.2s ease-in-out;
    }
}


/* Sidebar toggle effect */
#wrapper.toggled #sidebar-wrapper {
    margin-left: -250px;
    transition: 0.3s;
}

#sidebar-wrapper {
    transition: 0.3s;
}


/*==============make navbar active==================*/
/* ================================
   NAVBAR ACTIVE BAR FIX
================================ */
.navbar .nav-link {
    position: relative;
}

    .navbar .nav-link.active {
        color: #6062ef !important;
        font-weight: 600;
    }

        .navbar .nav-link.active::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -6px;
            width: 100%;
            height: 3px;
            background-color: #6062ef;
            border-radius: 3px;
        }
/* ==========================================================================
   MOBILE & TABLET RESPONSIVE FIXES (Viewports below 992px)
   ========================================================================== */
@media (max-width: 991.98px) {

    /* 1. Navbar Restructuring */
    .navbar-nav {
        flex-wrap: wrap !important; /* Allow items to stack vertically on mobile */
        gap: 0.25rem !important;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .nav-custom {
        white-space: normal !important; /* Allow long link texts to behave naturally */
        padding: 0.6rem 1rem !important; /* Larger hit targets for thumbs */
        display: block;
        width: 100%;
    }

    /* Active Link Indicator adjustment for vertical layout */
    .navbar .nav-link.active::after {
        left: 1rem;
        bottom: 2px;
        width: 30px; /* Short horizontal line instead of a full stretch line */
    }

    /* 2. Guest & Profile Buttons Alignment */
    #guestButtons {
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.5rem 1rem;
        border-top: 1px solid #f1f5f9;
    }

        #guestButtons .btn {
            flex: 1; /* Make buttons share equal width on mobile layouts */
            text-align: center;
        }

    #userProfile {
        padding: 0.75rem 1rem;
        border-top: 1px solid #f1f5f9;
        margin-top: 0.5rem;
    }

        #userProfile .dropdown-menu {
            position: static !important; /* Don't float off-screen inside mobile menu */
            width: 100% !important;
            float: none;
            box-shadow: none !important;
            background-color: #f8fafc;
            border: 1px solid #e2e8f0;
        }

    /* 3. Mega Dropdown Mobile Behavior */
    .navbar .dropdown-menu.mega-dropdown {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        background-color: #f8fafc;
        padding: 1rem !important;
    }

    .mega-dropdown .row > [class*="col-"] {
        margin-bottom: 1.5rem; /* Space out the columns when stacked vertically */
    }

        .mega-dropdown .row > [class*="col-"]:last-child {
            margin-bottom: 0;
        }

    /* 4. Footer Tweaks for Small Screens */
    .main-footer {
        padding: 50px 0 30px 0 !important; /* Slightly tighter padding */
        text-align: left;
    }

    .footer-section-group {
        margin-bottom: 30px; /* Reduce spacing gaps between stacked groups */
    }

    .notice-box {
        max-width: 100% !important; /* Allow the notice box to expand smoothly on mobile */
        margin-top: 20px;
    }

    .telegram-card {
        margin-top: 25px;
    }
}

/* Extra Small Devices Optimization (Phones under 576px) */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.1rem !important; /* Slightly scale down branding text space */
    }

    /* Ensure footer elements look clean when screens are very narrow */
    .footer-bottom-bar {
        text-align: center !important;
    }

        .footer-bottom-bar .d-flex {
            justify-content: center;
        }

    .legal-links {
        text-align: center !important;
        margin-top: 10px;
    }

        .legal-links a {
            margin-left: 15px;
            margin-right: 15px;
        }
}