/* ==========================================================================
   UNIVCOLL BRANDING & ROOT SYSTEM
   ========================================================================== */
:root {
    --primary-blue: #0a1e3d; /* Logo Shield Blue */
    --gold: #d4af37;         /* Premium Metallic Gold */
    --teal-bg: #157997;      /* Drishti Style Teal Mix */
    --red: #ff0000;          /* Sitemap Red */
    --wa-green: #25D366;     /* WhatsApp Official */
    --text-dark: #333333;
    --transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Poppins', sans-serif; 
    background: var(--primary-blue); 
    color: #fff; 
    overflow-x: hidden;
}
.container { width: 94%; max-width: 1500px; margin: 0 auto; }
.hindi-font { font-family: 'Mukta', sans-serif; }

/* ==========================================================================
   STICKY HEADER [Laptop & Mobile Optimized]
   ========================================================================== */
.main-header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: var(--primary-blue); padding: clamp(8px, 2vh, 18px) 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}
.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* --- Zoom Out Control --- */
    max-width: 1400px; /* Yeh sabse zaroori hai, content ko bikharne se rokega */
    margin: 0 auto;    /* Content ko hamesha screen ke beech (Center) mein rakhega */
    width: 95%;        /* Screen ke dono taraf halka sa gap banaye rakhega */
    /* ------------------------ */
    flex-wrap: wrap;   /* Mobile par elements ko adjust hone dega */
    padding: 10px 0;
}

/* Sitemap Tag Red Style */
.sitemap-tag { 
    background: var(--red); color: white; padding: 5px 15px; 
    text-decoration: none; font-weight: 900; font-size: 0.8rem; 
    border-radius: 2px; text-transform: uppercase;
}

.head-link { color: #fff; text-decoration: none; margin: 0 12px; font-size: 0.9rem; opacity: 0.9; }
/*.burger-menu { 
    background: #0d2a33; border: none; color: white; 
    padding: 10px 14px; border-radius: 4px; cursor: pointer; 
    font-size: 1.25rem; transition: 0.3s;
}
.burger-menu:hover { background: #153c48; }*/
.menu-toggle {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    font-size: 20px;
    width: 45px;
    height: 45px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.menu-toggle:hover {
    background-color: var(--text-on-dark);
    color: var(--primary-color);
}

/* ==========================================================================
   HERO SECTION & TAGLINE (Exact 70% Zoom Fix)
   ========================================================================== */
.hero-box {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at center, var(--teal-bg) 0%, var(--primary-blue) 100%);
    text-align: center; color: #fff; padding-top: 80px;
}
.hero-logo { height: clamp(70px, 12vh, 130px); margin-bottom: 1rem; filter: drop-shadow(0 0 15px rgba(0,0,0,0.2)); }
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.hero-brand { 
    font-family: 'Playfair Display', serif; 
    font-size: clamp(3rem, 7vw, 6.5rem); 
    line-height: 1;
    margin: 0;
    font-weight: 900; /* Isse metallic look zyada solid dikhega */

    /* Premium Golden Metallic Gradient */
    background: linear-gradient(
        180deg,
        #f6e27a 0%,
        #d4af37 35%,
        #b8962e 60%,
        #f6e27a 100%
    );

    /* Text par gradient dikhane ke liye zaroori properties */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback */

    /* Halka sa shadow taaki dark background par chamak dikhe */
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Tagline Suffix Style */
.hero-tagline { font-size: clamp(1rem, 2.5vw, 1.85rem); font-weight: 400; letter-spacing: 2px; margin-top: 10px; }
.hero-tagline span { font-size: 0.6em; opacity: 0.8; }

/* Services Layout Grid */
.services-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; max-width: 1200px; margin: 0 auto; }
.svc-link { 
    flex: 1 1 280px; border: 1px solid rgba(255,255,255,0.3); padding: 1.1rem; 
    color: #fff; text-decoration: none; border-radius: 4px; font-size: 0.9rem; 
    transition: var(--transition); text-align: center;
}
.svc-link:hover { background: #fff; color: var(--primary-blue); font-weight: 600; transform: translateY(-3px); }






/* =========================================================
   MEGA MENU OVERLAY (FINAL FIXED VERSION)
   ========================================================= */
/* =========================================================
   MEGA MENU OVERLAY (FINAL FULL SCREEN)
   ========================================================= */
.mega-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff; /* Pura white background */
    z-index: 99999;    /* Sabse upar */
    display: none;      /* By default hide rahega */
    overflow-y: auto;
    padding: 80px 0 50px;
    color: #333;        /* Text dark rahega */
}

/* Jab Menu khulega (JS se .open add hoga) */
.mega-menu-overlay.open {
    display: block;    
    animation: fadeIn 0.3s ease-in-out; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Close Button Position & Design */
.menu-close {
    position: absolute;
    top: 25px;
    right: 5%;         /* Professional gap */
    z-index: 100000;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 6px;
    background: #666;  /* Gray background */
    color: #fff;       /* White icon */
    font-size: 22px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.menu-close:hover {
    background: #0a1e3d; /* Hover par UnivColl Blue */
}

/* Grid Layout */
.menu-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:40px;
}

/* Menu Column */
.menu-column h4{
    font-size:18px;
    font-weight:700;
    margin-bottom:18px;
    border-bottom:2px solid #eee;
    padding-bottom:6px;
    color:var(--primary-blue);
}

/* List Links */
.link-list{
    list-style:none;
}

.link-list li{
    margin-bottom:12px;
}

.link-list a{
    text-decoration:none;
    color:#444;
    font-size:15px;
    display:block;
    transition:var(--transition);
}

.link-list a::before{
    content:'›';
    color:var(--gold);
    margin-right:8px;
    font-weight:900;
}

.link-list a:hover{
    color:var(--primary-blue);
    transform:translateX(5px);
}

/* Left Custom Icon Links */
.links-col{
    display:flex;
    flex-direction:column;
    gap:28px;
}

.links-col a{
    font-size:16px;
    font-weight:600;
    color:var(--primary-blue);
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:10px;
}

.links-col a i{
    color:var(--gold);
    font-size:18px;
}

.links-col a:hover{
    color:var(--gold);
}

/* ==========================================================================
   WHATSAPP HLOTIG BUTTON 
   ========================================================================== */
/* --- World Class WhatsApp Floating Button --- */
/* --- Master World-Class WhatsApp Button --- */
.wa-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

/* Breathing Ping Animation */
.wa-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #25D366;
    border-radius: 50px;
    z-index: -1;
    animation: wa-ping 2s infinite;
    opacity: 0;
}

@keyframes wa-ping {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

.wa-txt { 
    font-size: 10px; 
    text-align: right; 
    line-height: 1.1; 
    margin-right: 12px; 
    font-weight: 500;
    letter-spacing: 0.5px;
}

.wa-txt span { 
    font-size: 13px; 
    font-weight: 900; 
    display: block;
    text-transform: uppercase;
}

.wa-icon { 
    font-size: 24px; 
    display: flex;
    align-items: center;
}

/* Hover Effect for Desktop */
.wa-float:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

/* --- Mobile Optimization (Sleek & Text Enabled) --- */
@media (max-width: 768px) {
    .wa-float {
        padding: 6px 12px; /* Thota aur compact */
        bottom: 15px;
        right: 15px;
    }
    
    .wa-txt {
        display: block !important; /* Text ko mobile par wapas laya gaya */
        font-size: 7px;           /* Ekdam thota size */
        margin-right: 8px;
    }
    
    .wa-txt span {
        font-size: 9px;           /* "FIRST" mobile par chhota dikhega */
    }
    
    .wa-icon {
        font-size: 18px;          /* Mobile icon size balance */
    }

    .wa-float:active {
        transform: scale(0.95);
    }
}

/*whatsApp floting button end*/

/* Mobile Optimization */
@media (max-width: 900px) {
    
    .hero-brand { font-size: 3.5rem; }
    .hero-tagline { font-size: 1.2rem; }
    .menu-grid { grid-template-columns: 1fr; padding: 0 20px; }
    .svc-link { flex-basis: 100%; }
    .mega-menu-overlay { padding: 60px 0; }
}

/* Mobile view ke liye special adjustment */
@media (max-width: 900px) {

    
    /* Header center ko horizontal karne ke liye */
    .header-center {
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:3px;
        font-size:12px;
        margin-left:10px;
    }

    /* Links ka font size thoda chota taaki ek line mein fit ho jaye */
    .head-link {
        font-size: 0.75rem !important; 
        margin: 0 !important;
        white-space: nowrap;      /* Text ko wrap hone se rokega */
    }

    /* Email top ko mobile par dikhane ke liye (agar wo hidden tha) */
    .email-top {
        display: inline-block !important;
    }

    /* Sitemap aur Menu button ke beech space balanced rahe */
    .nav-flex {
        flex-wrap: wrap; 
        justify-content: space-between;
    }
}

/*-----2nd part start-------*/

:root {
    --primary-blue: #0a1e3d;
    --teal-grad: linear-gradient(90deg, #157997, #26b1b1);
    --red-grad: linear-gradient(90deg, #ff4b2b, #ff416c);
    --transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-section { padding: 60px 20px; background: #f4f7f6; display: flex; justify-content: center; }
.portal-wrapper { display: flex; gap: 30px; max-width: 1300px; width: 100%; margin: 0 auto; }
.portal-card { flex: 1; background: #fff; border: 1px solid #eee; padding: 30px 10px; text-align: center; box-shadow: 0 15px 35px rgba(0,0,0,0.07); border-radius: 8px; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.portal-logo { height: 65px; margin-bottom: 25px; object-fit: contain; }
.slider-container { display: flex; align-items: center; width: 100%; margin-bottom: 25px; position: relative; }

/* --- Slider Viewport --- */
.grid-viewport {
    overflow: hidden;
    width: 100%;
    height: 145px !important; /* Laptop row height lock */
}

/* --- Fixed Flex Structure (3x2 Layout Fix) --- */
.grid-content {
    display: flex !important;
    flex-wrap: wrap; /* Laptop par 2 rows banane ke liye */
    flex-direction: column; /* Items ko columns mein lagayega taaki sliding sets mein ho */
    height: 140px; 
    gap: 12px;
    width: 100%;
    transition: transform var(--transition);
}

/* Har item ki width laptop par 1/3 hogi (Total 6 per set) */
.grid-item {
    background: var(--teal-grad);
    color: white;
    border-radius: 4px;
    width: calc(33.33% - 8px); 
    height: 60px;
    flex-shrink: 0;
    display: flex;
    overflow: hidden;
}

.grid-item a {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; color: white; text-decoration: none;
    padding: 10px; font-size: 13px; font-weight: 500; text-align: center;
}

.arrow-btn { background: none; border: none; font-size: 28px; cursor: pointer; padding: 0 15px; color: #444; z-index: 10; }
.btn-visit { display: inline-block; padding: 15px 0; color: white; text-decoration: none; font-weight: bold; border-radius: 6px; background: var(--red-grad); width: 85%; text-transform: uppercase; margin-top: auto; }

/* --- Mobile View (Set of 2 Items) --- */
/* --- MOBILE VIEW FIX --- */
@media (max-width: 992px) {
    .portal-wrapper { 
        flex-direction: column; 
        gap: 40px; 
    }

    .grid-viewport { 
        height: 155px !important; /* 2 vertical items ki height fix */
    }

    .grid-content {
        display: grid !important;
        /* Mobile par sirf 1 column aur 2 rows (upar-niche structure) */
        grid-template-columns: 100% !important; 
        grid-template-rows: repeat(2, 65px) !important;
        
        /* ZAROORI: Items ko sets mein line se lagane ke liye */
        grid-auto-flow: column !important;
        grid-auto-columns: 100% !important; 
        
        gap: 12px;
        width: 100%;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .grid-item {
        width: 100% !important;
        min-height: 65px;
    }
    .hero-logo {

        margin-top: 30px !important; /* Isse logo mobile par niche sarak jayega */

    }
}



/*---2nd part end-----*/
