/* =========================================
   1. GLOBAL RESET & FONTS
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9; /* Light gray background */
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* =========================================
   2. HEADER (White Background)
   ========================================= */
header { background: #fff; padding: 15px 0; border-bottom: 1px solid #eaeaea; }

.header-content { display: flex; justify-content: space-between; align-items: center; }

.logo-area { display: flex; align-items: center; gap: 15px; }
.logo-area .logo { height: 75px; width: auto; display: block; }

.site-title h1 { font-size: 1.6rem; color: #2c3e50; margin-bottom: 0; font-weight: 700; }
.site-title p { font-size: 1rem; color: #555; font-weight: 600; }

.search-form { display: flex; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; }
.search-form input { padding: 8px; border: none; outline: none; }
.search-form button { padding: 8px 12px; background: #f8f9fa; color: #333; border: none; cursor: pointer; }

.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* =========================================
   3. NAVIGATION (Professional Dark Blue)
   ========================================= */
.main-nav { 
    background: #2c3e50; 
    position: sticky; top: 0; z-index: 1000; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}

.nav-list { display: flex; }
.nav-list > li > a { 
    display: block; padding: 16px 24px; 
    color: white; font-weight: 500; font-size: 0.95rem; 
    text-transform: uppercase; letter-spacing: 0.5px; 
}
.nav-list > li > a:hover, .nav-list > li > a.active { 
    background: rgba(255,255,255,0.15); color: #3498db; 
}

/* Dropdown Menu */
.nav-list > li { position: relative; }
.dropdown-content { 
    display: none; position: absolute; 
    background-color: #fff; min-width: 220px; 
    box-shadow: 0 8px 16px rgba(0,0,0,0.15); 
    z-index: 100; top: 100%; left: 0; 
    border-top: 3px solid #3498db; 
}
.dropdown-content li a { 
    color: #333; padding: 14px 20px; display: block; 
    border-bottom: 1px solid #f1f1f1; text-transform: none; 
}
.dropdown-content li a:hover { background-color: #f8f9fa; color: #3498db; padding-left: 25px; transition: 0.2s; }
.dropdown:hover .dropdown-content { display: block; }

/* =========================================
   4. HERO SLIDERS
   ========================================= */
/* Main Home Slider - Compressed */
.hero-slider { 
    position: relative; height: 600px; overflow: hidden; background: #000;
    width: 95%; max-width: 1300px; margin: 30px auto; 
    border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease-in-out; }
.slide.active { opacity: 1; }
.slider-controls button { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; width: 60px; height: 60px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; transition: 0.3s; }
.slider-controls button:hover { background: rgba(0,0,0,0.8); }
.prev-slide { left: 20px; }
.next-slide { right: 20px; }

/* Academic Page Hero (General) */
.bs-hero { position: relative; height: 350px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; color: white; margin-bottom: 0; }
.bs-hero::before { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.5); }
.bs-hero-content { position: relative; z-index: 2; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }
.top-tag { font-size: 1.2rem; display: block; margin-bottom: 5px; opacity: 0.9; }
.bs-hero-content h1 { font-size: 3.2rem; font-weight: 700; margin-bottom: 20px; }
.admission-badge { background: #3498db; color: white; padding: 10px 20px; display: inline-block; border-radius: 4px; font-weight: bold; position: absolute; top: -80px; right: -120px; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }

/* =========================================
   5. SECTIONS & CONTENT
   ========================================= */
.section-news, .section-about { padding: 60px 15px; background: #fff; margin-top: 30px; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; border-bottom: 2px solid #3498db; padding-bottom: 15px; }
.section-header h2 { font-size: 1.8rem; color: #2c3e50; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.news-card { background: white; border: 1px solid #e1e1e1; border-radius: 8px; padding: 25px; transition: transform 0.3s ease; }
.news-card:hover { transform: translateY(-5px); border-color: #3498db; box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.news-content h3 { font-size: 1.2rem; margin-bottom: 10px; color: #2c3e50; }

.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
.about-text h3 { font-size: 1.8rem; margin-bottom: 20px; color: #2c3e50; }
.newsletter-box { background: #f0f4f8; padding: 30px; border-radius: 8px; text-align: center; border: 1px solid #dceefc; }
.btn-download { display: inline-block; margin-top: 15px; padding: 12px 25px; background: #27ae60; color: white; border-radius: 5px; font-weight: 600; }

/* =========================================
   6. TABS & ACADEMIC PAGES
   ========================================= */
.bs-tabs-container { background: #f8f9fa; padding: 25px 0; border-bottom: 1px solid #ddd; margin-bottom: 40px; }
.bs-tabs { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
.bs-tab { padding: 10px 25px; background: transparent; color: #555; border: 2px solid transparent; font-weight: 600; cursor: pointer; border-radius: 30px; transition: all 0.3s; }
.bs-tab:hover { color: #3498db; background: #fff; border-color: #3498db; }
.bs-tab.active { background: #3498db; color: white; border-color: #3498db; box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3); }

.tab-pane { display: none; animation: fadeIn 0.5s; }
.tab-pane.active { display: block; }
@keyframes fadeIn { from {opacity: 0; transform: translateY(10px);} to {opacity: 1; transform: translateY(0);} }

.content-title { color: #2c3e50; font-size: 1.6rem; margin-bottom: 25px; padding-bottom: 10px; border-bottom: 2px solid #3498db; display: inline-block; }

/* About Grid Layout (for BS-MS & MSc) */
.about-grid-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; margin-bottom: 50px; }
.about-flyer img { width: 100%; height: auto; border: 1px solid #eee; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-radius: 8px; }
.bs-bullets { list-style-type: disc; padding-left: 20px; color: #555; }
.bs-bullets li { margin-bottom: 8px; }

/* MSc Coordinator Layout */
.coordinator-layout { display: flex; gap: 40px; align-items: flex-start; margin-bottom: 50px; }
.coord-left { flex: 0 0 250px; text-align: left; }
.coord-left img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 15px; border: 1px solid #eee; }
.coord-name { color: #c0392b; font-size: 1.25rem; font-weight: 700; margin-bottom: 5px; }
.coord-desig { color: #c0392b; font-size: 1rem; font-weight: 500; }
.coord-right { flex: 1; font-size: 1rem; line-height: 1.7; color: #444; text-align: justify; }
.coord-right p { margin-bottom: 15px; }

/* Curriculum Tables */
.curriculum-grid { display: flex; gap: 30px; margin-bottom: 30px; }
.sem-table-wrapper { flex: 1; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: 1px solid #eee; }
.sem-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.sem-table thead th { background-color: #2c3e50; color: white; font-weight: 600; padding: 12px; text-align: left; }
.sem-table thead th.credit-col { text-align: center; border-left: 1px solid rgba(255,255,255,0.1); width: 100px; }
.sem-table tbody td { padding: 12px; border-bottom: 1px solid #f1f1f1; vertical-align: top; color: #555; }
.sem-table tbody tr:last-child td { border-bottom: none; }
.sem-table tbody td:last-child { text-align: center; font-weight: 600; color: #2c3e50; border-left: 1px solid #f1f1f1; }
.year-header { text-align: center; font-size: 1.3rem; font-weight: 700; margin: 40px 0 20px 0; color: #2c3e50; }

/* =========================================
   7. FOOTER
   ========================================= */
footer { background: #1a1a1a; color: #bbb; padding-top: 60px; margin-top: 80px; border-top: 5px solid #2c3e50; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; padding-bottom: 50px; }
.footer-col h4 { color: white; margin-bottom: 25px; font-weight: 600; font-size: 1.1rem; border-bottom: 2px solid #444; padding-bottom: 10px; display: inline-block; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: #3498db; padding-left: 5px; transition: 0.3s; }
.contact-info p { margin-bottom: 15px; display: flex; gap: 10px; }
.footer-bottom { background: #111; padding: 25px; text-align: center; font-size: 0.9rem; color: #777; border-top: 1px solid #222; }

/* =========================================
   8. FACULTY CARD STYLES
   ========================================= */
.faculty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; margin-bottom: 50px; }

.faculty-card { 
    background: #fff; border: 1px solid #eee; border-radius: 8px; 
    overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; 
    display: flex; flex-direction: column; 
}
.faculty-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: #3498db; }

.fac-img-box { width: 100%; height: 300px; overflow: hidden; background: #f4f4f4; border-bottom: 1px solid #f0f0f0; }
.fac-img-box img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s; }
.faculty-card:hover .fac-img-box img { transform: scale(1.05); }

.fac-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.fac-info h3 { color: #2c3e50; font-size: 1.25rem; margin-bottom: 5px; font-weight: 700; }
.fac-info .designation { color: #e74c3c; font-size: 0.95rem; font-weight: 600; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px; }

.fac-contact { margin-bottom: 15px; font-size: 0.95rem; color: #555; }
.fac-contact p { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.fac-contact i { color: #3498db; width: 20px; text-align: center; }
.fac-contact a:hover { color: #2980b9; text-decoration: underline; }

.fac-research { background: #f9f9f9; padding: 12px; border-radius: 4px; margin-bottom: 15px; font-size: 0.9rem; flex-grow: 1; line-height: 1.5; border: 1px solid #eee; }
.fac-research strong { display: block; margin-bottom: 5px; color: #333; }

/* Chairperson Profile Styles */
.chair-profile { 
    display: flex; gap: 40px; align-items: flex-start; 
    background: #fff; padding: 40px; border-radius: 8px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #eee;
    margin-bottom: 50px; 
}
.chair-image-box img { 
    width: 300px; height: auto; border-radius: 8px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}
.chair-details { flex: 1; }
.chair-name { font-size: 2.2rem; font-weight: 700; color: #2c3e50; margin-bottom: 5px; display: block; }
.chair-details .designation { font-size: 1.2rem; color: #e74c3c; font-weight: 600; margin-bottom: 20px; }
.chair-message { margin-top: 40px; padding-top: 30px; border-top: 1px solid #eee; }
.chair-message h3 { font-size: 1.5rem; color: #2c3e50; margin-bottom: 20px; }
.chair-message p { margin-bottom: 15px; line-height: 1.8; color: #444; }

/* =========================================
   9. RESPONSIVE DESIGN (Adjustments)
   ========================================= */
@media (max-width: 768px) {
    .header-content { flex-direction: column; align-items: flex-start; gap: 15px; }
    .nav-list { display: none; flex-direction: column; width: 100%; }
    .nav-list.show { display: flex; }
    .mobile-menu-btn { display: block; position: absolute; top: 25px; right: 20px; }
    
    .hero-slider { height: 350px; width: 100%; border-radius: 0; }
    .coordinator-layout, .chair-profile { flex-direction: column; }
    .coord-left, .chair-image-box img { width: 100%; max-width: 300px; margin-bottom: 20px; }
    .curriculum-grid { flex-direction: column; }
    .about-grid, .about-grid-layout { grid-template-columns: 1fr; }
    .bs-hero { height: 250px; }
    .admission-badge { position: static; margin-top: 15px; display: block; text-align: center; width: 100%; transform: none; }
    
    /* Responsive BS-MS specific */
    .bs-header-strip { font-size: 1.2rem; padding: 15px 0; }
    .bs-hero-banner { height: 350px; }
    .bs-center-title { font-size: 2.5rem; }
    .bs-badge { top: 15px; right: 15px; padding: 10px 20px; font-size: 0.9rem; }
}
/* =========================================
   BS-MS SPECIFIC HEADER STYLES
   ========================================= */

/* Top Text Strip - Centered Alignment Fix */
.bs-header-strip {
    background-color: #f4f6f8; /* Light grey background */
    min-height: 80px;          /* Ensure consistent height */
    width: 100%;
    display: flex;             /* Use Flexbox */
    align-items: center;       /* Vertically center */
    justify-content: center;   /* Horizontally center */
    text-align: center;        /* Ensure text is centered */
    font-size: 1.6rem;         
    color: #2c3e50;
    font-weight: 300;
    padding: 0;                /* Remove padding, let flexbox handle spacing */
    border-bottom: 1px solid #eaeaea;
}

/* Ensure the inner container doesn't offset the alignment */
.bs-header-strip .container {
    display: block;
    width: 100%;
    margin: 0 auto;
}

/* Banner Container */
.bs-hero-banner-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    position: relative;
}

/* Banner Image Box */
.bs-hero-banner {
    width: 100%;
    height: 500px;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}

/* Dark Overlay */
.bs-hero-banner::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.10); /* 35% darkness for readability */
}

/* Title */
.bs-center-title {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    text-align: center;
    letter-spacing: 1px;
}

/* Cyan Badge */
.bs-badge {
    position: absolute;
    top: 30px;
    right: 0;
    background-color: #00bcd4; /* Cyan */
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: -2px 4px 10px rgba(0,0,0,0.2);
    text-align: left;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .bs-header-strip { font-size: 1.2rem; padding: 20px 0; }
    .bs-hero-banner { height: 350px; }
    .bs-center-title { font-size: 2.2rem; }
    .bs-badge { top: 15px; padding: 10px 20px; font-size: 0.9rem; }
}

/* =========================================
   BS-MS TEXT & SPACING IMPROVEMENTS (Tighter)
   ========================================= */

/* 1. Header Strip: Reduced padding */
.bs-header-strip {
    background-color: #fff;
    padding: 25px 15px;      /* Reduced from 40px to 25px */
    text-align: center;
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* 2. Content Typography: Standard Spacing */
.about-text p {
    margin-bottom: 15px;     /* Reduced from 25px to 15px */
    line-height: 1.6;        /* Reduced from 1.8 to 1.6 */
    font-size: 1.05rem;
    color: #444;
    text-align: justify;
}

/* 3. Heading Spacing */
.about-text .content-title {
    margin-top: 30px;        /* Reduced from 40px to 30px */
    margin-bottom: 15px;     /* Reduced from 20px to 15px */
}

/* Remove top margin for the very first heading */
.about-text .content-title:first-child {
    margin-top: 0;
}

/* 4. List Spacing */
.bs-bullets {
    margin-bottom: 15px;     /* Reduced from 25px */
}
.bs-bullets li {
    margin-bottom: 8px;      /* Reduced from 10px */
    line-height: 1.6;
}

/* Fixed Flyer Image - Prevents Stretching */
.about-flyer img { 
    width: 100%;           /* Fill the container width */
    height: auto;          /* Auto height maintains aspect ratio */
    max-width: 500px;      /* Restrict max width to prevent it getting too huge */
    object-fit: contain;   /* Ensures image isn't cropped or stretched */
    display: block; 
    margin: 0 auto;        /* Centers the image */
    border: 1px solid #eee; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    border-radius: 8px; 
}
