* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

header {
    background: #1a237e;
    color: white;
    padding: 15px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* Navbar ko fix karne ke liye ye lines zaroori hain */
    position: fixed;   /* Ye screen par fix kar dega */
    top: 0;            /* Bilkul upar */
    left: 0;           /* Baayen se shuru */
    width: 100%;       /* Poori screen ki width */
    z-index: 1000;     /* Taake ye baqi content ke upar rahe */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Halka sa shadow professional look ke liye */

}

/* Kyunki navbar ab hawa mein hai (fixed), 
   isliye body ko thoda niche se shuru karna hoga 
   taake hero section navbar ke niche na chhup jaye */
body {
    padding-top: 70px; /* Jitni aapki navbar ki height hai */
}

.logo span { color: #ffeb3b; }

nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 20px; }
nav ul li a { color: white; text-decoration: none; font-weight: bold; }
nav ul li a.active { border-bottom: 2px solid #ffeb3b; color: #ffeb3b; }

/* Hero Section */
.hero {
    height: 60vh; background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1546410531-bb4caa6b424d?w=1200');
    background-size: cover; display: flex; flex-direction: column;
    justify-content: center; align-items: center; color: white;
}

.btn {
    background: #ffeb3b; color: #1a237e;
    padding: 10px 25px; text-decoration: none;
    margin-top: 20px; border-radius: 5px; font-weight: bold;
}

/* Features Boxes */
.features { display: flex; justify-content: space-around; padding: 50px 10%; background: #f4f4f4; }
.box { background: white; padding: 30px; border-radius: 10px; text-align: center; width: 30%; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.box i { font-size: 40px; color: #1a237e; margin-bottom: 10px; }

/* Form Styles */
.form-container, .content-page { padding: 50px 15%; text-align: center; }
input, select { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #ccc; border-radius: 5px; }
/* Stats Section */
.stats {
    display: flex;
    justify-content: space-around;
    background: #1a237e;
    color: white;
    padding: 60px 10%;
    text-align: center;
}
.stat-box h2 { font-size: 3rem; color: #ffeb3b; }

/* Principal Message */
.principal-msg { padding: 80px 10%; background: #fff; }
.msg-container { display: flex; align-items: center; gap: 40px; }
.msg-img img { width: 300px; border-radius: 15px; box-shadow: 10px 10px 0px #ffeb3b; }
.msg-text h2 { font-size: 2.5rem; margin-bottom: 20px; color: #1a237e; }
.msg-text p { font-style: italic; font-size: 1.2rem; color: #555; }

/* Gallery Layout */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 40px 10%;
}
.gallery-item { overflow: hidden; border-radius: 10px; height: 250px; }
.gallery-item img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: transform 0.5s ease; cursor: pointer;
}
.gallery-item img:hover { transform: scale(1.1); }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .msg-container { flex-direction: column; text-align: center; }
    .stats { flex-direction: column; gap: 30px; }
}
/* Full Image View (Modal) Style */
.full-img-modal {
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    position: fixed;
    top: 0;
    left: 0;
    display: none; /* Pehle chhupa rahega */
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.full-img-modal img {
    width: 90%;
    max-width: 700px;
    border: 5px solid white;
    border-radius: 5px;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 50px;
    color: white;
    cursor: pointer;
}
.gallery-item {
    background: #e0e0e0; /* Image load hone tak light gray dikhega */
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.5s ease;
}

/* Jab image par mouse le jayein toh halka sa zoom aur dark effect */
.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(80%);
}
/* --- Academics Page Specific Styles --- */

/* Page Header Section */
.page-title {
    background: linear-gradient(rgba(26, 35, 126, 0.8), rgba(26, 35, 126, 0.9)), 
                url('https://images.pexels.com/photos/267586/pexels-photo-267586.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
    padding: 100px 10%;
    text-align: center;
    color: white;
}

.page-title h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-title p {
    font-size: 1.2rem;
    color: #ffeb3b; /* Yellow accent */
}

/* Grid Layout */
.academic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 80px 10%;
    background-color: #f8f9fa;
}

/* Academic Cards Design */
.academic-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border-bottom: 5px solid transparent;
    position: relative;
    overflow: hidden;
}

.academic-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom: 5px solid #1a237e;
}

/* Icons Styling */
.academic-card i {
    font-size: 60px;
    color: #1a237e;
    margin-bottom: 25px;
    display: inline-block;
    transition: 0.3s;
}

.academic-card:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #ffeb3b;
}

/* Text Content */
.academic-card h3 {
    font-size: 1.6rem;
    color: #1a237e;
    margin-bottom: 15px;
}

.academic-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* List Styling */
.academic-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
}

.academic-card ul li {
    padding: 8px 0;
    color: #444;
    font-weight: 500;
    position: relative;
    padding-left: 25px;
}

/* Custom Bullet Point (Icons) */
.academic-card ul li::before {
    content: "\f058"; /* FontAwesome check-circle icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #2e7d32; /* Success Green */
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .page-title h1 {
        font-size: 2.2rem;
    }
    
    .academic-grid {
        padding: 40px 5%;
    }
}
/* Slider Styles */
.slider {
    height: 80vh;
    position: relative;
    overflow: hidden;
}
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }
.slide h1 { font-size: 3.5rem; margin-bottom: 20px; }

/* Why Us Section */
.why-us { padding: 80px 10%; text-align: center; background: #fff; }
.section-title { font-size: 2.5rem; color: #1a237e; margin-bottom: 40px; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.info-card {
    padding: 40px 20px;
    border-radius: 15px;
    background: #f8f9fa;
    border: 1px solid #eee;
    transition: 0.3s;
}
.info-card:hover {
    background: #1a237e;
    color: white;
    transform: translateY(-10px);
}
.info-card i { font-size: 40px; color: #ffeb3b; margin-bottom: 20px; }
.info-card:hover i { color: #fff; }
/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Header & Navigation */
    nav ul {
        position: fixed;
        top: 70px;
        right: -100%; /* Shuru mein screen se bahar hoga */
        background: #1a237e;
        width: 70%;
        height: 100vh;
        flex-direction: column;
        align-items: center;
        transition: 0.5s;
        z-index: 1000;
    }

    nav ul.active {
        right: 0; /* Button click karne par andar aa jayega */
    }

    nav ul li {
        margin: 20px 0;
    }

    .menu-icon {
        display: block; /* Mobile par icon dikhega */
        color: white;
        font-size: 24px;
        cursor: pointer;
    }

    /* Hero Section Adjustments */
    .slide h1 { font-size: 2rem; }
    .slide p { font-size: 1rem; }

    /* Principal Section */
    .msg-container {
        flex-direction: column;
        text-align: center;
    }
    .msg-img img {
        width: 100%;
        max-width: 250px;
    }

    /* Stats Section */
    .stats {
        flex-direction: column;
        gap: 20px;
    }

    /* Why Choose Us Cards */
    .card-grid {
        grid-template-columns: 1fr; /* Mobile par ek card ek line mein */
    }
}

/* Desktop par Menu Icon chupa rahega */
@media (min-width: 769px) {
    .menu-icon {
        display: none;
    }
}
/* Pehle Desktop ke liye (Standard Style) */
.features {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 50px 10%;
    gap: 20px;
    background: #f4f4f4;
}

.box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    flex: 1; /* Desktop par barabar jagah lene ke liye */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

/* --- MOBILE RESPONSIVE CODE --- */
@media (max-width: 768px) {
    .features {
        flex-direction: column; /* Teeno boxes ko aik ke neche aik layega */
        padding: 30px 5%;
    }

    .box {
        width: 100%; /* Mobile par box poori width le lega */
        margin-bottom: 20px; /* Do boxes ke darmiyan gap */
    }
    
    .hero h1 {
        font-size: 2rem; /* Mobile par heading choti ho jaye */
    }
}
@media (max-width: 768px) {
    nav ul {
        top: 60px; /* Navbar ki height ke hisab se adjust karein */
        height: calc(100vh - 60px); /* Poori bachi hui screen par menu dikhe */
    }
}
header {
    background: rgba(26, 35, 126, 0.95); /* Halki si transparency */
    backdrop-filter: blur(10px); /* Background ko dhundla (blur) karne ke liye */
}
