/* ==========================================================================
   1. GLOBAL SYSTEM SETUP & BREAKOUT OVERFLOW FIXES
   ========================================================================== */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Elements ko screen limit ke andar lock rakhta hai */
}
@font-face {
  font-family: 'Poppins';
  font-display: swap;
  src: url(../Poppins/Poppins-Regular.ttf) format('truetype');
}
@font-face {
    font-family: myFirstFont;
    src: url(../Poppins/Poppins-Regular.ttf);
}
@font-face {
    font-family: bold;
    src: url(../Poppins/Poppins-Bold.ttf);
}

h1, h2, h3 { font-family: bold, sans-serif; }

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Sideo'n par white space ya unwanted horizontal swipe bilkul block */
    position: relative;
    font-family: myFirstFont, Verdana, Geneva, Tahoma, sans-serif;
    cursor: default;
    background-color: #fcfcfc;
}

/* Custom Scrollbar */
body::-webkit-scrollbar { width: 5px !important; height: 5px !important; }
body::-webkit-scrollbar-track { background: #3838387c !important; }
body::-webkit-scrollbar-thumb {
    background-color: #e0120ba4 !important;
    border: 1px solid #ff020279 !important;
    border-radius: 1px !important;
}

/* ==========================================================================
   2. HERO INTERACTION AREA & NAVIGATION ARCHITECTURE (UPDATED BOTTOM POSITION)
   ========================================================================== */
.header{
            background-image: linear-gradient(rgba(4,9,30,0.6),rgba(4,9,30,0.6)), url('/assets/images/IMG-20250325-WA0006.webp') !important;
            background-position: center center !important;
            background-size: cover !important;
            background-repeat: no-repeat !important;
            background-attachment: scroll;
            height: 65vh;
            min-height: 980px;
            width: 100%;
            position: relative;
            display: flex;
            box-sizing: border-box;
            overflow: hidden;
}

/* Master Premium Transparent Navigation Bar */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 6%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
}

.nav-left { display: flex; align-items: center; }
.nav-left a { display: inline-block; }
.nav-left img { width: 70px; height: auto; display: block; }
.nav-center-mobile { display: none; } 
.nav-right { display: flex; align-items: center; }

/* Desktop Navigation Links Layout */
.nav-links { display: flex; align-items: center; }
.nav-links ul { list-style: none; padding: 0; margin: 0; }
.nav-links ul li { display: inline-block; padding: 8px 12px; position: relative; }
.nav-links a { color: #fff; text-decoration: none; font-size: 16px; font-family: myFirstFont, sans-serif; }

.nav-links ul li::after {
    content: ''; width: 0%; height: 2px; background: #20ad3f; display: block; margin: auto; transition: 0.5s;
}
.nav-links ul li:hover::after { width: 100%; }

/* Desktop Student Portal Action Button */
.nav-portal-btn {
    background: #20ad3f !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    font-weight: bold !important;
    border: 1px solid #fff !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: 0.3s !important;
    display: inline-block;
    margin-left: 15px;
}
.nav-portal-btn:hover { background: #fff !important; color: #20ad3f !important; }

/* Control Triggers default hidden state on PC viewports */
.sidebar-header-mobile { display: none; }
.menu-trigger { display: none; }

/* 🔥 FIXED: Text-box shifted down close to bottom but 1 inch up */
.text-box {
    width: 90%; 
    color: #fff; 
    position: absolute; 
    bottom: 25%; /* Pehle top side par tha, ab pure text-box ko niche 8% space par set kar diya hai */
    left: 50%; 
    transform: translateX(-50%); /* Center-align dynamic balancing */
    text-align: center;
    z-index: 5;
}
.text-box h1 { font-size: 62px; font-weight: bold; }
.text-box p { margin: 15px 0 35px; font-size: 14px; color: #fff; }
.hero-btn {
    display: inline-block; 
    text-decoration: none; 
    color: yellow; 
    border: 2px solid yellow; 
    padding: 12px 34px; 
    font-size: 13px; 
    background: transparent; 
    position: relative; 
    cursor: pointer; 
    border-radius: 5px;
}
.hero-btn:hover { color: black; border: 2px solid #20ad3f; background:#20ad3f; transition: 0.5s; }


/* ==========================================================================
   🔥 ADVANCED MOBILE MEDIA RESPONSIVE RESET OVERRIDES (768PX)
   ========================================================================== */
@media (max-width: 768px) {
    .header {
                height: 45vh;
                min-height: 830px;
                background-position: 55% center !important;

            }
    .glass-nav {
        padding: 1rem 5% !important;
        background: rgba(15, 23, 42, 0.4) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .nav-left { flex: 1; justify-content: flex-start; }
    .nav-left img { width: 50px !important; }

    .nav-center-mobile { display: flex; flex: 1; justify-content: center; align-items: center; }
    .mobile-brand-title { color: #20ad3f !important; font-family: bold, sans-serif !important; font-size: 24px !important; }

    .nav-right { flex: 1; justify-content: flex-end; }
    
    /* 🛠️ FIXED SIDEBAR TRIGGER LINK LOGIC */
    .menu-trigger {
        display: block !important;
        color: #ffffff !important;
        font-size: 28px !important;
        cursor: pointer !important;
        z-index: 100000 !important;
    }

    /* 💎 FIXED RESPONSIVE GLASSMORPHISM SIDEBAR SLIDE OVERLAY */
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -300px; /* Is se script right toggle target karegi */
        width: 280px !important;
        height: 100vh !important;
        background: rgba(15, 23, 42, 0.82) !important; 
        backdrop-filter: blur(25px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
        border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 99999999;
        text-align: left !important;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    /* Close Trigger Panel inside sidebar top row */
    .sidebar-header-mobile {
        display: flex !important;
        width: 100% !important;
        box-sizing: border-box;
        padding: 25px 20px !important;
        align-items: center !important;
        justify-content: space-between !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        margin-bottom: 15px !important;
    }
    .mobile-sidebar-title { color: rgba(255, 255, 255, 0.4) !important; font-size: 11px !important; text-transform: uppercase !important; }
    
    .close-icon { 
        color: #fff !important; 
        font-size: 26px !important; 
        cursor: pointer !important;
    }

    .nav-links ul { width: 100% !important; padding: 0 15px !important; box-sizing: border-box !important; }
    .nav-links ul li { display: block !important; width: 100% !important; }
    .nav-links ul li a { display: block !important; width: 100% !important; padding: 12px 15px !important; box-sizing: border-box !important; font-size: 15px !important; color: #e2e8f0 !important; }
    .nav-links ul li a:hover { background: rgba(255, 255, 255, 0.05) !important; color: #38ef7d !important; padding-left: 20px !important; }
    .nav-links ul li::after { display: none !important; }

    .nav-portal-btn {
        margin: auto 20px 40px 20px !important;
        width: calc(100% - 40px) !important;
        text-align: center !important;
        padding: 12px 0 !important;
        border-radius: 30px !important;
    }
    
    /* 🔥 FIXED: Mobile Content position adjusted down perfectly */
    .text-box { bottom: 20% !important; } 
    .text-box h1 { font-size: 32px !important; }
    .text-box p { font-size: 12px !important; margin-bottom: 25px !important; }
}

/* ==========================================================================
   DEVELOPER RECOGNITION SECTION (EXACT PRINCIPAL TYPOGRAPHY MATCH)
   ========================================================================== */
.developer-recognition {
    padding: 100px 8%;
    /* Exact background alignment with rest of the campus pages */
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    clear: both;
}

.dev-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 2;
}

/* --- Left Column: Clean Floating Icon Structure (No Box Border) --- */
.dev-icon-wrapper {
    flex-basis: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Icon Container using the solid Institutional Green theme */
.dev-icon-circle {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #20ad3f 0%, #2ecb53 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(32, 173, 63, 0.25);
    border: 4px solid #ffffff;
    transition: all 0.4s ease;
}

.dev-icon-circle i {
    font-size: 3.8rem;
    color: #ffffff;
}

/* Exact clone of .designation-badge font dynamics and structure */
.dev-badge-clean {
    margin-top: 20px;
    background: #20ad3f;
    color: white;
    padding: 6px 24px;
    border-radius: 50px;
    font-size: 14px;
    letter-spacing: 1px;
    font-family: inherit;
    box-shadow: 0 8px 20px rgba(32, 173, 63, 0.3);
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Reusing smooth float animation mechanics */
.animate-float {
    animation: smoothDevFloat 5s ease-in-out infinite;
}
@keyframes smoothDevFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.dev-icon-wrapper:hover .dev-icon-circle {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(32, 173, 63, 0.35);
}

/* --- Right Column: Text Layout (Strict Principal Configuration) --- */
.dev-text-box { 
    flex-basis: 65%; 
}

/* Matched with .sub-heading */
.dev-subheading {
    display: inline-block; 
    font-size: 13px; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    color: #20ad3f; 
    margin-bottom: 10px;
}

/* Matched with .message-text-box h2 */
.dev-text-box h2 { 
    font-size: 38px; 
    color: #04091e; 
    line-height: 1.2; 
    margin-bottom: 8px; 
    text-align: left;
    font-weight: 700;
}

/* Matched with .message-text-box h3 */
.dev-text-box h3 { 
    font-size: 18px; 
    color: #475569; 
    font-weight: 500; 
    margin-bottom: 20px; 
    text-align: left; 
}

/* Matched with .degree rules */
.dev-name-highlight { 
    color: #20ad3f; 
    font-size: 18px;
    font-weight: 600;
}

.dev-dept { 
    color: #475569; 
    font-size: 16px;
    font-weight: 500;
}

/* Matched with .quote-divider */
.dev-divider { 
    width: 60px; 
    height: 4px; 
    background: #20ad3f; 
    border-radius: 2px; 
    margin-bottom: 25px; 
}

/* Matched with .principal-quote specifications */
.dev-message {
    font-size: 16px; 
    line-height: 1.8; 
    color: #334155; 
    text-align: justify; 
    font-style: italic;
    background: rgba(255, 255, 255, 0.5); 
    padding: 20px; 
    border-left: 4px solid #04091e; 
    border-radius: 0 12px 12px 0;
    margin-bottom: 25px;
}

.dev-internal-link {
    color: #20ad3f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    border-bottom: 1px dashed #20ad3f;
}

.dev-internal-link:hover {
    color: #157a2b;
    border-bottom-style: solid;
}

/* --- Premium Action Button --- */
.dev-portfolio-wrapper {
    text-align: left;
}

.dev-portfolio-btn {
    display: inline-flex;
    align-items: center;
    background: #04091e; /* Core dark blue button base */
    color: #ffffff;
    padding: 12px 28px;
    font-size: 14px; /* Clean matching global action scale */
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(4, 9, 30, 0.15);
    transition: all 0.3s ease;
}

.dev-portfolio-btn i {
    margin-right: 10px;
    font-size: 14px;
    color: #2ecb53;
}

.dev-portfolio-btn:hover {
    background: #20ad3f; /* Smooth brand green color swap */
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(32, 173, 63, 0.3);
}

.dev-portfolio-btn:hover i {
    color: #ffffff;
}

/* Responsive Layout for Dual Portfolio Buttons */
.dev-portfolio-wrapper.dual-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.dev-portfolio-wrapper.dual-buttons .dev-portfolio-btn {
    flex: 1;
    min-width: 200px; /* Ensures buttons don't get too small on mobile */
    text-align: center;
    justify-content: center;
}

@media (max-width: 576px) {
    .dev-portfolio-wrapper.dual-buttons {
        flex-direction: column;
        align-items: center;    /* Dono buttons ko horizontally row ke center me layega */
        justify-content: center; /* Vertical layout alignment ko support karega */
        gap: 10px;
        width: 100%;            /* Wrapper ko full width rakhega */
    }
    
    .dev-portfolio-wrapper.dual-buttons .dev-portfolio-btn {
        width: 100%;            /* Agar full-width responsive rakhna ho */
        max-width: 280px;       /* Yeh buttons ko mobile par bohot zyada lamba (stretch) hone se bachaega aur pyara dikhayega */
        display: inline-flex;
        justify-content: center; /* Button ke andar likha hua text aur icon center karega */
        align-items: center;
        text-align: center;
    }
}
/* ==========================================================================
   RESPONSIVE MATRIX (MOBILE & TABLET BREAKPOINTS)
   ========================================================================== */
@media (max-width: 992px) {
    .developer-recognition {
        padding: 80px 6%;
    }
    .dev-text-box h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .developer-recognition {
        padding: 60px 5%;
    }
    .dev-container {
        flex-direction: column;
        gap: 40px;
    }
    .dev-icon-wrapper {
        flex-basis: 100%;
        width: 100%;
    }
    .dev-text-box {
        flex-basis: 100%;
    }
    .dev-text-box h2 {
        font-size: 28px;
        text-align: center;
    }
    .dev-text-box h3 {
        text-align: center;
    }
    .dev-divider {
        margin: 0 auto 25px auto;
    }
    .dev-portfolio-wrapper {
        text-align: center;
    }
    .dev-portfolio-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        box-sizing: border-box;
    }
}

/* ==========================================================================
           3. Premium Scholarships Section Layout
           ========================================================================== */
        .scholarship-section {
            background: #f8fafc;
            padding: 90px 6%;
            width: 100%;
            box-sizing: border-box;
        }
        .scholarship-container {
            max-width: 1100px;
            margin: 0 auto;
        }
        .scholarship-header {
            text-align: center;
            margin-bottom: 60px;
        }
        .scholarship-header h2 {
            font-size: 36px;
            color: #04091e;
            margin-top: 5px;
        }
        .scholarship-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
        }
        .scholarship-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 24px;
            padding: 40px 35px;
            position: relative;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 10px 30px rgba(0,0,0,0.01);
            display: flex;
            flex-direction: column;
        }
        .scholarship-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: #e0120b;
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }
        .scholarship-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(4, 9, 30, 0.06);
            border-color: rgba(224, 18, 11, 0.15);
        }
        .scholarship-card:hover::before {
            transform: scaleY(1);
        }
        .s-icon-box {
            width: 70px;
            height: 70px;
            border-radius: 16px;
            background: rgba(224, 18, 11, 0.04);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 25px;
            transition: all 0.3s ease;
        }
        .s-icon-box i {
            font-size: 32px;
            color: #e0120b;
        }
        .scholarship-card:hover .s-icon-box {
            background: #e0120b;
        }
        .scholarship-card:hover .s-icon-box i {
            color: #ffffff;
        }
        .scholarship-card h3 {
            font-size: 22px;
            color: #04091e;
            margin-bottom: 15px;
            font-weight: 700;
        }
        .scholarship-card p {
            color: #475569;
            font-size: 14.5px;
            line-height: 1.7;
            margin-bottom: 0;
            flex-grow: 1;
        }
        .s-badge {
            position: absolute;
            top: 35px;
            right: 35px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 4px 12px;
            border-radius: 50px;
            background: #f1f5f9;
            color: #64748b;
        }
        .scholarship-card:hover .s-badge {
            background: rgba(224, 18, 11, 0.1);
            color: #e0120b;
        }

        /* Responsive Tuning */
        @media (max-width: 768px) {
            .scholarship-section {
                padding: 60px 4%;
            }
            .scholarship-header h2 {
                font-size: 28px;
            }
            .scholarship-card {
                padding: 30px 25px;
            }
        }

/* ==========================================================================
   PREMIUM COURSES SECTION - PERFECT RECTANGULAR SYMMETRY GRID
   ========================================================================== */
.course {
    width: 100%;
    max-width: 1300px;        
    margin: 0 auto;           
    /* Top padding ko 100px se barha kar 140px kar diya hai taaki oopar waale section se perfect distance ban jaye */
    padding: 10px 6% 60px 6%; 
    box-sizing: border-box;
}

.course-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
    
    /* CSS FIX ENGINE: 
       clear: both -> Oopar waale section ke float effect ko khatam karega.
       display: inline-block / width 100% -> Browser ko majboor karega ke naye sire se space calculate kare.
    */
    clear: both;
    display: inline-block;
    width: 100%;
    margin-top: 50px; /* Yeh line oopar se ek solid automatic gap generate karegi */
}
.course-tag {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #20ad3f;
    font-family: bold, sans-serif;
    
    /* Tag ke apne oopar aur niche ka distance stable rakhne ke liye */
    margin-top: 10px;
    margin-bottom: 12px; 
}
.course h1 {
    font-size: 40px;
    color: #04091e;
    font-family: bold, sans-serif;
    margin-bottom: 12px;
    text-align: center;
}
.header-line {
    width: 70px;
    height: 4px;
    background: #20ad3f;
    margin: 0 auto 20px auto;
    border-radius: 2px;
}
.course-header p {
    color: #64748b;
    font-size: 15px;
    max-width: 600px;
    margin: auto;
    line-height: 1.6;
}

/* Master Grid Framework */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Laptop screen par exactly 3 cards vertical lines mein */
    gap: 35px;                /* Cards ke aapas ka faasla thora barha diya premium look ke liye */
    width: 100%;
    padding: 10px;            /* Card ki apni shadow ko sideo'n par katne se rokne ke liye */
    box-sizing: border-box;
}

/* Luxury Canvas Elements */
.course-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 30px;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(32, 173, 63, 0.08);
    color: #20ad3f;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 25px;
    transition: 0.3s ease;
}
.course-card h2 {
    font-size: 21px;
    color: #04091e;
    margin-bottom: 15px;
    text-align: left;
}
.course-card p {
    text-align: justify;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
    padding: 0;
    margin-bottom: 25px;
    flex-grow: 1; /* Description choti barhi ho phir bhi Apply Now niche aik barabar line pe rahega */
}
.course-link {
    text-decoration: none;
    color: #20ad3f;
    font-size: 14px;
    font-family: bold, sans-serif;
    transition: 0.3s;
    display: inline-block;
    width: fit-content;
}

/* Premium Hover Effects */
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(4, 9, 30, 0.06);
    border-color: rgba(32, 173, 63, 0.3);
}
.course-card:hover .card-icon {
    background: #20ad3f;
    color: #fff;
    transform: scale(1.05);
}
.course-card:hover .course-link {
    color: #04091e;
    transform: translateX(5px);
}

/* Scroll Fade Engine Elements */
.reveal-slide {
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}
.reveal-slide.show-active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   INTELLIGENT RESPONSIVE ADAPTATION (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 992px) {
    /* Large Tablets/iPad View: Automatic shifts into a gorgeous 2x3 matrix (3 lines of 2) */
    .course-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 25px;
    }
    .course h1 { font-size: 34px; }
}

@media (max-width: 768px) {
    /* Mobile Devices: Grid locks down into a safe single layout column stack to avoid whitespace breakouts */
    .course {
        padding: 60px 5% 40px 5%;
    }
    .course-header {
        margin-bottom: 40px;
    }
    .course h1 { 
        font-size: 28px; 
    }
    .course-grid { 
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
        max-width: 100%;
    }
    .course-card { 
        width: 100%; 
        max-width: 100%; 
        padding: 30px 22px; 
    }
}

/* ==========================================================================
   4. PRINCIPAL MESSAGE SECTION (RESTORED CARD CONFIGURATION)
   ========================================================================== */
.principal-message {
    padding: 100px 8%;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}
.principal-message::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: rgba(32, 173, 63, 0.05);
    border-radius: 50%;
    z-index: 1;
}
.message-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 2;
}
.principal-img-box {
    flex-basis: 32%;
    min-width: 300px;
    position: relative;
    border-radius: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(4, 9, 30, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    margin-left: -40px; /* PC Layout shifts photo left */
}
.principal-img-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.designation-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #20ad3f;
    color: white;
    padding: 6px 24px;
    border-radius: 50px;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(32, 173, 63, 0.3);
}
.animate-float {
    animation: smoothFloat 5s ease-in-out infinite;
}
@keyframes smoothFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}
.principal-img-box:hover { box-shadow: 0 30px 60px rgba(4, 9, 30, 0.15); }
.principal-img-box:hover img { transform: scale(1.02); }

.message-text-box { flex-basis: 63%; }
.sub-heading {
    display: inline-block; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: #20ad3f; margin-bottom: 10px;
}
.message-text-box h2 { font-size: 38px; color: #04091e; line-height: 1.2; margin-bottom: 8px; text-align: left; }
.message-text-box h3 { font-size: 18px; color: #475569; font-weight: 500; margin-bottom: 20px; text-align: left; }
.degree { color: #20ad3f; font-size: 16px; }
.quote-divider { width: 60px; height: 4px; background: #20ad3f; border-radius: 2px; margin-bottom: 25px; }
.principal-quote {
    font-size: 16px; line-height: 1.8; color: #334155; text-align: justify; font-style: italic;
    background: rgba(255, 255, 255, 0.5); padding: 20px; border-left: 4px solid #04091e; border-radius: 0 12px 12px 0;
}
.animate-text { animation: slideInRight 1.2s cubic-bezier(0.1, 1, 0.1, 1) forwards; }
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
/* ==========================================================================
   CIRCULAR INF-LOOP CAMPUS SYSTEM
   ========================================================================== */
.campus-gallery-section {
    width: 100%;
    background: #ffffff;
    padding: 120px 0 80px 0;
    overflow: hidden;
    position: relative;
    clear: both;
}

.campus-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 6%;
}
.campus-tag {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #20ad3f;
    font-family: bold, sans-serif;
    margin-bottom: 8px;
}
.campus-header h1 {
    font-size: 40px;
    color: #04091e;
    font-family: bold, sans-serif;
    margin-bottom: 12px;
}
.header-line {
    width: 70px;
    height: 4px;
    background: #20ad3f;
    margin: 0 auto 20px auto;
    border-radius: 2px;
}
.campus-header p {
    color: #64748b;
    font-size: 15px;
    max-width: 650px;
    margin: auto;
    line-height: 1.6;
}

.carousel-container {
    width: 100%;
    position: relative;
    padding: 20px 0;
}

/* Flex Track Matrix */
.carousel-track {
    display: flex;
    align-items: center;
    will-change: transform;
    /* Transition script toggles handles smoothness versus zero-flash jumps */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Custom Slide Dimensions */
.carousel-slide {
    min-width: 360px;
    max-width: 360px;
    height: 460px;
    margin: 0 15px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(4, 9, 30, 0.04);
    
    /* Side Elements styling */
    opacity: 0.35;
    transform: scale(0.85);
    filter: blur(2px);
    transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease, box-shadow 0.5s ease;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Golden Focus Styling for the Center Element */
.carousel-slide.active-center-slide {
    opacity: 1;
    transform: scale(1.05);
    filter: blur(0px);
    box-shadow: 0 25px 50px rgba(4, 9, 30, 0.15);
    border: 2px solid rgba(32, 173, 63, 0.25);
}

/* Glassmorphism Controls */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    color: #04091e;
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 20px;
    width: 55px;
    height: 55px;
    cursor: pointer;
    z-index: 100;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.carousel-button:hover {
    background: #20ad3f;
    color: #ffffff;
    box-shadow: 0 15px 30px rgba(32, 173, 63, 0.35);
    transform: translateY(-50%) scale(1.08);
}
.carousel-button.left-btn { left: 5%; }
.carousel-button.right-btn { right: 5%; }

/* Responsive break systems */
@media (max-width: 992px) {
    .campus-header h1 { font-size: 34px; }
    .carousel-slide {
        min-width: 300px;
        max-width: 300px;
        height: 380px;
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .campus-gallery-section { padding: 60px 0; }
    .campus-header h1 { font-size: 28px; }
    .carousel-slide {
        min-width: 250px;
        max-width: 250px;
        height: 320px;
        margin: 0 8px;
    }
    .carousel-button {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    .carousel-button.left-btn { left: 3%; }
    .carousel-button.right-btn { right: 3%; }
}
/* ==========================================================================
   5. LIVE COUNTER STATS ENGINE PANEL (ULTRA MODERN DESIGN)
   ========================================================================== */
.stats-section {
    padding: 80px 8%;
    background: #04091e; /* Dark theme high contrast panel */
    position: relative;
    overflow: hidden;
}
.stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}
.stat-box {
    flex-basis: 23%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 40px 20px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.stat-box:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(32, 173, 63, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.stat-icon-wrapper {
    width: 65px;
    height: 65px;
    background: rgba(32, 173, 63, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    transition: 0.3s;
}
.stat-box:hover .stat-icon-wrapper {
    background: #20ad3f;
    transform: rotateY(180deg);
}
.stat-icon-wrapper i {
    font-size: 26px;
    color: #20ad3f;
    transition: 0.3s;
}
.stat-box:hover .stat-icon-wrapper i {
    color: #fff;
}
.stat-box h3 {
    font-size: 42px;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: bold, sans-serif;
    letter-spacing: -1px;
}
.stat-box h3::after { content: '+'; color: #20ad3f; margin-left: 2px; }
.stat-box:nth-child(4) h3::after { content: '%'; }
.stat-box p { color: #94a3b8; font-size: 15px; font-weight: 400; padding: 0; text-align: center; }
/* ==========================================================================
   PORTAL SHOWCASE WITH INTERACTIVE SCREENSHOT MASKING
   ========================================================================== */
.portal-showcase {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 120px 6% 80px 6%;
    box-sizing: border-box;
    clear: both;
    background-color: #fcfcfc;
}

.portal-main-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}
.portal-tag {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #20ad3f;
    font-family: bold, sans-serif;
    margin-bottom: 8px;
}
.portal-main-header h1 {
    font-size: 40px;
    color: #04091e;
    font-family: bold, sans-serif;
    margin-bottom: 12px;
}
.portal-header-line {
    width: 70px;
    height: 4px;
    background: #20ad3f;
    margin: 0 auto 20px auto;
    border-radius: 2px;
}
.portal-main-header p {
    color: #64748b;
    font-size: 15px;
    max-width: 650px;
    margin: auto;
    line-height: 1.6;
}

/* Premium Product Matrix Grid */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    width: 100%;
    box-sizing: border-box;
}

/* Luxury Interactive Card Deck */
.portal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 35px 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.02);
}
.portal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(4, 9, 30, 0.06);
    border-color: rgba(32, 173, 63, 0.25);
}

.card-top-info {
    margin-bottom: 25px;
}
.main-card-icon {
    font-size: 26px;
    color: #20ad3f;
    margin-bottom: 15px;
    display: inline-block;
}
.portal-card h3 {
    font-size: 22px;
    color: #04091e;
    margin-bottom: 12px;
    font-family: bold, sans-serif;
}
.portal-card p {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
}
.portal-card code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #e11d48;
    font-size: 12.5px;
}

/* Screenshot Framing & Automated Masking Engine (Trimming) */
.portal-slider-wrapper {
    width: 100%;
    margin-top: auto; /* Pushes the slider block perfectly aligned to the base */
}

.screenshot-display-frame {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    position: relative;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

/* Desktop Auto-Trimming System (Hides top browser bar and taskbar) */
.screenshot-display-frame.trim-desktop {
    height: 220px; /* High fidelity aspect ratio for dashboard screens */
}
.screenshot-display-frame.trim-desktop img {
    width: 100%;
    height: 124%; /* Scaled up to push unwanted borders outside the clipping frame */
    object-fit: cover;
    object-position: center 46%; /* Centers the main viewport while dropping header/footer icons */
}

/* Mobile App Screenshot Mockup Frame */
.screenshot-display-frame.trim-mobile {
    height: 280px; /* Taller viewport to display sleek smartphone captures */
}
.screenshot-display-frame.trim-mobile img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps UI proportions safely intact without stretching */
    background: #0a0f1d;
}

/* Hides inactive layout images by default */
.screenshot-display-frame img {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
/* Trigger tag to smooth-display current tab selection */
.screenshot-display-frame img.active-screenshot {
    display: block;
    opacity: 1;
}

/* Micro-Interaction Button Navigation System */
.slider-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.tab-dot {
    font-size: 11px;
    padding: 4px 10px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 20px;
    cursor: pointer;
    font-family: bold, sans-serif;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.tab-dot:hover {
    background: #e2e8f0;
    color: #04091e;
}
.tab-dot.active {
    background: rgba(32, 173, 63, 0.1);
    color: #20ad3f;
    border-color: rgba(32, 173, 63, 0.3);
}

/* Primary Section Button Wrapper */
.portal-action-container {
    text-align: center;
    margin-top: 50px;
}
.portal-btn {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    background: #20ad3f;
    padding: 14px 36px;
    font-size: 15px;
    font-family: bold, sans-serif;
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(32, 173, 63, 0.25);
    transition: all 0.3s ease;
}
.portal-btn:hover {
    background: #04091e;
    box-shadow: 0 10px 20px rgba(4, 9, 30, 0.2);
    transform: translateY(-2px);
}

/* ==========================================================================
   PORTAL SYSTEM MEDIA QUERY RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
    .portal-grid {
        grid-template-columns: repeat(2, 1fr); /* Becomes stable double column layout on smaller monitors */
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .portal-showcase {
        padding: 60px 5% 40px 5%;
    }
    .portal-main-header h1 {
        font-size: 28px;
    }
    .portal-grid {
        display: flex !important;
        flex-direction: column; /* Locks into safe single column cascade flow on handheld displays */
        gap: 30px;
    }
    .portal-card {
        width: 100%;
        padding: 30px 20px;
    }
    .screenshot-display-frame.trim-desktop {
        height: 190px; /* Compact desktop height adjustment on small screens */
    }
}

/* ==========================================================================
   ULTRA-PREMIUM CAMPUS FACILITIES SECTION
   ========================================================================== */
.facilities-section {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 120px 6% 80px 6%;
    box-sizing: border-box;
    clear: both;
    background-color: #ffffff;
}

.facilities-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}
.facilities-tag {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #20ad3f;
    font-family: bold, sans-serif;
    margin-bottom: 8px;
}
.facilities-header h1 {
    font-size: 40px;
    color: #04091e;
    font-family: bold, sans-serif;
    margin-bottom: 12px;
}
.facilities-line {
    width: 70px;
    height: 4px;
    background: #20ad3f;
    margin: 0 auto 20px auto;
    border-radius: 2px;
}
.facilities-header p {
    color: #64748b;
    font-size: 15px;
    max-width: 650px;
    margin: auto;
    line-height: 1.6;
}

/* 3-Column Grid Alignment Setup */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
}

/* Luxury Interactive Card Frame */
.facility-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.02);
}

/* Image Container & Floating Glass Badges */
.facility-img-box {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: #0f172a;
}
.facility-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Protects images from vertical/horizontal compression */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.facility-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(4, 9, 30, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 6px 14px;
    font-size: 12px;
    font-family: bold, sans-serif;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    letter-spacing: 0.5px;
}

/* Content Area Configuration */
.facility-content {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.facility-content h3 {
    font-size: 22px;
    color: #04091e;
    margin-bottom: 12px;
    font-family: bold, sans-serif;
    transition: color 0.3s ease;
}
.facility-content p {
    color: #475569;
    font-size: 14.5px;
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 25px;
    flex-grow: 1; /* Aligns footer tags evenly across different card lengths */
}

/* Sleek Secondary Visual Indicator Tag */
.facility-footer-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    font-family: bold, sans-serif;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    display: block;
    width: 100%;
}

/* Premium Hover Micro-interactions */
.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(4, 9, 30, 0.07);
    border-color: rgba(32, 173, 63, 0.25);
}
.facility-card:hover .facility-img-box img {
    transform: scale(1.08) rotate(0.5deg); /* Flawless premium cinema parallax zoom */
}
.facility-card:hover .facility-content h3 {
    color: #20ad3f;
}

/* ==========================================================================
   INTELLIGENT RE-ADAPTATION ENGINE (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr); /* Splits seamlessly into double grid on mid-range laptops */
        gap: 25px;
    }
    .facilities-header h1 { font-size: 34px; }
}

@media (max-width: 768px) {
    .facilities-section {
        padding: 60px 5% 40px 5%; /* Tightens gutters for mobile boundaries */
    }
    .facilities-header {
        margin-bottom: 40px;
    }
    .facilities-header h1 {
        font-size: 28px;
    }
    .facilities-grid {
        display: flex !important;
        flex-direction: column; /* Perfect linear cascade orientation on smartphone screens */
        gap: 30px;
        padding: 0;
    }
    .facility-card {
        width: 100%;
        max-width: 100%;
    }
    .facility-img-box {
        height: 200px; /* Reduces image frame weight to balance viewport layout scrolling */
    }
    .facility-content {
        padding: 25px 20px;
    }
}
/* ==========================================================================
   ULTRA-PREMIUM ENTERPRISE FOOTER SYSTEM (OPTIMIZED ALIGNMENTS)
   ========================================================================== */
.premium-footer {
    width: 100%;
    background: #090e24; 
    color: #94a3b8;
    padding: 70px 0 0 0;
    position: relative;
    clear: both;
    font-family: sans-serif;
    border-top: 4px solid #20ad3f; 
}

/* Base Layout Framework - Side space locked to normal limits */
.footer-container {
    width: 100%;
    max-width: 1400px; /* Width barha kar side ki faltu space ko fill kiya */
    margin: 0 auto;
    padding: 0 5% 50px 5%; /* Balanced margins for a tight screen frame */
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr; /* Desktop default side-by-side structure */
    gap: 40px;
    text-align: left; /* Desktop par center look khatam karne ke liye strict left alignment */
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Sub-elements explicit left lock */
}

.footer-column h3 {
    color: #ffffff;
    font-size: 17px;
    margin-top: 0;
    margin-bottom: 22px;
    position: relative;
    font-family: bold, sans-serif;
    letter-spacing: 0.5px;
}

/* Smart accent underlines */
.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 3px;
    background: #20ad3f;
    border-radius: 2px;
}

.footer-logo-title {
    font-size: 21px !important;
    color: #ffffff;
    margin-bottom: 15px !important;
}

.brand-desc {
    font-size: 14px;
    line-height: 1.6;
    text-align: left; /* No forced justification to keep text natural */
    color: #94a3b8;
    margin: 0;
}

/* Social Icon Hub */
.footer-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.footer-social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-social-icons a:hover {
    background: #20ad3f;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(32, 173, 63, 0.3);
}

/* Exploration Link Lists */
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
.footer-links-list li {
    margin-bottom: 10px;
}
.footer-links-list a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.23s ease;
    display: inline-block;
}
.footer-links-list a:hover {
    color: #20ad3f;
    transform: translateX(4px);
}

/* Contact information items */
.contact-details p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.contact-details a {
    color: #94a3b8;
    text-decoration: none;
}
.contact-details a:hover {
    color: #20ad3f;
}
.contact-icon {
    color: #20ad3f;
    font-size: 14px;
    margin-top: 2px;
}

/* Pulse system badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(32, 173, 63, 0.08);
    color: #20ad3f;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-family: bold, sans-serif;
    margin-top: 5px;
    border: 1px solid rgba(32, 173, 63, 0.12);
}
.pulse-dot {
    width: 6px;
    height: 6px;
    background: #20ad3f;
    border-radius: 50%;
    animation: pulseGlow 1.6s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(32, 173, 63, 0.6); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(32, 173, 63, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(32, 173, 63, 0); }
}

/* Bottom Strip configuration */
.footer-bottom-strip {
    width: 100%;
    background: #050816; 
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 20px 5%;
    box-sizing: border-box;
}
.strip-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.copy-text {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}
.dev-credit {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0;
}
.dev-portfolio-link {
    color: #20ad3f;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(32, 173, 63, 0.04);
    border: 1px solid rgba(32, 173, 63, 0.08);
    transition: all 0.25s ease;
    display: inline-block;
}
.dev-portfolio-link:hover {
    color: #ffffff;
    background: #20ad3f;
    box-shadow: 0 4px 12px rgba(32, 173, 63, 0.25);
}

/* ==========================================================================
   INTELLIGENT MEDIA QUERIES (COMPACT SYSTEM RESET)
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1.2fr 1fr;
        gap: 35px;
    }
    .footer-column.brand-info {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .premium-footer {
        padding-top: 45px; /* Compressing vertical heights */
    }
    .footer-container {
        display: flex !important;
        flex-direction: column;
        gap: 25px; /* Reduced vertical padding blocks */
        padding-bottom: 30px;
    }
    
    /* COMPACT DESIGN ENGINE: Quick Links become a clean 2-column grid to cut height */
    .footer-links-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
    }
    .footer-links-list li {
        margin-bottom: 0; /* Clears massive list tracking */
    }
    
    .strip-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}


/* ==========================================================================
   6. FLOATING GLASS SOCIALS & CHATBOT ENGINES (MOBILE OPPOSITE SIDE GLASS)
   ========================================================================== */

/* --- Safe Core Scroll Reveal Animations (DO NOT DELETE) --- */
.left, .center, .bottom, .right { opacity: 0; transition: transform 1s ease-in-out, opacity 1s ease-in-out; }
.left { transform: translateX(-50%); }
.center { transform: translateY(-50%); }
.bottom { transform: translateY(50%); }
.right { transform: translateX(50%); }
.show-left, .show-center, .show-bottom, .show-right { transform: translate(0); opacity: 1; }

/* --- Safe Core Teachers Layout (DO NOT DELETE) --- */
.teachers-section { padding: 3rem 2rem; text-align: center; background: #f9f9f9; }
.teachers { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-top: 25px; }
.teacher-card { position: relative; width: 280px; height: 360px; overflow: hidden; background-color: #222; border-radius: 15px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: 0.3s; }
.teacher-card:hover { transform: translateY(-10px); box-shadow: 0 8px 16px rgba(0,0,0,0.2); }
.teacher-photo { width: 100%; height: 100%; transition: clip-path 0.3s ease; }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-info { position: absolute; top: 50%; left: 0; right: 0; bottom: 0; background-color: rgba(4, 9, 30, 0.85); color: white; padding: 1.2rem; opacity: 0; transition: 0.3s; text-align: center; }
.teacher-card:hover .teacher-info { opacity: 1; }
.teacher-card:hover .teacher-photo { clip-path: inset(0 0 50% 0); }
.teacher-info h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: yellow; }

/* --- DESKTOP: PREMIUM FLOATING GLASS-MORPHISM SOCIAL BAR --- */
.social-icons {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    list-style: none !important;
    padding: 8px 15px !important;
    margin: 0 !important;
    z-index: 999999 !important;
    
    /* Premium Glassmorphic Foundation */
    background: rgba(15, 23, 42, 0.35) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 100px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

.social-icons li { list-style: none !important; margin: 0 !important; padding: 0 !important; }

.social-icons li a {
    width: 46px !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    font-size: 19px !important;
    text-decoration: none !important;
    color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Hover Glow Setup */
.social-icons li.icon-whatsapp a:hover { color: #fff !important; background: #25d366 !important; box-shadow: 0 0 25px rgba(37, 211, 102, 0.6) !important; transform: translateY(-6px) scale(1.05) !important; }
.social-icons li.icon-facebook a:hover { color: #fff !important; background: #1877f2 !important; box-shadow: 0 0 25px rgba(24, 119, 242, 0.6) !important; transform: translateY(-6px) scale(1.05) !important; }
.social-icons li.icon-instagram a:hover { color: #fff !important; background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important; box-shadow: 0 0 25px rgba(220, 39, 67, 0.6) !important; transform: translateY(-6px) scale(1.05) !important; }
.social-icons li.icon-email a:hover { color: #fff !important; background: #ea4335 !important; box-shadow: 0 0 25px rgba(234, 67, 53, 0.6) !important; transform: translateY(-6px) scale(1.05) !important; }

/* --- Premium Footer Grid Base --- */
.premium-footer {
    width: 100%; background: #090e24; color: #94a3b8; padding: 70px 0 0 0; position: relative; clear: both; font-family: sans-serif; border-top: 4px solid #20ad3f; 
}
.footer-container {
    width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 5% 50px 5%; box-sizing: border-box; display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; text-align: left;
}
.footer-column { display: flex; flex-direction: column; align-items: flex-start; }
.footer-column h3 { color: #ffffff; font-size: 17px; margin-top: 0; margin-bottom: 22px; position: relative; }
.footer-column h3::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 30px; height: 3px; background: #20ad3f; border-radius: 2px; }
.footer-logo-title { font-size: 21px !important; color: #ffffff; margin-bottom: 15px !important; }
.brand-desc { font-size: 14px; line-height: 1.6; color: #94a3b8; margin: 0; }
.footer-links-list { list-style: none; padding: 0; margin: 0; width: 100%; }
.footer-links-list li { margin-bottom: 10px; }
.footer-links-list a { color: #94a3b8; text-decoration: none; font-size: 14px; transition: all 0.23s ease; display: inline-block; }
.footer-links-list a:hover { color: #20ad3f; transform: translateX(4px); }
.contact-details p { font-size: 14px; line-height: 1.5; margin: 0 0 12px 0; display: flex; align-items: flex-start; gap: 10px; }
.contact-details a { color: #94a3b8; text-decoration: none; }
.contact-details a:hover { color: #20ad3f; }
.contact-icon { color: #20ad3f; font-size: 14px; margin-top: 2px; }

.status-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(32, 173, 63, 0.08); color: #20ad3f; padding: 4px 12px; border-radius: 20px; font-size: 11.5px; margin-top: 5px; border: 1px solid rgba(32, 173, 63, 0.12); }
.pulse-dot { width: 6px; height: 6px; background: #20ad3f; border-radius: 50%; animation: pulseGlow 1.6s infinite; }
@keyframes pulseGlow { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(32, 173, 63, 0.6); } 70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(32, 173, 63, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(32, 173, 63, 0); } }

.footer-bottom-strip { width: 100%; background: #050816; border-top: 1px solid rgba(255, 255, 255, 0.04); padding: 20px 5%; box-sizing: border-box; }
.strip-content { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.copy-text { font-size: 13px; color: #64748b; margin: 0; }
.dev-credit { font-size: 13.5px; color: #94a3b8; margin: 0; }
.dev-portfolio-link { color: #20ad3f; text-decoration: none; padding: 2px 6px; border-radius: 4px; background: rgba(32, 173, 63, 0.04); border: 1px solid rgba(32, 173, 63, 0.08); transition: all 0.25s ease; }
.dev-portfolio-link:hover { color: #ffffff; background: #20ad3f; box-shadow: 0 4px 12px rgba(32, 173, 63, 0.25); }

/* --- CHATBOT CORE CONFIGURATION --- */
.chatbot-wrapper {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 999999 !important;
    font-family: sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #20ad3f 0%, #157a2b 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(32, 173, 63, 0.4);
    transition: all 0.3s ease;
}
.chat-toggle:hover { transform: scale(1.08) rotate(5deg); }

.chat-window {
    position: absolute !important;
    bottom: 75px !important;
    right: 0 !important;
    width: 360px;
    max-height: 500px;
    height: 75vh;
    background: #0f172a !important; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(25px) scale(0.92) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.chat-window.active-chat { opacity: 1 !important; visibility: visible !important; transform: translateY(0) scale(1) !important; }
.chat-header { background: #1e293b; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.header-bot-info { display: flex; align-items: center; gap: 10px; }
.active-pulse { width: 8px; height: 8px; background: #20ad3f; border-radius: 50%; box-shadow: 0 0 8px #20ad3f; }
.chat-header h4 { margin: 0; color: white; font-size: 15px; }
.close-chat-btn { color: #64748b; cursor: pointer; font-size: 16px; }
.close-chat-btn:hover { color: #fff; }
.chat-body { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; background: #0b0f19; }

.bot-msg, .user-msg { max-width: 85%; padding: 12px 16px; font-size: 13.5px; line-height: 1.5; margin: 0; }
.bot-msg { background: #1e293b; color: #e2e8f0; border-radius: 4px 16px 16px 16px; align-self: flex-start; }
.user-msg { background: #20ad3f; color: white; border-radius: 16px 16px 4px 16px; align-self: flex-end; }

.bot-options { display: flex; flex-direction: column; gap: 8px; margin-top: 5px; width: 100%; }
.bot-options button { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); color: #cbd5e1; padding: 10px 14px; border-radius: 10px; cursor: pointer; font-size: 13px; text-align: left; transition: all 0.2s ease; width: 100%; }
.bot-options button:hover { background: rgba(32, 173, 63, 0.12); border-color: #20ad3f; color: white; }
.bot-options button.menu-btn { background: rgba(234, 67, 53, 0.08) !important; border-color: rgba(234, 67, 53, 0.2) !important; color: #fca5a5 !important; text-align: center; font-weight: bold; margin-top: 8px; }
.bot-options button.menu-btn:hover { background: #ea4335 !important; color: white !important; }
.animate-reply { animation: bubbleSlide 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards; }
@keyframes bubbleSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   7. ABSOLUTE RESPONSIVE MEDIA BREAKPOINTS (PC TO MOBILE RESET)
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-container { grid-template-columns: 1.2fr 1fr; gap: 35px; }
    .footer-column.brand-info { grid-column: span 2; }
}

@media (max-width: 992px) {
    .course-grid { grid-template-columns: repeat(2, 1fr); }
    .polit-card { grid-column: unset; } 
    .principal-img-box { margin-left: 0; }
    .message-text-box h2 { font-size: 32px; }
    .stats-grid { gap: 15px; }
    .stat-box { padding: 30px 10px; }
    .stat-box h3 { font-size: 32px; }
}

@media (max-width: 768px) {
    .row, .stats-grid, .portal-grid, .message-container, .course-grid { 
        flex-direction: column; display: flex !important; align-items: center; gap: 25px; width: 100%; max-width: 100%; overflow: hidden;
    }
    
    .text-box h1 { font-size: 34px; }
    .course-col, .portal-card, .stat-box, .course-card { width: 100%; flex-basis: 100%; }
    
    .premium-footer { padding-top: 45px; }
    .footer-container { display: flex !important; flex-direction: column; gap: 25px; padding-bottom: 30px; }
    .footer-links-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; }
    .footer-links-list li { margin-bottom: 0; }
    .strip-content { flex-direction: column; text-align: center; gap: 10px; }
    .brand-desc { text-align: left; }

    /* ==========================================================================
       🔥 FIXED MOBILE ADVANCED LAYOUT ENGINE (OPPOSITE GLASS FLOATING)
       ========================================================================== */
    
    /* 1. Hides Facebook, Instagram, and Mail instantly on Mobile screens */
    .social-icons li:not(.icon-whatsapp) {
        display: none !important;
    }
    
    /* 2. Repositions container to float on the LEFT side with perfect balance */
    .social-icons {
        position: fixed !important;
        left: 30px !important;   /* Strict alignment to the LEFT wall */
        right: auto !important;
        bottom: 30px !important;  /* Matches Chatbot's exact height baseline */
        margin: 0 !important;
        padding: 0 !important;
        z-index: 999999 !important;
        
        /* Retains the identical Premium Desktop Glassmorphic look */
        background: rgba(15, 23, 42, 0.4) !important;
        backdrop-filter: blur(12px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 50% !important; /* Converts the entire container block into an Orb */
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    }

    /* 3. Upgrades WhatsApp icon to match Chatbot's exact scale ($60px) and glass look */
    .social-icons li.icon-whatsapp a {
        width: 60px !important;
        height: 60px !important;
        background: transparent !important; /* Keeps the glass vibe intact */
        color: #25d366 !important; /* Dynamic neon green icon highlight */
        font-size: 26px !important;
        border-radius: 50% !important;
        border: none !important; /* Uses parent container border */
        box-shadow: none !important;
        transform: none !important;
    }
    
    .social-icons li.icon-whatsapp a:hover {
        transform: scale(1.08) !important;
        color: #fff !important;
        background: #25d366 !important; /* Solidifies on click/hover interaction */
    }

    /* 4. Chatbot remains locked steady at the right bottom side corner */
    .chatbot-wrapper {
        bottom: 30px !important;
        right: 30px !important;
    }
    
    .chat-window {
        width: calc(100vw - 40px) !important;
        right: 0px !important;
        bottom: 75px !important;
    }
}