/* ===============================================
   MODERN LAB WEBSITE CSS - FULLY CUSTOMIZABLE
   ===============================================
   HOW TO USE THIS FILE:
   - Search for "CUSTOMIZE" comments to find adjustable values.
   - Change colors, fonts, spacing, or border-radius globally.
   - Section-specific comments help you modify individual pages.
   =============================================== */

/* ---------- GLOBAL VARIABLES (CUSTOMIZE HERE) ---------- */
:root {
    /* Color Palette - change these to match your brand */
    --primary-dark: #003366;      /* Navy blue - main brand color */
    --primary-light: #1f4b6e;     /* Lighter navy for hover states */
    --accent: #897c76;            /* Warm orange/peach for accents */
    --accent-dark: #20e6b1;       /* Darker accent for hover */
    --bg-light: #eeedea;          /* Page background */
    --bg-gray: #ddd9d3;           /* Light gray for cards/panels */
    --text-dark: #1a1e2b;         /* Main text color */
    --text-muted: #2d3e50;        /* Secondary text */
    --border-light: #eef2f6;      /* Subtle borders */
    --white: #ffffff;
    
    /* Typography */
    --font-heading: 'Stack Sans Headline', serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 32px rgba(0,0,0,0.12);

     --max-width: 1150px;
}

/* ---------- GLOBAL RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-dark);
    background: var(--bg-gray);
    scroll-behavior: smooth;
}

.wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== HEADER & NAVIGATION ========== */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: var(--spacing-sm);
}

nav {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}



.title {
    text-align: center;
    flex: 1;
}

.title a {
    font-size: 2.4rem;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: -0.3px;
    font-family: var(--font-heading);
}

.title h1 {
    font-size: 3.3rem;
    margin: 0.2rem 0;
    color: var(--primary-dark);
    font-weight: 600;
    font-family: var(--font-heading);
}

.nav-wrapper-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-wrapper {
    width: 100%;
    background: var(--bg-gray);
    border-radius: 15px;
    box-shadow: none;
}

.nav-wrapper ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}

.nav-wrapper ul li {
    padding: 0.9rem 1.3rem;
    position: relative;
}

.nav-wrapper ul li a {
    font-family: var(--font-body);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: opacity 0.2s;
}
.nav-wrapper ul li a:hover {
    opacity: 0.85;
}

.nav-wrapper ul li::after {
    content: '';
    position: absolute;
    bottom: 0.6rem;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.25s ease;
    transform: translateX(-50%);
}
.nav-wrapper ul li:hover::after {
    width: 70%;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0f2c44;
    backdrop-filter: blur(4px);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 200;
    min-width: 240px;
}

.nav-wrapper ul li:hover .sub-menu {
    display: block;
}

.sub-menu ul {
    flex-direction: column;
    padding: 0.6rem 0;
}

.sub-menu li {
    padding: 0.5rem 1.5rem;
    text-align: left;
    border-left: 3px solid transparent;
    transition: background 0.2s;
}
.sub-menu li:hover {
    background: #1f3b54;
    border-left-color: var(--accent);
}

.sub-menu a {
    font-size: 0.85rem;
    font-weight: 400;
}

nav .nav-open,
nav .nav-close {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-dark);
    margin: var(--spacing-sm);
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    touch-action: manipulation;
}

.hero-btn {
    display: inline-block;
    margin-top: 0.5rem;
    text-decoration: none;
    background: transparent;
    color: var(--primary-dark);
    border: 1.5px solid var(--primary-dark);
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 40px;
    transition: all 0.25s ease;
    font-family: var(--font-body);
    text-align: center;
}

.hero-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(10,37,64,0.2);
}

/* ========== HOMEPAGE SLIDER & ANNOUNCEMENTS ========== */


.carousel-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin: 2.0rem 0;
}

.slider {
    flex: 1;
    min-width: 260px;
    max-width: 1050px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.slider img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.slider img:hover {
    transform: scale(1.01);
}

.disk {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.2s;
}
.disk.active, .disk:hover {
    background-color: var(--primary-dark);
    transform: scale(1.2);
}

.ticker {
    flex: 1;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.ticker-title {
    background: var(--primary-dark);
    padding: var(--spacing-sm);
}
.ticker-title h5 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}
.news {
    padding: var(--spacing-md);
    max-height: 380px;
    overflow-y: auto;
}
.news ul {
    list-style: none;
    padding-left: 0;
}
.news li {
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.4;
}
.news li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}

/* ========== HOMEPAGE INTRODUCTION TEXT ========== */
.heading-container {
    padding: var(--spacing-lg) 0;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.heading p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    text-align: justify;
    max-width: 100%;
    margin: 0 auto 1.8rem auto;
}

/* ========== RESEARCH OVERVIEW PAGE GRID ========== */
.research-overview-container {
    text-align: left; display: block; max-width: 1000px; margin: 0 auto;
    padding: var(--spacing-sm) 0 var(--spacing-lg);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem auto;
    width: 100%;
    max-width: 1000px;
    padding: 0 var(--spacing-sm);
}

.research-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--border-light);
    cursor: pointer;
}

.research-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.research-card a {
    text-decoration: none;
    display: block;
}

.research-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.research-card:hover img {
    transform: scale(1.02);
}

.research-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    padding: 1rem;
    margin: 0;
    text-align: center;
    font-family: var(--font-heading);
    border-top: 1px solid var(--border-light);
    /*background: var(--bg-gray);*/ 
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
}
.modal-content {
    background-color: var(--white);
    margin: 3% auto;
    padding: 2rem;
    border-radius: var(--radius-lg);
    max-width: 950px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.close-modal {
    position: absolute;
    right: 1.2rem; top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}
.close-modal:hover { color: var(--accent); }
.research-detail-image {
    float: left;
    max-width: 45%;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
@media (max-width: 768px) {
    .research-detail-image {
        float: none;
        display: block;
        max-width: 100%;
        margin: 0 auto 1rem;
    }
}

/* 4 columns on very large screens */
@media screen and (min-width: 1600px) {
    .research-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1500px;
    }
}

/* 2 columns on tablets */
@media screen and (max-width: 1024px) {
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* 1 column on mobile */
@media screen and (max-width: 640px) {
    .research-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .research-card h3 {
        font-size: 1rem;
        padding: 0.8rem;
    }
}

/* ========== RESEARCH AREA DETAIL PAGES ========== */
.research-area-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-sm) 0 var(--spacing-lg);
    gap: var(--spacing-md);
}
.area {
    max-width: 1050px;
    width: 100%;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}
.picture img {
    width: 100%;
    max-width: 480px;
    height: auto;
    float: left;
    margin-right: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.area p {
    text-indent: 1.8em;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.area h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
}

.area-pubs {
    width: 100%;
    max-width: 1050px;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

/* ========== PUBLICATIONS PAGE – ACCORDION, LEFT VERTICAL LINE ========== */
.publications-accordion {
    max-width: 900px;
    margin: 0;
    padding: 1rem;
}

.year-group {
    margin-bottom: 1.5rem;
}

/* Ensure year headers are left-aligned */
.year-header {
    text-align: left;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
    background: var(--bg-gray);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.year-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
    padding: 0.5rem 0;
    display: inline-block;
    text-align: left;   /* explicit left alignment */
}


.year-header:hover {
    background: var(--bg-light);
}

/* The numbered list also left-aligned */
.pub-list {
    list-style-type: decimal;
    padding-left: 2rem;
    margin: 0.5rem 0 1rem 1rem;
    text-align: left;
}

.pub-list li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: justify;
}

.pub-list li a {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.5rem;
}

.pub-list li a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .year-header h1 {
        font-size: 1.2rem;
    }
    .pub-list {
        padding-left: 1.2rem;
    }
    .pub-list li {
        font-size: 0.85rem;
    }
}

/* ========== PEOPLE PAGE ========== */
.people-container {
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.team {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.2rem;
    margin: var(--spacing-lg) auto;
    max-width: 1200px;
    width: 100%;
}
.team_member {
    background: var(--bg-light);
    width: 280px;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.25s ease;
    border: 1px solid var(--border-light);
}
.team_member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #dce5f0;
}
.team_img {
    width: 120px;
    height: 120px;
    margin: -3rem auto 0.8rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
}
.team_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.team_member h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.6rem 0 0.2rem;
    color: var(--primary-dark);
}
.role {
    font-weight: 500;
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0.3px;
}
.team_member p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* PI CARD – No orange border, no shadow */
.pi-section {
    display: flex;
    justify-content: center;
    margin: 1rem 0 2rem;
    max-width: 1050px;
}
.pi-card.team_member {
    width: 100%;
    max-width: 950px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    box-shadow: none;
    padding: 2rem;
}
.pi-card.team_member .team_img {
    width: 160px;
    height: 160px;
    margin-top: -4rem;
}
.pi-card.team_member h3 {
    font-size: 1.8rem;
}
.pi-card .role {
    font-size: 1rem;
    color: var(--text-muted);
}
.pi-bio p {
    text-align: center;
    font-size: 0.95rem;
    max-width: 100%;
    margin: 0 auto;
}

/* ========== GALLERY PAGE ========== */
.gallery-container {
    padding: var(--spacing-sm) 0;
}

.gallery-filters {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--primary-dark);
    color: var(--primary-dark);
    padding: 0.4rem 1rem;
    margin: 0 0.3rem 0.5rem;
    border-radius: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-dark);
    color: white;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.2rem;
    max-width: 1000px;          /* kept from the old block */
    margin-left: auto;          /* kept from the old block */
    margin-right: auto;         /* kept from the old block */
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}
.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: transform 0.4s;
    display: block;
}
.gallery-item:hover img {
    transform: scale(1.03);
}
/* ========== TEACHING PAGE (was inline in teaching.php) ========== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1000px;
    padding: 0 var(--spacing-sm);
}
.course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid var(--border-light);
    cursor: pointer;
}
.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.course-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: #f0f2f5;
}
.course-card .card-body { padding: 1.2rem; }
.course-card h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
}
.course-card .course-code {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.course-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}
/* Modal is reused from research.php – you already have .modal and .modal-content in the block above.
   If needed, add the close and syllabus-btn specifics: */
.close-modal { /* already defined above */ }
.syllabus-btn {
    display: inline-block;
    background: var(--primary-dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 1rem;
}
@media (max-width: 600px) {
    .courses-grid { grid-template-columns: 1fr; }
}

/* Ensure the form button respects hero-btn styling (already global) */
/* ========== HORIZONTAL SCROLLABLE ANNOUNCEMENTS (NO ARROWS) ========== */
.announcements-bar-horizontal {
    background: transparent;
    color: var(--text-dark);
    padding: 0.75rem 0;
    width: 100%;
    margin-top: 2rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.announcements-bar-horizontal .wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.ticker-title2 {
    background: var(--bg-gray);
    padding: 0.5rem 1rem;
    border-radius: 40px;
    white-space: nowrap;
}
.ticker-title2 h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Container that scrolls – no buttons */
.scroll-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    max-width: 900px;   /* shows ~5 items on large screens */
}

/* Style scrollbar for visibility */
.scroll-container::-webkit-scrollbar {
    height: 6px;
}
.scroll-container::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 3px;
}
.scroll-container::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.scroll-items {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    white-space: nowrap;
}

.announcement-item {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    white-space: normal;
    word-break: keep-all;
    background: transparent;
    min-height: 60px;
    min-width: 280px;
}

.separator {
    width: 2px;
    background-color: var(--accent);
    align-self: stretch;
    margin: 0 0.5rem;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .announcements-bar-horizontal .wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .scroll-container {
        max-width: 100%;
    }
}

/* ===== Login button in navigation ===== */
.nav-login-btn {
    background: var(--bg-light);                /* light grey */
    color: var(--primary-dark);         /* dark text */
    border-radius: 30px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.nav-login-btn:hover {
    background: var(--primary-dark);    /* navy */
    color: white;                       /* white text on hover */
}

/* ========== MODERN SWIPER SLIDER ========== */
.swiper-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9; /* optional, adjust to your images */
}

/* Custom pagination (dots) */
.swiper-pagination-bullet {
    background: var(--border-light);
    opacity: 0.8;
    width: 12px;
    height: 12px;
    transition: all 0.2s;
}
.swiper-pagination-bullet-active {
    background: var(--accent) !important;
    transform: scale(1.2);
}

/* Navigation arrows (optional) */
.swiper-button-prev,
.swiper-button-next {
    color: var(--white);
    background: rgba(10,37,64,0.6);
    backdrop-filter: blur(4px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.2s;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--accent);
    color: var(--primary-dark);
}
.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Slider controls (play/pause + speed dropdown) */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Modern Play/Pause button – reuse hero-btn but with inline adjustments */
.slider-controls .hero-btn {
    margin: 0;
    background: transparent;
    border: 1.5px solid var(--primary-dark);
    color: var(--primary-dark);
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 40px;
    transition: all 0.2s;
    cursor: pointer;
}
.slider-controls .hero-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* Speed dropdown – modern, minimal, consistent with design */
.speed-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-gray);
    padding: 0.3rem 0.8rem;
    border-radius: 40px;
    border: 1px solid var(--border-light);
}
.speed-dropdown label {
    font-weight: 500;
    margin: 0;
}
#speedSelect {
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-dark);
    padding: 0.2rem 0.5rem;
    border-radius: 30px;
    cursor: pointer;
    outline: none;
}
#speedSelect:focus {
    box-shadow: 0 0 0 2px var(--accent);
}
/* Remove default arrow for a cleaner look (optional) */
#speedSelect {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%230A2540%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 14px;
    padding-right: 1.8rem;
}
#speedSelect option {
    background: var(--white);
    color: var(--text-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slider-controls {
        gap: 1rem;
    }
    .speed-dropdown {
        padding: 0.2rem 0.6rem;
    }
    #speedSelect {
        font-size: 0.75rem;
        padding-right: 1.5rem;
    }
}


/* ========== CONTACT PAGE – COMPLETE STYLES (with input/textarea styling) ========== */

/* Main container */
.contact-page-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Two‑column grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Left column: address, map, social */
.address-block {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.address-details h4 {
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
}

.address-details p {
    margin: 0.3rem 0;
    color: var(--text-muted);
}

.address-details a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s;
}
.address-details a:hover {
    color: var(--accent);
}

/* Embedded map */
.embedded-map {
    margin: 0.5rem 0;
}
.embedded-map iframe {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

/* Social icons */
.address-block .icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
}
.address-block .icons i {
    font-size: 2.2rem;
    color: var(--primary-dark);
    transition: color 0.2s;
}
.address-block .icons i:hover {
    color: var(--accent);
}

/* Right column: contact form */
.contact-grid #overlay {
    max-width: none;
    margin: 0;
    padding: 1.8rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.contact-grid #overlay form {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
}
.contact-grid #overlay form h3 {
    margin-top: 0;
    font-size: 1.6rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark);
}

/* Input and textarea styling (from original snippet) */
input, textarea {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.4rem;
    border: 1px solid #cfdfed;
    border-radius: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.2s;
}
input:focus, textarea:focus {
    border-color: var(--primary-dark);
    outline: none;
    box-shadow: 0 0 0 3px rgba(10,37,64,0.1);
}
input[type="submit"] {
    background: var(--primary-dark);
    color: var(--white);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
input[type="submit"]:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* For the button (hero-btn) – already styled globally, but ensure consistency */
.hero-btn {
    margin-top: 0.5rem;
}

/* Error messages */
#overlay .error {
    display: block;
    color: var(--accent-dark);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

/* Form element base layout */
#overlay label,
#overlay input,
#overlay textarea,
#overlay .error {
    display: block;
    width: 100%;
}
#overlay input,
#overlay textarea {
    margin-bottom: 0;
}

/* Responsive media queries */
@media (max-width: 900px) {
    .contact-page-container {
        max-width: 100%;
        padding: 0 1rem;
    }
}
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
@media (max-width: 480px) {
    .address-block,
    .contact-grid #overlay {
        padding: 1.2rem;
    }
    .embedded-map iframe {
        height: 200px;
    }
    .address-block .icons i {
        font-size: 1.8rem;
    }
    #overlay .error {
        font-size: 0.7rem;
    }
}


/* ============ LOGIN PAGE (Microsoft-only) ============ */
.login-body {
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;  
}

.login-container {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 450px;
    width: 90%;
}

.login-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.login-microsoft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-dark);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.2rem;
    width: 100%;
    box-sizing: border-box;
}

.login-microsoft-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    color: white;
}

/* Differentiate the two buttons slightly */
.admin-btn {
    background: var(--primary-dark);   /* #003366 */
}
.student-btn {
    background: var(--bg-gray);               
}
.student-btn:hover {
    background: var(--bg-gray);             
}

.ms-icon {
    font-weight: bold;
    font-size: 1.3rem;
}

.login-info {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* ========== ADMIN FORGOT PASSWORD PAGE ========== */
.forgot-password-body {
    background: var(--bg-gray);
    padding: 40px;
}
.reset-box {
    max-width: 450px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}
.reset-box h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-dark);
}
.reset-box .form-group {
    margin-bottom: 20px;
}
.reset-box label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
}
.reset-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
}
.reset-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(240, 178, 122, 0.2);
}
.reset-box .error {
    color: #e74c3c;
    text-align: center;
    background: #fef0f0;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.reset-box .success {
    color: #27ae60;
    text-align: center;
    background: #e9f7ef;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.reset-box .back-link {
    text-align: center;
    margin-top: 20px;
}
.reset-box .back-link a {
    color: var(--primary-dark);
    text-decoration: none;
}
.reset-box .back-link a:hover {
    color: var(--accent);
    text-decoration: underline;
}
/* Make hero-btn consistent inside reset-box */
.reset-box .hero-btn {
    width: 100%;
    margin-top: 10px;
}

/* ========== FOOTER ========== */
.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: var(--primary-dark);
    color: #f0f4f8;
    padding: 1.0rem var(--spacing-lg);
    margin-top: var(--spacing-xl);
    gap: var(--spacing-lg);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    max-height: 8rem;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

nav img {
    width: 5rem;
    height: 5rem;
    transition: transform 0.2s;
}
nav img:hover {
    transform: scale(1.02);
}

.address, .contact, .main-menu {
    flex: 1;
    min-width: 180px;
}
.footer h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.2px;
}
.footer p, .footer a {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #dce5f0;
    text-decoration: none;
}
.main-menu ul {
    list-style: none;
    columns: 2;
}
.main-menu li {
    margin-bottom: 0.5rem;
}
.icons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}
.visit-counter {
    text-align: center;
}

/* ========== RESPONSIVE DESIGN (Mobile & Tablet) ========== */
@media screen and (max-width: 1024px) {
    .wrapper {
        padding: 0 1.5rem;
    }
    .heading p {
        max-width: 100%;
        text-align: center;
    }
    .pi-card.team_member .team_img {
        width: 120px;
        height: 120px;
        margin-top: -3rem;
    }
    .pi-card.team_member h3 {
        font-size: 1.4rem;
    }
    .pi-bio p {
        max-width: 100%;
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 768px) {
    .header {
        position: relative;
    }
    .nav-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        height: auto;
        background: var(--primary-dark);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
        overflow: hidden;
    }
    .nav-wrapper.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-wrapper ul {
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0 1rem;
    }
    .nav-wrapper ul li {
        width: 100%;
        padding: 0;
        text-align: center;
    }
    .nav-wrapper ul li a {
        display: block;
        padding: 0.85rem 1.5rem;
        color: white !important;
    }
    .sub-menu {
        position: static;
        background: #123456;
        border-radius: var(--radius-md);
        margin-top: 0.3rem;
    }
    nav .nav-open {
        display: block;
        cursor: pointer;
    }
    nav .nav-close {
        display: none;
    }
    .nav-open {
        position: relative;
        z-index: 1000;
        margin: 0.5rem;
    }
    .picture img {
        float: none;
        margin: 0 auto var(--spacing-sm);
        max-width: 100%;
    }
    .slideshow-announcements {
        flex-direction: column;
    }
    .footer {
        flex-direction: column;
        text-align: center;
    }
    .main-menu ul {
        columns: 1;
    }
    .icons {
        justify-content: center;
    }
    .team_member {
        width: 90%;
        max-width: 300px;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 16px;
    }
    .wrapper {
        padding: 0 var(--spacing-sm);
    }
    .title h1, .title a {
        font-size: 1rem;
    }
    .hero-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1.2rem;
    }
    .publications h1 {
        font-size: 1.6rem;
    }
    .year h1 {
        font-size: 1.3rem;
    }
    .gallery-item {
        max-width: 100%;
    }
}

/* Large workstations (≥1400px) – already handled by research grid 3 columns, but we add extra wrapper width */
@media screen and (min-width: 1400px) {
    .wrapper {
        max-width: 1400px;
    }
    .slider img {
        max-height: 550px;
    }
    .card {
        width: 320px;
    }
    .team_member {
        width: 320px;
    }
}

