/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* CSS Variables for Light Theme */
:root {
    --maroon: #800000;
    --light-bg: #F8F9FA;
    --accent-blue: #4A90E2;
    --text-color: #333333;
    --border-color: #DEE2E6;
    --shadow-light: rgba(255, 255, 255, 0.9);
    --shadow-dark: rgba(0, 0, 0, 0.1);
}

/* General Body Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--light-bg);
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: auto;
}

/* Header and Navigation */
.main-header {
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.main-header .container, .logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    color: var(--maroon);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    margin-right: 15px;
}

.logo-container h1 {
    font-size: 1.2rem;
    line-height: 1.4;
    min-height: 50px;
}

/* --- Typing Animation Cursor --- */
@keyframes blink {
    50% { border-color: transparent; }
}

#college-name-animated {
    position: relative;
    border-right: 2px solid var(--maroon);
    animation: blink 0.75s step-end infinite;
    white-space: pre-wrap;
    word-break: break-word;
}

.main-nav {
    flex-shrink: 0;
}

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav ul li { display: inline-block; margin-left: 24px; }
.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.main-nav a:hover, .dropdown:hover .dropbtn { color: var(--maroon); }

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 8px 16px var(--shadow-dark);
    z-index: 1;
    border-radius: 8px;
    margin-top: 10px;
}
.dropdown-content a { color: var(--text-color); padding: 12px 16px; text-decoration: none; display: block; }
.dropdown-content a:hover { background-color: var(--light-bg); color: var(--maroon); }
.dropdown:hover .dropdown-content { display: block; }

/* Mobile Navigation Toggle (Hamburger Icon) */
.nav-toggle {
    display: none; /* Hidden by default */
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--maroon);
    cursor: pointer;
    z-index: 1001;
}

/* --- HERO SLIDER SECTION --- */
@keyframes slide-animation {
    0%, 28% { transform: translateX(0%); }
    33.3%, 61.3% { transform: translateX(-33.333%); }
    66.6%, 94.6% { transform: translateX(-66.666%); }
    100% { transform: translateX(0%); }
}

#hero {
    height: 70vh;
    overflow: hidden;
    position: relative;
    background: #EAEBF0;
}

.hero-slider {
    width: 300%;
    height: 100%;
    display: flex;
    animation: slide-animation 18s ease-in-out infinite;
}

.hero-slide {
    width: 33.333%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

#slide-1 { background-image: url('Images/hero-background.jpeg'); }
#slide-2 { background-image: url('Images/hero-background1.jpeg'); }
#slide-3 { background-image: url('Images/hero-background2.jpeg'); }

/* Sections */
.section { padding: 60px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 40px; }
.section-title span { color: var(--maroon); }

/* --- UPDATED: CARD STYLES FOR 3D TILT --- */
.card-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    perspective: 1500px;
}

.soft-card {
    background: var(--light-bg);
    padding: 30px;
    width: 25%;
    border-radius: 20px;
    text-align: center;
    box-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.soft-card .facility-icon,
.soft-card h3,
.soft-card p {
    transform-style: preserve-3d;
    pointer-events: none;
}

.facility-icon {
    transform: translateZ(50px);
    font-size: 2.5rem;
    color: var(--maroon);
    margin-bottom: 20px;
}

.soft-card h3 {
    transform: translateZ(35px);
    color: var(--maroon);
    margin-top: 0;
}

.soft-card p {
    transform: translateZ(20px);
}

/* --- RECRUITERS SECTION: MODIFIED FOR AUTO-SCROLL --- */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.recruiter-logos {
    overflow: hidden;
    padding: 20px 0;
    white-space: nowrap;
    position: relative;
}

.logos-track {
    display: flex;
    animation: scroll 15s linear infinite;
}

.logos-track:hover {
    animation-play-state: paused;
}

.recruiter-logos img {
    height: 50px;
    margin: 0 40px;
    transition: transform 0.3s ease;
}

.recruiter-logos img:hover {
    transform: scale(1.1);
}

/* --- TESTIMONIALS SECTION --- */
.testimonial-container {
    max-width: 800px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.testimonial-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.student-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-content {
    text-align: left;
}

.testimonial-card blockquote {
    font-size: 1.1rem;
    font-style: italic;
    margin: 0 0 15px 0;
    padding: 0;
    border: none;
}

.testimonial-card cite {
    font-weight: 600;
    color: var(--maroon);
    font-style: normal;
}

.testimonial-hidden {
    display: none;
}

#show-more-btn {
    display: block;
    margin: 40px auto 0;
    padding: 12px 30px;
    background-color: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

#show-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
}

/* Animation on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('Images/page-header-bg.jpeg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.page-header h1 {
    font-size: 3rem;
    margin: 0;
}

.page-header p {
    font-size: 1.2rem;
    margin-top: 10px;
    font-weight: 300;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

.content-section-alt {
    background-color: #EAEBF0;
    padding: 60px 0;
}

.content-section h3 {
    color: var(--maroon);
    margin-top: 30px;
    margin-bottom: 10px;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section ul li {
    padding-left: 1.5em;
    text-indent: -1.5em;
    margin-bottom: 10px;
}

.content-section ul li::before {
    content: "✓";
    color: var(--maroon);
    margin-right: 10px;
    font-weight: bold;
}

/* Profile Cards (For Governing Board) */
.profile-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.profile-card {
    background: var(--light-bg);
    padding: 20px;
    width: 200px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-10px);
}

.profile-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--maroon);
}

.profile-card h4 {
    margin: 10px 0 5px;
    color: var(--text-color);
}

.profile-card p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* President/Principal Desk Message */
.desk-message {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.desk-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.desk-text {
    flex: 1;
    min-width: 300px;
    max-width: 700px;
}

.desk-text blockquote {
    font-size: 1.1rem;
    font-style: italic;
    margin: 0 0 15px 0;
    padding: 0;
    border-left: 4px solid var(--maroon);
    padding-left: 20px;
}

.desk-text cite {
    font-weight: 600;
    color: var(--maroon);
    font-style: normal;
    display: block;
    text-align: right;
}

/* Department Page Styles */
.department-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.department-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.department-icon {
    font-size: 3rem;
    color: var(--maroon);
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 50%;
}

.department-content h2 {
    margin-top: 0;
    color: var(--maroon);
}

/* News Page Styles */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-date {
    display: inline-block;
    background-color: var(--light-bg);
    color: var(--maroon);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.news-content h3 {
    margin-top: 0;
    line-height: 1.4;
}

.read-more {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

.read-more i {
    transition: transform 0.3s;
}
.read-more:hover i {
    transform: translateX(5px);
}

/* T&P Page: Stats Container */
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-card {
    background: var(--maroon);
    color: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 200px;
    box-shadow: 0 10px 20px rgba(128, 0, 0, 0.3);
}

.stat-card h3 {
    font-size: 2.5rem;
    margin: 0;
}

.stat-card p {
    margin: 5px 0 0;
    font-size: 1.1rem;
}

/* Downloads Page Styles */
.downloads-container {
    max-width: 900px;
    margin: auto;
}

.download-category {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.download-category h2 {
    color: var(--maroon);
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 10px;
    margin-top: 0;
}

.download-category h2 i {
    margin-right: 15px;
}

.download-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-list li {
    margin-bottom: 15px;
}

.download-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--light-bg);
    border-radius: 10px;
}

.download-list a:hover {
    color: var(--maroon);
    background-color: #e9ecef;
}

.download-list a i {
    color: var(--accent-blue);
    font-size: 1.2rem;
}

/* --- UPDATED FOOTER STYLES --- */
.main-footer {
    background-color: #333;
    color: #f0f0f0;
    padding: 60px 0 0 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding: 0 5%;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
}

.footer-col h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    background-color: var(--maroon);
    height: 2px;
    box-sizing: border-box;
    width: 50px;
}

.footer-about .footer-logo {
    height: 60px;
    margin-bottom: 15px;
    background-color: #fff;
    border-radius: 8px;
    padding: 5px;
}

.footer-about h3 {
    color: #fff;
    margin-top: 0;
}

.footer-about p {
    font-size: 0.9rem;
    color: #bbb;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li a {
    color: #bbb;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 8px;
}

.footer-contact p {
    color: #bbb;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--maroon);
    font-size: 1.1rem;
}

.social-links a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(255,255,255,0.2);
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.5s ease;
}

.social-links a:hover {
    color: #fff;
    background-color: var(--maroon);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid #444;
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--maroon);
    color: #fff;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    font-size: 18px;
    border-radius: 50%;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.back-to-top-btn.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background-color: #a00000; /* Darker maroon */
    color: #fff;
}


/* ==========================================================================
   MOBILE RESPONSIVENESS - MEDIA QUERIES
   ========================================================================== */

/* Medium Devices (Tablets, smaller desktops) - up to 992px */
@media (max-width: 992px) {
    .main-nav {
        display: none; /* Hide nav by default */
        position: absolute;
        top: 85px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        text-align: center;
    }

    .main-nav.active {
        display: flex; /* Show nav when active */
    }

    .main-nav ul {
        width: 100%;
    }

    .main-nav ul li {
        display: block;
        margin: 0;
    }

    .main-nav ul li a {
        display: block;
        padding: 1.2rem 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .dropdown-content {
        position: static;
        display: none; /* Hidden by default */
        box-shadow: none;
        background-color: var(--light-bg);
    }

    .dropdown:hover .dropdown-content {
       display: block; /* Show on hover for larger screens still works, but click is better for mobile */
    }
    
    .dropdown .dropdown-content a {
        padding-left: 40px; /* Indent dropdown links */
    }
    
    .dropbtn:after {
        content: ' ▼'; /* Add arrow to dropdown button */
    }

    .nav-toggle {
        display: block; /* Show hamburger icon */
    }
    
    .logo-container h1 {
        font-size: 1rem;
    }
    
    .soft-card {
        width: 45%; /* Two cards per row on tablets */
    }
    
    .testimonial-card {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-content {
        text-align: center;
    }

    .desk-message {
        flex-direction: column;
        text-align: center;
    }

    .desk-text cite {
        text-align: center;
    }
}


/* Small Devices (Mobiles) - up to 768px */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    #hero {
        height: 50vh;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .soft-card,
    .profile-card {
        width: 80%; /* One card per row on mobile */
    }
    
    .stats-container {
        gap: 15px;
    }
    
    .stat-card {
        width: 45%;
        padding: 20px;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .department-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-col h4::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        margin: auto;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}