/* General Body and Typography */
:root {
    --primary-color: #004a99; /* Deeper Blue */
    --secondary-color: #007bff; /* Standard Blue */
    --accent-color: #28a745; /* Green */
    --text-color-dark: #333;
    --text-color-light: #ffffff;
    --background-light: #f8f9fa;
    --background-dark: #212529; /* Darker for footer */
    --card-background: #ffffff;
    --border-color: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --font-inter: 'Inter', sans-serif;
    --font-lora: 'Lora', serif;
    --spacing-unit: 1rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-inter);
    line-height: 1.6;
    color: var(--text-color-dark);
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}

/* Page Wrapper for mobile menu overlay effect */
#page-wrapper {
    position: relative;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#page-wrapper.menu-open {
    transform: translateX(-250px); /* Adjust based on mobile menu width */
    filter: blur(3px);
    pointer-events: none; /* Disable interaction with main content when menu is open */
}

/* Container for content width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-lora);
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
}

/* Links */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-inter);
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn.primary-btn {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.btn.primary-btn:hover {
    background-color: #003366; /* Darker primary */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.btn.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Hero Section Buttons */
.hero-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.hero-buttons .primary-hero-btn {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}

.hero-buttons .primary-hero-btn:hover {
    background-color: #0056b3;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.hero-buttons .secondary-hero-btn {
    background-color: rgba(255,255,255,0.2);
    color: var(--text-color-light);
    border: 2px solid var(--text-color-light);
}

.hero-buttons .secondary-hero-btn:hover {
    background-color: var(--text-color-light);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}


/* Card Style */
.card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--shadow-light);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

/* Grid Layouts */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Section Styling */
section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}
/*
section:nth-of-type(odd) {
    background-color:  #f7f9fa;
}
section:nth-of-type(even) {
    background-color: #f7f9fa; /* Light blue tint for alternating sections */
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    margin: 0.5rem auto 0 auto;
    border-radius: 2px;
}

.section-subheading {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-subheading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0.5rem auto 0 auto;
    border-radius: 2px;
}


.intro-text {
    font-size: 1.15rem;
    text-align: justify;
    max-width: 800px;
    margin: 1rem auto 3rem auto;
    color: #555;
    line-height: 1.7;
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem;
}

/* Navigation Bar */
.header-section {
    background-color: var(--background-light); /* White background */
    padding: 0.8rem 0; /* Original padding */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-section .container {
    max-width: 1800px; /* Increased max-width for a wider nav bar */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-section .logo {
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.header-section .logo img {
    max-width: 350px; /* Adjusted logo size */
    height: auto;
    display: block;
    transition: transform 0.2s ease;
}

.header-section .logo img:hover {
    transform: scale(1.02);
}

.header-section .nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-inter);
}

.header-section .nav-links li {
    position: relative;
    margin: 0 1rem;
}

.header-section .nav-links li a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem; /* Increased font size */
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease, border-color 0.3s ease;
    display: block;
}

.header-section .nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.header-section .nav-links li a:hover,
.header-section .nav-links li a.active {
    color: var(--secondary-color);
}

.header-section .nav-links li a:hover::after,
.header-section .nav-links li a.active::after {
    width: 100%;
}

/* Dropdown Menu */
.header-section .nav-links .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--card-background);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem; /* Space between parent and dropdown */
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.header-section .nav-links li:hover > .dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-section .nav-links .dropdown li {
    margin: 0;
}

.header-section .nav-links .dropdown li a {
    color: var(--text-color-dark);
    padding: 10px 15px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.header-section .nav-links .dropdown li a:hover {
    background-color: var(--background-light);
    color: var(--secondary-color);
}
.header-section .nav-links .dropdown li a::after {
    display: none; /* No underline for dropdown items */
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Mobile Menu Overlay */
#mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -250px; /* Hidden off-screen */
    width: 250px;
    height: 100%;
    background-color: var(--primary-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
}

#mobile-menu-overlay.open {
    right: 0;
}

.close-menu {
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 2.5rem;
    align-self: flex-end;
    margin-right: 1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-menu:hover {
    color: var(--secondary-color);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.8rem;
}

.mobile-nav-links a {
    color: var(--text-color-light);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 1.1rem;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    height: 70vh; /* Taller hero section */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: fadeInBackground 1.5s ease-out;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Darker overlay */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .hero-content {
    max-width: 700px; /* Adjusted max-width for smaller content area */
    margin: 0 auto;
}

.hero-section h1 {
    color: var(--text-color-light);
    font-size: 4.5rem; /* Larger font size */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
}

.hero-section .hero-subtitle {
    font-size: 1.6rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

@keyframes fadeInBackground {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: var(--background-light);
}

/* Research Highlights Section (for index.php) */
.research-highlights-section {
    background-color: #e9f5ff; /* Light blue background */
    padding: 5rem 0;
}

.research-highlights-section .research-card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--shadow-light);
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards are same height in grid */
}

.research-highlights-section .research-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px var(--shadow-medium);
}

.research-highlights-section .research-icon {
    font-size: 4rem; /* Larger icons */
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.research-highlights-section h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.research-highlights-section p {
    font-size: 1rem;
    color: #555;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.research-highlights-section .card-link {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.research-highlights-section .card-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Latest News Section */
.latest-news-section {
    padding: 5rem 0;
    background-color: var(--background-light);
}

.news-carousel {
    margin-top: 3rem;
}

.news-card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--shadow-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px var(--shadow-medium);
}

.news-card .news-image {
    width: 100%;
    height: 220px; /* Consistent image height */
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.news-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-content h4 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.news-card-content .news-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.8rem;
}

.news-card-content p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.news-card-content .read-more {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.news-card-content .read-more:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Owl Carousel Custom Navigation */
.owl-carousel .owl-nav button {
    background: var(--secondary-color) !important;
    color: var(--text-color-light) !important;
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    font-size: 1.5rem !important;
    margin: 0 0.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.owl-carousel .owl-nav button.owl-prev {
    left: -20px; /* Adjust as needed */
}

.owl-carousel .owl-nav button.owl-next {
    right: -20px; /* Adjust as needed */
}

.owl-carousel .owl-nav button:hover {
    background: var(--primary-color) !important;
    transform: translateY(-50%) scale(1.1);
}

.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 2rem;
}

.owl-carousel .owl-dot span {
    background: var(--border-color) !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 5px !important;
    border-radius: 50% !important;
    transition: background-color 0.3s ease !important;
}

.owl-carousel .owl-dot.active span {
    background: var(--secondary-color) !important;
}


/* Footer */
.main-footer {
    background: linear-gradient(to right, #244559, #183441); /* Slightly darker light blue gradient */
    color: #003366; /* Darker text for better contrast */
    padding: 3rem 0;
    margin-top: auto; /* Pushes footer to the bottom */
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.2); /* Slightly stronger shadow */
}

.main-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 51, 102, 0.15); /* Adjusted border color for new background */
}

.main-footer h3 {
    color: #003366; /* Use darker primary color for footer headings */
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.main-footer p, .main-footer li {
    font-size: 0.95rem;
    color: rgba(0, 51, 102, 0.85); /* Slightly transparent darker primary color for text */
    margin-bottom: 0.5rem;
}

.main-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-footer ul li a {
    color: rgba(0, 51, 102, 0.85); /* Slightly transparent darker primary color for links */
    transition: color 0.2s ease;
}

.main-footer ul li a:hover {
    color: #004a99; /* Primary color on hover */
    text-decoration: underline;
}

.main-footer .footer-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.main-footer .footer-social-links a {
    color: #003366; /* Darker primary color for social icons */
    font-size: 1.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-footer .footer-social-links a:hover {
    color: var(--secondary-color); /* Secondary color on hover */
    transform: translateY(-3px);
}

.main-footer .footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(0, 51, 102, 0.7); /* Lighter darker primary color for copyright */
}

/* Back to Top Button */
#back-to-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--shadow-medium);
    transition: opacity 0.3s ease, background-color 0.3s ease;
    opacity: 0;
}

#back-to-top:hover {
    background-color: var(--secondary-color);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .header-section .nav-links {
        gap: 0.8rem;
    }
    .hero-section h1 {
        font-size: 3.5rem;
    }
    .hero-section .hero-subtitle {
        font-size: 1.3rem;
    }
    .research-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .owl-carousel .owl-nav button.owl-prev {
        left: 0px;
    }
    .owl-carousel .owl-nav button.owl-next {
        right: 0px;
    }
    /* Faculty page specific: 2 columns on medium screens */
    .faculty-members-section .box-container,
    .research-scholars-section .box-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact page specific: 2 columns on medium screens */
    .contact-content-section .contact-content-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on screens >= 768px */
        max-width: 960px; /* Adjust max-width for medium screens */
    }
}

@media (max-width: 768px) {
    .hero-section .hero-content {
        max-width: 90%; /* Adjust for smaller screens */
    }
    .header-section .nav-links {
        display: none; /* Hide desktop nav links */
    }
    .menu-toggle {
        display: block; /* Show mobile menu toggle */
    }
    .hero-section {
        height: 50vh;
    }
    .hero-section h1 {
        font-size: 2.8rem;
    }
    .hero-section .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-buttons .btn {
        width: 80%;
        margin: 0 auto;
    }
    section {
        padding: 3rem 0;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .intro-text {
        font-size: 1.0rem;
        margin-bottom: 2rem;
    }
    .research-grid, .news-carousel {
        grid-template-columns: 1fr; /* Stack columns on small screens */
    }
    .news-card .news-image {
        height: 180px;
    }
    .owl-carousel .owl-nav {
        display: none; /* Hide nav arrows on mobile, rely on dots */
    }
    /* Faculty page specific: 1 column on small screens */
    .faculty-members-section .box-container,
    .research-scholars-section .box-container {
        grid-template-columns: 1fr;
    }

    /* Contact page specific: 1 column on small screens */
    .contact-content-section .contact-content-grid {
        grid-template-columns: 1fr; /* Stack columns on small screens */
        max-width: 100%; /* Allow full width for mobile */
        padding: 0 var(--spacing-unit);
    }
    .contact-content-section .card {
        padding: 2rem;
    }
    .contact-content-section .section-title-small {
        font-size: 1.8rem;
    }
    .contact-content-section .intro-text-small {
        font-size: 0.95rem;
    }
    .contact-content-section .cs-text {
        padding: 0.8rem 0;
    }
    .contact-content-section .ct-address span {
        font-size: 1.05rem;
    }
    .contact-content-section .ct-address p {
        font-size: 0.9rem;
    }
    .contact-content-section .contact-social-links a {
        font-size: 1.5rem;
    }
    .contact-content-section .form-group label {
        font-size: 0.95rem;
    }
    .contact-content-section .form-group input,
    .contact-content-section .form-group textarea {
        padding: 0.7rem 0.8rem;
        font-size: 0.95rem;
    }
    .contact-content-section .cc-map iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section .hero-subtitle {
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .header-section .logo img {
        max-width: 150px;
    }
    .mobile-menu-overlay {
        width: 100%; /* Full width overlay on very small screens */
        right: -100%;
    }
    #page-wrapper.menu-open {
        transform: translateX(-100%);
    }
    .news-card .news-image {
        height: 150px;
    }
}

/* Specific styles for Faculty.php */
.faculty-members-section .box-container,
.research-scholars-section .box-container {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for larger screens */
    gap: 2rem; /* Adjusted gap for better spacing in 3-column layout */
}

.box {
    
    
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--shadow-light);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.box img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--secondary-color);
}

.box h3 {
    font-size: 1.3rem;
    margin: 0.5rem 0 0.3rem 0;
    color: var(--primary-color);
}

.box p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1; /* Allows text to take up available space */
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.member-social a {
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.member-social a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.alumni-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.alumni-list li {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px var(--shadow-light);
    font-size: 1rem;
    color: #444;
}

/* Adjustments for smaller screens for faculty/scholars grid */
@media (max-width: 1024px) { /* Adjust breakpoint for 3-column to 2-column transition */
    .faculty-members-section .box-container,
    .research-scholars-section .box-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 600px) { /* Adjust breakpoint for 2-column to 1-column transition */
    .faculty-members-section .box-container,
    .research-scholars-section .box-container {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

/* New styles for Contact.php */
.contact-content-section {
    padding: 5rem 0;
    background-color: var(--background-light);
    width: 100%; /* Make it full width */
}

.contact-content-section .contact-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px; /* Add a max-width to the grid itself for content readability */
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-unit); /* Add padding for responsiveness */
}

.contact-content-section .card {
    padding: 2.5rem;
}

.contact-content-section .section-title-small {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.contact-content-section .section-title-small::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0.5rem auto 1.5rem auto;
    border-radius: 2px;
}

.contact-content-section .intro-text-small {
    font-size: 1rem;
    text-align: justify;
    color: #555;
    margin-bottom: 2rem;
}

.contact-content-section .cs-text {
    margin-bottom: 1.5rem;
    padding: 1rem 0; /* Add padding to separate contact blocks visually */
    border-bottom: 1px dashed var(--border-color); /* Subtle separator */
}

.contact-content-section .cs-text:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-content-section .ct-address {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.contact-content-section .ct-address span {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-content-section .ct-address p {
    margin: 0;
    padding: 0;
}

.contact-content-section .ct-address p b {
    color: var(--secondary-color);
}

.contact-content-section .ct-address a {
    word-break: break-all;
}

.contact-content-section .contact-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-content-section .contact-social-links a {
    color: var(--primary-color);
    font-size: 2rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.contact-content-section .contact-social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px);
}

.contact-content-section .form-group {
    margin-bottom: 1.5rem;
}

.contact-content-section .form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.contact-content-section .form-group input[type="text"],
.contact-content-section .form-group input[type="email"],
.contact-content-section .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-inter);
    font-size: 1rem;
    color: var(--text-color-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box; /* Include padding in width calculation */
}

.contact-content-section .form-group input:focus,
.contact-content-section .form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.contact-content-section .form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-content-section .form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-content-section .form-status.show {
    opacity: 1;
    visibility: visible;
}

.contact-content-section .form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-content-section .form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-content-section .cc-map {
    border-radius: 12px;
    overflow: hidden; /* Ensures map corners are rounded */
    box-shadow: 0 8px 20px var(--shadow-medium);
    position: relative;
    padding: 0; /* Remove card padding as iframe takes full space */
}

.contact-content-section .cc-map h2 {
    padding: 1.5rem 0; /* Add padding for title within map card */
    margin-bottom: 0; /* Remove default margin */
}

.contact-content-section .cc-map iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block; /* Remove extra space below iframe */
}

.contact-content-section .map-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-color-light);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none; /* Allow clicks to pass through to map */
}

.contact-content-section .cc-map:hover .map-hover {
    opacity: 1;
    visibility: visible;
}

.contact-content-section .map-hover i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.contact-content-section .map-hover h5 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-color-light);
}

.contact-content-section .map-hover p {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 993px) { /* Apply 2x2 grid for larger screens */
    .contact-content-section .contact-content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .header-section .nav-links {
        gap: 0.8rem;
    }
    .hero-section h1 {
        font-size: 3.5rem;
    }
    .hero-section .hero-subtitle {
        font-size: 1.3rem;
    }
    .research-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .owl-carousel .owl-nav button.owl-prev {
        left: 0px;
    }
    .owl-carousel .owl-nav button.owl-next {
        right: 0px;
    }
    /* Faculty page specific: 2 columns on medium screens */
    .faculty-members-section .box-container,
    .research-scholars-section .box-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section .hero-content {
        max-width: 90%; /* Adjust for smaller screens */
    }
    .header-section .nav-links {
        display: none; /* Hide desktop nav links */
    }
    .menu-toggle {
        display: block; /* Show mobile menu toggle */
    }
    .hero-section {
        height: 50vh;
    }
    .hero-section h1 {
        font-size: 2.8rem;
    }
    .hero-section .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-buttons .btn {
        width: 80%;
        margin: 0 auto;
    }
    section {
        padding: 3rem 0;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .intro-text {
        font-size: 1.0rem;
        margin-bottom: 2rem;
    }
    .research-grid, .news-carousel {
        grid-template-columns: 1fr; /* Stack columns on small screens */
    }
    .news-card .news-image {
        height: 180px;
    }
    .owl-carousel .owl-nav {
        display: none; /* Hide nav arrows on mobile, rely on dots */
    }
    /* Faculty page specific: 1 column on small screens */
    .faculty-members-section .box-container,
    .research-scholars-section .box-container {
        grid-template-columns: 1fr;
    }

    /* Contact page specific: 1 column on small screens */
    .contact-content-section .contact-content-grid {
        grid-template-columns: 1fr; /* Stack columns on small screens */
        max-width: 100%; /* Allow full width for mobile */
        padding: 0 var(--spacing-unit);
    }
    .contact-content-section .card {
        padding: 2rem;
    }
    .contact-content-section .section-title-small {
        font-size: 1.8rem;
    }
    .contact-content-section .intro-text-small {
        font-size: 0.95rem;
    }
    .contact-content-section .cs-text {
        padding: 0.8rem 0;
    }
    .contact-content-section .ct-address span {
        font-size: 1.05rem;
    }
    .contact-content-section .ct-address p {
        font-size: 0.9rem;
    }
    .contact-content-section .contact-social-links a {
        font-size: 1.5rem;
    }
    .contact-content-section .form-group label {
        font-size: 0.95rem;
    }
    .contact-content-section .form-group input,
    .contact-content-section .form-group textarea {
        padding: 0.7rem 0.8rem;
        font-size: 0.95rem;
    }
    .contact-content-section .cc-map iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section .hero-subtitle {
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .header-section .logo img {
        max-width: 150px;
    }
    .mobile-menu-overlay {
        width: 100%; /* Full width overlay on very small screens */
        right: -100%;
    }
    #page-wrapper.menu-open {
        transform: translateX(-100%);
    }
    .news-card .news-image {
        height: 150px;
    }
}

/* Specific styles for Faculty.php */
.faculty-members-section .box-container,
.research-scholars-section .box-container {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for larger screens */
    gap: 2rem; /* Adjusted gap for better spacing in 3-column layout */
}

.box {
   
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--shadow-light);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.box img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--secondary-color);
}

.box h3 {
    font-size: 1.3rem;
    margin: 0.5rem 0 0.3rem 0;
    color: var(--primary-color);
}

.box p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1; /* Allows text to take up available space */
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.member-social a {
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.member-social a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.alumni-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.alumni-list li {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px var(--shadow-light);
    font-size: 1rem;
    color: #444;
}

/* Adjustments for smaller screens for faculty/scholars grid */
@media (max-width: 1024px) { /* Adjust breakpoint for 3-column to 2-column transition */
    .faculty-members-section .box-container,
    .research-scholars-section .box-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 600px) { /* Adjust breakpoint for 2-column to 1-column transition */
    .faculty-members-section .box-container,
    .research-scholars-section .box-container {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

/* New styles for Contact.php */
.contact-content-section {
    padding: 5rem 0;
    background-color: var(--background-light);
    width: 100%; /* Make it full width */
}

.contact-content-section .contact-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px; /* Add a max-width to the grid itself for content readability */
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-unit); /* Add padding for responsiveness */
}

.contact-content-section .card {
    padding: 2.5rem;
}

.contact-content-section .section-title-small {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.contact-content-section .section-title-small::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0.5rem auto 1.5rem auto;
    border-radius: 2px;
}

.contact-content-section .intro-text-small {
    font-size: 1rem;
    text-align: justify;
    color: #555;
    margin-bottom: 2rem;
}

.contact-content-section .cs-text {
    margin-bottom: 1.5rem;
    padding: 1rem 0; /* Add padding to separate contact blocks visually */
    border-bottom: 1px dashed var(--border-color); /* Subtle separator */
}

.contact-content-section .cs-text:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-content-section .ct-address {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.contact-content-section .ct-address span {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-content-section .ct-address p {
    margin: 0;
    padding: 0;
}

.contact-content-section .ct-address p b {
    color: var(--secondary-color);
}

.contact-content-section .ct-address a {
    word-break: break-all;
}

.contact-content-section .contact-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-content-section .contact-social-links a {
    color: var(--primary-color);
    font-size: 2rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.contact-content-section .contact-social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px);
}

.contact-content-section .form-group {
    margin-bottom: 1.5rem;
}

.contact-content-section .form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.contact-content-section .form-group input[type="text"],
.contact-content-section .form-group input[type="email"],
.contact-content-section .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-inter);
    font-size: 1rem;
    color: var(--text-color-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box; /* Include padding in width calculation */
}

.contact-content-section .form-group input:focus,
.contact-content-section .form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.contact-content-section .form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-content-section .form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-content-section .form-status.show {
    opacity: 1;
    visibility: visible;
}

.contact-content-section .form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-content-section .form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-content-section .cc-map {
    border-radius: 12px;
    overflow: hidden; /* Ensures map corners are rounded */
    box-shadow: 0 8px 20px var(--shadow-medium);
    position: relative;
    padding: 0; /* Remove card padding as iframe takes full space */
}

.contact-content-section .cc-map h2 {
    padding: 1.5rem 0; /* Add padding for title within map card */
    margin-bottom: 0; /* Remove default margin */
}

.contact-content-section .cc-map iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block; /* Remove extra space below iframe */
}

.contact-content-section .map-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-color-light);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none; /* Allow clicks to pass through to map */
}

.contact-content-section .cc-map:hover .map-hover {
    opacity: 1;
    visibility: visible;
}

.contact-content-section .map-hover i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.contact-content-section .map-hover h5 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-color-light);
}

.contact-content-section .map-hover p {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(59, 20, 122, 0.8);
}
/* Responsive Video Embeds */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (height / width * 100) */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 2rem auto; /* Center the video */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* Research Page Specific Styles */
.research-page .research-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.research-page .research-area-card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--shadow-light);
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards are same height in grid */
}

.research-page .research-area-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px var(--shadow-medium);
}

.research-page .research-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.research-page .research-area-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.research-page .research-area-card p {
    font-size: 1rem;
    color: #555;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.research-page .research-area-card .keywords {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Project Item Styling */
.research-page .project-item {
    display: flex;
    flex-direction: column;
    text-align: left;
    height: 100%;
}

.research-page .project-item h4 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.research-page .project-item .project-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.research-page .project-item .project-type {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.research-page .project-item p {
    font-size: 1rem;
    color: #555;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.research-page .progress-section {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.research-page .progress-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.research-page .progress-bar-container {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    height: 10px;
}

.research-page .progress-bar {
    height: 100%;
    background-color: var(--accent-color); /* Green for progress */
    border-radius: 5px;
    width: 0%; /* Initial width for animation */
    transition: width 1s ease-out;
}

.research-page .project-item .project-team {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Collaborations Section */
.research-page .collaborator-map-placeholder {
    text-align: center;
    padding: 3rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .header-section .nav-links {
        gap: 0.8rem;
    }
    .hero-section h1 {
        font-size: 3.5rem;
    }
    .hero-section .hero-subtitle {
        font-size: 1.3rem;
    }
    .cards-grid, .research-areas-grid { /* Apply to both general cards and research areas */
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .owl-carousel .owl-nav button.owl-prev {
        left: 0px;
    }
    .owl-carousel .owl-nav button.owl-next {
        right: 0px;
    }
    /* Faculty page specific: 2 columns on medium screens */
    .faculty-members-section .box-container,
    .research-scholars-section .box-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact page specific: 2 columns on medium screens */
    .contact-content-section .contact-content-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on screens >= 768px */
        max-width: 960px; /* Adjust max-width for medium screens */
    }
}

@media (max-width: 768px) {
    .hero-section .hero-content {
        max-width: 90%; /* Adjust for smaller screens */
    }
    .header-section .nav-links {
        display: none; /* Hide desktop nav links */
    }
    .menu-toggle {
        display: block; /* Show mobile menu toggle */
    }
    .hero-section {
        height: 50vh;
    }
    .hero-section h1 {
        font-size: 2.8rem;
    }
    .hero-section .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-buttons .btn {
        width: 80%;
        margin: 0 auto;
    }
    section {
        padding: 3rem 0;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .section-subheading {
        font-size: 1.8rem;
    }
    .intro-text {
        font-size: 1.0rem;
        margin-bottom: 2rem;
    }
    .cards-grid, .research-areas-grid {
        grid-template-columns: 1fr; /* Stack columns on small screens */
    }
    .news-card .news-image {
        height: 180px;
    }
    .owl-carousel .owl-nav {
        display: none; /* Hide nav arrows on mobile, rely on dots */
    }
    /* Faculty page specific: 1 column on small screens */
    .faculty-members-section .box-container,
    .research-scholars-section .box-container {
        grid-template-columns: 1fr;
    }

    /* Contact page specific: 1 column on small screens */
    .contact-content-section .contact-content-grid {
        grid-template-columns: 1fr; /* Stack columns on small screens */
        max-width: 100%; /* Allow full width for mobile */
        padding: 0 var(--spacing-unit);
    }
    .contact-content-section .card {
        padding: 2rem;
    }
    .contact-content-section .section-title-small {
        font-size: 1.8rem;
    }
    .contact-content-section .intro-text-small {
        font-size: 0.95rem;
    }
    .contact-content-section .cs-text {
        padding: 0.8rem 0;
    }
    .contact-content-section .ct-address span {
        font-size: 1.05rem;
    }
    .contact-content-section .ct-address p {
        font-size: 0.9rem;
    }
    .contact-content-section .contact-social-links a {
        font-size: 1.5rem;
    }
    .contact-content-section .form-group label {
        font-size: 0.95rem;
    }
    .contact-content-section .form-group input,
    .contact-content-section .form-group textarea {
        padding: 0.7rem 0.8rem;
        font-size: 0.95rem;
    }
    .contact-content-section .cc-map iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section .hero-subtitle {
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .header-section .logo img {
        max-width: 150px;
    }
    .mobile-menu-overlay {
        width: 100%; /* Full width overlay on very small screens */
        right: -100%;
    }
    #page-wrapper.menu-open {
        transform: translateX(-100%);
    }
    .news-card .news-image {
        height: 150px;
    }
}

/* Styles for the Course List Section (courses.php) */
.course-list-section {
    padding: 5rem 0;
    background-color: var(--background-light);
}

.course-list-section .course-table-container {
    overflow-x: auto; /* Enable horizontal scrolling for tables on small screens */
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.course-list-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 0; /* Remove default table margin */
    min-width: 700px; /* Ensure table doesn't get too narrow */
}

.course-list-section th,
.course-list-section td {
    border: 1px solid var(--border-color);
    padding: 1rem;
    text-align: left;
    vertical-align: top;
}

.course-list-section th {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap; /* Prevent headers from wrapping */
}

.course-list-section td {
    background-color: var(--card-background);
    font-size: 0.95rem;
    color: var(--text-color-dark);
}

.course-list-section tr:nth-child(even) td {
    background-color: #d9dbf0; /* Lighter background for even rows */
}

.course-list-section .course-section-header {
    background-color: var(--secondary-color); /* Section header background */
    color: var(--text-color-light);
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
    padding: 1rem;
    position: sticky; /* Make section headers sticky */
    top: 0; /* Stick to the top of the container */
    z-index: 50; /* Ensure it's above other table rows */
}

.course-list-section .course-notes {
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments for course table */
@media (max-width: 768px) {
    .course-list-section th,
    .course-list-section td {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    .course-list-section .course-section-header {
        font-size: 1rem;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .course-list-section th,
    .course-list-section td {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    .course-list-section .course-section-header {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
    .course-list-section table {
        min-width: 500px; /* Adjust min-width for very small screens */
    }
    .course-list-section {
    background-color: #d4d4ea; /* A light lavender color for example */
    padding: 5rem 0; /* Ensures consistent padding with other sections */
}
}
/* Responsive Video Embeds */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (height / width * 100) */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 2rem auto; /* Center the video */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-inter);
    line-height: 1.6;
    color: var(--text-color-dark);
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}

/* Page Wrapper for mobile menu overlay effect */
#page-wrapper {
    position: relative;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#page-wrapper.menu-open {
    transform: translateX(-250px); /* Adjust based on mobile menu width */
    filter: blur(3px);
    pointer-events: none; /* Disable interaction with main content when menu is open */
}

/* Container for content width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-lora);
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
}

/* Links */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    font-family: var(--font-inter);
    font-size: 1rem;
}

.btn.primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 0 4px 8px var(--shadow-light);
}

.btn.primary:hover {
    background-color: #004085; /* Darker shade of primary */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-medium);
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px var(--shadow-light);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-medium);
}

.btn.link-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    padding: 0;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn.link-btn:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.btn.link-btn i {
    transition: transform 0.2s ease;
}

.btn.link-btn:hover i {
    transform: translateX(3px);
}

/* Card Style */
.card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--shadow-light);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

/* Grid Layouts */
.cards-grid, .news-items-grid, .research-areas-grid, .group-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Section Styling */
section {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

section:nth-of-type(even) {
    background-color: var(--background-light);
}

.intro-text {
    font-size: 1.15rem;
    text-align: justify;
    max-width: 800px;
    margin: 1rem auto 3rem auto;
    color: #555;
    line-height: 1.7;
}

.section-subheading {
    font-size: 1.6rem;
    color: var(--primary-color);
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-subheading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0.5rem auto 0 auto;
    border-radius: 2px;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* Navigation Bar */
.header-section { /* Renamed from .main-nav for consistency with header.php */
    background: linear-gradient(to right, #B3E5FC, #81D4FA); /* Vibrant light blue gradient */
    padding: 0.8rem 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Enhanced shadow for a lifted look */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-section .container {
    max-width: 1800px; /* Increased max-width for a wider nav bar */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-section .logo {
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.header-section .logo img {
    max-width: 350px; /* Adjusted logo size */
    height: auto;
    display: block;
    transition: transform 0.2s ease;
}

.header-section .logo img:hover {
    transform: scale(1.02);
}

.header-section .nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-inter);
}

.header-section .nav-links li {
    position: relative;
    margin: 0 1rem;
}

.header-section .nav-links li a {
    color: #004a99; /* Deeper blue for text for good contrast */
    font-weight: 600; /* Slightly bolder text */
    font-size: 1.1rem; /* Increased font size */
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease; /* Added transform for hover effect */
    display: block;
}

.header-section .nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.header-section .nav-links li a:hover {
    color: var(--secondary-color); /* Still use secondary for hover */
    transform: translateY(-2px); /* Subtle lift on hover */
}

.header-section .nav-links li a.active {
    color: var(--secondary-color); /* Active link color */
}

.header-section .nav-links li a:hover::after,
.header-section .nav-links li a.active::after {
    width: 100%;
}

/* Dropdown Menu */
.header-section .nav-links .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--card-background); /* White background for dropdown */
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem; /* Space between parent and dropdown */
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.header-section .nav-links li.dropdown-parent:hover > .dropdown { /* Use dropdown-parent class */
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-section .nav-links .dropdown li {
    margin: 0;
}

.header-section .nav-links .dropdown li a {
    color: var(--text-color-dark); /* Dark text for dropdown items */
    padding: 10px 15px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.header-section .nav-links .dropdown li a:hover {
    background-color: var(--background-light);
    color: var(--secondary-color);
}
.header-section .nav-links .dropdown li a::after {
    display: none; /* No underline for dropdown items */
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--primary-color); /* Darker color for toggle on light background */
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Mobile Menu Overlay */
#mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -250px; /* Hidden off-screen */
    width: 250px;
    height: 100%;
    background-color: #0056b3; /* Slightly darker blue for mobile overlay */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
}

#mobile-menu-overlay.open {
    right: 0;
}

.close-menu {
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 2.5rem;
    align-self: flex-end;
    margin-right: 1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-menu:hover {
    color: var(--secondary-color);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.8rem;
}

.mobile-nav-links a {
    color: var(--text-color-light);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 1.1rem;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #007BFF 100%);
    color: var(--text-color-light);
    padding: 6rem 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(45deg);
    animation: float 10s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -70px;
    right: -70px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transform: rotate(-30deg);
    animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(10px, 20px); }
    100% { transform: translate(0, 0); }
}


.hero .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.hero-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 5px solid var(--secondary-color);
    object-fit: cover;
    box-shadow: 0 8px 20px var(--shadow-medium);
    flex-shrink: 0;
}

.hero-text {
    text-align: left;
}

.hero-text h1 {
    color: var(--text-color-light);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero-text .subheading {
    font-size: 1.4rem;
    font-weight: 300;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-text p {
    font-size: 1.1rem;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.85);
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.hero-buttons .btn.secondary {
    border-color: var(--text-color-light);
    color: var(--text-color-light);
}

.hero-buttons .btn.secondary:hover {
    background-color: var(--text-color-light);
    color: var(--primary-color);
}

/* About Me Section */
.about-me .about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-me .about-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: justify;
}

.about-me .timeline {
    margin-top: 2rem;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
}

.about-me .timeline-item {
    margin-bottom: 1.5rem;
    position: relative;
}

.about-me .timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 5px;
    width: 14px;
    height: 14px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    border: 3px solid var(--background-light);
}

.about-me .timeline-item h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.about-me .timeline-item .timeline-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5rem;
    display: block;
}

.about-me .timeline-item p {
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
    color: #555;
}

.skills-showcase {
    margin-top: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.skill-item {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px var(--shadow-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px var(--shadow-medium);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.skill-name {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
}

/* Section Divider */
.section-divider {
    width: 80%;
    max-width: 800px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 4rem auto;
}

/* Testimonials/Quotes Section */
.testimonials .testimonial-card {
    text-align: center;
    padding: 2rem;
}

.testimonials .quote {
    font-size: 1.2rem;
    font-style: italic;
    color: #444;
    margin-bottom: 1rem;
}

.testimonials .author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Research Interests Section */
.research-interests .card {
    text-align: center;
    padding: 2rem;
}

.research-interests .research-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.research-interests h3 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.research-interests p {
    font-size: 1rem;
    color: #555;
}

/* News Section (Homepage) */
.latest-news .news-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
}

.latest-news .news-thumbnail img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px var(--shadow-light);
}

.latest-news .news-content {
    flex-grow: 1;
}

.latest-news .news-date {
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.3rem;
}

.latest-news .news-content h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.latest-news .news-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.8rem;
}

/* Events & Engagements Section */
.events-engagements .event-item {
    padding: 1.5rem;
}

.events-engagements .event-item h4 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.events-engagements .event-icon {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.events-engagements .event-date,
.events-engagements .event-location {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.4rem;
}

.events-engagements .event-description {
    font-size: 1rem;
    color: #555;
    margin-top: 0.8rem;
    margin-bottom: 1rem;
}


/* Interactive CV Section */
.interactive-cv {
    text-align: center;
}

.interactive-cv .btn {
    margin: 0.5rem;
}

/* Footer */
.main-footer {
    background-color: var(--background-dark);
    color: var(--text-color-light);
    padding: 3rem 0;
    margin-top: auto; /* Pushes footer to the bottom */
}

.main-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-footer h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.main-footer p, .main-footer li {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.main-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.main-footer ul li a:hover {
    color: var(--text-color-light);
    text-decoration: underline;
}

.main-footer .footer-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.main-footer .footer-social-links a {
    color: var(--text-color-light);
    font-size: 1.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-footer .footer-social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.main-footer .footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Back to Top Button */
#back-to-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--shadow-medium);
    transition: opacity 0.3s ease, background-color 0.3s ease;
    opacity: 0;
}

#back-to-top:hover {
    background-color: var(--secondary-color);
}

/* Specific Page Styles */

/* Research Page */
.research-page .research-areas-grid .research-area-card {
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none; /* Remove underline from link */
    color: inherit; /* Inherit text color */
    position: relative; /* For icon positioning if needed */
}

.research-page .research-area-card:hover {
    text-decoration: none; /* Ensure no underline on hover */
}

.research-page .research-area-card .research-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.research-page .research-area-card:hover .research-icon {
    transform: translateY(-5px) scale(1.1); /* Subtle bounce and scale on hover */
}

.research-page .research-area-card img {
    max-width: 100%;
    height: 150px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px; /* Rounded corners for images */
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: transform 0.3s ease;
}

.research-page .research-area-card:hover img {
    transform: scale(1.03); /* Slightly enlarge image on hover */
}


.research-page .research-area-card h3 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.research-page .research-area-card p {
    font-size: 1rem;
    color: #555;
    flex-grow: 1; /* Allows text to take up available space */
    margin-bottom: 1.5rem; /* Space before button */
}

.research-page .research-area-card .keywords {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Project Item Styling */
.research-page .current-projects-list .project-item {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.research-page .current-projects-list .project-item h4 {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.research-page .current-projects-list .project-icon {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.research-page .current-projects-list .project-type {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.research-page .current-projects-list .project-progress {
    margin-top: 1rem;
    margin-bottom: 0.8rem;
}

.research-page .current-projects-list .progress-bar-container {
    background-color: #e9ecef;
    border-radius: 5px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.research-page .current-projects-list .progress-bar {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 5px;
    width: 0%; /* Will be set by JS */
    transition: width 0.5s ease-out;
}

.research-page .current-projects-list .progress-text {
    font-size: 0.85rem;
    color: #666;
    display: block;
    text-align: right;
}

.research-page .current-projects-list .project-team {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
}

.collaborator-map-placeholder {
    text-align: center;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--shadow-light);
    border: 1px solid var(--border-color);
}

/* Publications Page */
.publications-list-page .filter-controls,
.news-archive-page .filter-controls {
    text-align: center;
    margin-bottom: 2rem;
}

.publications-list-page .filter-controls label,
.news-archive-page .filter-controls label {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.publications-list-page .filter-controls select,
.news-archive-page .filter-controls select {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--card-background);
    font-size: 1rem;
    color: var(--text-color-dark);
    appearance: none; /* Remove default arrow */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230056B3%22%20d%3D%22M287%2C197.3L159.2%2C69.5c-3.2-3.2-8.3-3.2-11.5%2C0L5.4%2C197.3c-3.2%2C3.2-3.2%2C8.3%2C0%2C11.5l15.3%2C15.3c3.2%2C3.2%2C8.3%2C3.2%2C11.5%2C0l110-110l110%2C110c3.2%2C3.2%2C8.3%2C3.2%2C11.5%2C0l15.3-15.3C290.2%2C205.6%2C290.2%2C200.5%2C287%2C197.3z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 0.65rem auto;
    cursor: pointer;
    min-width: 150px;
}

.publications-list-page .publication-items .publication-item {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 10px var(--shadow-light);
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publications-list-page .publication-items .publication-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px var(--shadow-medium);
}

.publications-list-page .publication-items .publication-item h3 {
    font-size: 1.35rem;
    margin-top: 0;
    margin-bottom: 0.6rem;
    color: var(--primary-color);
}

.publications-list-page .publication-items .publication-item .authors {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.4rem;
}

.publications-list-page .publication-items .publication-item .journal {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}

/* Group Page (repurposed for Faculty.php) */
.group-page .group-leader-photo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--secondary-color);
    margin-bottom: 1rem;
}

.group-page .member-card, .box { /* Apply member-card styles to .box */
    text-align: center;
    padding: 1.5rem;
}

.group-page .member-photo, .box img { /* Apply member-photo styles to .box img */
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.8rem;
    border: 2px solid var(--border-color);
}

.group-page .member-card h4, .box h3 { /* Apply member-card h4 styles to .box h3 */
    font-size: 1.2rem;
    margin: 0.5rem 0 0.3rem 0;
    color: var(--primary-color);
}

.group-page .member-role, .box p { /* Apply member-role styles to .box p */
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.group-page .member-research {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}

.group-page .member-social {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.group-page .member-social a {
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.group-page .member-social a:hover {
    color: var(--primary-color);
}

.group-page .alumni-list {
    margin-top: 2rem;
    padding: 1.5rem;
}

.group-page .alumni-list ul {
    list-style: none;
    padding: 0;
}

.group-page .alumni-list li {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #444;
}

.group-page .alumni-list li strong {
    color: var(--primary-color);
}

/* News Archive Page */
.news-archive-page .news-items-list .news-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 10px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-archive-page .news-items-list .news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px var(--shadow-medium);
}

.news-archive-page .news-thumbnail img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px var(--shadow-light);
}

.news-archive-page .news-content {
    flex-grow: 1;
}

.news-archive-page .news-date {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.4rem;
}

.news-archive-page .news-content h3 {
    font-size: 1.3rem;
    margin: 0 0 0.6rem 0;
    color: var(--primary-color);
}

.news-archive-page .news-content p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.8rem;
}

#load-more-news {
    margin-top: 1.5rem;
}

/* Contact Page (from personal site) */
.contact-page .contact-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-page .contact-info-card,
.contact-page .contact-form-card {
    padding: 2rem;
}

.contact-page .contact-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-page .contact-info-card li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #444;
}

.contact-page .contact-info-card .contact-icon {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-right: 0.8rem;
    flex-shrink: 0;
    padding-top: 3px;
}

.contact-page .contact-info-card a {
    word-break: break-all; /* Ensures long emails wrap */
}

.contact-page .contact-social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.2rem;
    justify-content: center;
}

.contact-page .contact-social-links a {
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.contact-page .contact-social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-page .contact-form-card .form-group {
    margin-bottom: 1.2rem;
}

.contact-page .contact-form-card label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-page .contact-form-card input[type="text"],
.contact-page .contact-form-card input[type="email"],
.contact-page .contact-form-card textarea {
    width: calc(100% - 20px);
    padding: 0.8rem 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-inter);
    font-size: 1rem;
    color: var(--text-color-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-page .contact-form-card input:focus,
.contact-page .contact-form-card textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.contact-page .contact-form-card textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-page .contact-form-card .error-message {
    color: #dc3545; /* Red for errors */
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block;
}

.contact-page .contact-form-card .form-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-page .contact-form-card .form-status.show {
    opacity: 1;
    visibility: visible;
}

.contact-page .contact-form-card .form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-page .contact-form-card .form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact Section from contacts.php */
.contact-content-section {
    padding: 4rem 0;
}

.contact-content-section .section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-content-section .section-title h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.contact-content-section .section-title hr {
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    border: none;
    margin: 0.5rem auto 1.5rem auto;
    border-radius: 2px;
}

.contact-content-section .section-title p {
    font-size: 1.1rem;
    color: #555;
}

.contact-content-section .cs-text {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--shadow-light);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.contact-content-section .ct-address span {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-content-section .ct-address p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}

.contact-content-section .ct-address p b {
    color: var(--secondary-color);
}

.contact-content-section .cc-map iframe {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--shadow-light);
}

/* Project Detail and Research Area Detail Pages */
.project-detail-page .project-content,
.research-area-detail-page .area-content {
    padding: 2.5rem;
}

.project-detail-page h3,
.research-area-detail-page h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.project-detail-page p,
.research-area-detail-page p,
.project-detail-page li,
.research-area-detail-page li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 0.8rem;
}

.project-detail-page ul,
.research-area-detail-page ul {
    list-style: disc;
    margin-left: 1.5rem;
    padding-left: 0;
}

.project-detail-page .publications-list-small,
.research-area-detail-page .publications-list-small {
    margin-top: 1.5rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 1.5rem;
}

.project-detail-page .publication-item-small,
.research-area-detail-page .publication-item-small {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dotted #eee;
}

.project-detail-page .publication-item-small:last-child,
.research-area-detail-page .publication-item-small:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.project-detail-page .publication-item-small h4,
.research-area-detail-page .publication-item-small h4 {
    font-size: 1.15rem;
    margin: 0 0 0.3rem 0;
    border-bottom: none;
    padding-bottom: 0;
}

.project-detail-page .publication-item-small p,
.research-area-detail-page .publication-item-small p {
    font-size: 0.9rem;
    margin: 0;
    color: #666;
}

.visualization-placeholder {
    background-color: #f0f0f0;
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    color: #888;
    font-style: italic;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

/* Privacy Policy Page */
.privacy-policy-page .policy-content {
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.privacy-policy-page .policy-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-policy-page .policy-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
    text-align: justify;
}

.privacy-policy-page .policy-content ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.privacy-policy-page .policy-content li {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.privacy-policy-page .last-updated {
    text-align: right;
    font-size: 0.85rem;
    color: #777;
    margin-top: 2rem;
}

/* Styles for PHP pages (Faculty, News, Positions, index main content) */
.home-about-section {
    padding: 4rem 0;
}

.home-about-section .ha-text {
    text-align: center;
}

.home-about-section .ha-text h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.home-about-section .ha-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* Faculty page specific styles */
.box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.box {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--shadow-light);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.box img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--secondary-color);
}

.box h3 {
    font-size: 1.3rem;
    margin: 0.5rem 0 0.3rem 0;
    color: var(--primary-color);
}

.box p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1; /* Allows text to take up available space */
}

/* News and Positions pages specific styles */
.news, .positions {
    padding: 4rem 0;
}

.news .ha-text, .positions .ha-text {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--shadow-light);
    padding: 2rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.news .ha-text h2, .positions .ha-text h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.news .ha-text hr, .positions .ha-text hr {
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    border: none;
    margin: 0.5rem auto 1.5rem auto;
    border-radius: 2px;
}

.news .ha-text p, .positions .ha-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    text-align: justify;
    margin-bottom: 1rem;
}

.news .ha-text ul, .positions .ha-text ul {
    list-style: disc;
    margin-left: 2rem;
    padding-left: 0;
}

.news .ha-text li, .positions .ha-text li {
    font-size: 1rem;
    color: #444;
    margin-bottom: 0.8rem;
}

.news .ha-text li b, .positions .ha-text li b {
    color: var(--secondary-color);
}

/* Carousel styles from banner.php */
.carousel-inner img {
    width: 70%;
    height: 75vh;
    font-family: var(--font-work-sans, "Work Sans", sans-serif); /* Fallback for Work Sans */
    -webkit-font-smoothing: antialiased;
    font-smooth: antialiased;
    margin-left: 210px; /* Adjust as needed for responsiveness */
    object-fit: cover; /* Ensure images cover the area */
    border-radius: 12px; /* Consistent rounded corners */
    box-shadow: 0 8px 20px var(--shadow-medium);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-nav .nav-links {
        gap: 1rem;
    }
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .hero-text {
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .carousel-inner img {
        width: 90%;
        margin-left: 5%;
        height: 60vh;
    }
}

@media (max-width: 768px) {
    .main-nav .nav-links {
        display: none; /* Hide desktop nav links */
    }
    .main-nav .menu-toggle {
        display: block; /* Show mobile menu toggle */
    }
    .hero {
        padding: 4rem 0;
    }
    .hero-photo {
        width: 200px;
        height: 200px;
    }
    .hero-text h1 {
        font-size: 2.8rem;
    }
    .hero-text .subheading {
        font-size: 1.2rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    section {
        padding: 3rem 0;
    }
    .intro-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .cards-grid, .news-items-grid, .research-areas-grid, .group-members-grid, .contact-content-grid, .box-container {
        grid-template-columns: 1fr; /* Stack columns on small screens */
    }
    .main-footer .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .main-footer .footer-social-links {
        justify-content: center;
    }
    .news-archive-page .news-items-list .news-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .news-archive-page .news-thumbnail {
        margin-bottom: 1rem;
    }
    .news-archive-page .news-content h3,
    .news-archive-page .news-content p {
        text-align: center;
    }
    .carousel-inner img {
        width: 100%;
        margin-left: 0;
        height: 50vh;
    }
    .contact-content-section .cc-map iframe {
        height: 400px; /* Adjust map height for mobile */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-text .subheading {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    .main-nav .logo {
        font-size: 1.5rem;
    }
    .mobile-menu-overlay {
        width: 100%; /* Full width overlay on very small screens */
        right: -100%;
    }
    #page-wrapper.menu-open {
        transform: translateX(-100%);
    }
    .carousel-inner img {
        height: 40vh;
    }
}

/* New styles for Notifications Page */
.notifications-page .notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Space between notification items */
    margin-top: 2rem;
}

.notifications-page .notification-item {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 10px var(--shadow-light);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex; /* Use flex for content alignment */
    align-items: flex-start; /* Align content to the top */
}

.notifications-page .notification-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px var(--shadow-medium);
}

.notifications-page .notification-content {
    flex-grow: 1;
}

.notifications-page .notification-content h4 {
    font-size: 1.35rem;
    margin-top: 0;
    margin-bottom: 0.6rem;
    color: var(--primary-color);
}

.notifications-page .notification-date {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.8rem;
}

.notifications-page .notification-content p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
}

.notifications-page .read-more {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.notifications-page .read-more:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}
/* General Body and Typography (relevant for all pages including Announcements) */
:root {
    --primary-color: #0056B3; /* Dark Blue */
    --secondary-color: #007BFF; /* Brighter Blue */
    --accent-color: #28A745; /* Green for success/highlights */
    --text-color-dark: #333;
    --text-color-light: #f4f4f4;
    --background-light: #f8f9fa;
    --background-dark: #343a40;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-strong: rgba(0, 0, 0, 0.25);
    --font-inter: 'Inter', sans-serif;
    --font-lora: 'Lora', serif;
    --spacing-unit: 1rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-inter);
    line-height: 1.6;
    color: var(--text-color-dark);
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}

/* Container for content width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-lora);
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Links */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    font-family: var(--font-inter);
    font-size: 1rem;
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px var(--shadow-light);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-medium);
}

/* Card Style */
.card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--shadow-light);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

/* Section Styling */
section {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.intro-text {
    font-size: 1.15rem;
    text-align: justify;
    max-width: 800px;
    margin: 1rem auto 3rem auto;
    color: #555;
    line-height: 1.7;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-title hr {
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    border: none;
    margin: 0.5rem auto 1.5rem auto;
    border-radius: 2px;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* Hero Section (used for page headers) */
.hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Optimal height for most screens */
    min-height: 500px; /* Minimum height for smaller screens */
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-light);
    text-align: center;
    overflow: hidden; /* Hide overflow from animations */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row; /* Changed to row for hero-photo and text */
    align-items: center;
    gap: 3rem;
    max-width: 1000px; /* Limit content width */
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3); /* Slightly darker background for content block */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(5px); /* For Safari */
}

.hero-content h1 {
    color: var(--text-color-light);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Text shadow for readability */
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Announcements Page Specific Styles */
.announcements-page .announcement-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Increased space between items */
    margin-top: 2rem;
}

.announcements-page .announcement-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 10px var(--shadow-light);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--secondary-color); /* Added distinct left border */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; /* Smooth transition for border */
}

.announcements-page .announcement-item:hover {
    transform: translateY(-5px); /* More pronounced lift on hover */
    box-shadow: 0 10px 25px var(--shadow-medium); /* Stronger shadow on hover */
    border-left-color: var(--primary-color); /* Change border color on hover */
}

.announcements-page .announcement-thumbnail img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px var(--shadow-light);
}

.announcements-page .announcement-content {
    flex-grow: 1;
}

.announcements-page .announcement-date {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.4rem;
    font-weight: 500; /* Slightly bolder date */
}

.announcements-page .announcement-content h3 {
    font-size: 1.3rem;
    margin: 0 0 0.6rem 0;
    color: var(--primary-color);
    font-weight: 600; /* Bolder title */
}

.announcements-page .announcement-content p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.8rem;
    line-height: 1.6; /* Improved line height for readability */
}

.announcements-page .read-more {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.announcements-page .read-more:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

#load-more-announcements {
    margin-top: 1.5rem;
}

/* Responsive Adjustments (relevant for Announcements page) */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 1.5rem; /* Adjust padding for smaller screens */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 60vh; /* Adjust height for tablet */
        min-height: 450px;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    section {
        padding: 3rem 0;
    }
    .intro-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .announcements-page .announcement-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .announcements-page .announcement-thumbnail {
        margin-bottom: 1rem;
    }
    .announcements-page .announcement-content h3,
    .announcements-page .announcement-content p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }
    .hero-section {
        height: 50vh; /* Further adjust height for small phones */
        min-height: 350px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}
/* Contact Page (from personal site) */
.contact-page .contact-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-page .contact-info-card,
.contact-page .contact-form-card {
    padding: 2rem;
}

.contact-page .contact-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-page .contact-info-card li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #444;
}

.contact-page .contact-info-card .contact-icon {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-right: 0.8rem;
    flex-shrink: 0;
    padding-top: 3px;
}

.contact-page .contact-info-card a {
    word-break: break-all; /* Ensures long emails wrap */
}

.contact-page .contact-social-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.contact-page .contact-social-links a {
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.contact-page .contact-social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-page .contact-form-card .form-group {
    margin-bottom: 1.2rem;
}

.contact-page .contact-form-card label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-page .contact-form-card input[type="text"],
.contact-page .contact-form-card input[type="email"],
.contact-page .contact-form-card textarea {
    width: calc(100% - 20px);
    padding: 0.8rem 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-inter);
    font-size: 1rem;
    color: var(--text-color-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-page .contact-form-card input:focus,
.contact-page .contact-form-card textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.contact-page .contact-form-card textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-page .contact-form-card .error-message {
    color: #dc3545; /* Red for errors */
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block;
}

.contact-page .contact-form-card .form-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-page .contact-form-card .form-status.show {
    opacity: 1;
    visibility: visible;
}

.contact-page .contact-form-card .form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-page .contact-form-card .form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact Content Section */
.contact-content-section {
    padding: 5rem 0; /* Increased vertical padding */
    background-color: var(--background-light);
    width: 100%;
}

.contact-content-section .contact-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-unit);
}

.contact-content-section .card {
    padding: 2.5rem;
    border-radius: 15px; /* More rounded corners for contact cards */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); /* Stronger shadow */
}

.contact-content-section .section-title-small {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.contact-content-section .section-title-small::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0.5rem auto 1.5rem auto;
    border-radius: 2px;
}

.contact-content-section .intro-text-small {
    font-size: 1rem;
    text-align: center;
    color: #555;
    margin-bottom: 2rem;
}

.contact-content-section .cs-text {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.contact-content-section .cs-text:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-content-section .ct-address {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.contact-content-section .ct-address span {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-content-section .ct-address p {
    margin: 0;
    padding: 0;
}

.contact-content-section .ct-address p b {
    color: var(--secondary-color);
}

.contact-content-section .ct-address a {
    word-break: break-all;
    color: var(--secondary-color); /* Ensure links in address are themed */
}
.contact-content-section .ct-address a:hover {
    text-decoration: underline;
}

.contact-content-section .contact-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-content-section .contact-social-links a {
    color: var(--primary-color);
    font-size: 2rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.contact-content-section .contact-social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px);
}

.contact-content-section .form-group {
    margin-bottom: 1.5rem;
}

.contact-content-section .form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.contact-content-section .form-group input[type="text"],
.contact-content-section .form-group input[type="email"],
.contact-content-section .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-inter);
    font-size: 1rem;
    color: var(--text-color-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box; /* Include padding in width calculation */
}

.contact-content-section .form-group input:focus,
.contact-content-section .form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.contact-content-section .form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-content-section .form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-content-section .form-status.show {
    opacity: 1;
    visibility: visible;
}

.contact-content-section .form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-content-section .form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-content-section .cc-map {
    border-radius: 15px; /* More rounded corners for map card */
    overflow: hidden; /* Ensures map corners are rounded */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); /* Stronger shadow */
    position: relative;
    padding: 0; /* Remove card padding as iframe takes full space */
}

.contact-content-section .cc-map h2 {
    padding: 1.5rem 0; /* Add padding for title within map card */
    margin-bottom: 0; /* Remove default margin */
}

.contact-content-section .cc-map iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block; /* Remove extra space below iframe */
}

.contact-content-section .map-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-color-light);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none; /* Allow clicks to pass through to map */
}

.contact-content-section .cc-map:hover .map-hover {
    opacity: 1;
    visibility: visible;
}

.contact-content-section .map-hover i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.contact-content-section .map-hover h5 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-color-light);
}

.contact-content-section .map-hover p {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}
/* QST 2025
/* Footer Logo Styling */
.main-footer .footer-logo {
    max-width: 150px; /* Desired width */
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 1rem; /* Space below the logo */
    display: block; /* Ensures it takes up full width for centering */
    margin-left: auto; /* Center the logo within its flex item/div */
    margin-right: auto;
    border-radius: 5px; /* Optional: subtle rounding */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .main-footer .footer-logo {
        max-width: 120px; /* Smaller on tablets/mobiles */
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 480px) {
    .main-footer .footer-logo {
        max-width: 100px; /* Even smaller on small mobile */
    }
}
/*faq */


/* FAQ Page Specific Styles - Further Enhancements */
.faq-page .faq-item {
    background: linear-gradient(145deg, #fefeff, #eef3f7); /* Lighter, more vibrant gradient */
    border: 1px solid rgba(0, 74, 153, 0.1); /* Subtle border from primary color */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07); /* Slightly softer shadow */
    margin-bottom: 1.5rem; /* More space between items */
    transition: all 0.3s ease;
}

.faq-page .faq-item:hover {
    transform: translateY(-7px); /* More pronounced lift */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
    border-color: var(--secondary-color); /* Highlight border on hover */
}

.faq-page .faq-question-header {
    background-color: transparent; /* Make background transparent to show item gradient */
    color: var(--primary-color);
    padding: 1.2rem 1.8rem; /* Increased padding */
    border-bottom: 1px solid var(--border-color);
    font-weight: 700; /* Even bolder question text */
}

.faq-page .faq-question-header:hover,
.faq-page .faq-question-header.active {
    background-color: rgba(0, 123, 255, 0.05); /* Very light blue highlight */
    color: var(--primary-color); /* Keep primary color for active/hover */
    border-bottom-color: var(--secondary-color); /* Highlight border on hover */
}

.faq-page .faq-question-header h3 {
    font-size: 1.35rem; /* Larger question text */
}

.faq-page .faq-icon {
    font-size: 1.2rem; /* Slightly larger icon */
    color: var(--secondary-color);
}

.faq-page .faq-question-header.active .faq-icon {
    color: var(--primary-color);
}

.faq-page .faq-answer-content {
    background-color: #fcfdff; /* Consistent light background for answers */
    padding: 0 1.8rem; /* Consistent padding with header */
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out; /* Slower transition for smoothness */
}

.faq-page .faq-answer-content.show {
    padding: 1.8rem; /* Full padding when shown */
    border-top: 1px dashed rgba(0, 74, 153, 0.1); /* Subtle dashed border */
}

.faq-page .faq-answer-content p {
    font-size: 1.05rem; /* Slightly larger answer text */
    line-height: 1.8; /* Improved line height for readability */
}

/* Call-to-Action section specific button styling */
.text-center .primary-btn,
.text-center .secondary-btn {
    padding: 1rem 2.5rem; /* Larger buttons for CTA */
    font-size: 1.1rem;
    border-radius: 50px; /* Pill shape */
    margin: 0.5rem; /* Space between buttons */
}


/* Section Styling */
section {
    padding: 5rem 0; /* Increased vertical padding for sections */
    position: relative;
    z-index: 1;
}
/*
section:nth-of-type(odd) {
    background-color: #e9f5ff;
}
section:nth-of-type(even) {
    background-color: #f9fafb; /* Light blue tint for alternating sections */
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    margin: 0.5rem auto 0 auto;
    border-radius: 2px;
}

.section-subheading {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-subheading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0.5rem auto 0 auto;
    border-radius: 2px;
}

.intro-text {
    font-size: 1.15rem;
    text-align: center;
    max-width: 800px;
    margin: 1rem auto 3rem auto;
    color: #555;
    line-height: 1.7;
}

.text-center {
    text-align: center;
}

.mt-5 { /* Adjusted from mt-4 to mt-5 for more spacing */
    margin-top: 3rem;
}

/* Navigation Bar */
.header-section { /* Renamed from .main-nav for consistency with header.php */
    background: linear-gradient(to right, #B3E5FC, #81D4FA); /* Vibrant light blue gradient */
    padding: 0.8rem 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Enhanced shadow for a lifted look */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-section .container {
    max-width: 1800px; /* Increased max-width for a wider nav bar */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-section .logo {
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.header-section .logo img {
    max-width: 350px; /* Adjusted logo size */
    height: auto;
    display: block;
    transition: transform 0.2s ease;
}

.header-section .logo img:hover {
    transform: scale(1.02);
}

.header-section .nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-inter);
}

.header-section .nav-links li {
    position: relative;
    margin: 0 1rem;
}

.header-section .nav-links li a {
    color: #004a99; /* Deeper blue for text for good contrast */
    font-weight: 600; /* Slightly bolder text */
    font-size: 1.1rem; /* Increased font size */
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease; /* Added transform for hover effect */
    display: block;
}

.header-section .nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.header-section .nav-links li a:hover {
    color: var(--secondary-color); /* Still use secondary for hover */
    transform: translateY(-2px); /* Subtle lift on hover */
}

.header-section .nav-links li a.active {
    color: var(--secondary-color); /* Active link color */
}

.header-section .nav-links li a:hover::after,
.header-section .nav-links li a.active::after {
    width: 100%;
}

/* Dropdown Menu */
.header-section .nav-links .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--card-background); /* White background for dropdown */
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem; /* Space between parent and dropdown */
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.header-section .nav-links li.dropdown-parent:hover > .dropdown { /* Use dropdown-parent class */
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-section .nav-links .dropdown li {
    margin: 0;
}

.header-section .nav-links .dropdown li a {
    color: var(--text-color-dark); /* Dark text for dropdown items */
    padding: 10px 15px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.header-section .nav-links .dropdown li a:hover {
    background-color: var(--background-light);
    color: var(--secondary-color);
}
.header-section .nav-links .dropdown li a::after {
    display: none; /* No underline for dropdown items */
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--primary-color); /* Darker color for toggle on light background */
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Mobile Menu Overlay */
#mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -250px; /* Hidden off-screen */
    width: 250px;
    height: 100%;
    background-color: #0056b3; /* Slightly darker blue for mobile overlay */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
}

#mobile-menu-overlay.open {
    right: 0;
}

.close-menu {
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 2.5rem;
    align-self: flex-end;
    margin-right: 1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-menu:hover {
    color: var(--secondary-color);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.8rem;
}

.mobile-nav-links a {
    color: var(--text-color-light);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 1.1rem;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    text-decoration: none;
}
/* Hero Section (General for all pages with hero banner) */
.hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Optimal height for most screens */
    min-height: 500px; /* Minimum height for smaller screens */
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-light);
    text-align: center;
    overflow: hidden; /* Hide overflow from animations */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .hero-content {
    display: flex;
    flex-direction: column; /* Default to column for general hero */
    align-items: center;
    gap: 1.5rem;
    max-width: 1000px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero-section .hero-content h1 {
    color: var(--text-color-light);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-section .hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Home Page Specific Hero Section */
.hero-home { /* New class for the home page hero */
    height: 70vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #007BFF 100%); /* Gradient background */
    animation: fadeInBackground 1.5s ease-out; /* Animation for the home page hero */
}

.hero-home::before { /* Animated shapes for home page hero */
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(45deg);
    animation: float 10s ease-in-out infinite;
    z-index: 1;
}

.hero-home::after { /* Animated shapes for home page hero */
    content: '';
    position: absolute;
    bottom: -70px;
    right: -70px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transform: rotate(-30deg);
    animation: float 12s ease-in-out infinite reverse;
    z-index: 1;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(10px, 20px); }
    100% { transform: translate(0, 0); }
}

@keyframes fadeInBackground {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-home .hero-content {
    max-width: 700px; /* Adjusted max-width for smaller content area */
    margin: 0 auto;
    background: none; /* No background for content block on home hero */
    box-shadow: none; /* No shadow for content block on home hero */
    backdrop-filter: none; /* No blur for content block on home hero */
    -webkit-backdrop-filter: none;
}

.hero-home .hero-text {
    text-align: center;
}

.hero-home .hero-text h1 {
    font-size: 4.5rem; /* Larger font size */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
}

.hero-home .hero-text .subheading {
    font-size: 1.6rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

.hero-home .hero-text p {
    font-size: 1.1rem;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin: 0 auto 1.5rem auto;
}

.hero-home .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0;
}

.hero-home .hero-buttons .btn { /* Specific button styling for home hero */
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px; /* Pill shape */
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.hero-home .hero-buttons .btn.primary {
    background-color: var(--accent-color); /* Use accent color for primary hero button */
    color: var(--text-color-light);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.4);
}

.hero-home .hero-buttons .btn.primary:hover {
    background-color: #218838; /* Darker green */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.6);
}

.hero-home .hero-buttons .btn.secondary {
    border-color: var(--text-color-light);
    color: var(--text-color-light);
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent background */
}

.hero-home .hero-buttons .btn.secondary:hover {
    background-color: var(--text-color-light);
    color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3);
}


/* About Us Section */
.about-me .about-content {
    display: grid; /* Use grid for better layout */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.about-me .about-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: justify;
}

.about-me .about-content ul {
    list-style: none; /* Remove default bullet */
    padding-left: 0;
}

.about-me .about-content ul li {
    position: relative;
    padding-left: 1.8rem; /* Space for custom icon */
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
}

.about-me .about-content ul li i {
    position: absolute;
    left: 0;
    top: 5px; /* Adjust vertical alignment */
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Section Divider */
.section-divider {
    width: 80%;
    max-width: 800px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 4rem auto;
}

/* Research Areas Section (for index.php and research.php) */
.research-areas-grid .research-area-card {
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none; /* Remove underline from link */
    color: inherit; /* Inherit text color */
    position: relative;
    height: 100%; /* Ensure cards are same height in grid */
}

.research-areas-grid .research-area-card:hover {
    text-decoration: none; /* Ensure no underline on hover */
}

.research-areas-grid .research-area-card .research-icon {
    font-size: 4rem; /* Larger icons */
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.research-areas-grid .research-area-card:hover .research-icon {
    transform: translateY(-5px) scale(1.1); /* Subtle bounce and scale on hover */
}

.research-areas-grid .research-area-card h3 {
    font-size: 1.8rem;
    margin-top: 0.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.research-areas-grid .research-area-card p {
    font-size: 1rem;
    color: #555;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.research-areas-grid .research-area-card .keywords {
    font-size: 0.85rem;
    color: #888;
    margin-top: 1rem;
    font-style: italic;
}

/* Latest News Section (Homepage) */
.latest-news .news-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
}

.latest-news .news-thumbnail img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px var(--shadow-light);
}

.latest-news .news-content {
    flex-grow: 1;
}

.latest-news .news-date {
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.3rem;
}

.latest-news .news-content h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.latest-news .news-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.8rem;
}

/* Events & Engagements Section */
.events-engagements .event-item {
    padding: 1.5rem;
}

.events-engagements .event-item h4 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.events-engagements .event-icon {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.events-engagements .event-date,
.events-engagements .event-location {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.4rem;
}

.events-engagements .event-description {
    font-size: 1rem;
    color: #555;
    margin-top: 0.8rem;
    margin-bottom: 1rem;
}

/* Footer */
.main-footer {
    background: linear-gradient(to right, #81D4FA, #4FC3F7); /* Slightly darker light blue gradient */
    color: #003366; /* Darker text for better contrast */
    padding: 3rem 0;
    margin-top: auto; /* Pushes footer to the bottom */
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.2); /* Slightly stronger shadow */
}

.main-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 51, 102, 0.15); /* Adjusted border color for new background */
}

.main-footer h3 {
    color: #003366; /* Use darker primary color for footer headings */
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.main-footer p, .main-footer li {
    font-size: 0.95rem;
    color: rgba(0, 51, 102, 0.85); /* Slightly transparent darker primary color for text */
    margin-bottom: 0.5rem;
}

.main-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-footer ul li a {
    color: rgba(0, 51, 102, 0.85); /* Slightly transparent darker primary color for links */
    transition: color 0.2s ease;
}

.main-footer ul li a:hover {
    color: #004a99; /* Primary color on hover */
    text-decoration: underline;
}

.main-footer .footer-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.main-footer .footer-social-links a {
    color: #003366; /* Darker primary color for social icons */
    font-size: 1.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-footer .footer-social-links a:hover {
    color: var(--secondary-color); /* Secondary color on hover */
    transform: translateY(-3px);
}

.main-footer .footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(0, 51, 102, 0.7); /* Lighter darker primary color for copyright */
}

/* Back to Top Button */
#back-to-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--shadow-medium);
    transition: opacity 0.3s ease, background-color 0.3s ease;
    opacity: 0;
}

#back-to-top:hover {
    background-color: var(--secondary-color);
}

/* Specific Page Styles */

/* Research Page */
.research-page .research-areas-grid { /* Targeting specifically for research page */
    margin-bottom: 3rem; /* Add space below the research areas grid */
}

.research-page .research-area-card img {
    max-width: 100%;
    height: 150px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px; /* Rounded corners for images */
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: transform 0.3s ease;
}

.research-page .research-area-card:hover img {
    transform: scale(1.03); /* Slightly enlarge image on hover */
}

/* Project Item Styling */
.research-page .current-projects-list {
    display: grid; /* Ensure it's a grid container */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Example grid for projects */
    gap: 1.5rem;
    margin-top: 2rem; /* Ensure space above the projects list */
    margin-bottom: 3rem; /* Add space below the projects list */
}

.research-page .current-projects-list .project-item {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.research-page .current-projects-list .project-item h4 {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.research-page .current-projects-list .project-icon {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.research-page .current-projects-list .project-type {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.research-page .current-projects-list .progress-section {
    margin-top: 1rem;
    margin-bottom: 0.8rem;
}

.research-page .current-projects-list .progress-text {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-align: right;
}

.research-page .current-projects-list .progress-bar-container {
    background-color: #e9ecef;
    border-radius: 5px;
    height: 8px;
    overflow: hidden;
}

.research-page .current-projects-list .progress-bar {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 5px;
    width: 0%; /* Will be set by JS */
    transition: width 0.5s ease-out;
}

.research-page .current-projects-list .project-team {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
}

.collaborator-map-placeholder {
    text-align: center;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--shadow-light);
    border: 1px solid var(--border-color);
}

/* Publications Page */
.publications-list-page .filter-controls {
    text-align: center;
    margin-bottom: 2rem;
}

.publications-list-page .filter-controls label {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.publications-list-page .filter-controls .styled-select {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--card-background);
    font-size: 1rem;
    color: var(--text-color-dark);
    appearance: none; /* Remove default arrow */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230056B3%22%20d%3D%22M287%2C197.3L159.2%2C69.5c-3.2-3.2-8.3-3.2-11.5%2C0L5.4%2C197.3c-3.2%2C3.2-3.2%2C8.3%2C0%2C11.5l15.3%2C15.3c3.2%2C3.2%2C8.3%2C3.2%2C11.5%2C0l110-110l110%2C110c3.2%2C3.2%2C8.3%2C3.2%2C11.5%2C0l15.3-15.3C290.2%2C205.6%2C290.2%2C200.5%2C287%2C197.3z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 0.65rem auto;
    cursor: pointer;
    min-width: 150px;
    box-shadow: 0 2px 5px var(--shadow-light);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.publications-list-page .filter-controls .styled-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.publications-list-page .publication-items.publications-list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Space between list items */
}

.publications-list-page .publication-items.publications-list-view .publication-item {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 10px var(--shadow-light);
    padding: 1.5rem;
    margin-bottom: 0; /* Remove extra margin from card */
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.publications-list-page .publication-items.publications-list-view .publication-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px var(--shadow-medium);
}

.publications-list-page .publication-items.publications-list-view .publication-item h3 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.publications-list-page .publication-items.publications-list-view .publication-item .authors,
.publications-list-page .publication-items.publications-list-view .publication-item .journal {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.publications-list-page .publication-items.publications-list-view .publication-item .authors i,
.publications-list-page .publication-items.publications-list-view .publication-item .journal i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.publications-list-page .publication-items.publications-list-view .publication-item .btn.link-btn {
    margin-top: 0.8rem;
    align-self: flex-start; /* Align button to the right */
}


/* Group Page (repurposed for Faculty.php) */
.group-page .group-leader-photo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--secondary-color);
    margin-bottom: 1rem;
}

.group-page .member-card, .box { /* Apply member-card styles to .box */
    text-align: center;
    padding: 1.5rem;
}

.group-page .member-photo, .box img { /* Apply member-photo styles to .box img */
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom:  1rem;
    border: 3px solid var(--secondary-color);
}

.group-page .member-card h4, .box h3 { /* Apply member-card h4 styles to .box h3 */
    font-size: 1.2rem;
    margin: 0.5rem 0 0.3rem 0;
    color: var(--primary-color);
}

.group-page .member-role, .box p { /* Apply member-role styles to .box p */
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.group-page .member-research {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}

.group-page .member-social {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.group-page .member-social a {
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.group-page .member-social a:hover {
    color: var(--primary-color);
}

.group-page .alumni-list {
    margin-top: 2rem;
    padding: 1.5rem;
}

.group-page .alumni-list ul {
    list-style: none;
    padding: 0;
}

.group-page .alumni-list li {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #444;
}

.group-page .alumni-list li strong {
    color: var(--primary-color);
}

/* News Archive Page (renamed to Announcements) */
.announcements-page .announcement-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Increased space between items */
    margin-top: 2rem;
}

.announcements-page .announcement-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 10px var(--shadow-light);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--secondary-color); /* Added distinct left border */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; /* Smooth transition for border */
}

.announcements-page .announcement-item:hover {
    transform: translateY(-5px); /* More pronounced lift on hover */
    box-shadow: 0 10px 25px var(--shadow-medium); /* Stronger shadow on hover */
    border-left-color: var(--primary-color); /* Change border color on hover */
}

.announcements-page .announcement-thumbnail img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px var(--shadow-light);
}

.announcements-page .announcement-content {
    flex-grow: 1;
}

.announcements-page .announcement-date {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.4rem;
    font-weight: 500; /* Slightly bolder date */
}

.announcements-page .announcement-content h3 {
    font-size: 1.3rem;
    margin: 0 0 0.6rem 0;
    color: var(--primary-color);
    font-weight: 600; /* Bolder title */
}

.announcements-page .announcement-content p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.8rem;
    line-height: 1.6; /* Improved line height for readability */
}

.announcements-page .read-more {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.announcements-page .read-more:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

#load-more-announcements {
    margin-top: 1.5rem;
}

/* Contact Page (from personal site) */
.contact-page .contact-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-page .contact-info-card,
.contact-page .contact-form-card {
    padding: 2rem;
}

.contact-page .contact-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-page .contact-info-card li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #444;
}

.contact-page .contact-info-card .contact-icon {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-right: 0.8rem;
    flex-shrink: 0;
    padding-top: 3px;
}

.contact-page .contact-info-card a {
    word-break: break-all; /* Ensures long emails wrap */
}

.contact-page .contact-social-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.contact-page .contact-social-links a {
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.contact-page .contact-social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-page .contact-form-card .form-group {
    margin-bottom: 1.2rem;
}

.contact-page .contact-form-card label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-page .contact-form-card input[type="text"],
.contact-page .contact-form-card input[type="email"],
.contact-page .contact-form-card textarea {
    width: calc(100% - 20px);
    padding: 0.8rem 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-inter);
    font-size: 1rem;
    color: var(--text-color-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-page .contact-form-card input:focus,
.contact-page .contact-form-card textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.contact-page .contact-form-card textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-page .contact-form-card .error-message {
    color: #dc3545; /* Red for errors */
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block;
}

.contact-page .contact-form-card .form-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-page .contact-form-card .form-status.show {
    opacity: 1;
    visibility: visible;
}

.contact-page .contact-form-card .form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-page .contact-form-card .form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact Content Section */
.contact-content-section {
    padding: 5rem 0; /* Increased vertical padding */
    background-color: var(--background-light);
    width: 100%;
}

.contact-content-section .contact-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-unit);
}

.contact-content-section .card {
    padding: 2.5rem;
    border-radius: 15px; /* More rounded corners for contact cards */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); /* Stronger shadow */
}

.contact-content-section .section-title-small {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.contact-content-section .section-title-small::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0.5rem auto 1.5rem auto;
    border-radius: 2px;
}

.contact-content-section .intro-text-small {
    font-size: 1rem;
    text-align: center;
    color: #555;
    margin-bottom: 2rem;
}

.contact-content-section .cs-text {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.contact-content-section .cs-text:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-content-section .ct-address {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.contact-content-section .ct-address span {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-content-section .ct-address p {
    margin: 0;
    padding: 0;
}

.contact-content-section .ct-address p b {
    color: var(--secondary-color);
}

.contact-content-section .ct-address a {
    word-break: break-all;
    color: var(--secondary-color); /* Ensure links in address are themed */
}
.contact-content-section .ct-address a:hover {
    text-decoration: underline;
}

.contact-content-section .contact-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-content-section .contact-social-links a {
    color: var(--primary-color);
    font-size: 2rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.contact-content-section .contact-social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px);
}

.contact-content-section .form-group {
    margin-bottom: 1.5rem;
}

.contact-content-section .form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.contact-content-section .form-group input[type="text"],
.contact-content-section .form-group input[type="email"],
.contact-content-section .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-inter);
    font-size: 1rem;
    color: var(--text-color-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box; /* Include padding in width calculation */
}

.contact-content-section .form-group input:focus,
.contact-content-section .form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.contact-content-section .form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-content-section .form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-content-section .form-status.show {
    opacity: 1;
    visibility: visible;
}

.contact-content-section .form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-content-section .form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-content-section .cc-map {
    border-radius: 15px; /* More rounded corners for map card */
    overflow: hidden; /* Ensures map corners are rounded */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); /* Stronger shadow */
    position: relative;
    padding: 0; /* Remove card padding as iframe takes full space */
}

.contact-content-section .cc-map h2 {
    padding: 1.5rem 0; /* Add padding for title within map card */
    margin-bottom: 0; /* Remove default margin */
}

.contact-content-section .cc-map iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block; /* Remove extra space below iframe */
}

.contact-content-section .map-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-color-light);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none; /* Allow clicks to pass through to map */
}

.contact-content-section .cc-map:hover .map-hover {
    opacity: 1;
    visibility: visible;
}

.contact-content-section .map-hover i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.contact-content-section .map-hover h5 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-color-light);
}

.contact-content-section .map-hover p {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Styles for the Course List Section (courses.php) */
.course-list-section {
    padding: 5rem 0;
    background-color: var(--background-light);
}

.course-list-section .course-table-container {
    overflow-x: auto; /* Enable horizontal scrolling for tables on small screens */
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.course-list-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 0; /* Remove default table margin */
    min-width: 600px; /* Adjusted min-width for a slightly smaller table */
}

.course-list-section th,
.course-list-section td {
    border: 1px solid var(--border-color);
    padding: 0.8rem; /* Reduced padding for smaller cells */
    text-align: left;
    vertical-align: top;
}

.course-list-section th {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap; /* Prevent headers from wrapping */
}

.course-list-section td {
    background-color: #ffffff; /* Pure white for default cells */
    font-size: 0.95rem;
    color: var(--text-color-dark);
}

.course-list-section tr:nth-child(even) td {
    background-color: #f0f8ff; /* A very light, subtle blue for even rows (AliceBlue) */
}

.course-list-section .course-section-header {
    background-color: var(--secondary-color); /* Using secondary color for highlighting */
    color: var(--text-color-light);
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
    padding: 1rem;
    position: sticky; /* Make section headers sticky */
    top: 0; /* Stick to the top of the container */
    z-index: 50; /* Ensure it's above other table rows */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); /* Added text shadow for emphasis */
}

.course-list-section .course-notes {
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments for course table */
@media (max-width: 768px) {
    .course-list-section th,
    .course-list-section td {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    .course-list-section .course-section-header {
        font-size: 1rem;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .course-list-section th,
    .course-list-section td {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    .course-list-section .course-section-header {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
    .course-list-section table {
        min-width: 500px; /* Adjust min-width for very small screens */
    }
}
/* Responsive Video Embeds */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (height / width * 100) */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 2rem auto; /* Center the video */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Specific styles for Faculty.php */
.faculty-members-section .box-container,
.research-scholars-section .box-container {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for larger screens */
    gap: 2rem; /* Adjusted gap for better spacing in 3-column layout */
}

.box {
   
    
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--shadow-light);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.box img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--secondary-color);
}

.box h3 {
    font-size: 1.3rem;
    margin: 0.5rem 0 0.3rem 0;
    color: var(--primary-color);
}

.box p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1; /* Allows text to take up available space */
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.member-social a {
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.member-social a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.alumni-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.alumni-list li {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px var(--shadow-light);
    font-size: 1rem;
    color: #444;
}

/* Adjustments for smaller screens for faculty/scholars grid */
@media (max-width: 1024px) { /* Adjust breakpoint for 3-column to 2-column transition */
    .faculty-members-section .box-container,
    .research-scholars-section .box-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 600px) { /* Adjust breakpoint for 2-column to 1-column transition */
    .faculty-members-section .box-container,
    .research-scholars-section .box-container {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

/* New styles for Notifications Page */
.notifications-page .notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Space between notification items */
    margin-top: 2rem;
}

.notifications-page .notification-item {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 10px var(--shadow-light);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex; /* Use flex for content alignment */
    align-items: flex-start; /* Align content to the top */
}

.notifications-page .notification-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px var(--shadow-medium);
}

.notifications-page .notification-content {
    flex-grow: 1;
}

.notifications-page .notification-content h4 {
    font-size: 1.35rem;
    margin-top: 0;
    margin-bottom: 0.6rem;
    color: var(--primary-color);
}

.notifications-page .notification-date {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.8rem;
}

.notifications-page .notification-content p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
}

.notifications-page .read-more {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.notifications-page .read-more:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* New styles for Project Detail Page */
.project-detail-page .project-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.project-detail-page .project-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow-medium);
    margin-bottom: 1.5rem;
}

.project-detail-page .project-info h2 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-detail-page .project-description-intro {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 2rem auto;
}

.project-detail-page .project-content .card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-detail-page .project-content ul {
    list-style: none; /* Remove default bullet */
    padding-left: 0;
}

.project-detail-page .project-content ul li {
    position: relative;
    padding-left: 1.8rem; /* Space for custom icon */
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
}

.project-detail-page .project-content ul li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.project-detail-page .project-content .team-members-list ul li i {
    color: var(--accent-color); /* Different color for team members */
}

.project-detail-page .project-content .related-publications-list ul li {
    font-size: 0.95rem;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.project-detail-page .project-content .related-publications-list ul li strong {
    flex-basis: 100%;
    font-size: 1.05rem;
    color: var(--primary-color);
}

.project-detail-page .project-content .related-publications-list ul li .journal-info {
    flex-grow: 1;
    color: #777;
    font-style: italic;
}

.project-detail-page .project-content .related-publications-list ul li .btn.link-btn {
    flex-shrink: 0;
    margin-left: auto;
}
/* New styles for Faculty Profile Page */
.member-profile-page .profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 6px 15px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.member-profile-page .profile-photo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--secondary-color);
    box-shadow: 0 0 0 8px rgba(0, 123, 255, 0.1), 0 8px 20px var(--shadow-medium);
    margin-bottom: 1.5rem;
}

.member-profile-page .profile-info h2 {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.member-profile-page .profile-role {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.member-profile-page .profile-contact {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-profile-page .profile-contact i {
    color: var(--secondary-color);
}

.member-profile-page .profile-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.member-profile-page .profile-social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.member-profile-page .profile-social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.member-profile-page .profile-content .card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.member-profile-page .profile-content ul {
    list-style: none;
    padding-left: 0;
}

.member-profile-page .profile-content ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
}

.member-profile-page .profile-content ul li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.member-profile-page .profile-content .selected-publications-list ul li {
    font-size: 0.95rem;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.member-profile-page .profile-content .selected-publications-list ul li strong {
    flex-basis: 100%;
    font-size: 1.05rem;
    color: var(--primary-color);
}

.member-profile-page .profile-content .selected-publications-list ul li .journal-info {
    flex-grow: 1;
    color: #777;
    font-style: italic;
}

.member-profile-page .profile-content .selected-publications-list ul li .btn.link-btn {
    flex-shrink: 0;
    margin-left: auto;
}

/* Responsive adjustments for member profile */
@media (max-width: 768px) {
    .member-profile-page .profile-photo {
        width: 280px;
        height: 280px;
    }
    .member-profile-page .profile-info h2 {
        font-size: 1.8rem;
    }
    .member-profile-page .profile-role {
        font-size: 1rem;
    }
    .member-profile-page .profile-contact {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .member-profile-page .profile-contact i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Responsive Adjustments (General) */
@media (max-width: 992px) {
    .header-section .nav-links {
        gap: 0.8rem;
    }
    .hero-section h1 {
        font-size: 3.5rem;
    }
    .hero-section .hero-subtitle {
        font-size: 1.3rem;
    }
    .hero-home h1 { /* Specific adjustment for home page hero */
        font-size: 3.5rem;
    }
    .hero-home .hero-subtitle { /* Specific adjustment for home page hero */
        font-size: 1.3rem;
    }
    .cards-grid, .research-areas-grid, .news-items-grid { /* Apply to all general grids */
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    /* Faculty page specific: 2 columns on medium screens */
    .faculty-members-section .box-container,
    .research-scholars-section .box-container {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Contact page specific: 2 columns on medium screens */
    .contact-content-section .contact-content-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 960px;
    }
}

@media (max-width: 768px) {
    .hero-section .hero-content {
        max-width: 90%;
    }
    .header-section .nav-links {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .hero-section {
        height: 50vh;
    }
    .hero-section h1 {
        font-size: 2.8rem;
    }
    .hero-section .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-home h1 { /* Specific adjustment for home page hero */
        font-size: 2.8rem;
    }
    .hero-home .hero-subtitle { /* Specific adjustment for home page hero */
        font-size: 1.1rem;
    }
    .hero-home .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-home .hero-buttons .btn {
        width: 80%;
        margin: 0 auto;
    }
    section {
        padding: 3rem 0;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .section-subheading {
        font-size: 1.8rem;
    }
    .intro-text {
        font-size: 1.0rem;
        margin-bottom: 2rem;
    }
    .cards-grid, .research-areas-grid, .news-items-grid {
        grid-template-columns: 1fr; /* Stack columns on small screens */
    }
    /* Faculty page specific: 1 column on small screens */
    .faculty-members-section .box-container,
    .research-scholars-section .box-container {
        grid-template-columns: 1fr;
    }
    /* Contact page specific: 1 column on small screens */
    .contact-content-section .contact-content-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 var(--spacing-unit);
    }
    .contact-content-section .card {
        padding: 2rem;
    }
    .contact-content-section .section-title-small {
        font-size: 1.8rem;
    }
    .contact-content-section .intro-text-small {
        font-size: 0.95rem;
    }
    .contact-content-section .cs-text {
        padding: 0.8rem 0;
    }
    .contact-content-section .ct-address span {
        font-size: 1.05rem;
    }
    .contact-content-section .ct-address p {
        font-size: 0.9rem;
    }
    .contact-content-section .contact-social-links a {
        font-size: 1.5rem;
    }
    .contact-content-section .form-group label {
        font-size: 0.95rem;
    }
    .contact-content-section .form-group input,
    .contact-content-section .form-group textarea {
        padding: 0.7rem 0.8rem;
        font-size: 0.95rem;
    }
    .contact-content-section .cc-map iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section .hero-subtitle {
        font-size: 0.9rem;
    }
    .hero-home h1 { /* Specific adjustment for home page hero */
        font-size: 2.2rem;
    }
    .hero-home .hero-subtitle { /* Specific adjustment for home page hero */
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .header-section .logo img {
        max-width: 150px;
    }
    .mobile-menu-overlay {
        width: 100%;
        right: -100%;
    }
    #page-wrapper.menu-open {
        transform: translateX(-100%);
    }
}

/* FAQ Page Specific Styles */
.faq-page .faq-items-container {
    margin-top: 2rem;
}

.faq-page .faq-item {
    margin-bottom: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden; /* Ensures rounded corners on collapsible content */
    box-shadow: 0 4px 10px var(--shadow-light);
    transition: box-shadow 0.3s ease;
}

.faq-page .faq-item:hover {
    box-shadow: 0 8px 18px var(--shadow-medium);
}

.faq-page .faq-question-header {
    background-color: var(--card-background);
    color: var(--primary-color);
    padding: 1.2rem 1.5rem;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    font-family: var(--font-lora);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-page .faq-question-header:hover,
.faq-page .faq-question-header.active {
    background-color: #f3f7fa; /* Light background on hover/active */
}

.faq-page .faq-question-header h3 {
    margin: 0;
    font-size: 1.2rem; /* Ensure consistent font size */
    color: inherit; /* Inherit color from button */
}

.faq-page .faq-icon {
    font-size: 1rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-page .faq-question-header.active .faq-icon {
    transform: rotate(180deg); /* Rotate icon when active */
    color: var(--primary-color);
}

.faq-page .faq-answer-content {
    background-color: #fcfdff; /* Very light background for answers */
    padding: 0 1.5rem;
    max-height: 0; /* Initially collapsed */
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-page .faq-answer-content.show {
    max-height: 500px; /* Sufficient height to show content, adjust if needed */
    padding: 1.5rem;
}

.faq-page .faq-answer-content p {
    font-size: 1rem;
    color: #555;
    margin-top: 0;
    margin-bottom: 0; /* Remove default paragraph margin */
    line-height: 1.7;
}

.faq-page .faq-answer-content a {
    font-weight: 500;
}
/*
 * styles.css
 *
 * This file contains the custom CSS for the academic programs webpage.
 * While the majority of the styling is handled by Tailwind CSS utility classes,
 * this file includes specific custom styles, particularly for the hero section animations.
 */

/* =========================================================================
   Hero Section Animations
   These keyframes create a subtle spinning effect for the background circles.
   ========================================================================= */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
@keyframes spin-fast {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 120s linear infinite;
}
.animate-spin-fast {
    animation: spin-fast 60s linear infinite;
}

/* =========================================================================
   General Body and Container Styles
   These styles would typically be part of a global stylesheet and are
   included here for completeness.
   ========================================================================= */

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f7fafc;
}

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* =========================================================================
   Component-specific Styles
   While these elements are styled with Tailwind, these selectors
   demonstrate where additional custom styles would go.
   ========================================================================= */

.section-title {
    font-weight: 800;
    color: #004a99;
}

.program-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.program-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
