/* 1. GLOBAL RESET & BASIC STYLES  */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

/* 2. HEADER SECTION (Logo + Title + Icons) */
.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px 40px;
    padding-right: 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap; 
    padding-bottom:20px;
    padding-top:10px;
}

/* Logo */
.logo-iitj img {
    height: 120px;
    width: auto;
}

/* Title Area */
.title-container {
    text-align: center;
    flex: 1; 
    padding: 0 20px;
    
}

.main-title {
    font-size: 35px;
    font-weight: 700;
    color: #0e4d92; /* IIT Deep Blue */
    letter-spacing: 1px;
    transform: scaleY(1.1); 
    transform-origin: top;
}

.sub-title {
    font-size: 24px;
    color: #3b3b3b;
    font-style: italic;
    margin-top: 5px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons img {
    height: 40px;
    width: 40px;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}

/* =========================================
   SCROLLING TICKER (Navbar ke niche)
   ========================================= */
.ticker-wrap {
    width: 100%;
    background-color: #002147; /* Dark Blue for contrast */
    color: #ffffff;
    height: 40px; /* Thoda height badhaya clear dikhne ke liye */
    overflow: hidden;
    position: relative;
    z-index: 50; /* Slider ke upar dikhne ke liye */
    /* border-bottom: 2px solid #002147; Niche ek blue border achi lagegi */
    display: flex;
    align-items: center;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%; /* Screen ke bahar se start */
    animation: scroll-left 20s linear infinite;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: 500;
}

/* Mouse le jane par ruk jaye */
.ticker-content:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* 3. NAVBAR STYLING (The Blue Bar) */
.iitj-navbar {
    background-color: #0e4d92; /* IIT Deep Blue */
    width: 100%;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    min-height: 50px;
}

/* Hamburger Icon (Hidden on Desktop) */
.hamburger {
    display: none;
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
}

/* Navigation Links Container */
.nav-links {
    list-style: none;
    display: flex;
    justify-content: space-between; /* Spreads items across full width */
    align-items: center;
    width: 100%;
    padding: 0 30px; /* Left/Right padding */
    max-width: 100%;
    margin: 0 auto;
}

/* List Items */
.nav-links > li {
    position: relative; /* Essential for dropdown positioning */
}

/* Main Links */
.nav-links > li > a {
    display: block;
    padding: 15px 20px;
    font-size:20px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.3s;
    white-space: nowrap; 
}

.nav-links > li > a:hover {
    background-color: #083b70; /* Darker blue on hover */
}

/* Small Arrow Icon in Text */
.nav-links li a span {
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

/* 4. DROPDOWN MENU (Desktop: White Card Style)  */
.dropdown-menu {
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0;
    background-color: #ffffff; /* White Background */
    min-width: 240px; 
    list-style: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); /* Soft Shadow */
    border-radius: 8px; /* Rounded Corners */
    padding: 10px 0;
    z-index: 1100;
    margin-top: 15px; /* Spacing for the arrow */
}

/* The Triangle Arrow on Top */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px; 
    left: 20px;
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent; /* White Arrow */
}

/* --- FIX: INVISIBLE BRIDGE (Prevents Menu Closing) --- */
.dropdown-menu::after {
    content: "";
    position: absolute;
    top: -20px; /* Covers the gap above the menu */
    left: 0;
    width: 100%;
    height: 20px; 
    background: transparent; 
}

/* Dropdown Links */
.dropdown-menu li a {
    padding: 12px 20px;
    color: #333; /* Dark Text */
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid transparent; /* Placeholder for hover effect */
    transition: all 0.2s ease;
}

/* Hover Effect on Dropdown Items */
.dropdown-menu li a:hover {
    background-color: #eaf6ff; /* Light Blue BG */
    color: #0e4d92; /* Blue Text */
    border-left: 4px solid #0e4d92; /* Blue Line on Left */
    padding-left: 16px; 
}

/* Desktop Hover Trigger */
@media (min-width: 901px) {
    .nav-links li:hover .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/*  5. PAGE CONTENT (Placeholder)*/
.page-container {
    padding: 50px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

h1 { color: #333; margin-bottom: 10px; }
p { color: #666; font-size: 18px; }


/* 6. RESPONSIVE DESIGN (Mobile & Tablet) */
@media (max-width: 900px) {
    
    /* Header Stack */
    .top {
        flex-direction: column;
        gap: 15px;
        padding: 20px 10px;
    }
    
    .main-title { font-size: 30px; }
    .sub-title { font-size: 24px; }

    /* Hamburger Visible */
    .hamburger { display: block; }

    /* Navbar Layout */
    .nav-links {
        display: none; /* Hidden by default */
        flex-direction: column;
        width: 100%;
        padding: 0;
        background-color: #0c427e;
    }

    /* Active Class (Toggled via JS) */
    .nav-links.active { display: flex; }

    .nav-links > li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links > li > a {
        padding: 15px 25px;
        width: 100%;
    }

    /* Mobile Dropdown (Fix Overlapping & Style) */
    .dropdown-menu {
        position: relative !important; /* Pushes content down */
        top: auto !important;
        left: auto !important;
        width: 100%;
        box-shadow: none !important;
        background-color: #0e4f94 !important; /* Dark Blue for Mobile */
        float: none;
        margin-top: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
    
    /* Remove Arrow & Bridge on Mobile */
    .dropdown-menu::before { display: none; }
    .dropdown-menu::after { display: none; }

    /* Mobile Dropdown Links */
    .dropdown-menu li a {
        color: #ddd !important; /* Light text */
        padding-left: 40px !important; /* Indent */
        border-left: none !important;
    }

    .dropdown-menu li a:hover {
        background-color: #0a407a !important;
        color: white !important;
        padding-left: 45px !important;
    }
    
    /* Show when 'open' class added via JS */
    .dropdown-menu.open { display: block; }
}


/* =========================================
   7. FOOTER SECTION (Responsive Grid)
   ========================================= */
footer {
    
    background-color: #093566; /* Dark Blue */
    color: white;
    font-family: 'Segoe UI', sans-serif;
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    padding-bottom: 40px;
    
    /* FLEXBOX GRID SETUP */
    display: flex;
    flex-wrap: wrap; /* Items ko next line me bhejne ke liye */
    justify-content: space-between;
    gap: 30px; /* Columns ke beech gap */
}

/* --- COMMON COLUMN STYLE --- */
.footer-col {
    /* Default: Desktop (Badi Screen > 1024px) par 4 columns dikhenge */
    flex: 0 0 calc(25% - 23px); /* 25% width minus gap */
    min-width: 220px;
}

/* --- LOGO COLUMN STYLE --- */
.footer-logo-box {
    background-color: white;
    padding: 15px;
    border-radius: 18px;
    display: inline-block;
    text-align: center;
    width: 100%; /* Logo box full width lega column ka */
    max-width: 240px;
}

.footer-logo-box img {
    height: 90px;
    width: auto;
    margin-bottom: 5px;
}

.footer-logo-text {
    color: #0e4d92;
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
}

/* --- HEADINGS & TEXT --- */
.footer-heading {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    position: relative;
    letter-spacing: 0.5px;
    color: #ffffff;
}

/* Heading ke niche choti line */
.footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 3px;
    background-color: #4a90e2;
}

.footer-text p {
    font-size: 15px;
    color: #d1e3f6;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* --- LINKS --- */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #d1e3f6;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px); /* Hover par thoda right khiske */
    color: #6eb5ff;
}

/* --- COPYRIGHT BAR --- */
.copyright-bar {
    background-color: #06264b; /* Thoda dark background */
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #8db5e3;
    letter-spacing: 0.5px;
}

/* RESPONSIVE MEDIA QUERIES (Jadoo Yahan Hai)*/

/* 1. LAPTOP & TABLET MODE (Screen size 1024px se choti) */
/* Yahan hum 2-2 ka pair banayenge */
@media (max-width: 1024px) {
    .footer-col {
        /* 50% width matlab ek line me 2 items */
        flex: 0 0 calc(50% - 15px); 
    }
}

/* 2. MOBILE MODE (Screen size 600px se choti) */
/* Yahan hum 1-1 karke dikhayenge */
@media (max-width: 600px) {
    .footer-col {
        /* 100% width matlab ek line me sirf 1 item */
        flex: 0 0 100%; 
        text-align: center; /* Mobile par text center acha lagta hai */
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%); /* Line ko bhi center karo */
    }
    
    .footer-logo-box {
        margin: 0 auto; /* Logo center */
    }
}

/* --- FIX: VISITOR COUNTER OVERLAP --- */

/* 1. Counter Wrapper ko thoda gap dein */
#visitor-counter-wrapper {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0; /* Halka sa divider line */
    text-align: center;
}

/* 2. Counter IMAGE ko control karein (Most Important) */
#visitor-counter-wrapper img {
    max-width: 100%;  /* Image box se bahar nahi jayegi */
    height: auto;     /* Height apne aap adjust hogi */
    display: block;
    margin: 0 auto;   /* Center me rahegi */
    border-radius: 4px; /* Kone thode gol honge */
}

/* 3. Logo Box ko flexible banayein */
.footer-logo-box {
    height: auto; /* Height fixed na ho, content ke hisab se badhe */
    min-height: auto;
    overflow: hidden; /* Agar kuch bahar nikle to chup jaye */
}




/*  8. HOME PAGE HERO SLIDER */

/* Section ki height set karein */
.hero-section {
    position: relative;
    width: 100%;
    height: 40vh; /* Screen ki height ka 40% */
    min-height: 500px; /* Mobile par isse chhota na ho */
    background-color: #ddd; /* Placeholder color agar image load na ho */
    overflow: hidden; /* Jo image bahar nikle use kaat do */
}

.slider-container {
    width: 100%;
    height: 100%;
}

/* Saari images ka common style */
.slide {
    position: absolute; /* Ek ke upar ek chadha do */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Image ko bina stretch kiye container bharo (Important!) */
    opacity: 0; /* Shuru mein sab gayab rahengi */
    transition: opacity 0.5s ease-in-out; /* Fade effect 1 second ka hoga */
}

/* Jo image abhi dikhni chahiye */
.slide.active {
    transition: filter 0.0s ease-in-out, opacity 0.0s ease-in-out;
    opacity: 1; /* Sirf 'active' wali ki opacity 0.5 hogi */
    z-index: 1; /* Sabse upar rakho */
    filter: brightness(60%);
    
}


.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center me lane ke liye */
    z-index: 2; /* Image ke upar */
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 20px;
}

/* Main Title Style  */
.hero-text-overlay h1 {
    font-size: 5rem; /* Bahut bada size (Desktop ke liye) */
    font-weight: 700; /* Extra Bold */
    line-height: 1.1; /* Lines ke beech kam gap */
    font-family: 'Times New Roman', serif;
    margin: 0;
    color: white;
    /* IMPORTANT: Strong Shadow/Outline Effect */
    /* Ye 4 shadow milkar text ke charo taraf outline banati hain */
}

/* --- RESPONSIVE: Mobile & Tablet --- */
@media (max-width: 768px) {
    /* Mobile par height thodi kam */
    .hero-section { height: 60vh; min-height: 400px; }
    
    /* Mobile par font size aur shadow chhota karein */
    .hero-text-overlay h1 {
        font-size: 3rem;
        /* Shadow thodi patli karein mobile ke liye */
        
    }
}

@media (max-width: 480px) {
    /* Chhote mobile par aur chhota */
    .hero-text-overlay h1 {
        font-size: 2rem;
    }
}

/* =========================================
   9. DIRECTOR MESSAGE SECTION
   ========================================= */

.director-section {
    padding: 60px 20px;
    background-color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
}

.director-container {
    max-width: 100%;
    margin: 0 auto;
    margin-left: 5%;
    margin-right: 5%;
    display: flex; /* Desktop par side-by-side lane ke liye */
    align-items: flex-start; /* Upar se align */
    gap: 100px; /* Text aur Image ke beech gap */
}

/* --- TEXT AREA STYLING --- */
.director-content {
    flex: 2; /* Text ko zyada jagah milegi (66%) */
}

.section-title {
    font-size: 32px;
    color: #0e4d92; /* IIT Blue */
    margin-bottom: 5px;
    font-weight: 700;
    text-transform: uppercase;
    border-left: 5px solid #0e4d92; /* Stylish left border */
    padding-left: 15px;
}

.sub-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    padding-left: 20px; /* Title ke niche align karne ke liye */
    font-weight: 600;
}

.message-text p {
    font-size: 16px;
    line-height: 1.8; /* Padhne me aasaani ho */
    color: #333;;
    margin-bottom: 20px;
    text-align: justify; /* Newspaper jaisa clean look */
}

/* --- SIGNATURE STYLING --- */
.director-signature {
    margin-top: 30px;
}

.director-signature h3 {
    font-size: 20px;
    color: #0e4d92;
    margin-bottom: 5px;
    font-family: 'Segoe UI', serif; /* Thoda alag font style */
}

.director-signature span {
    font-size: 14px;
    color: #555;
    font-style: italic;
}

/* --- IMAGE AREA STYLING --- */
.director-image-box {
    flex: 1; /* Image ko kam jagah (33%) */
    text-align: center;
    position: relative;
}

.director-image-box img {
    width: 100%;
    max-width: 450px; /* Image bahut badi na ho jaye */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); /* Sundar shadow */
    border: 4px solid #fff; /* White border styling */
}

/* =========================================
   RESPONSIVE (Mobile Order Logic)
   ========================================= */
@media (max-width: 900px) {
    .director-container {
        flex-direction: column; /* Column: Ek ke niche ek */
    }

   

    .director-content {
        order: 1; /* Sabse upar */
        width: 100%;
    }

    .director-image-box {
        order: 2; /* Uske niche */
        width: 100%;
        margin-top: 20px; /* Thoda gap */
    }

    .director-image-box img {
        max-width: 100%; /* Mobile par full width */
    }

    .section-title {
        font-size: 26px;
    }
}

/* =========================================
   10. GLOBAL ENGAGEMENTS STATS SECTION
   ========================================= */

.stats-section {
    background-color: #0e4d92; /* IIT Jammu Blue Background */
    padding: 60px 20px;
    text-align: center;
    color: white;
    font-family: 'Segoe UI', sans-serif;
}

/* --- Heading Styling --- */
.stats-title {
    font-family: 'Times New Roman', serif; /* Image jaisa font */
    font-size: 3.5rem; /* Bada Size */
    color: #89cff0; /* Light Sky Blue color heading ke liye */
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stats-subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 50px; /* Cards se gap */
    letter-spacing: 1px;
}

/* --- Cards Grid Layout --- */
.stats-grid {
    display: flex;
    justify-content: center; /* Center me lao */
    gap: 30px; /* Cards ke beech gap */
    flex-wrap: wrap; /* Mobile pr tut ke niche aa jaye */
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Individual Card Styling --- */
.stat-card {
    background-color: #ffffff; /* White Card */
    border-radius: 20px; /* Gol Kone */
    padding: 40px 20px;
    width: 280px; /* Fixed width taaki sab barabar dikhein */
    box-shadow: 0 8px 20px rgba(0,0,0,0.2); /* Shadow effect */
    transition: transform 0.3s ease; /* Animation ke liye */
    border: 3px solid #bce0fd; /* Halka blue border image jaisa */
}

/* Hover Effect: Mouse le jane par card thoda upar uthega */
.stat-card:hover {
    transform: translateY(-10px);
}

/* Numbers Styling (100+, 1600+) */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700; /* Extra Bold */
    color: #0e4d92; /* Dark Blue Text */
    line-height: 1;
    margin-bottom: 10px;
}

/* Label Styling (MOU, STUDENTS) */
.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0e4d92;
    letter-spacing: 1px;
}

/* Small Text Styling */
.stat-sublabel {
    font-size: 0.85rem;
    color: #555;
    margin-top: 5px;
}

/* --- RESPONSIVE (Mobile View) --- */
@media (max-width: 768px) {
    .stats-title {
        font-size: 2.5rem; /* Mobile par heading chhoti */
    }
    
    .stats-grid {
        flex-direction: column; /* Ek ke niche ek */
        align-items: center;
    }

    .stat-card {
        width: 100%; /* Mobile par full width */
        max-width: 320px;
    }
}



/* =========================================
   11. INFINITE FLAG TICKER
   ========================================= */

.flag-ticker-section {
    margin-bottom:0px;
    background-color: #093566; /* Dark Blue jo Footer se match kare */
    padding: 20px;
    overflow: hidden; /* Jo screen se bahar jaye wo dikhe nahi */
    border-top: 1px solid rgba(255,255,255,0.1);
}

.ticker-wrapper {
    width: 100%;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    width: fit-content; /* Jitne flags honge utni choudai */
    animation: scrollTicker 20s linear infinite; /* 20s me pura ghumega */
}

/* Mouse le jane par rokne ke liye (Optional) */
.ticker-track:hover {
    animation-play-state: paused;
}

.flag-set {
    display: flex;
    align-items: center;
    gap: 40px; /* Flags ke beech gap */
    padding-right: 40px; /* Set ke baad gap */
}

.flag-set img {
    height: 50px; /* Flag ki height fixed */
    width: auto;  /* Width apne aap adjust ho */
    box-shadow: 0 4px 6px rgba(0,0,0,0.3); /* Flag ke piche shadow */
    transition: transform 0.3s;
}

.flag-set img:hover {
    transform: scale(1.2); /* Hover karne par flag bada ho */
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        /* -50% isliye kyunki humne 2 set lagaye hain. 
           Jab pehla set khatam hoga, animation wapas 0 par jump karega */
        transform: translateX(-50%); 
    }
}

/* Mobile par thoda fast chale */
@media (max-width: 768px) {
    .flag-set img {
        height: 40px;
        gap: 20px;
    }
    .ticker-track {
        animation-duration: 15s;
    }
}





.map {
  max-width: 800px;
  margin: 48px auto;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(60, 120, 180, 0.1);
  width: 90vw;
  min-width: 320px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  position: relative;
  cursor: crosshair;
}

.map.zooming {
  overflow: hidden;
}

.map svg {
  width: 100%;
  height: auto;
  background: #d0f1ff;
  border-radius: 14px;
  box-shadow: 0 1px 6px 0 rgba(60, 120, 180, 0.07);
  display: block;
  max-height: 70vh;
  transition: none;
}

.map.zooming svg {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}



@media (max-width: 600px) {
  .map {
    padding: 6px;
    border-radius: 10px;
  }

  .map svg {
    border-radius: 8px;
  }
}

