/* --- Basic Setup --- */
body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* --- Typography & Common Elements --- */
.section-title {
    font-size: 2.8rem;
    color: #800000;
    margin-bottom: 20px;
    font-family: "Times New Roman", Times, serif;
}

.section-title.text-center {
    text-align: center;
    width: 100%;
    margin-bottom: 50px;
}

/* ======================================================= */
/* =========== UPGRADED & UNIFIED BUTTON STYLES =========== */
/* ======================================================= */

/* A new, primary button style for consistent look and feel */
.btn-primary {
    display: inline-block;
    background-color: #800000;
    color: #fff !important;
    /* Use !important to override any conflicting 'a' tag styles */
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #800000;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    /* Ensure no underline */
}

.btn-primary:hover {
    background-color: #600000;
    /* Darker maroon */
    border-color: #600000;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
/* ======================================================= */
/* =========== FINAL: REPLICA OF PROVIDED IMAGE =========== */
/* ======================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* --- Top Maroon Bar --- */
.top-bar {
    background-color: #800000;
    padding: 0 20px;
    height: 45px;
    display: flex;
}

.top-bar .container {
    justify-content: space-between;
    width: 100%;
}

.top-nav-left, .top-nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.top-bar ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 25px;
}

.top-bar a {
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-bar a:hover {
    color: #ddd;
}

.top-bar i.fa-search {
    font-size: 16px;
}


/* --- Main White Navigation Bar --- */
.main-nav-wrapper {
    background: white;
    position: relative;
    z-index: 1; /* Sits below the logo */
}

.main-nav-wrapper .container {
    height: 70px;
    position: relative;
    justify-content: space-between;
}

.main-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 40px;
}

#main-nav-left {
    justify-content: flex-end;
}

#main-nav-right {
    justify-content: flex-start;
}

.main-nav a {
    color: #333;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 25px 0;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.main-nav a:hover {
    color: #800000;
}


/* --- Central Logo --- */
.logo-spacer {
    width: 380px; /* Creates the gap for the logo */
    flex-shrink: 0;
}

.logo-container {
    position: absolute;
    left: 50%;
    top: -20px; /* Pulls the logo up to overlap the top bar */
    transform: translateX(-50%);
    background: white;
    padding: 15px 30px 35px 30px;
    z-index: 100; /* Ensures logo is on top of everything */
    /* This creates the precise pointed bottom shape from your image */
    clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-content img {
    height: 65px;
}

.logo-text {
    font-family: "Times New Roman", Times, serif;
    color: #800000;
    font-size: 17px;
    font-weight: bold;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: left;
    max-width: 220px;
}

/* --- Contact Us Button --- */
.button-give {
    border: 2px solid #800000;
    color: #800000 !important; /* !important to override default link color */
    padding: 8px 25px !important; /* !important to override default padding */
    border-radius: 4px;
    transition: all 0.3s ease;
}

.button-give:hover {
    background-color: #800000;
    color: white !important;
}


/* --- Dropdown Styles (Unified) --- */
.dropdown {
    position: relative;
}

.dropdown-toggle i.fa-chevron-down {
    font-size: 0.7em;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    list-style: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    border-top: 3px solid #800000;
}

/* Specific positioning for white bar dropdowns */
.main-nav-wrapper .dropdown-menu {
    top: 90%;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    color: #333 !important;
    padding: 12px 20px !important;
    text-decoration: none;
    display: block;
    font-size: 15px !important;
    font-weight: normal !important;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #800000 !important;
    padding-left: 25px;
}

/* --- Mobile Nav Styles (No change, but included for completeness) --- */
.mobile-nav-toggle {
    display: none;
}
.mobile-nav {
    display: none;
}

/* ======================================================= */
/* =========== NEW DROPDOWN STYLES =========== */
/* ======================================================= */
.dropdown {
    position: relative;
    display: inline-block;
}

.top-bar .dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space between text and icon */
    cursor: pointer;
}

.dropdown-toggle i.fa-chevron-down {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    list-style: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    border-top: 3px solid #800000;
}


.top-bar .dropdown-menu {
    /* This z-index lifts ONLY the dropdown menu above the white nav bar */
    z-index: 1001; 
}

.dropdown:hover .dropdown-menu {
    display: block;
    /* Show on hover */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu a {
    color: #333 !important;
    padding: 12px 20px !important;
    text-decoration: none;
    display: block;
    font-size: 15px !important;
    text-transform: none;
    font-weight: normal !important;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
}

.main-nav .dropdown-menu a::after {
    display: none !important;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #800000 !important;
    padding-left: 25px;
}


/* ======================================================= */
/* =========== MEGA MENU STYLES =========== */
/* ======================================================= */
.mega-menu .dropdown-menu {
    width: 600px;
    padding: 20px;
}

.mega-menu-content {
    display: flex;
    justify-content: space-between;
}

.mega-menu-column {
    flex: 1;
    padding: 0 15px;
}

.mega-menu-title {
    font-size: 1rem;
    font-weight: bold;
    color: #800000;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 2px solid #bfa86b;
    padding-bottom: 5px;
}

.mega-menu-column a {
    padding: 8px 0 !important;
}

.mega-menu-column a:hover {
    background-color: transparent !important;
    padding-left: 5px !important;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 85vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin: 0;
}

.hero-content p {
    font-size: 1.5rem;
}

/* --- Stats Section --- */
.stats-section {
    background-color: transparent;
    padding: 60px 0;
    position: relative;
    /* Allows z-index and positioning adjustments. */
    z-index: 5;
    /* Ensures this section sits ON TOP of the hero section. */
    margin-top: -120px;
    /* PULLS THE ENTIRE SECTION UPWARDS to create the overlap. Adjust this value (e.g., -100px, -150px) to control the amount of overlap. */
}

.stats-section .container {
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-card {
    background: #bfa86b;
    color: white;
    /* Text color is now white as in the example image. */
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* A slightly more pronounced shadow helps lift it off the page. */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.stat-number {
    font-size: 40px;
    font-weight: bold;
}

.stat-label {
    font-size: 16px;
    margin-top: 5px;
}

/* ======================================================== */
/* =========== START: WELCOME SECTION V6 (FOCUSED CONTENT BOX) =========== */
/* ======================================================== */
.welcome-section-v6 {
    position: relative;
    padding: 100px 0;
    background-image: url('Images/Dhakane-College.jpeg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    /* Creates a parallax effect */
    z-index: 1;
    padding-top: 140px;
    /* Adjust if needed */
}

.welcome-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 0, 0, 0.7);
    /* Maroon overlay */
    z-index: 2;
}

.welcome-section-v6 .container {
    position: relative;
    z-index: 3;
    justify-content: center;
    /* Center the content box horizontally */
}

.welcome-content-box {
    max-width: 850px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-top: 5px solid #bfa86b;
}

.welcome-content-box .welcome-eyebrow {
    font-size: 0.9rem;
    font-weight: bold;
    color: #bfa86b;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.welcome-content-box .section-title {
    margin: 0 auto 15px auto;
    font-size: 2.8rem;
    color: #800000;
}

.welcome-intro-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #333;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.welcome-features-inline {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 35px;
    flex-wrap: wrap;
    /* Allows features to wrap on smaller screens */
}

.inline-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.inline-feature i {
    font-size: 2.5rem;
    color: #800000;
}

.inline-feature span {
    font-weight: bold;
    color: #333;
    font-size: 1rem;
}

.welcome-content-box .read-more-btn {
    background-color: #800000;
    color: #fff;
}

.welcome-content-box .read-more-btn:hover {
    background-color: #600000;
    transform: translateY(-3px);
}

/* ======================================================== */
/* =========== END: WELCOME SECTION V6 (FOCUSED CONTENT BOX) =========== */
/* ======================================================== */


/* --- Departments Section --- */
.departments-section {
    padding: 80px 0;
}

.departments-section .container {
    justify-content: space-around;
    gap: 30px;
}

.department-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 22%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 4px solid transparent;
    transition: all 0.4s ease;
}

.department-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-bottom-color: #800000;
}

.department-icon {
    font-size: 50px;
    color: #800000;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.department-card:hover .department-icon {
    transform: scale(1.2) rotate(5deg);
}

.department-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.department-card p {
    line-height: 1.6;
    color: #555;
}


/* ======================================================== */
/* =========== NEWSLETTER SECTION STYLES (NEW) ============ */
/* ======================================================== */
.newsletter-section {
    padding: 80px 0;
    background: #fff;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.newsletter-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    line-height: 0; /* Removes any extra space around the image */
}

.newsletter-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.newsletter-card img {
    width: 100%;
    height: 100%; /* Make image fill the card vertically */
    object-fit: cover; /* This will fill the space without stretching */
    display: block;
}

.newsletter-content {
    padding: 20px;
}

.newsletter-date {
    font-size: 0.85rem;
    color: #800000;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.newsletter-content h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* ======================================================== */
/* =========== UPCOMING EVENTS SECTION STYLES (NEW) ======== */
/* ======================================================== */
.upcoming-events-section {
    padding: 80px 0;
    background: #f9f9f9; /* Light background to separate from newsletters */
}

.events-list-wrapper {
    max-width: 800px;
    margin: 50px auto 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-item {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    text-decoration: none; /* For the new <a> wrapper */
}

.event-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.event-date-box {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 5px;
}

.event-date-box .event-month {
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #800000;
}

.event-date-box .event-day {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.1;
    color: #333;
}

.event-details h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #333;
}

.event-time {
    font-size: 0.9rem;
    color: #666;
}

.event-time i {
    margin-right: 5px;
    color: #800000;
}


/* ======================================================= */
/* ORIGINAL UNIQUE ABOUT US PAGE STYLES                    */
/* ======================================================= */

/* --- Generic Page Header --- */
.page-header {
    position: relative;
    background: url('https://via.placeholder.com/1920x400.png?text=Dhakane+Campus') no-repeat center center/cover;
    min-height: 45vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header.contact-header {
    background-image: url('Images/ContactUs.jpg');
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(128, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px 80px 20px;
}

.page-header h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.page-header .tagline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: 10px;
    max-width: 600px;
}

/* --- About Us: Mission & Vision --- */
.mission-vision-section {
    background: #fff;
    padding: 60px 0;
    transform: translateY(-80px);
    margin-bottom: -80px;
    position: relative;
    z-index: 6;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.mission-vision-section .container {
    gap: 40px;
    align-items: flex-start;
}

.mv-card {
    text-align: center;
    padding: 20px;
}

.mv-card i {
    font-size: 40px;
    color: #800000;
    margin-bottom: 15px;
}

.mv-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.mv-card p {
    line-height: 1.6;
    color: #555;
}

/* --- About Us: History Timeline --- */
.timeline-section {
    padding: 120px 0 80px 0;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #800000;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -12px;
    background-color: white;
    border: 4px solid #800000;
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-year {
    font-size: 1.2rem;
    font-weight: bold;
    color: #800000;
}

/* --- About Us: Leadership --- */
.leadership-section {
    padding: 80px 0;
    background: #fff;
}

.leadership-section .container {
    justify-content: space-around;
}

.leader-card {
    text-align: center;
}

.leader-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #f0ead6;
    margin-bottom: 15px;
}

.leader-card h4 {
    font-size: 1.4rem;
    margin: 10px 0 5px 0;
}

.leader-card span {
    color: #555;
    font-style: italic;
}


/* ======================================================= */
/* CONTACT PAGE V3 STYLES                                  */
/* ======================================================= */
.contact-page-container {
    padding: 0 20px;
    margin-bottom: 80px;
}

.contact-card-v3 {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    /* Slightly transparent */
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
    transform: translateY(-80px);
    position: relative;
    z-index: 6;
    overflow: hidden;
}

.contact-tabs-nav {
    flex-basis: 300px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 20px 0;
}

.contact-tab {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    color: #333;
    font-size: 1.1rem;
    font-weight: bold;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-tab:hover {
    background: #e9ecef;
}

.contact-tab.active {
    background: #fff;
    color: #800000;
    border-left-color: #800000;
}

.contact-tab i {
    width: 40px;
    font-size: 1.5rem;
    margin-right: 15px;
}

.contact-panes-content {
    flex-grow: 1;
    padding: 40px;
}

.contact-pane {
    display: none;
}

.contact-pane.active {
    display: block;
    animation: fadeInPane 0.5s ease-in-out;
}

@keyframes fadeInPane {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-pane h3 {
    font-size: 2rem;
    color: #800000;
    margin-top: 0;
    margin-bottom: 10px;
}

.contact-pane p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.map-container-v3 {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.map-container-v3 iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.directory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.directory-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.directory-list li:last-child {
    border-bottom: none;
}

.directory-info strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.directory-info span {
    color: #555;
}

.directory-phone {
    font-weight: bold;
    color: #800000;
    white-space: nowrap;
    margin-left: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form-modern .form-group {
    flex: 1;
    margin-bottom: 20px;
}

.contact-form-modern label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.contact-form-modern input,
.contact-form-modern textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form-modern input:focus,
.contact-form-modern textarea:focus {
    outline: none;
    border-color: #800000;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

.contact-form-modern button {
    background-color: #800000;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.contact-form-modern button:hover {
    background-color: #600000;
    transform: translateY(-2px);
}

/* ======================================================= */
/* BACKGROUND IMAGE FOR CONTACT PAGE BODY                  */
/* ======================================================= */

body.contact-page {
    /* --- IMPORTANT: Replace with the path to your image --- */
    background-image: linear-gradient(rgba(244, 244, 244, 0.92), rgba(244, 244, 244, 0.92)), url('Images/ContactUs.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    /* Creates a nice parallax effect */
}

/* ======================================================= */
/* V2 - NEW & REDESIGNED ABOUT US PAGE STYLES              */
/* ======================================================= */

/* --- Keyframe Animations --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -50px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 50px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* --- V2 Page Header --- */
.page-header.about-header-v2 {
    min-height: 50vh;
    background-image: url('Images/about-us-bg.jpg');
}

.about-header-v2 .page-header-content {
    padding-bottom: 0;
}

.about-header-v2 .fade-in-down {
    animation: fadeInDown 1s ease-out forwards;
}

.about-header-v2 .fade-in-up {
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0;
    /* Start hidden */
}


/* --- V2 Mission & Vision --- */
.mission-vision-section-v2 {
    background: #fff;
    padding: 80px 0;
}

.mission-vision-section-v2 .container {
    gap: 50px;
    align-items: stretch;
    /* Make cards equal height */
}

.mv-card-v2 {
    flex: 1;
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mv-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.mv-icon-v2 {
    font-size: 45px;
    color: #800000;
    margin-bottom: 20px;
    display: inline-block;
    background: #f0ead6;
    width: 90px;
    height: 90px;
    line-height: 90px;
    border-radius: 50%;
}

.mv-card-v2 h3 {
    font-family: "Times New Roman", Times, serif;
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.mv-card-v2 p {
    line-height: 1.7;
    color: #555;
}

/* --- New Our Values Section --- */
.our-values-section {
    padding: 80px 0;
    background-color: #f4f4f4;
}

.our-values-section .container {
    justify-content: space-around;
    gap: 30px;
}

.value-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 22%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.value-icon {
    font-size: 40px;
    color: #bfa86b;
    margin-bottom: 20px;
}

.value-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #800000;
}

.value-card p {
    line-height: 1.6;
    color: #555;
    font-size: 0.95rem;
}


/* --- V2 History Timeline --- */
.timeline-section-v2 {
    padding: 100px 0;
    background: #fff;
}

.timeline-container-v2 {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-container-v2::before {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #e0e0e0;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item-v2 {
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
    position: relative;
    width: 50%;
    margin: 10px 0;
    left: 0;
}

.timeline-item-v2:nth-child(even) {
    left: 50%;
    justify-content: flex-start;
    padding-left: 30px;
    padding-right: 0;
}

.timeline-dot {
    width: 21px;
    height: 21px;
    background: #bfa86b;
    border: 5px solid #800000;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    right: -10.5px;
    z-index: 2;
}

.timeline-item-v2:nth-child(even) .timeline-dot {
    left: -10.5px;
}

.timeline-content-v2 {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    width: calc(100% - 40px);
    position: relative;
    border-left: 5px solid #800000;
    transition: transform 0.4s ease;
}

.timeline-item-v2:nth-child(even) .timeline-content-v2 {
    border-left: none;
    border-right: 5px solid #800000;
}

.timeline-item-v2:hover .timeline-content-v2 {
    transform: scale(1.05);
}

.timeline-year-v2 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #800000;
    margin-bottom: 5px;
    font-family: "Times New Roman", Times, serif;
}

.timeline-content-v2 h3 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.timeline-content-v2 p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    color: #555;
}

/* --- V2 Leadership Section --- */
.leadership-section-v2 {
    padding: 80px 0;
    background-color: #f0ead6;
}

.leadership-section-v2 .container {
    justify-content: space-around;
    gap: 40px;
    align-items: stretch;
}

.leader-card-v2 {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 30%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.leader-card-v2:hover {
    transform: translateY(-15px);
}

.leader-image {
    width: 100%;
    /* The fixed height has been removed */
    overflow: hidden;
}

.leader-image img {
    width: 100%;
    height: auto; /* Allows height to adjust automatically */
    display: block; /* Removes any extra space below the image */
    transition: transform 0.4s ease;
}

.leader-card-v2:hover .leader-image img {
    transform: scale(1.1);
}

.leader-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.leader-info h4 {
    font-size: 1.6rem;
    color: #800000;
    margin: 0 0 5px 0;
    font-family: "Times New Roman", Times, serif;
}

.leader-info span {
    color: #555;
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 15px;
}

.leader-info p {
    font-size: 1rem;
    line-height: 1.5;
    color: #666;
    flex-grow: 1;
    /* Pushes social to bottom */
    margin-bottom: 20px;
}

.leader-social {
    margin-top: auto;
    /* Pushes to bottom */
}

.leader-social a {
    color: #800000;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.leader-social a:hover {
    color: #bfa86b;
}


/* ======================================================= */
/* NEW STYLES FOR UPGRADED HOMEPAGE SECTIONS               */
/* ======================================================= */

.facilities-section {
    padding: 80px 0;
    position: relative;
    /* Needed for the overlay */
    background-image: url('Images/Campus-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Creates the parallax effect */
    z-index: 1;
    /* Establishes a stacking context */
}

.facilities-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: -1;
    /* Places the overlay just behind the content */
}

.facilities-section .container {
    justify-content: center;
    gap: 30px;
}

.facility-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 22%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.facility-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    border-color: #800000;
}

.facility-icon {
    font-size: 50px;
    color: #800000;
    margin-bottom: 20px;
}

.facility-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.facility-card p {
    line-height: 1.6;
    color: #555;
    font-size: 0.95rem;
    flex-grow: 1;
    /* Makes p fill space to align buttons in cards */
}

.facility-card.is-hidden {
    display: none;
}

.show-more-container {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    transition: opacity 0.5s ease-out;
    /* Add transition for smooth fade-out */
}

/* ======================================================= */
/* V3 - DYNAMIC TESTIMONIALS SPOTLIGHT SECTION             */
/* ======================================================= */

.testimonial-spotlight-section {
    padding: 100px 0;
    overflow: hidden;
    position: relative;
    /* This is crucial for positioning the overlay */
    background-image: url('Images/StudentsTestimonial-Bg.jpg');
    background-size: cover;
    /* Ensures the image covers the whole section */
    background-position: center center;
    /* Centers the image */
    background-attachment: fixed;
    /* Creates a cool parallax scrolling effect */
}

.testimonial-spotlight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.92);
    /* A slightly transparent white overlay */
    z-index: 1;
    /* Places the overlay above the image but below the content */
}

.testimonial-spotlight-section .container {
    display: block;
    position: relative;
    /* Required to lift the container */
    z-index: 2;
    /* Places the content on top of the overlay */
}

.ts-header {
    text-align: center;
    margin-bottom: 60px;
}

.ts-header .section-title {
    color: #800000;
    margin-bottom: 10px;
}

.ts-header p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.ts-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Image Column (Left) --- */
.ts-image-column {
    flex: 0 0 400px;
    /* Do not grow, do not shrink, base width 400px */
    position: relative;
    height: 400px;
}

.ts-image-background-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(15deg);
    width: 90%;
    height: 90%;
    background-color: #f0ead6;
    /* Light gold accent */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    /* Organic blob shape */
    z-index: 1;
}

.ts-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.ts-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 10px solid #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.ts-image.active {
    opacity: 1;
    transform: scale(1);
}


/* --- Content Column (Right) --- */
.ts-content-column {
    flex: 1;
    /* Takes up remaining space */
    position: relative;
    min-height: 350px;
}

.ts-content-container {
    position: relative;
    height: 100%;
}

.ts-quote-icon {
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 6rem;
    color: rgba(128, 0, 0, 0.08);
    /* Faded maroon */
    z-index: 1;
}

.ts-content-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    z-index: 2;
}

.ts-content-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Content animation */
.ts-content-slide.active .ts-text,
.ts-content-slide.active .ts-author,
.ts-content-slide.active .ts-designation {
    animation: fadeInUp 0.6s ease-out both;
}

.ts-content-slide.active .ts-author {
    animation-delay: 0.2s;
}

.ts-content-slide.active .ts-designation {
    animation-delay: 0.3s;
}


.ts-text {
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

.ts-author {
    font-family: "Times New Roman", Times, serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #800000;
    /* Maroon */
    margin: 0;
}

.ts-designation {
    font-size: 1rem;
    color: #555;
    margin: 5px 0 0 0;
}

/* --- Controls --- */
.ts-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    gap: 15px;
}

.ts-arrow {
    background-color: #800000;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.ts-arrow:hover {
    background-color: #bfa86b;
    /* Gold */
    transform: scale(1.1);
}

/* --- Recruiters Section --- */
.recruiters-section {
    padding: 80px 0;
    background: #fff;
}

.recruiters-tagline {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-top: -40px;
    margin-bottom: 50px;
}

.recruiters-section .container {
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.recruiter-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.recruiter-logo img {
    max-width: 150px;
    transition: all 0.4s ease;
}

.recruiter-logo:hover img {
    transform: scale(1.1);
}

/* ======================================================= */
/* =========== START: NEW FOOTER V2 STYLES =========== */
/* ======================================================= */
.site-footer-v2 {
    position: relative;
    padding: 80px 0 0 0;
    /* Add top padding, bottom padding removed for the bar */
    background-image: url('Images/footer-bg.jpg');
    /* Using an existing image, replace if needed */
    background-size: cover;
    background-position: center;
    color: #e0e0e0;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(68, 0, 0, 0.88);
    /* Dark maroon overlay */
    z-index: 1;
}

.site-footer-v2 .container {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    /* Wider container for the footer */
    display: block;
    /* Override flex for the container itself */
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    /* Define 4 columns with different widths */
    gap: 40px;
    padding-bottom: 50px;
}

.footer-column .footer-title {
    font-family: "Times New Roman", Times, serif;
    font-size: 1.8rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #bfa86b;
    display: inline-block;
}

.footer-column p {
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Column 1: About */
.about-column .footer-logo {
    max-width: 100px;
    margin-bottom: 20px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
}

.social-icons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #800000;
    background-color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.social-icons a:hover {
    background-color: #bfa86b;
    color: #fff;
}

/* Column 2 & 3: Links and Contact */
.links-column ul,
.contact-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-column li,
.contact-column li {
    margin-bottom: 12px;
}

.links-column a,
.contact-column span {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

.links-column a:hover {
    color: #fff;
    padding-left: 5px;
}

.links-column li::before {
    content: '>';
    color: #bfa86b;
    margin-right: 10px;
    font-weight: bold;
}

.contact-column li {
    display: flex;
    align-items: flex-start;
}

.contact-column i {
    color: #bfa86b;
    margin-right: 12px;
    margin-top: 5px;
    width: 15px;
}

/* Column 4: Map */
.map-container-footer {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid #bfa86b;
}

.map-container-footer iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Bottom Copyright Bar */
.footer-bottom-bar {
    position: relative;
    z-index: 2;
    background-color: #330000;
    /* Darker maroon */
    padding: 15px 0;
    text-align: center;
}

.footer-bottom-bar p {
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
}

/* ======================================================= */
/* NEW: STUDENT CORNER PAGE STYLES                           */
/* ======================================================= */

.student-corner-header {
    background-image: url('Images/student_corner_image.png');
    /* Add a relevant background image */
    min-height: 50vh;
}

.student-corner-tabs-nav-wrapper {
    background-color: #fff;
    padding: 0 20px;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-80px);
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px;
}

.student-corner-tabs-nav-wrapper .container {
    justify-content: center;
}

.student-corner-tabs-nav {
    display: flex;
    gap: 20px;
    overflow-x: auto;
}

.sc-tab-link {
    padding: 25px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #555;
    border-bottom: 4px solid transparent;
    transition: color 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.sc-tab-link:hover {
    color: #800000;
}

.sc-tab-link.active {
    color: #800000;
    border-bottom-color: #800000;
}

.sc-content-section {
    display: none;
    padding: 60px 0;
    animation: fadeInPane 0.7s ease-in-out;
}

.sc-content-section.active {
    display: block;
}

.sc-content-section .container {
    display: block;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-top: -40px;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* E-Learning Section */
.e-learning-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.e-learning-card {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.e-learning-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.e-learning-icon {
    font-size: 3.5rem;
    color: #800000;
    margin-bottom: 20px;
}

.e-learning-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.e-learning-card p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

/* Timetable Section */
.timetable-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.timetable-filters select {
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    min-width: 200px;
}

.timetable-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    overflow-x: auto;
}

.timetable-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.timetable-table th,
.timetable-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.timetable-table th {
    background-color: #800000;
    color: #fff;
    font-size: 1.1rem;
}

.timetable-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Results Section */
.results-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.results-form .form-group {
    margin-bottom: 25px;
}

.results-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 1.1rem;
}

.results-form input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.results-form input:focus {
    outline: none;
    border-color: #800000;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

.results-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
}

/* Syllabus Section */
.syllabus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.syllabus-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.syllabus-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    border-color: #800000;
}

.syllabus-icon {
    font-size: 3.5rem;
    color: #800000;
    margin-bottom: 20px;
}

.syllabus-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.syllabus-card p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
    flex-grow: 1;
}


/* ======================================================= */
/* =========== NEW: PLACEMENTS PAGE STYLES =========== */
/* ======================================================= */
.placements-header {
    background-image: url('Images/career-PlacementCell.jpg');
    min-height: 50vh;
}

.placement-cell-section {
    padding: 80px 0;
    background: #fff;
}

.placement-cell-section .container {
    align-items: center;
    gap: 50px;
}

.p-cell-content {
    flex: 1.2;
}

.p-cell-image {
    flex: 1;
}

.p-cell-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.p-cell-objectives {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.objective-card {
    text-align: center;
}

.objective-card i {
    font-size: 2.5rem;
    color: #800000;
    margin-bottom: 15px;
}

.objective-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.objective-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
}

.internships-section {
    padding: 80px 0;
}

.internship-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.internship-image {
    flex: 1;
}

.internship-image img {
    width: 100%;
    border-radius: 8px;
}

.internship-details {
    flex: 1.2;
}

.internship-details h3 {
    font-size: 2rem;
    color: #800000;
    margin-top: 0;
}

.internship-details ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    margin-bottom: 30px;
}

.internship-details li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.internship-details i {
    color: #bfa86b;
    margin-right: 10px;
}

/* ======================================================= */
/* =========== NEW: ADMINISTRATION PAGE STYLES =========== */
/* ======================================================= */

.admin-header {
    background-image: url('Images/Administration-governance.jpg');
    min-height: 50vh;
}

.governance-body {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

.governance-chart {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 0 auto 30px auto;
}

.principal-desk-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.principal-info {
    flex: 0 0 250px;
    text-align: center;
}

.principal-info img {
    width: 100%;
    border-radius: 50%;
    border: 8px solid #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.principal-info h4 {
    font-size: 1.5rem;
    margin: 0 0 5px 0;
    color: #800000;
}

.principal-info span {
    font-style: italic;
    color: #555;
}

.principal-message {
    flex: 1;
}

.principal-message h3 {
    font-size: 2rem;
    color: #800000;
    margin-top: 0;
}

.principal-message p {
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.committees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.committee-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-bottom: 4px solid #bfa86b;
}

.committee-icon {
    font-size: 3rem;
    color: #800000;
    margin-bottom: 20px;
}

.committee-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.committee-card p {
    line-height: 1.6;
    color: #666;
}

.policies-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.policy-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    color: #333;
}

.policy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.policy-icon {
    font-size: 2.5rem;
    color: #800000;
    margin-right: 20px;
}

.policy-details {
    flex-grow: 1;
}

.policy-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.policy-details p {
    margin: 0;
    color: #666;
}

.policy-download {
    font-size: 1.5rem;
    color: #bfa86b;
}

.committee-card p {
    line-height: 1.6;
    color: #666;
}

/* PASTE THE NEW CODE HERE */
.governing-board-section {
    margin-top: 60px;
}

.governance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.governance-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.governance-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto;
    border: 4px solid #f0ead6;
}

.governance-card h4 {
    font-size: 1.2rem;
    margin: 10px 0 5px 0;
    color: #800000;
}

.governance-card span {
    font-style: italic;
    color: #555;
}

.committee-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 4px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ======================================================= */
/* =========== NEW: R&D PAGE STYLES (REDESIGNED) =========== */
/* ======================================================= */
.page-header.r-and-d-header {
    background-image: url('Images/R&D_bgImage.jpg');
    /* Add a relevant background image for R&D */
    min-height: 50vh;
}

.r-and-d-intro-section {
    padding: 60px 0;
    background: #fff;
    text-align: center;
}

.r-and-d-intro-section .container {
    display: block;
}

.r-and-d-intro-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

.research-areas-section {
    padding: 80px 0;
}

.research-areas-section .container {
    display: block;
}

.research-areas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.research-area-card {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    display: flex;
    gap: 25px;
    align-items: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
}

.research-area-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.research-area-icon {
    font-size: 3rem;
    color: #800000;
    flex-shrink: 0;
}

.research-area-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.6rem;
}

.research-area-card p {
    margin: 0;
    line-height: 1.6;
    color: #666;
}

.publications-section {
    padding: 80px 0;
    background: #fff;
}

.publications-section .container {
    display: block;
}

.publication-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.publication-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #bfa86b;
}

.publication-icon {
    font-size: 2.5rem;
    color: #800000;
}

.publication-details {
    flex-grow: 1;
}

.publication-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.publication-details p {
    margin: 0;
    color: #555;
    font-style: italic;
}

.publication-item .btn-primary {
    padding: 10px 20px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.consultancy-section {
    padding: 80px 0;
}

.consultancy-section .container {
    align-items: center;
    gap: 60px;
}

.consultancy-image {
    flex: 1;
}

.consultancy-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.consultancy-content {
    flex: 1.2;
}

.consultancy-content .section-title {
    margin-bottom: 25px;
}

.consultancy-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.consultancy-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.consultancy-content li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.consultancy-content li i {
    color: #800000;
    margin-right: 12px;
}

.patents-section {
    padding: 80px 0;
    background-color: #f0ead6;
    /* Accent background */
}

.patents-section .container {
    display: block;
}

.patent-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.patent-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.patent-icon {
    font-size: 2.5rem;
    color: #bfa86b;
}

.patent-details {
    flex-grow: 1;
}

.patent-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #800000;
}

.patent-details p {
    margin: 0;
    color: #555;
}

.patent-details strong {
    color: #333;
}

/* ======================================================= */
/* =========== NEW: MOBILE NAVIGATION STYLES =========== */
/* ======================================================= */
.mobile-nav-toggle {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    /* Must be on top of everything */
    background: #800000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hamburger-icon {
    position: relative;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

.hamburger-icon::before {
    transform: translateY(-8px);
}

.hamburger-icon::after {
    transform: translateY(8px);
}

/* Active state for hamburger */
.site-header.nav-open .hamburger-icon {
    background-color: transparent;
    /* Middle bar disappears */
}

.site-header.nav-open .hamburger-icon::before {
    transform: rotate(45deg);
}

.site-header.nav-open .hamburger-icon::after {
    transform: rotate(-45deg);
}


.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 0, 0, 0.98);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    padding: 20px;
    box-sizing: border-box;
}

.site-header.nav-open .mobile-nav {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav li {
    margin: 15px 0;
}

.mobile-nav a {
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Staggered animation for links */
.site-header.nav-open .mobile-nav a {
    opacity: 1;
    transform: translateY(0);
}

.site-header.nav-open .mobile-nav li:nth-child(1) a {
    transition-delay: 0.2s;
}

.site-header.nav-open .mobile-nav li:nth-child(2) a {
    transition-delay: 0.3s;
}

.site-header.nav-open .mobile-nav li:nth-child(3) a {
    transition-delay: 0.4s;
}

.site-header.nav-open .mobile-nav li:nth-child(4) a {
    transition-delay: 0.5s;
}

.site-header.nav-open .mobile-nav li:nth-child(5) a {
    transition-delay: 0.6s;
}

.site-header.nav-open .mobile-nav li:nth-child(6) a {
    transition-delay: 0.7s;
}

/* Add more if needed */


.mobile-nav .dropdown-menu {
    position: static;
    display: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 10px 0 0 20px;
    min-width: auto;
}

.mobile-nav .dropdown-menu a {
    font-size: 1.2rem !important;
    font-weight: normal !important;
    text-transform: none;
    color: #f0ead6 !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ======================================================= */
/* =========== START: RESPONSIVENESS (MEDIA QUERIES) =========== */
/* ======================================================= */

/* --- Tablet / Smaller Desktop (Max Width 1200px) --- */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }

    .main-nav {
        gap: 20px;
    }

    #main-nav-left,
    #main-nav-right {
        justify-content: center;
    }

    .logo-spacer {
        width: 300px;
    }

    .logo-container {
        padding: 10px 20px 25px 20px;
    }

    .logo-container {
    position: absolute;
    left: 50%;
    top: -20px;
    transform: translateX(-50%);
    background: white;
    padding: 15px 30px 35px 30px;
    z-index: 100; /* This is your original z-index and is correct */
    clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
}

    .logo-content img {
        height: 55px;
    }

    .logo-text {
        font-size: 15px;
        max-width: 180px;
    }

    /* Homepage Sections */
    .stat-card {
        width: 45%;
    }

    .departments-section .container {
        flex-wrap: wrap;
    }

    .department-card {
        width: 45%;
    }

    .facilities-section .container {
        flex-wrap: wrap;
    }

    .facility-card {
        width: 45%;
    }

    /* About Page */
    .mission-vision-section-v2 .container {
        flex-direction: column;
        gap: 30px;
    }

    .our-values-section .container {
        flex-wrap: wrap;
    }

    .value-card {
        width: 45%;
    }

    .leadership-section-v2 .container {
        flex-wrap: wrap;
    }

    .leader-card-v2 {
        width: 45%;
    }

    /* Contact Page */
    .contact-card-v3 {
        flex-direction: column;
        transform: translateY(0);
        /* Remove the overlap */
        margin-top: 40px;
    }

    .contact-tabs-nav {
        flex-basis: auto;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
    }

    .contact-tab {
        padding: 15px 20px;
        border-left: none;
        border-bottom: 4px solid transparent;
        justify-content: center;
        text-align: center;
        flex-grow: 1;
    }

    .contact-tab i {
        display: none;
    }

    .contact-tab.active {
        border-bottom-color: #800000;
        border-left: none;
    }

    .contact-panes-content {
        padding: 30px;
    }

    /* Student Corner */
    .e-learning-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .research-areas-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile (Max Width 992px) --- */
@media (max-width: 992px) {

    .main-nav,
    .top-bar {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
	.site-header {
		background-color: #fff;
	}

    .main-nav-wrapper {
        border-bottom: none;
    }

    .main-nav-wrapper .container {
        height: auto;
        padding: 10px 15px;
    }

    .logo-spacer,
    .main-nav {
        display: none;
    }

    .logo-container {
        position: static;
        transform: none;
        clip-path: none;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
	.main-nav-wrapper .container {
		justify-content: flex-start;
	}

    .logo-content img {
        height: 50px;
    }

    .logo-text {
        font-size: 14px;
        text-align: left;
    }

    .ts-carousel-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .ts-image-column {
        flex-basis: 300px;
        width: 300px;
        height: 300px;
        margin-bottom: 40px;
    }

    .ts-content-column {
        text-align: center;
    }

    .ts-quote-icon {
        top: -40px;
        left: 50%;
        transform: translateX(-50%);
    }

    .ts-controls {
        position: static;
        justify-content: center;
        margin-top: 30px;
    }

    .news-events-section-v2 .container {
        grid-template-columns: 1fr;
    }

}

/* --- Mobile (Max Width 768px) --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .stats-section {
        margin-top: 0;
        /* Remove overlap on mobile */
        padding: 40px 0;
    }

    .stats-section .container {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 90%;
        margin-bottom: 15px;
    }

    .welcome-content-box {
        padding: 30px;
    }

    .welcome-content-box .section-title {
        font-size: 2rem;
    }

    .welcome-features-inline {
        flex-direction: column;
        gap: 20px;
    }

    .departments-section .container,
    .facilities-section .container,
    .our-values-section .container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .department-card,
    .facility-card,
    .value-card,
    .leader-card-v2 {
        width: 95%;
    }

    /* News & Events */
    .news-item {
        flex-direction: column;
        align-items: center;
    }

    .news-image-container img {
        width: 100%;
        height: auto;
        max-width: 300px;
    }

    .news-content {
        text-align: center;
    }

    .section-header {
        justify-content: center;
        text-align: center;
    }

    /* Testimonials */
    .ts-image-column {
        width: 250px;
        height: 250px;
        flex-basis: 250px;
    }

    .ts-text {
        font-size: 1.1rem;
    }

    .ts-author {
        font-size: 1.5rem;
    }

    .ts-quote-icon {
        font-size: 4rem;
        top: -30px;
    }

    /* Recruiters */
    .recruiters-section .container {
        gap: 20px;
    }

    .recruiter-logo img {
        max-width: 100px;
    }

    /* About Page */
    .timeline-container-v2::before {
        left: 25px;
        /* Move vertical line to the left */
        transform: translateX(0);
    }

    .timeline-item-v2 {
        width: 100%;
        padding-right: 0;
        padding-left: 60px;
        left: 0;
        /* Align all items to the left */
        justify-content: flex-start;
    }

    .timeline-item-v2:nth-child(even) {
        left: 0;
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-dot {
        left: 14.5px;
        right: auto;
    }

    .timeline-item-v2:nth-child(even) .timeline-dot {
        left: 14.5px;
    }

    .timeline-content-v2 {
        width: 100%;
        border-left: 5px solid #800000;
        border-right: none;
    }

    .timeline-item-v2:nth-child(even) .timeline-content-v2 {
        border-right: none;
    }

    .leadership-section-v2 .container,
    .consultancy-section .container {
        flex-direction: column;
    }

    .leader-card-v2,
    .p-cell-image {
        width: 90%;
    }

    .p-cell-content {
        width: 100%;
    }

    /* Contact Page */
    .contact-tabs-nav {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-form-modern .form-group {
        margin-bottom: 15px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-column .footer-title {
        border-bottom: none;
        font-size: 1.5rem;
        text-align: center;
        width: 100%;
		display: block;
    }

    .social-icons {
        justify-content: center;
    }

    .links-column li::before {
        display: none;
    }

    .contact-column li {
        justify-content: center;
        text-align: center;
    }

    /* Student Corner */
    .e-learning-grid,
    .syllabus-grid {
        grid-template-columns: 1fr;
    }

    .student-corner-tabs-nav-wrapper {
        transform: translateY(-50px);
    }

    .sc-tab-link {
        font-size: 0.9rem;
        padding: 20px 10px;
    }

    .timetable-filters {
        flex-direction: column;
        gap: 15px;
    }

    /* Placements Page */
    .placement-cell-section .container,
    .internship-content-wrapper {
        flex-direction: column;
    }

    .p-cell-objectives {
        grid-template-columns: 1fr;
    }

    /* Administration Page */
    .principal-desk-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .principal-message {
        text-align: center;
    }
}
/* --- Developer Credit in Footer --- */
.developer-credit {
    margin: 5px 0 0 0;
    font-size: 0.85rem;
    color: #aaa;
}

.developer-credit a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.developer-credit a:hover {
    color: #bfa86b; /* Accent color from your site */
}
/* ======================================================= */
/* =========== VIDEO POPUP MODAL STYLES =========== */
/* ======================================================= */
.event-item.video-popup-trigger {
    display: flex;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.event-item.video-popup-trigger:hover {
    background-color: #f9f9f9;
}

.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-modal {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.8);
    transition: transform 0.4s ease;
}
.video-modal-overlay.active .video-modal {
    transform: scale(1);
}

.video-modal video {
    width: 100%;
    display: block;
}

.close-video-modal {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
}