/* ==============================================
   CSS Variables & Reset
   ============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #06657c;
    --accent: #8b5cf6;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: rgba(0, 0, 0, 0.1);
    --visited-link: #7a48eb;
}

/* ==============================================
   Base Styles
   ============================================== */
html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* ==============================================
   Skip Link & Accessibility
   ============================================== */
.skip-link {
    position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 8px 16px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==============================================
   Navigation - Island Style with Hamburger
   ============================================== */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 90%;
    max-width: 1100px;
}

nav.scrolled {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    transform: translateX(0);
}

.nav-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

nav.scrolled .nav-container {
    border-radius: 0;
    padding: 1.2rem 3rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 1001;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.hamburger:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    flex-wrap: nowrap;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--primary);
    outline: none;
}

.nav-links a:visited {
    color: var(--visited-link);
}

.nav-links a:visited:hover {
    color: var(--primary);
}

.nav-links a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Current nav item with bottom line indicator, made using after to make it personalized */
.nav-links li.current {
    color: var(--primary);
    font-weight: 700;
}
/* ==============================================
   Hero Section
   ============================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero-logos img {
    height: 80px;
    width: auto;
}


.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.8;
}

.hero p a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.hero-cta {
    display: inline-flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==============================================
   Page Header Container
   ============================================== */

.page-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 2rem 0;
    text-align: center;
}

/* ==============================================
   Breadcrumb Navigation
   ============================================== */
.breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.breadcrumb a:hover::after,
.breadcrumb a:focus::after {
    width: 100%;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
    color: var(--primary);
    outline: none;
}

.breadcrumb a:visited {
    color: var(--visited-link);
}

.breadcrumb a:visited:hover {
    color: var(--primary);
}

.breadcrumb a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

.breadcrumb li:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

/* ==============================================
   Publications Section
   ============================================== */
    .publications-section {
        padding: 0rem 0rem 4rem 0rem;
    }

   .publications-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 3rem 0 1.5rem 0;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.publication-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.publication-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.publication-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.publication-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.publication-authors {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    font-style: italic;
}

.publication-venue {
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

.publication-card .read-more {
    align-self: flex-start;
    margin-top: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}

.publication-card .read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.publication-card .read-more:hover::after,
.publication-card .read-more:focus::after {
    width: 100%;
}

.publication-card .read-more:hover,
.publication-card .read-more:focus {
    color: var(--primary-dark);
    outline: none;
}

.publication-card .read-more:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

.publication-card .read-more:visited {
    color: var(--visited-link);
}

.publication-card .read-more:visited:hover {
    color: var(--primary-dark);
}

.link-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

/* Year skiplinks for publications */
.year-skiplinks {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    align-items: center;
    flex-wrap: wrap;
}

.year-skiplinks li {
    margin: 0;
}

.year-skiplinks a {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    text-decoration: underline;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.year-skiplinks li a:hover,
.year-skiplinks li a:focus {
    background: var(--primary);
    color: white;
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.year-skiplinks a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .year-skiplinks {
        gap: 0.4rem;
    }
}

/* ==============================================
   Projects Section
   ============================================== */
.projects-section {
    background: var(--bg-light);
    padding: 0rem 2rem 4rem 2rem;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: auto;
    min-width: 300px;
    max-width: 400px;
    flex: 1 1 300px;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-year {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.project-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.chip {
    background: rgba(37, 99, 235, 0.1);
    color: #2257cd;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-overflow: ellipsis;
}

.project-card .read-more {
    align-self: flex-start;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}

.project-card .read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.project-card .read-more:hover::after,
.project-card .read-more:focus::after {
    width: 100%;
}

.project-card .read-more:hover,
.project-card .read-more:focus {
    gap: 0.75rem;
    outline: none;
}

.project-card .read-more:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

.project-card .read-more:visited {
    color: var(--visited-link);
}

.project-card .read-more:visited:hover {
    color: var(--primary);
}

/* ==============================================
   Thesis Section
   ============================================== */
.thesis-section {
    background: var(--bg-light);
    padding: 0rem 2rem 4rem 2rem;
}

.thesis-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 3rem 0 1.5rem 0;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.thesis-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.thesis-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 240px;
}

.thesis-image {
    width: 220px;
    height: 100%;
    min-height: 240px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.thesis-project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.thesis-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px);
    background-size: 20px 20px;
}

.thesis-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.thesis-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.thesis-status-note {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.25);
    color: #92400e;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.thesis-authors {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.thesis-venue {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.thesis-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.thesis-empty-state {
    padding: 2rem;
    text-align: center;
    border: 1px dashed rgba(37, 99, 235, 0.35);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-light);
    font-size: 1rem;
}

.thesis-card .read-more {
    align-self: flex-start;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding: 0.25rem 0;
}

.thesis-card .read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.thesis-card .read-more:hover::after,
.thesis-card .read-more:focus::after {
    width: 100%;
}

.thesis-card .read-more:hover,
.thesis-card .read-more:focus {
    gap: 0.75rem;
    outline: none;
}

.thesis-card .read-more:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

.thesis-card .read-more:visited {
    color: var(--visited-link);
}

.thesis-card .read-more:visited:hover {
    color: var(--primary);
}

/* ==============================================
   Buttons
   ============================================== */

.btn {
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    outline: 3px solid white;
    outline-offset: 3px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: white;
    color: var(--primary);
    outline: 3px solid white;
    outline-offset: 3px;
}

/* ==============================================
   Main Content
   ============================================== */
.main-content {
    background: white;
    padding: 6rem 0;
    scroll-margin-top: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 800;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0 auto;
}

.section-description a{
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.section-description a:visited {
    color: var(--visited-link);
}

.section-description a:visited:hover {
    color: var(--primary-dark);
}

.section-description a:hover,
.section-description a:focus {
    color: var(--primary-dark);
    text-decoration: underline;
}
.section-description a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

@media screen and (max-width: 600px) {
    .section-description {
        font-size: 1rem;
    }
}


/* ==============================================
   Research Areas
   ============================================== */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.glass-card:hover::before {
    transform: scaleX(1);
}

.glass-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.glass-card:focus-within {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.card-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    text-overflow: ellipsis;
}

/* ==============================================
   News Section
   ============================================== */
.news-section {
    background: var(--bg-light);
    padding: 6rem 0.7rem;
}

.news-section-page {
    background: var(--bg-light);
    padding: 0rem 2rem 4rem 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.news-empty-state {
    grid-column: 1 / -1;
    padding: 2rem;
    text-align: center;
    border: 1px dashed #cbd5f5;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.65);
    color: var(--text-light);
}


.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 240px;
    height: auto;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 220px;
    height: 100%;
    min-height: 240px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.news-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px);
    background-size: 20px 20px;
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-date {
    color: #065f74;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    flex-grow: 1;
    font-size: 0.95rem;
    -webkit-box-orient: vertical;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
    position: relative;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.read-more:hover::after,
.read-more:focus::after {
    width: 100%;
}

.read-more:hover,
.read-more:focus {
    gap: 0.75rem;
    outline: none;
}

.read-more:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
}

.read-more:visited {
    color: var(--visited-link);
}

.read-more:visited:hover {
    color: var(--primary);
}

/* All News Card */
.all-news-card {
    background: linear-gradient(135deg, rgba(103, 126, 234, 0.1), rgba(118, 75, 162, 0.1)); 
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto;
}

.all-news-text {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.btn-all-news {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-all-news:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-all-news:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* ==============================================
   Team Section
   ============================================== */
.team-section {
    margin-bottom: 2rem;
    padding: 1rem 2rem;
}

.directors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.team-card {
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
    padding: 1.5rem;
    height: auto;
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.team-avatar::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px);
    background-size: 20px 20px;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.team-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
    position: relative;
}

.team-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.team-link:hover::after,
.team-link:focus::after {
    width: 100%;
}

.team-link:hover,
.team-link:focus {
    gap: 0.75rem;
    outline: none;
}

.team-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
}

@media screen and (max-width: 480px) {
    .team-section {
        padding: 0rem;
    }
}

/* ==============================================
   Footer
   ============================================== */
footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
    position: relative;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.footer-section a:hover::after,
.footer-section a:focus::after {
    width: 100%;
}

.footer-section a:hover,
.footer-section a:focus {
    color: white;
    outline: none;
}

.footer-section a:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
    border-radius: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ==============================================
   Scroll Animations
   ============================================== */
.fade-in-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .fade-in-card {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
}

/* ==============================================
   Responsive Design
   ============================================== */

/* Tablet & Small Desktop */
@media (max-width: 968px) {
    nav {
        top: 10px;
        width: 95%;
    }

    .nav-container {
        padding: 1rem 2rem;
        
    }

    nav.scrolled .nav-container {
        padding: 1rem 2rem;
    }

    nav .nav-container.active {
        opacity: 1;
        background: rgba(255, 255, 255);
        border-color: var(--primary);
        border: 1px solid var(--glass-border);
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgb(255, 255, 255);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-top: none;
        border-radius: 0 0 50px 50px;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 2.3rem 2rem;
        box-shadow: rgba(37, 37, 37, 0.45) 0px 25px 20px -20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(-2rem);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.75rem 1rem;
        color: var(--text-dark);
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        border-radius: 25px;
    }

    .nav-links a:hover,
    .nav-links a:focus {
        background: rgba(255, 255, 255, 0.2);
        color: var(--primary);
        outline: none;
    }

    .nav-links a:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 4px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        grid-template-columns: 150px 1fr;
        min-height: 180px;
    }

    .news-image {
        width: 150px;
        min-height: 180px;
        font-size: 3rem;
    }

    .all-news-card {
        height: auto;
        padding: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        min-height: 110vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-logos img {
        height: 50px;
    }

    .section-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .thesis-section h2 {
        font-size: 1.75rem;
    }

    .research-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        grid-template-columns: 1fr;
        height: auto;
    }

    .news-image {
        width: 100%;
        height: 150px;
        min-height: 150px;
    }

    .thesis-card {
        grid-template-columns: 1fr;
        height: auto;
    }

    .thesis-image {
        width: 100%;
        height: 150px;
        min-height: 150px;
    }

    .all-news-card {
        padding: 2.5rem 2rem;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .hero-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .news-section-page {
        padding: 0rem 0rem 4rem 0rem;
    }

    .projects-section {
        padding: 0rem 0rem 4rem 0rem;
    }

    .thesis-section {
        padding: 0rem 0rem 4rem 0rem;
    }
}

@media (max-width: 600px) {
     .hero p {
        font-size: 0.95rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .nav-links {
        width: 100%;
        max-width: 100%;
    }

    .glass-card,
    .news-content {
        padding: 1.5rem;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .projects-grid {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        min-width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
    }
}

@media screen and (max-height: 800px) {
    .hero-content
    {
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
}

/* ==============================================
   Contact Section
   ============================================== */
.contact-section {
    background: var(--bg-light);
    padding: 0rem 2rem 1rem 2rem;
}

.contact-content {
    display: block;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: stretch;
    justify-content: flex-start;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    flex: 1 1 320px;
    min-width: 260px;
}

.info-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.info-card address {
    font-style: normal;
    line-height: 1.8;
}

.contact-list{
    list-style: none;
    padding: 0;
    margin: 0;
}
.info-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.info-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.info-card a:visited {
    color: var(--visited-link);
}

.info-card a:visited:hover {
    color: var(--primary-dark);
}

.info-card a:hover,
.info-card a:focus {
    color: var(--primary-dark);
    text-decoration: underline;
}

.info-card a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}
.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required {
    color: #dc2626;
    font-weight: 700;
}

/* Form Inputs */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background: white;
    transition: all 0.3s ease;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #cbd5e1;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Form Hints and Errors */
.form-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.35rem;
}

.field-error {
    display: block;
    font-size: 0.85rem;
    color: #dc2626;
    margin-top: 0.35rem;
    min-height: 1.2em;
}

/* Invalid State */
.form-input[aria-invalid="true"],
.form-select[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-label:hover {
    color: var(--text-dark);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.status-content p {
    margin: 0;
    font-size: 0.95rem;
}

.status-content a {
    color: inherit;
    text-decoration: underline;
}

/* Contact Section Responsive */
@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        order: 2;
    }
}

@media (max-width: 640px) {
    .contact-section {
        padding: 0rem 0rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ==============================================
   Back on Top Button (Glass-style)
   ============================================== */
.goback {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.goback.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.goback .back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    text-decoration: none;
}

.goback .back-to-top img {
    width: 22px;
    height: 22px;
    display: block;
}

.goback .back-to-top {
    cursor: pointer;
}

/* Remove motion for users preferring reduced motion */
@media (prefers-reduced-motion: reduce) {
    .goback,
    .goback.visible {
        transition: none;
    }
}

/* Slightly smaller on small screens */
@media (max-width: 480px) {
    .goback {
        right: 1rem;
        bottom: 1rem;
    }
    .goback .back-to-top {
        width: 48px;
        height: 48px;
    }
}

/* ==============================================
   Admin Login Page Styles
   ============================================== */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .logo {
    display: inline-block;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    margin-bottom: 1rem;
}

.login-header .logo:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Login Error Message */
.login-error {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-left: 4px solid #dc2626;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #991b1b;
}

.login-error .error-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
}

.login-error .error-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Login Success Message */
.login-success {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-left: 4px solid #10b981;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #065f46;
}

.login-success .error-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
}

.login-success .error-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Login Form */
.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-form .form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.login-form .form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background: white;
    transition: all 0.3s ease;
}

.login-form .form-input:hover {
    border-color: #cbd5e1;
}

.login-form .form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.login-form .form-input[aria-invalid="true"] {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Password Input with Toggle */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.password-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.password-toggle-icon {
    font-size: 1.25rem;
    opacity: 0.6;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    margin-top: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-login:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-login .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Loading Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.back-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover,
.back-link:focus {
    color: var(--primary);
}

.back-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ==============================================
   Admin Dashboard Page Styles
   ============================================== */
.admin-dashboard-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-light);
}

/* Admin Header */
.admin-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.admin-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 1.5rem;
}

.admin-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.admin-header .logo:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-user-greeting {
    color: var(--text-light);
    font-size: 0.95rem;
}

.admin-user-greeting strong {
    color: var(--text-dark);
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(220, 38, 38, 0.1);
    color: #9e1a1a;
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.3);
}

.btn-logout:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* Admin Main Content */
.admin-main {
    flex: 1;
    padding: 2rem;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Dashboard Header */
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Dashboard Grid Simple */
.dashboard-grid-simple {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Dashboard Cards Simple */
.dashboard-card-simple {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.dashboard-card-simple:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.dashboard-card-simple:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.dashboard-card-simple .dashboard-card-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.dashboard-card-simple .dashboard-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem 0;
}

.dashboard-card-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-dashboard:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-dashboard:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* Dashboard Grid (old, kept for reference) */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 2px solid transparent;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.dashboard-card:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* Card Color Variants */
.dashboard-card-news::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.dashboard-card-news:hover {
    border-color: rgba(245, 158, 11, 0.3);
}

.dashboard-card-projects::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}
.dashboard-card-projects:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.dashboard-card-theses::before {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}
.dashboard-card-theses:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.dashboard-card-publications::before {
    background: linear-gradient(90deg, var(--primary), #60a5fa);
}
.dashboard-card-publications:hover {
    border-color: rgba(37, 99, 235, 0.3);
}

.dashboard-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.dashboard-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.dashboard-card-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.dashboard-card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.dashboard-card:hover .dashboard-card-action {
    gap: 0.75rem;
}

/* Dashboard Stats */
.dashboard-stats {
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Management Placeholder */
.management-placeholder {
    max-width: 800px;
    margin: 0 auto;
}

.management-placeholder .glass-card {
    text-align: center;
    padding: 3rem 2rem;
}

.management-placeholder h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.management-placeholder p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.management-placeholder ul {
    text-align: left;
    margin: 1rem 0 1.5rem 0;
    padding-left: 1.5rem;
}

.management-placeholder li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Admin Footer */
.admin-footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem 2rem;
    margin-top: auto;
}

.admin-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.admin-footer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.admin-footer-link:hover,
.admin-footer-link:focus {
    text-decoration: underline;
}

.admin-footer-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ==============================================
   Admin CRUD Components (Reusable)
   ============================================== */

/* Admin Section Card */
.admin-section-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-section-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.admin-section-card .section-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Admin Info Box */
.admin-info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.admin-info-box h4 {
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.admin-info-box p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.admin-info-box ul {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.admin-info-box li {
    margin-bottom: 0.25rem;
}

.admin-info-box code {
    background: #e0f2fe;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
}

.admin-info-box pre {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0.75rem;
    overflow-x: auto;
    margin: 0.5rem 0;
}

.admin-info-box pre code {
    background: none;
    padding: 0;
}

/* Admin Forms */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.admin-form-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.admin-form-label .required {
    color: #dc2626;
}

.admin-form-hint {
    font-size: 0.8rem;
    color: var(--text-light);
}

.admin-status-list {
    list-style: disc;
    margin-left: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.admin-status-list li {
    margin-bottom: 0.35rem;
}

.thesis-fieldset {
    border: 1px dashed #cbd5f5;
    border-radius: 8px;
    padding: 1rem;
    background: #f8fafc;
}

.thesis-fieldset h4 {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.thesis-fieldset[data-state="hidden"] {
    display: none;
}

.admin-badge-info {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.2);
    color: #047857;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-meta-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.8rem;
}

.admin-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.admin-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}

/* Admin Alerts */
.admin-alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.admin-alert-success {
    background: rgba(16, 185, 129, 0.12);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.admin-alert-error {
    background: rgba(220, 38, 38, 0.12);
    color: #7f1d1d;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.admin-edit-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #1d4ed8;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.admin-edit-banner strong {
    font-weight: 600;
}

/* File Input Styling */
.admin-file-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-dark);
    background: white;
}

.admin-file-input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

.admin-file-input::file-selector-button {
    padding: 0.375rem 0.75rem;
    margin-right: 0.75rem;
    border: none;
    border-radius: 4px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.admin-file-input::file-selector-button:hover {
    background: var(--primary-dark);
}

/* Text Input for Admin */
.admin-text-input,
.admin-select,
.admin-textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-dark);
    background: white;
}

.admin-text-input:focus,
.admin-select:focus,
.admin-textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

.admin-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Admin Form Actions */
.admin-form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Admin Buttons */
.btn-admin-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-admin-primary:hover {
    background: var(--primary-dark);
}

.btn-admin-primary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-admin-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-admin-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: white;
    color: var(--text-dark);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-admin-secondary:hover {
    background: var(--bg-light);
}

.btn-admin-secondary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Small Action Buttons (Edit, Delete) */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.625rem;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.btn-action:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-action-edit {
    background: rgba(168, 195, 255, 0.281);
    color: blue;
}

.btn-action-edit:hover {
    background: rgba(19, 51, 121, 0.2);
}

.btn-action-delete {
    background: rgba(220, 38, 38, 0.1);
    color: #721010;
}

.btn-action-delete:hover {
    background: rgba(220, 38, 38, 0.2);
}

.btn-action-view {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.inline-form {
    display: inline;
}

.btn-action-view:hover {
    background: rgba(16, 185, 129, 0.2);
}

/* Admin Data Table */
.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table thead {
    background: var(--bg-light);
}

.admin-table th,
.admin-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
    font-weight: 600;
    color: var(--text-dark);
}

.admin-table tbody tr:hover {
    background: var(--bg-light);
}

.admin-table tbody tr:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.admin-table .cell-title {
    font-weight: 600;
    max-width: 280px;
}

.admin-table .cell-secondary {
    color: var(--text-light);
    font-size: 0.8rem;
}
/* ==============================================
   Admin Responsive Design
   ============================================== */
@media (max-width: 968px) {
    .dashboard-grid-simple {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-header-container {
        flex-direction: column;
        gap: .8rem;
        text-align: center;
    }

    .admin-header-right {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 640px) {

    .admin-header h1 {
        font-size: 1.25rem;
    }

    .dashboard-grid-simple {
        grid-template-columns: 1fr;
    }

    .dashboard-card-simple {
        padding: 1.5rem;
    }

    .dashboard-card-simple .dashboard-card-icon {
        font-size: 2.5rem;
    }

    .dashboard-card-simple .dashboard-card-title {
        font-size: 1.1rem;
    }

    .dashboard-card-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .btn-dashboard {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    .login-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .login-title {
        font-size: 1.25rem;
    }

    .dashboard-title {
        font-size: 1.75rem;
    }

    .admin-footer-container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

