/* --- CSS VARIABLES & RESET --- */
:root {
    --primary: #002147;
    --secondary: #B8860B;
    --accent: #800000;
    --light: #f4f4f4;
    --dark: #333;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--primary); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.section-padding { padding: 80px 0; }

.section-title { text-align: center; margin-bottom: 50px; position: relative; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-title span { display: block; width: 60px; height: 3px; background: var(--secondary); margin: 0 auto; }

/* Buttons */
.btn {
    display: inline-block; padding: 12px 30px; background: var(--secondary);
    color: var(--white); font-weight: 600; border-radius: 5px;
    transition: var(--transition); border: 2px solid var(--secondary); cursor: pointer;
}
.btn:hover { background: transparent; color: var(--secondary); }

.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); padding: 12px 30px; border-radius: 5px; }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-nav { padding: 8px 20px; background: var(--secondary); color: white; border-radius: 5px; }

/* --- HEADER & NAV --- */
header { background: var(--white); box-shadow: var(--shadow); position: fixed; width: 100%; top: 0; z-index: 1000; }
.top-bar { background: var(--primary); color: var(--white); padding: 8px 0; font-size: 0.9rem; }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }

nav { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo { font-size: 1.8rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.logo i { color: var(--secondary); }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; position: relative; }
.nav-links a:not(.btn-nav)::after {
    content: ''; position: absolute; width: 0; height: 2px;
    background: var(--secondary); bottom: -5px; left: 0; transition: var(--transition);
}
.nav-links a:not(.btn-nav)::hover::after { width: 100%; }

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- HERO SECTION --- */
#home { height: 100vh; position: relative; display: flex; align-items: center; color: var(--white); margin-top: 60px; overflow: hidden; }
.slider-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: -1; transition: opacity 1s ease-in-out; }
.slider-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 33, 71, 0.7); z-index: 0; }
.hero-content { z-index: 1; max-width: 800px; }
.hero-content h1 { font-size: 3.5rem; color: var(--white); margin-bottom: 20px; opacity: 0; transform: translateY(30px); }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0; transform: translateY(30px); }
.hero-btns { opacity: 0; transform: translateY(30px); }

/* --- NOTICE BOARD --- */
.notice-board { background: var(--primary); color: var(--white); padding: 10px 0; display: flex; align-items: center; }
.notice-label { background: var(--secondary); padding: 5px 15px; font-weight: bold; margin-right: 15px; white-space: nowrap; }
.marquee { width: 100%; overflow: hidden; white-space: nowrap; }
.marquee span { display: inline-block; padding-left: 100%; animation: marquee 20s linear infinite; }
@keyframes marquee { 0% { transform: translate(0, 0); } 100% { transform: translate(-100%, 0); } }

/* --- ABOUT --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img { position: relative; }
.about-img img { width: 100%; border-radius: 5px; box-shadow: var(--shadow); }
.about-img::before { content: ''; position: absolute; top: -20px; left: -20px; width: 100px; height: 100px; border-top: 5px solid var(--secondary); border-left: 5px solid var(--secondary); }
.fa-ul li { margin-bottom: 10px; }
.fa-li i { color: var(--secondary); }

/* --- COURSES --- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.course-card { background: var(--white); border: 1px solid #eee; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.course-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.course-header { background: var(--primary); color: var(--white); padding: 20px; text-align: center; }
.course-body { padding: 25px; }
.course-meta { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 0.9rem; color: #666; }
.course-meta i { color: var(--secondary); margin-right: 5px; }

/* --- FACULTY (Optimized for 2 members) --- */
.faculty-grid {
    display: flex;             /* Grid ki jagah Flex use kiya */
    justify-content: center;   /* Cards ko beech mein layega */
    gap: 30px;                 /* Cards ke beech ka gap */
    flex-wrap: wrap;           /* Mobile par neeche aane ke liye */
}

.faculty-card {
    text-align: center;
    background: var(--white);
    padding: 20px;            /* Padding kam ki (compact look) */
    width: 350px;             /* Fixed width for better alignment */
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.faculty-card:hover { transform: translateY(-5px); }
.faculty-img {
    width: 250px;             /* Photo ka size bada kiya */
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--secondary);
}

/* --- GALLERY --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.gallery-item { overflow: hidden; border-radius: 5px; height: 250px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }

/* --- ADMISSION & CONTACT --- */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-box { background: var(--primary); color: var(--white); padding: 40px; border-radius: 10px; }
.info-item { display: flex; align-items: flex-start; margin-bottom: 30px; }
.info-item i { font-size: 1.5rem; color: var(--secondary); margin-right: 15px; margin-top: 5px; }
.form-group { margin-bottom: 20px; }
.form-control { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; }
textarea.form-control { height: 150px; resize: none; }
.map-container iframe { width: 100%; height: 300px; border-radius: 10px; margin-top: 20px; }

/* --- FOOTER --- */
footer { background: #1a1a1a; color: #ccc; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: var(--white); margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--secondary); }
.copyright { text-align: center; border-top: 1px solid #333; padding-top: 20px; font-size: 0.9rem; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: var(--white); text-align: center; padding: 20px 0; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .hero-content h1 { font-size: 2.5rem; }
    .about-grid, .contact-container { grid-template-columns: 1fr; }
    .top-bar { display: none; }
}