/* CSNET Landing Page Styles - Optimized for Performance */

/* Critical CSS - Above the fold content */
/* This section contains styles for content visible immediately on page load */

/* Motion tokens — custom easing curves used across interactive elements.
   The browser's built-in `ease` is too weak; these carry more intention. */
:root {
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* Performance optimizations */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    /* Replace iOS's default grey tap-flash with our own :active states.
       If you add a new pressable, give it an :active style or the press
       will look like nothing happened. */
    -webkit-tap-highlight-color: transparent;
}

/* Optimize font loading */
body {
    font-display: swap; /* Improve font loading performance */
}

/* Optimize images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy loading support */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Improve touch targets for mobile */
a, button, .btn {
    min-height: 44px;
    min-width: 44px;
}

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

/* Header */
/* ===== MODERN HEADER (2026) ===== */
header {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

header.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.18);
    border-bottom-color: transparent;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    min-height: 64px;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.um-logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e3a8a 0%, #5b78d4 60%, #9bb1ec 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-sub {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

/* ===== MODERN NAVIGATION (2026) ===== */
.main-nav {
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0.25rem;
    gap: 0.125rem;
    align-items: center;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.nav-item { position: relative; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: #0f172a;
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.nav-link:focus-visible {
    outline: 2px solid #5b78d4;
    outline-offset: 2px;
}

.nav-link.active {
    color: #5b78d4;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    font-weight: 600;
}

.nav-caret {
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.nav-item.dropdown:hover .nav-caret,
.nav-item.dropdown.active .nav-caret {
    transform: rotate(180deg);
    opacity: 1;
}

/* Primary CTA button in nav */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.15rem;
    background: linear-gradient(135deg, #1e3a8a, #5b78d4);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 999px;
    box-shadow: 0 4px 14px -4px rgba(91, 120, 212, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(91, 120, 212, 0.55);
    filter: brightness(1.05);
}

.nav-cta:focus-visible {
    outline: 2px solid #5b78d4;
    outline-offset: 3px;
}

/* Navigation Text */
.nav-text {
    font-size: inherit;
    font-weight: inherit;
}

/* ===== CELCOM DIGI INSPIRED DROPDOWN STYLES ===== */

/* Dropdown Container */
.dropdown {
    position: relative;
}

/* Dropdown Icon - Celcom Digi Style */
.dropdown-icon {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #666;
    width: 14px;
    height: 14px;
}

.dropdown:hover .dropdown-icon,
.dropdown.active .dropdown-icon {
    transform: rotate(180deg);
    color: #5b78d4;
}

/* Dropdown Menu - Celcom Digi Inspired */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    min-width: 320px;
    border-radius: 18px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.18), 0 8px 16px -8px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1001;
    padding: 0.75rem;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Dropdown Items */
.dropdown-item {
    margin: 0;
    width: 100%;
}

/* Dropdown Links - Celcom Digi Style */
.dropdown-link {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1.125rem 1.5rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.dropdown-item:last-child .dropdown-link {
    border-bottom: none;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #5b78d4, #3e58b8);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.dropdown-link:hover {
    background-color: rgba(91, 120, 212, 0.05);
    color: #5b78d4;
    transform: translateX(8px);
    padding-left: 2rem;
}

.dropdown-link:hover::before {
    width: 4px;
}

/* Dropdown Text Elements - Celcom Digi Style */
.dropdown-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: inherit;
    line-height: 1.4;
}

.dropdown-description {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
    line-height: 1.3;
}

.dropdown-link:hover .dropdown-description {
    color: #3e58b8;
}

/* ===== CELCOM DIGI MEGA MENU STYLES ===== */

/* Mega Menu Container */
.mega-menu .dropdown-menu {
    min-width: 560px;
    max-width: 720px;
    padding: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-8px) scale(0.98);
}

.mega-menu:hover .dropdown-menu,
.mega-menu.active .dropdown-menu {
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Mega Menu Content Layout */
.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Mega Menu Sections */
.mega-menu-section {
    display: flex;
    flex-direction: column;
}

.mega-menu-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(91, 120, 212, 0.1);
}

/* Mega Menu Lists */
.mega-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mega-menu-list li {
    margin: 0;
}

/* Mega Menu Links - Celcom Digi Style */
.mega-menu-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: #1a1a1a;
    border-radius: 6px;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.mega-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #5b78d4, #3e58b8);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.mega-menu-link:hover {
    background-color: rgba(91, 120, 212, 0.05);
    color: #5b78d4;
    transform: translateX(6px);
    padding-left: 1.5rem;
}

.mega-menu-link:hover::before {
    width: 3px;
}

/* Mega Menu Link Text */
.mega-link-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: inherit;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.mega-link-desc {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.mega-menu-link:hover .mega-link-desc {
    color: #3e58b8;
}

/* ===== MOBILE MENU TOGGLE ===== */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1001;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.menu-toggle:hover {
    background-color: #f8fafc;
}

.menu-toggle:focus {
    outline: 2px solid #1f3173;
    outline-offset: 2px;
}

/* Hamburger Lines - Celcom Digi Style */
.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #5b78d4;
    margin: 4px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 3px;
    transform-origin: center;
    box-shadow: 0 1px 2px rgba(91, 120, 212, 0.2);
}

/* Hamburger Animation */
.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
        position: fixed;
        top: 1rem;
        right: 1rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        border: 2px solid rgba(91, 120, 212, 0.2);
        box-shadow: 0 4px 12px rgba(91, 120, 212, 0.15);
        border-radius: 10px;
        width: 48px;
        height: 48px;
    }

    .menu-toggle:hover {
        background: rgba(91, 120, 212, 0.05);
        border-color: rgba(91, 120, 212, 0.4);
        transform: scale(1.05);
    }

    .menu-toggle.active {
        background: rgba(91, 120, 212, 0.1);
        border-color: #5b78d4;
        box-shadow: 0 6px 16px rgba(91, 120, 212, 0.25);
    }

    /* Mobile Hamburger Lines */
    .hamburger-line {
        background-color: #5b78d4 !important;
        width: 26px;
        height: 3px;
        margin: 3px 0;
        box-shadow: 0 1px 3px rgba(91, 120, 212, 0.3);
    }

    .main-nav {
        position: relative;
    }

    /* Hide CTA + brand subtitle on small screens */
    .nav-cta { display: none; }
    .brand-sub { display: none; }
    .brand-name { font-size: 1.05rem; }

    /* Mobile Navigation Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 5rem 0 2rem;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
        gap: 0;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        border-radius: 0;
        border: none;
    }

    .nav-menu.show {
        left: 0;
    }

    /* Mobile Navigation Items */
    .nav-item {
        margin: 0;
        width: 100%;
    }

    /* Mobile Navigation Links */
    .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.25rem 1.5rem;
        margin: 0;
        border-radius: 0;
        font-size: 1.05rem;
        color: #1e293b;
        text-align: left;
        transition: all 0.2s ease;
        border-bottom: 1px solid #e2e8f0;
        min-height: 60px;
        font-weight: 500;
        transform: none;
        background-color: #ffffff;
    }

    .nav-item:last-child .nav-link {
        border-bottom: 1px solid #e2e8f0;
    }

    .nav-link:hover,
    .nav-link:focus {
        background-color: rgba(91, 120, 212, 0.05);
        color: #5b78d4;
        transform: none;
        padding-left: 1.75rem;
    }

    .nav-link.active {
        background-color: rgba(91, 120, 212, 0.1);
        color: #5b78d4;
        font-weight: 600;
        border-left: 4px solid #5b78d4;
    }

    /* Mobile Dropdown Styles - Celcom Digi Inspired */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(91, 120, 212, 0.02);
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        width: 100%;
        margin: 0;
        min-width: auto;
        border-top: 1px solid rgba(91, 120, 212, 0.1);
        backdrop-filter: blur(8px);
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    /* Mobile Dropdown Items */
    .dropdown-item {
        width: 100%;
        margin: 0;
    }

    /* Mobile Dropdown Links - Celcom Digi Style */
    .dropdown-link {
        padding: 1.25rem 2rem;
        background-color: rgba(91, 120, 212, 0.02);
        border-bottom: 1px solid rgba(91, 120, 212, 0.08);
        font-size: 0.95rem;
        color: #1a1a1a;
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
        justify-content: center;
        width: 100%;
        text-align: left;
        min-height: auto;
        transform: none;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        position: relative;
        overflow: hidden;
    }

    .dropdown-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 0;
        height: 100%;
        background: linear-gradient(90deg, #5b78d4, #3e58b8);
        transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 0;
    }

    .dropdown-item:last-child .dropdown-link {
        border-bottom: none;
    }

    .dropdown-link:hover {
        background-color: rgba(91, 120, 212, 0.08);
        color: #5b78d4;
        transform: none;
        padding-left: 2.5rem;
    }

    .dropdown-link:hover::before {
        width: 4px;
    }

    /* Mobile Dropdown Text - Celcom Digi Style */
    .dropdown-text {
        font-weight: 600;
        font-size: 0.95rem;
        color: inherit;
        position: relative;
        z-index: 1;
    }

    .dropdown-description {
        font-size: 0.8rem;
        color: #666;
        font-weight: 400;
        margin-top: 0.125rem;
        position: relative;
        z-index: 1;
    }

    .dropdown-link:hover .dropdown-description {
        color: #3e58b8;
    }

    /* Mobile Dropdown Icon - Celcom Digi Style */
    .dropdown-icon {
        margin-left: auto;
        transform: rotate(0deg);
        color: #666;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .dropdown.active .dropdown-icon {
        transform: rotate(180deg);
        color: #5b78d4;
    }

    /* Mobile Mega Menu Styles */
    .mega-menu .dropdown-menu {
        min-width: auto;
        max-width: none;
        padding: 0;
        left: 0;
        transform: none;
        position: static;
        background: rgba(91, 120, 212, 0.02);
        border-radius: 0;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(91, 120, 212, 0.1);
    }

    .mega-menu:hover .dropdown-menu,
    .mega-menu.active .dropdown-menu {
        transform: none;
    }

    .mega-menu-content {
        display: block;
        padding: 0;
    }

    .mega-menu-section {
        margin-bottom: 0;
        border-bottom: 1px solid rgba(91, 120, 212, 0.08);
    }

    .mega-menu-section:last-child {
        border-bottom: none;
    }

    .mega-menu-title {
        font-size: 0.7rem;
        padding: 1rem 1.5rem 0.5rem;
        margin-bottom: 0;
        border-bottom: none;
        background: rgba(91, 120, 212, 0.03);
        color: #5b78d4;
    }

    .mega-menu-list {
        gap: 0;
    }

    .mega-menu-link {
        padding: 1rem 2rem;
        border-radius: 0;
        background-color: rgba(91, 120, 212, 0.02);
        border-bottom: 1px solid rgba(91, 120, 212, 0.05);
    }

    .mega-menu-link:hover {
        background-color: rgba(91, 120, 212, 0.08);
        padding-left: 2.5rem;
        transform: none;
    }

    .mega-link-text {
        font-size: 0.9rem;
    }

    .mega-link-desc {
        font-size: 0.75rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1f3173 0%, #1e3a8a 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero .description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #fff;
    color: #1f3173;
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1f3173;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1f3173;
    font-weight: 300;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

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

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1f3173;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #1f3173;
    font-weight: 300;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1.1rem;
    text-align: justify;
}

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

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

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #1f3173;
}

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

/* Members Page Styles */
.members-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
}

.members-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.members-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Small Hero Banner for Members */
.members-hero-small {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1.5rem 0 1rem;
    text-align: center;
}

.members-hero-small h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.members-hero-small p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* Members Content Section (No Banner) */
.members-content {
    padding: 2rem 0 4rem;
}

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

.team-category {
    margin-bottom: 4rem;
}

.team-category:last-child {
    margin-bottom: 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.member-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #5b78d4;
    box-shadow: 0 4px 15px rgba(91, 120, 212, 0.2);
    background-color: #f8f9fa;
    position: relative;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 1;
}

.team-member:hover .member-photo img {
    transform: scale(1.05);
}

.member-info h3 {
    color: #1f3173;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.member-title {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.member-email {
    margin-bottom: 0.5rem;
}

.member-email a {
    color: #1f3173;
    text-decoration: none;
    font-size: 0.9rem;
}

.member-email a:hover {
    text-decoration: underline;
}

.member-profile a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.member-profile a:hover {
    background-color: #1f3173;
    color: white;
    border-color: #1f3173;
}

/* People Page Styles */
.people-content {
    padding: 2rem 0 4rem;
}

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

.page-header h1 {
    font-size: 3rem;
    color: #1f3173;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.people-category {
    margin-bottom: 4rem;
}

.people-category:last-child {
    margin-bottom: 0;
}

.projects-list,
.graduates-list {
    margin-top: 2rem;
}

.project-item,
.graduate-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #1f3173;
    transition: all 0.3s ease;
}

.project-item:hover,
.graduate-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.project-title,
.graduate-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f3173;
    margin-bottom: 0.5rem;
}

.project-student {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.graduate-thesis {
    margin-bottom: 0.5rem;
}

.graduate-thesis a {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.5;
    font-style: italic;
}

.graduate-thesis a:hover {
    color: #1f3173;
    text-decoration: underline;
}

.project-description,
.graduate-year {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.empty-state p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Projects Page Styles */
.projects-content {
    padding: 2rem 0 4rem;
}

.projects-category {
    margin-bottom: 4rem;
}

.projects-category:last-child {
    margin-bottom: 0;
}

.projects-list,
.completed-projects-list {
    margin-top: 2rem;
}

.project-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #1f3173;
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f3173;
    margin-bottom: 0.5rem;
}

.project-duration {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.project-funding {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.project-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.project-team {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1.5rem 0 0.5rem;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.footer-section h3 {
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    color: white;
}

.footer-section p {
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.footer-section a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer-section strong {
    color: white;
    font-weight: 600;
}

/* Footer Icons */
.icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    background-color: rgba(255,255,255,0.9);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    vertical-align: middle;
}

.icon-building {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M3 21h18M5 21V7l8-4v18M19 21V10l-6-3'/%3E%3Cpath d='M9 9v.01M9 12v.01M9 15v.01M13 9v.01M13 12v.01M13 15v.01'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M3 21h18M5 21V7l8-4v18M19 21V10l-6-3'/%3E%3Cpath d='M9 9v.01M9 12v.01M9 15v.01M13 9v.01M13 12v.01M13 15v.01'/%3E%3C/svg%3E");
}

.icon-location {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.icon-university {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 10v6M2 10l10-5 10 5-10 5z'/%3E%3Cpath d='M6 12v5c3 3 9 3 12 0v-5'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 10v6M2 10l10-5 10 5-10 5z'/%3E%3Cpath d='M6 12v5c3 3 9 3 12 0v-5'/%3E%3C/svg%3E");
}

.icon-address {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M3 7v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z'/%3E%3Cpath d='M3 9l9 6 9-6'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M3 7v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z'/%3E%3Cpath d='M3 9l9 6 9-6'/%3E%3C/svg%3E");
}

.icon-contact {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Crect x='8' y='2' width='8' height='4' rx='1' ry='1'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Crect x='8' y='2' width='8' height='4' rx='1' ry='1'/%3E%3C/svg%3E");
}

.icon-email {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}

.icon-phone {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.icon-link {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
}

.icon-web {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
}

.icon-computer {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='3' width='20' height='14' rx='2' ry='2'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='3' width='20' height='14' rx='2' ry='2'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3C/svg%3E");
}

.icon-security {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 0.75rem;
    margin-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    margin: 0;
}

.footer-last-update {
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.75rem !important;
    margin-top: 0.35rem !important;
}

/* Responsive Design */

/* Tablet styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

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

    .hero .subtitle {
        font-size: 1.2rem;
    }

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

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

    .about-content {
        gap: 2rem;
    }

    /* Contact page tablet */
    .contact-hero h1 {
        font-size: 2.4rem;
    }

    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .contact-card {
        padding: 2rem;
    }

    .opportunity-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .opportunity-card {
        padding: 2rem;
        min-height: 380px;
    }

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

    .cta-content h2 {
        font-size: 2rem;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Header mobile adjustments */
    header {
        position: relative;
        z-index: 1002;
    }

    .header-content {
        padding: 0.75rem 0;
        position: relative;
    }

    .um-logo {
        height: 45px;
    }

    /* Hero section mobile */
    .hero {
        padding: 3rem 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero .description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px;
        font-size: 1rem;
    }

    /* Sections mobile */
    .features, .about {
        padding: 3rem 0;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

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

    .feature-card h3 {
        font-size: 1.2rem;
    }

    /* About section mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .about-text p {
        font-size: 1rem;
        text-align: left;
    }

    /* Contact page mobile */
    .contact-hero {
        padding: 2.5rem 0;
    }

    .contact-hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .contact-info {
        padding: 3rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-card {
        padding: 2rem;
    }

    .opportunities {
        padding: 3rem 0;
    }

    .opportunity-category {
        margin-bottom: 3rem;
    }

    .category-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .category-icon {
        font-size: 3rem;
    }

    .category-title {
        font-size: 1.8rem;
    }

    .category-subtitle {
        font-size: 1rem;
    }

    .opportunity-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .opportunity-card {
        padding: 2rem;
        min-height: 350px;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .card-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
        font-size: 2rem;
    }

    .card-header h4 {
        font-size: 1.2rem;
    }

    .contact-cta {
        padding: 3rem 0;
    }

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

    .stat-item {
        padding: 1rem;
    }

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

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

    /* Footer mobile */
    footer {
        padding: 1.5rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 0.5rem;
    }

    .footer-section a {
        font-size: 1rem;
        padding: 0.5rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .footer-bottom p {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0 15px;
    }

    /* Members page mobile styles */
    .members-hero h1 {
        font-size: 2rem;
    }

    .members-hero p {
        font-size: 1rem;
    }

    .members-hero-small {
        padding: 1rem 0 0.75rem;
    }

    .members-hero-small h1 {
        font-size: 1.8rem;
    }

    .members-hero-small p {
        font-size: 0.9rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-member {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }

    .member-photo {
        width: 140px;
        height: 140px;
        margin-bottom: 1.5rem;
    }

    .member-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .member-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .member-email a,
    .member-profile a {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Page headers mobile styles */
    .page-header {
        text-align: center;
        margin-bottom: 3rem;
        padding: 0 10px;
    }

    .page-header h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .project-item,
    .graduate-item {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .project-title,
    .graduate-name {
        font-size: 1rem;
    }

    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state p {
        font-size: 1rem;
    }

    /* Projects page mobile styles */
    .project-item {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-duration,
    .project-funding,
    .project-description,
    .project-team {
        font-size: 0.9rem;
    }
}

/* Contact Page Styles */
.contact-hero {
    padding: 3rem 0;
    background: linear-gradient(135deg, #1f3173 0%, #1e3d72 100%);
    color: white;
    text-align: center;
}

.contact-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-info {
    padding: 4rem 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 90, 160, 0.1);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: rgba(44, 90, 160, 0.2);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.contact-card h3 {
    color: #1f3173;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 500;
}

.contact-card p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.contact-card a {
    color: #1f3173;
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

.opportunities {
    padding: 5rem 0;
    background: white;
}

.opportunity-category {
    margin-bottom: 5rem;
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    border: 1px solid rgba(44, 90, 160, 0.1);
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.category-title {
    font-size: 2.2rem;
    color: #1f3173;
    margin-bottom: 1rem;
    font-weight: 400;
}

.category-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.opportunity-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.opportunity-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(44, 90, 160, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.opportunity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: rgba(44, 90, 160, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.card-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.card-header h4 {
    color: #1f3173;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.card-features li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.feature-icon {
    font-size: 1.2rem;
    margin-right: 0.8rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.card-features strong {
    color: #1f3173;
    font-weight: 600;
}

/* Statement-style features */
.statement-features {
    margin-top: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.statement-item {
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1f3173;
    line-height: 1.5;
    color: #666;
}

.statement-item:last-child {
    margin-bottom: 0;
}

.statement-item strong {
    color: #1f3173;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

.contact-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1f3173 0%, #1e3d72 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Small mobile styles */
@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }

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

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero .description {
        font-size: 0.95rem;
    }

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

    .feature-card {
        padding: 1.25rem;
    }

    .about-text h2 {
        font-size: 1.6rem;
    }

    /* Contact page mobile */
    .contact-hero {
        padding: 2rem 0;
    }

    .contact-hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

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

    .opportunity-category {
        margin-bottom: 2rem;
    }

    .category-header {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

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

    .category-title {
        font-size: 1.6rem;
    }

    .category-subtitle {
        font-size: 0.9rem;
    }

    .opportunity-cards {
        gap: 1rem;
    }

    .opportunity-card {
        padding: 1.5rem;
        min-height: 320px;
    }

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

    .card-header h4 {
        font-size: 1.1rem;
    }

    .card-content p {
        font-size: 0.9rem;
    }

    .feature-icon {
        font-size: 1rem;
    }

    .statement-item {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }

    .statement-item strong {
        font-size: 0.9rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .stat-item {
        padding: 0.75rem;
    }

    nav ul {
        gap: 0.5rem;
    }

    nav a {
        font-size: 0.85rem;
        padding: 0.4rem;
    }
}

/* Publication Page Styles */
.publication-list {
    max-width: 1000px;
    margin: 0 auto;
}

.publication-item {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

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

.publication-item h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

.publication-content {
    color: #4b5563;
    line-height: 1.6;
}

.publication-content p {
    margin-bottom: 1rem;
}

.publication-content ul {
    list-style: none;
    padding-left: 0;
}

.publication-content li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.publication-content li::before {
    content: "📄";
    position: absolute;
    left: 0;
    top: 0;
}

.publication-content a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.publication-content a:hover {
    color: #3e58b8;
    text-decoration: underline;
}

/* Publication list items */
.publication-list-items {
    list-style: none;
    padding: 0;
}

.publication-list-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.publication-list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.publication-citation {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 0.75rem;
}

.publication-doi,
.publication-url {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.publication-doi a,
.publication-url a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.publication-doi a:hover,
.publication-url a:hover {
    color: #3e58b8;
    text-decoration: underline;
}

.loading {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 1rem;
}

/* Mobile responsiveness for publications */
@media (max-width: 768px) {
    .publication-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .publication-item h3 {
        font-size: 1.25rem;
    }

    .publication-content {
        font-size: 0.9rem;
    }

    .publication-list-item {
        padding: 0.75rem;
    }

    .publication-citation {
        font-size: 0.875rem;
    }
}

/* =============================================================
   LANDING PAGE REDESIGN — Modern Research Centre Theme
   All classes prefixed with "lp-" to avoid conflicts
   ============================================================= */

/* ---- Scroll animation utilities ---- */
.fade-in-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
    will-change: opacity, transform;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Directional variants — used on about.html split layout */
.fade-in-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
    will-change: opacity, transform;
}
.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.fade-in-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
    will-change: opacity, transform;
}
.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Safety: respect reduced-motion preference + fallback if JS fails to set .visible */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up,
    .fade-in-left,
    .fade-in-right { opacity: 1; transform: none; transition: none; will-change: auto; }
}

/* Mobile: replace horizontal slide with vertical to avoid overflow-x:hidden / iOS Safari
   IntersectionObserver interaction that keeps elements invisible (opacity:0 forever). */
@media (max-width: 767px) {
    .fade-in-left  { transform: translateY(20px); }
    .fade-in-right { transform: translateY(20px); }
    .fade-in-left.visible  { transform: translateY(0); }
    .fade-in-right.visible { transform: translateY(0); }
}

/* ---- Section utilities ---- */
.lp-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5b78d4;
    margin-bottom: 0.75rem;
}

.lp-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.lp-section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.lp-section-sub {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.7;
}

/* ---- Gradient text ---- */
.lp-gradient-text {
    background: linear-gradient(135deg, #a5b4fc 0%, #c7d2fe 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================================================
   HERO
   ================================================================ */
.lp-hero {
    position: relative;
    background: #0a1432;
    background-image:
        radial-gradient(ellipse 70% 60% at 60% 0%, rgba(91, 120, 212, 0.25) 0%, transparent 60%),
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0);
    background-size: 100%, 36px 36px;
    color: white;
    padding: 6rem 0 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lp-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.lp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: lp-float 9s ease-in-out infinite;
}

.lp-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(91, 120, 212, 0.22);
    top: -15%;
    right: 5%;
    animation-duration: 9s;
}

.lp-orb-2 {
    width: 350px;
    height: 350px;
    background: rgba(155, 177, 236, 0.16);
    bottom: 5%;
    left: 2%;
    animation-duration: 12s;
    animation-delay: -4s;
}

.lp-orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(124, 58, 237, 0.18);
    top: 40%;
    right: 30%;
    animation-duration: 7s;
    animation-delay: -2s;
}

@keyframes lp-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.06); }
}

.lp-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding-bottom: 3rem;
    flex: 1;
    min-width: 0;
}

.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.02em;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(8px);
}

.lp-badge-dot {
    width: 7px;
    height: 7px;
    background: #34d399;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.3);
    animation: lp-pulse 2.5s ease-in-out infinite;
}

@keyframes lp-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.1); }
}

.lp-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.lp-hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.lp-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.lp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #5b78d4;
    color: white;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 200ms var(--ease-out), transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out);
    box-shadow: 0 4px 20px rgba(91, 120, 212, 0.4);
    min-height: 44px;
}

@media (hover: hover) and (pointer: fine) {
    .lp-btn-primary:hover {
        background: #3e58b8;
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(91, 120, 212, 0.5);
    }
}

.lp-btn-primary:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 2px 12px rgba(91, 120, 212, 0.35);
    transition-duration: 100ms;
}

.lp-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: white;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1.5px solid rgba(255,255,255,0.35);
    transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 160ms var(--ease-out);
    min-height: 44px;
}

@media (hover: hover) and (pointer: fine) {
    .lp-btn-secondary:hover {
        background: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.6);
        transform: translateY(-2px);
    }
}

.lp-btn-secondary:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 100ms;
}

/* ================================================================
   HERO — two-column layout (text + visual card)
   ================================================================ */
.lp-hero-layout {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding-bottom: 3rem;
}

/* Visual card — decorative research dashboard on the right */
.lp-hero-visual {
    flex-shrink: 0;
    width: 310px;
    position: relative;
    animation: lp-float 9s ease-in-out infinite;
    animation-delay: -1s;
}

.lp-hv-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(24px);
    border-radius: 20px;
    padding: 1.5rem;
    color: white;
}

.lp-hv-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.lp-hv-icon {
    width: 36px;
    height: 36px;
    background: rgba(91,120,212,0.35);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lp-hv-icon svg { width: 18px; height: 18px; stroke: #a5b4fc; }

.lp-hv-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    line-height: 1.2;
}

.lp-hv-card-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.1rem;
}

.lp-hv-live {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #34d399;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lp-hv-live-dot {
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
    animation: lp-pulse 2s ease-in-out infinite;
}

.lp-hv-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.lp-hv-m {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 0.6rem 0.5rem;
    text-align: center;
}

.lp-hv-m-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    letter-spacing: -0.02em;
}

.lp-hv-m-key {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.25rem;
    line-height: 1.3;
}

.lp-hv-bars {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.lp-hv-bar-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
}

.lp-hv-bar-row span:first-child { width: 52px; flex-shrink: 0; }
.lp-hv-bar-row span:last-child  { width: 28px; flex-shrink: 0; text-align: right; }

.lp-hv-bar {
    flex: 1;
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    overflow: hidden;
}

.lp-hv-bar-fill {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, #5b78d4, #a5b4fc);
}

.lp-hv-bar-fill-g { background: linear-gradient(90deg, #34d399, #6ee7b7); }
.lp-hv-bar-fill-v { background: linear-gradient(90deg, #7c3aed, #a78bfa); }

/* Floating badge chips around the card */
.lp-hv-badge {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 0.45rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.lp-hv-badge svg { width: 13px; height: 13px; flex-shrink: 0; }

.lp-hv-badge-1 {
    top: -1.25rem;
    right: -1rem;
    animation: lp-float 7s ease-in-out infinite;
    animation-delay: -3s;
}

.lp-hv-badge-2 {
    bottom: -1.25rem;
    left: -1rem;
    animation: lp-float 10s ease-in-out infinite;
    animation-delay: -5s;
}

@media (max-width: 1100px) {
    .lp-hero-visual { display: none; }
}

/* Stats bar */
.lp-stats-bar {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.06);
    border-top: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    margin-top: 1rem;
    padding: 1.75rem 0;
}

.lp-stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.lp-stat {
    text-align: center;
    padding: 0.5rem 3rem;
    flex: 1;
    min-width: 130px;
}

.lp-stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.lp-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.3rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 500;
}

.lp-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

/* ================================================================
   RESEARCH AREAS
   ================================================================ */
.lp-research {
    padding: 6rem 0;
    background: #f8fafc;
}

.lp-research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.lp-rc {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lp-rc:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.lp-rc-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

.lp-rc-icon svg {
    width: 26px;
    height: 26px;
}

.lp-rc-icon-blue   { background: #eff6ff; color: #5b78d4; }
.lp-rc-icon-cyan   { background: #ecfeff; color: #3e58b8; }
.lp-rc-icon-violet { background: #f5f3ff; color: #7c3aed; }
.lp-rc-icon-green  { background: #f0fdf4; color: #16a34a; }
.lp-rc-icon-amber  { background: #fffbeb; color: #d97706; }
.lp-rc-icon-rose   { background: #fff1f2; color: #e11d48; }

.lp-rc h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.lp-rc p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
    flex: 1;
}

.lp-rc-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #5b78d4;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s;
}

.lp-rc-link:hover { color: #3e58b8; }

/* SIG cards — image-based research pillars */
.lp-sig-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.lp-sig {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}
.lp-sig:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.18);
    border-color: #cbd5e1;
}
.lp-sig-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0f172a;
}
.lp-sig-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lp-sig:hover .lp-sig-img img {
    transform: scale(1.06);
}
.lp-sig-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.lp-sig-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}
.lp-sig-lead {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 0.25rem;
    flex: 1;
}
@media (max-width: 1024px) {
    .lp-sig-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .lp-sig-grid { grid-template-columns: 1fr; }
}

/* SIG detail page — overview + numbered list */
.pg-sig-overview {
    max-width: 860px;
    margin: 0 auto;
}
.pg-sig-overview .pg-section-title {
    text-align: left;
    margin-bottom: 1.25rem;
}
.pg-sig-overview p {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.pg-sig-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 920px;
    counter-reset: sig;
    display: grid;
    gap: 1.25rem;
}
.pg-sig-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pg-sig-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -16px rgba(15, 23, 42, 0.18);
    border-color: #cbd5e1;
}
.pg-sig-num {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e3a8a, #5b78d4);
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pg-sig-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.pg-sig-content p {
    color: #475569;
    line-height: 1.7;
    font-size: 0.95rem;
}
@media (max-width: 600px) {
    .pg-sig-item { grid-template-columns: 1fr; padding: 1.25rem; }
    .pg-sig-num { width: 40px; height: 40px; font-size: 1rem; }
}

/* ================================================================
   ABOUT / MISSION
   ================================================================ */
.lp-about {
    padding: 6rem 0;
    background: white;
}

.lp-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.lp-about-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    margin-top: 0.5rem;
}

.lp-about-text p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.lp-highlights {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.lp-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #334155;
}

.lp-hl-icon {
    width: 22px;
    height: 22px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    color: #5b78d4;
}

.lp-hl-icon svg {
    width: 12px;
    height: 12px;
}

.lp-about-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.lp-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #5b78d4;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1.5px solid #5b78d4;
    transition: all 0.25s;
    min-height: 44px;
}

.lp-btn-outline:hover {
    background: #5b78d4;
    color: white;
}

.lp-btn-ghost {
    display: inline-flex;
    align-items: center;
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
    min-height: 44px;
}

.lp-btn-ghost:hover { color: #5b78d4; }

.lp-achievement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.lp-ach {
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lp-ach-num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.lp-ach-label {
    font-size: 0.85rem;
    line-height: 1.45;
    font-weight: 500;
}

.lp-ach-primary {
    background: linear-gradient(135deg, #1e3a8a, #5b78d4);
    color: white;
    grid-column: 1 / -1;
}

.lp-ach-primary .lp-ach-label { color: rgba(255,255,255,0.8); }

.lp-ach-secondary {
    background: #f1f5f9;
    color: #0f172a;
}

.lp-ach-secondary .lp-ach-label { color: #64748b; }

.lp-ach-accent {
    background: linear-gradient(135deg, #3e58b8, #9bb1ec);
    color: white;
}

.lp-ach-accent .lp-ach-label { color: rgba(255,255,255,0.85); }

/* About — photo composition with overlay stat cards */
.lp-about-photo {
    position: relative;
    border-radius: 24px;
    overflow: visible;
    aspect-ratio: 1 / 1;
    max-width: 480px;
    margin: 0 auto;
}
.lp-about-photo > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.35);
    display: block;
}
.lp-about-photo-overlay {
    position: absolute;
    background: #ffffff;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: 0 18px 40px -10px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(15, 23, 42, 0.06);
    min-width: 170px;
}
.lp-about-photo-overlay-tl { top: 1rem; left: -1.5rem; }
.lp-about-photo-overlay-br { bottom: 1rem; right: -1.5rem; background: linear-gradient(135deg, #1e3a8a, #5b78d4); color: #fff; }
.lp-about-photo-overlay-br .lp-ach-label { color: rgba(255,255,255,0.85); }
@media (max-width: 768px) {
    .lp-about-photo-overlay-tl { left: 0.75rem; }
    .lp-about-photo-overlay-br { right: 0.75rem; }
}

/* ================================================================
   NEWS & HIGHLIGHTS
   ================================================================ */
.lp-news {
    padding: 6rem 0;
    background: #f8fafc;
}

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

.lp-news-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.lp-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.08);
}

.lp-news-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    width: fit-content;
}

.lp-tag-blue   { background: #eff6ff; color: #5b78d4; }
.lp-tag-green  { background: #f0fdf4; color: #16a34a; }
.lp-tag-violet { background: #f5f3ff; color: #7c3aed; }
.lp-tag-orange { background: #fff7ed; color: #c2410c; }

.lp-news-date {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.lp-news-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
}

.lp-news-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
    flex: 1;
}

.lp-news-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #5b78d4;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s;
}

.lp-news-link:hover { color: #3e58b8; }

/* ================================================================
   AFFILIATES
   ================================================================ */
.lp-affiliates {
    padding: 3rem 0;
    background: white;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.lp-affiliates-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.lp-affiliates-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.lp-affiliate-item {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    padding: 0.5rem 2rem;
    transition: color 0.2s;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.lp-affiliate-item:hover { color: #5b78d4; }

.lp-affiliate-sep {
    width: 1px;
    height: 20px;
    background: #e2e8f0;
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.lp-cta {
    position: relative;
    background: #0a1432;
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(91, 120, 212, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 100%, 36px 36px;
    color: white;
    padding: 7rem 0;
    overflow: hidden;
    text-align: center;
}

.lp-cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.lp-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}

.lp-cta-title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.lp-cta-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.68);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.lp-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.lp-btn-secondary-light {
    border-color: rgba(255,255,255,0.3);
}

/* ================================================================
   RESPONSIVE — Tablet
   ================================================================ */
@media (max-width: 1024px) {
    .lp-research-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

/* ================================================================
   RESPONSIVE — Mobile
   ================================================================ */
@media (max-width: 768px) {
    .lp-hero {
        padding-top: 5rem;
        min-height: auto;
    }

    .lp-hero-inner {
        text-align: center;
        padding-bottom: 2.5rem;
    }

    .lp-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .lp-hero-actions {
        justify-content: center;
    }

    .lp-stat {
        padding: 0.5rem 1.5rem;
        min-width: 120px;
    }

    .lp-stat-divider {
        display: none;
    }

    .lp-research {
        padding: 4rem 0;
    }

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

    .lp-about {
        padding: 4rem 0;
    }

    .lp-about-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .lp-news {
        padding: 4rem 0;
    }

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

    .lp-affiliate-sep {
        display: none;
    }

    .lp-cta {
        padding: 5rem 0;
    }

    .lp-section-title {
        font-size: 1.8rem;
    }

    .lp-achievement-grid {
        grid-template-columns: 1fr;
    }

    .lp-ach-primary {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .lp-hero-title {
        font-size: 1.9rem;
    }

    .lp-stat-num {
        font-size: 1.75rem;
    }

    .lp-btn-primary,
    .lp-btn-secondary {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }

    .lp-cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .lp-cta-actions .lp-btn-primary,
    .lp-cta-actions .lp-btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* =============================================================
   INNER PAGE STYLES — pg- prefix
   ============================================================= */

/* ---- Page hero (all inner pages) ---- */
.pg-hero {
    background: #0a1432;
    background-image:
        radial-gradient(ellipse 50% 80% at 0% 50%, rgba(37,99,235,0.18) 0%, transparent 55%),
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
    background-size: 100%, 36px 36px;
    color: white;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.pg-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.25rem;
    white-space: nowrap;
}

.pg-breadcrumb a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
    min-height: unset;
    min-width: unset;
}

.pg-breadcrumb a:hover { color: rgba(255,255,255,0.9); }

.pg-hero-title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.pg-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    max-width: 580px;
    line-height: 1.7;
    margin: 0;
}

/* Stats row inside page hero */
.pg-hero-stats {
    display: flex;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 0;
    flex-wrap: wrap;
}

.pg-hero-stat {
    flex: 1;
    min-width: 120px;
    padding: 0 2rem 0 0;
    border-right: 1px solid rgba(255,255,255,0.1);
    margin-right: 2rem;
}

.pg-hero-stat:last-child {
    border-right: none;
    margin-right: 0;
}

.pg-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
    line-height: 1;
}

.pg-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.52);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 0.3rem;
    font-weight: 500;
}

/* ---- Generic page sections ---- */
.pg-section {
    padding: 5rem 0;
    background: white;
}

.pg-section-alt {
    padding: 5rem 0;
    background: #f8fafc;
}

.pg-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
}

/* ---- About page split layout ---- */
.pg-about-split {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}
.pg-about-split .pg-about-photo {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.2);
}
.pg-about-split .pg-about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 700ms var(--ease-out);
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
    .pg-about-split .pg-about-photo:hover img {
        transform: scale(1.04);
    }
}
@media (max-width: 900px) {
    .pg-about-split { grid-template-columns: 1fr; gap: 2rem; }
    .pg-about-split .pg-about-photo { aspect-ratio: 16 / 10; max-width: 600px; margin: 0 auto; }
}

/* ---- "Why" section banner image ---- */
.pg-why-banner {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    aspect-ratio: 1920 / 711;
    box-shadow: 0 20px 40px -16px rgba(15, 23, 42, 0.18);
}
.pg-why-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 600px) {
    .pg-why-banner { aspect-ratio: 16 / 9; }
}

/* ---- About page text ---- */
.pg-about-text p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

/* Stat cards grid */
.pg-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.pg-stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .pg-stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    }
}

.pg-stat-card-num {
    font-size: 2rem;
    font-weight: 800;
    color: #5b78d4;
    letter-spacing: -0.03em;
    line-height: 1;
}

.pg-stat-card-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Colour accent per stat card */
.pg-stat-card:nth-child(2) .pg-stat-card-num { color: #7c3aed; }
.pg-stat-card:nth-child(3) .pg-stat-card-num { color: #059669; }
.pg-stat-card:nth-child(4) .pg-stat-card-num { color: #c2410c; }

/* Eyebrow label for inner page sections */
.pg-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5b78d4;
    margin-bottom: 0.6rem;
}

/* ---- Niche / research area cards ---- */
.pg-niche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.pg-niche-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #5b78d4;
    border-radius: 14px;
    padding: 1.75rem;
    transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), background-color 220ms var(--ease-out);
    display: block;
    text-decoration: none;
    color: inherit;
}

.pg-niche-card:nth-child(2) { border-top-color: #3e58b8; }
.pg-niche-card:nth-child(3) { border-top-color: #7c3aed; }
.pg-niche-card:nth-child(4) { border-top-color: #16a34a; }
.pg-niche-card:nth-child(5) { border-top-color: #d97706; }

@media (hover: hover) and (pointer: fine) {
    .pg-niche-card:hover {
        transform: translateY(-6px) scale(1.01);
        box-shadow: 0 16px 36px rgba(0,0,0,0.1);
    }
    .pg-niche-card:hover .pg-niche-icon {
        transform: scale(1.14) translateY(-3px);
    }
}

.pg-niche-card:active {
    transform: translateY(0) scale(0.97);
    background-color: #f8fafc;
    transition-duration: 120ms;
}

.pg-niche-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eff6ff;
    color: #5b78d4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 280ms var(--ease-out), background-color 220ms var(--ease-out);
}

.pg-niche-icon svg { width: 22px; height: 22px; }

.pg-niche-card:nth-child(2) .pg-niche-icon { background: #ecfeff; color: #3e58b8; }
.pg-niche-card:nth-child(3) .pg-niche-icon { background: #f5f3ff; color: #7c3aed; }
.pg-niche-card:nth-child(4) .pg-niche-icon { background: #f0fdf4; color: #16a34a; }
.pg-niche-card:nth-child(5) .pg-niche-icon { background: #fffbeb; color: #d97706; }

.pg-niche-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.pg-niche-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.65;
}

.pg-niche-lead {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: #475569;
    font-weight: 600;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
    line-height: 1.4;
}

.pg-niche-lead-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e2e8f0;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* ---- Why cybersecurity section ---- */
.pg-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.pg-why-text p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.pg-why-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.pg-why-stat-card {
    background: linear-gradient(135deg, #0d1b2a, #1a2f47);
    color: white;
    border-radius: 14px;
    padding: 1.75rem;
    transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
    cursor: default;
}

@media (hover: hover) and (pointer: fine) {
    .pg-why-stat-card:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 16px 40px rgba(0,0,0,0.3);
    }
}

.pg-why-stat-card:nth-child(2) { background: linear-gradient(135deg, #1e3a8a, #5b78d4); }
.pg-why-stat-card:nth-child(3) { background: linear-gradient(135deg, #065f46, #059669); }
.pg-why-stat-card:nth-child(4) { background: linear-gradient(135deg, #7c2d12, #ea580c); }

.pg-why-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
    line-height: 1;
}

.pg-why-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    margin-top: 0.4rem;
    line-height: 1.4;
}

/* ---- Team leader featured card ---- */
.team-leader-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.team-leader {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 2px solid #bfdbfe;
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 680px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(37,99,235,0.1);
    transition: box-shadow 0.3s;
}

.team-leader:hover {
    box-shadow: 0 8px 32px rgba(37,99,235,0.15);
}

.team-leader .member-photo {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    margin: 0;
    border-color: #5b78d4;
}

.team-leader-badge {
    display: inline-block;
    background: #5b78d4;
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.team-leader-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.team-leader-title {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.team-leader-accolade {
    font-size: 0.85rem;
    color: #5b78d4;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-leader-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.team-leader-links a {
    font-size: 0.82rem;
    color: #475569;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    transition: all 0.2s;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
}

.team-leader-links a:hover {
    background: #5b78d4;
    color: white;
    border-color: #5b78d4;
}

/* ---- Member role badge ---- */
.member-role-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    margin-bottom: 0.6rem;
}

.badge-professor   { background: #fef3c7; color: #92400e; }
.badge-assoc-prof  { background: #ede9fe; color: #6d28d9; }
.badge-senior-lect { background: #f0fdf4; color: #166534; }
.badge-lecturer    { background: #f0f9ff; color: #075985; }

/* ---- Graduate items ---- */
.graduate-item-v2 {
    background: white;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #5b78d4;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: box-shadow 0.3s, transform 0.2s;
}

.graduate-item-v2:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    transform: translateX(3px);
}

.graduate-year-badge {
    background: #eff6ff;
    color: #5b78d4;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    flex-shrink: 0;
    margin-top: 0.2rem;
    white-space: nowrap;
}

.graduate-degree {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.07em;
    margin-bottom: 0.3rem;
}

.graduate-name-v2 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.graduate-thesis-v2 a {
    font-size: 0.9rem;
    color: #475569;
    text-decoration: none;
    line-height: 1.55;
    font-style: italic;
}

.graduate-thesis-v2 a:hover { color: #5b78d4; text-decoration: underline; }

/* ---- Empty state ---- */
.pg-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
}

.pg-empty-icon {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #94a3b8;
}

.pg-empty-icon svg { width: 28px; height: 28px; }

.pg-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.pg-empty-desc {
    font-size: 0.9rem;
    color: #64748b;
    max-width: 380px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

/* ---- Contact info cards ---- */
.pg-contact-strip {
    background: #f8fafc;
    padding: 3.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.pg-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.pg-contact-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: box-shadow 0.3s;
}

.pg-contact-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}

.pg-cc-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #eff6ff;
    color: #5b78d4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pg-cc-icon svg { width: 22px; height: 22px; }

.pg-cc-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.pg-cc-value {
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 500;
    line-height: 1.55;
}

.pg-cc-value a {
    color: #5b78d4;
    text-decoration: none;
    font-weight: 600;
}

.pg-cc-value a:hover { text-decoration: underline; }

/* ---- Opportunity section ---- */
.pg-opp-category {
    margin-bottom: 4rem;
}

.pg-opp-category:last-child { margin-bottom: 0; }

.pg-opp-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 2rem;
}

.pg-opp-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #eff6ff;
    color: #5b78d4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pg-opp-icon svg { width: 26px; height: 26px; }

.pg-opp-icon-green { background: #f0fdf4; color: #16a34a; }

.pg-opp-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.pg-opp-sub {
    font-size: 0.9rem;
    color: #64748b;
}

.pg-opp-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.pg-opp-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pg-opp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.pg-opp-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eff6ff;
    color: #5b78d4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.pg-opp-card-icon svg { width: 22px; height: 22px; }

.pg-opp-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.6rem;
}

.pg-opp-card-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.pg-opp-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pg-opp-list li {
    font-size: 0.85rem;
    color: #475569;
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    line-height: 1.5;
}

.pg-opp-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #5b78d4;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.45rem;
}

/* ---- CTA section (inner pages) ---- */
.pg-cta {
    background: linear-gradient(135deg, #0d1b2a, #1e3a8a);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.pg-cta-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.pg-cta-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.68);
    max-width: 560px;
    margin: 0 auto 2.25rem;
    line-height: 1.8;
}

.pg-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================================================
   RESPONSIVE — inner pages
   ================================================================ */
@media (max-width: 1024px) {
    .pg-why-grid { grid-template-columns: 1fr; gap: 3rem; }
    .pg-contact-grid { grid-template-columns: 1fr 1fr; }
    .pg-opp-cards { grid-template-columns: 1fr 1fr; }
    .pg-stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .pg-hero { padding: 3rem 0 2.5rem; }
    .pg-hero-stats { flex-direction: column; gap: 0; }
    .pg-hero-stat {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 0.85rem 0;
        margin-right: 0;
    }
    .pg-hero-stat:last-child { border-bottom: none; }
    .team-leader { flex-direction: column; text-align: center; align-items: center; }
    .team-leader-links { justify-content: center; }
    .team-leader .member-photo { width: 100px; height: 100px; }
    .pg-niche-grid { grid-template-columns: 1fr 1fr; }
    .pg-contact-grid { grid-template-columns: 1fr; }
    .pg-opp-cards { grid-template-columns: 1fr; }
    .pg-opp-header { flex-direction: column; text-align: center; gap: 1rem; }
    .pg-why-stats { grid-template-columns: 1fr 1fr; }
    .pg-stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .pg-hero-title { font-size: 1.75rem; }
    .pg-niche-grid { grid-template-columns: 1fr; }
    .pg-why-stats { grid-template-columns: 1fr; }
    .pg-cta-actions { flex-direction: column; align-items: center; }
    .pg-cta-actions .lp-btn-primary,
    .pg-cta-actions .lp-btn-secondary { width: 100%; max-width: 280px; justify-content: center; }
}

/* ================================================================
   PUBLICATIONS PAGE — pg-pub-* classes
   ================================================================ */

.pg-pub-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.pg-pub-stat {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 120px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.pg-pub-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #60a5fa;
    letter-spacing: -0.03em;
    line-height: 1;
}

.pg-pub-stat-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pg-section-sub {
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.75;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

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

.pg-pub-entry {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pg-pub-entry:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 12px rgba(37,99,235,0.08);
}

.pg-pub-num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #5b78d4;
}

.pg-pub-content { flex: 1; }

.pg-pub-citation {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.pg-pub-doi,
.pg-pub-link {
    display: inline-block;
    font-size: 0.8rem;
    color: #5b78d4;
    text-decoration: none;
    margin-right: 1rem;
}

.pg-pub-doi:hover,
.pg-pub-link:hover { text-decoration: underline; }

.pg-pub-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.pg-pub-loading-icon {
    width: 40px;
    height: 40px;
    color: #94a3b8;
    animation: pg-spin 1.5s linear infinite;
}

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

/* ---- Theses ---- */
.pg-thesis-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pg-thesis-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pg-thesis-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 12px rgba(37,99,235,0.08);
}

.pg-thesis-degree {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.pg-thesis-degree-phd  { background: #f5f3ff; color: #6d28d9; }
.pg-thesis-degree-mcs  { background: #ecfdf5; color: #047857; }

.pg-thesis-body { flex: 1; }

.pg-thesis-author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-height: 2rem;
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}
.pg-thesis-author-name { white-space: nowrap; }

.pg-thesis-year {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.pg-thesis-title {
    color: #5b78d4;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
}

.pg-thesis-title:hover { text-decoration: underline; }

.pg-thesis-flag {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
    object-fit: cover;
}

.pg-thesis-author-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: #5b78d4;
    text-decoration: none;
}

.pg-thesis-author-link:hover { color: #0f172a; }

.pg-thesis-supervisor {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

.pg-thesis-supervisor strong {
    color: #475569;
    font-weight: 600;
}

/* ================================================================
   PEOPLE PAGE — pg-grad-* classes
   ================================================================ */

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

.pg-grad-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pg-grad-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 12px rgba(37,99,235,0.08);
}

.pg-grad-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.pg-grad-degree {
    background: #5b78d4;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.pg-grad-year {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.pg-grad-body { flex: 1; }

.pg-grad-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.pg-grad-thesis {
    color: #5b78d4;
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.5;
}

.pg-grad-thesis:hover { text-decoration: underline; }

/* ================================================================
   CONTACT PAGE — pg-contact-* and pg-opp-* classes
   ================================================================ */

.pg-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.pg-contact-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.pg-contact-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 20px rgba(37,99,235,0.1);
}

.pg-contact-card-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #5b78d4;
}

.pg-contact-card-icon svg {
    width: 22px;
    height: 22px;
}

.pg-contact-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.pg-contact-card-body {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.8;
}

.pg-contact-link {
    color: #5b78d4;
    text-decoration: none;
    transition: color 0.2s;
}

.pg-contact-link:hover { color: #3e58b8; text-decoration: underline; }

/* ---- Opportunities ---- */
.pg-opp-category {
    margin-bottom: 3.5rem;
}

.pg-opp-category-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #e2e8f0;
}

.pg-opp-category-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #5b78d4, #3b82f6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.pg-opp-category-icon svg {
    width: 24px;
    height: 24px;
}

.pg-opp-category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.pg-opp-category-sub {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

.pg-opp-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.pg-opp-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.pg-opp-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 20px rgba(37,99,235,0.09);
}

.pg-opp-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.pg-opp-card-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.pg-opp-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex: 1;
}

.pg-opp-list li {
    font-size: 0.85rem;
    color: #334155;
    padding: 0.35rem 0 0.35rem 1.25rem;
    position: relative;
    line-height: 1.4;
    border-bottom: 1px solid #f1f5f9;
}

.pg-opp-list li:last-child { border-bottom: none; }

.pg-opp-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #5b78d4;
    border-radius: 50%;
}

.pg-opp-cta {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #5b78d4;
    text-decoration: none;
    border: 1.5px solid #5b78d4;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    text-align: center;
    transition: background 0.2s, color 0.2s;
    align-self: flex-start;
}

.pg-opp-cta:hover {
    background: #5b78d4;
    color: white;
}

/* ================================================================
   RESPONSIVE — additional breakpoints for new elements
   ================================================================ */

@media (max-width: 1024px) {
    .pg-contact-grid { grid-template-columns: 1fr 1fr; }
    .pg-opp-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .pg-pub-stats { gap: 0.75rem; }
    .pg-pub-stat { padding: 0.75rem 1rem; min-width: 90px; }
    .pg-pub-stat-num { font-size: 1.3rem; }
    .pg-pub-entry { flex-direction: column; gap: 0.75rem; }
    .pg-pub-num { width: 1.75rem; height: 1.75rem; }
    .pg-thesis-item { flex-direction: column; gap: 0.75rem; }
    .pg-grad-item { flex-direction: column; gap: 0.75rem; }
    .pg-grad-meta { flex-direction: row; align-items: center; }
    .pg-contact-grid { grid-template-columns: 1fr; }
    .pg-opp-cards { grid-template-columns: 1fr; }
    .pg-opp-category-header { flex-direction: column; }
    .pg-opp-cta { width: 100%; text-align: center; align-self: stretch; }
}

/* ================================================================
   BLOG / NEWS PAGE — blog-* classes
   ================================================================ */

.blog-filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.blog-filter-btn {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.45rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.blog-filter-btn:hover {
    border-color: #5b78d4;
    color: #5b78d4;
}

.blog-filter-btn.active {
    background: #5b78d4;
    border-color: #5b78d4;
    color: white;
}

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

.blog-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}

.blog-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 32px rgba(37,99,235,0.1);
    transform: translateY(-2px);
}

.blog-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    border: 1px solid;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.blog-card-date {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 0.6rem;
    display: block;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    flex: 1;
}

.blog-card-excerpt {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5b78d4;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: gap 0.2s, color 0.2s;
    align-self: flex-start;
}

.blog-card-link:hover {
    gap: 0.5rem;
    color: #3e58b8;
}

/* ---- Post Modal ---- */
.blog-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.blog-modal[hidden] { display: none; }

.blog-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.65);
    backdrop-filter: blur(4px);
}

.blog-modal-panel {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(15,23,42,0.25);
    animation: modal-in 0.2s ease-out;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.blog-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.blog-modal-close:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.blog-modal-close svg { width: 16px; height: 16px; }

.blog-modal-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.blog-modal-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    border: 1px solid;
}

.blog-modal-date {
    font-size: 0.82rem;
    color: #94a3b8;
}

.blog-modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.blog-modal-content {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.8;
}

/* ================================================================
   RESPONSIVE — blog
   ================================================================ */

@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-modal-panel { padding: 1.75rem 1.25rem; }
    .blog-modal-title { font-size: 1.1rem; }
}

/* ===== MEDIA APPEARANCES ===== */
.media-card-outlet {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}
.media-modal-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1.5rem;
    text-decoration: none;
}
.media-modal-link[hidden] { display: none; }

/* ===== NEWS ARTICLE PAGES ===== */
.pg-news-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.pg-news-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.pg-news-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}
.pg-news-author {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0;
}
.pg-news-date {
    font-size: 0.8rem;
    color: #94a3b8;
    display: block;
}
.pg-article-body {
    max-width: 720px;
    margin: 0 auto;
}
.pg-article-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 24px rgba(15,23,42,0.12);
    display: block;
}
.pg-article-img-left {
    float: left;
    width: 45%;
    border-radius: 12px;
    margin: 0.25rem 1.75rem 1.25rem 0;
    box-shadow: 0 4px 24px rgba(15,23,42,0.12);
}
.pg-article-img-right {
    float: right;
    width: 45%;
    border-radius: 12px;
    margin: 0.25rem 0 1.25rem 1.75rem;
    box-shadow: 0 4px 24px rgba(15,23,42,0.12);
}
.pg-article-img-caption {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
}
.pg-article-body::after { content: ''; display: table; clear: both; }
@media (max-width: 640px) {
    .pg-article-img-left,
    .pg-article-img-right {
        float: none;
        width: 100%;
        margin: 0 0 1.5rem 0;
    }
}
.pg-article-body p {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #334155;
    margin-bottom: 1.5rem;
}
.pg-article-body a {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.media-card-speaker {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-top: 1rem;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 3px 12px 3px 3px;
    width: fit-content;
}
.media-card-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.media-card-speaker-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    margin-left: 8px;
    white-space: nowrap;
}

/* ===== PUBLICATIONS FILTER ===== */
.pub-filter-wrap { display: flex; flex-direction: column; gap: 0.75rem; }
.pub-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
.pub-filter-row .blog-filter-bar {
    align-items: center;
    margin-bottom: 0;
}
.pub-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.pub-select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.45rem 2.2rem 0.45rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    line-height: 1.4;
    transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
    min-width: 9rem;
}
.pub-select:hover {
    border-color: #94a3b8;
    color: #1e293b;
}
.pub-select:focus {
    outline: none;
    border-color: #0d4080;
    box-shadow: 0 0 0 3px rgba(13,64,128,0.12);
    color: #1e293b;
}
.pub-select-caret {
    position: absolute;
    right: 0.75rem;
    width: 14px;
    height: 14px;
    color: #94a3b8;
    pointer-events: none;
}
.pub-filter-count { font-size: 0.875rem; color: #64748b; margin-top: 0.5rem; min-height: 1.25rem; }
.pub-search-wrap {
    position: relative;
    width: 100%;
    max-width: 36rem;
    margin-bottom: 0.5rem;
}
.pub-search-wrap svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #94a3b8;
    pointer-events: none;
}
.pub-search-box {
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.5rem 1.1rem 0.5rem 2.6rem;
    font-size: 0.875rem;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pub-search-box::placeholder { color: #94a3b8; }
.pub-search-box:focus {
    outline: none;
    border-color: #0d4080;
    box-shadow: 0 0 0 3px rgba(13,64,128,0.12);
}
/* ===== RESEARCH LANDSCAPE WORD CLOUD ===== */
.wc-section {
    background: linear-gradient(160deg, #040d1e 0%, #081428 55%, #060f20 100%);
    padding: 4rem 0 3rem;
}
.wc-section .pg-eyebrow { color: #60a5fa; }
.wc-section .pg-section-title { color: #f1f5f9; }
.wc-section .pg-section-sub { color: #94a3b8; }
.wc-stage {
    position: relative;
    width: 100%;
    height: 480px;
    margin: 2rem 0 0.5rem;
    overflow: hidden;
}
.wc-word {
    position: absolute;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
    opacity: 0;
    will-change: transform, opacity;
    animation: wc-appear 0.55s ease-out forwards;
    transition: transform 0.18s ease, opacity 0.18s ease, text-shadow 0.15s ease;
    letter-spacing: 0.01em;
}
.wc-stage.wc-ready:hover .wc-word { opacity: 0.15; }
.wc-stage.wc-ready:hover .wc-word:hover {
    transform: scale(1.14);
    opacity: 1;
    text-shadow: 0 0 22px currentColor, 0 0 40px currentColor;
    z-index: 10;
    cursor: default;
}
@keyframes wc-appear {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}
.wc-caption {
    font-size: 0.78rem;
    color: #475569;
    text-align: center;
    margin-top: 0.25rem;
}
@media (max-width: 767px) {
    .wc-stage { height: 340px; }
}
@media (max-width: 479px) {
    .wc-stage { height: 260px; }
}

.pg-pub-type-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.35rem;
}
.pg-pub-type-journal  { background: #eff6ff; color: #3e58b8; }
.pg-pub-type-conference { background: #f0fdf4; color: #15803d; }

/* Publication entry meta row (type + year + cites) */
.pg-pub-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}
.pg-pub-meta-row .pg-pub-type-badge { margin-bottom: 0; }
.pg-pub-year {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
}
.pg-pub-cites {
    font-size: 0.7rem;
    font-weight: 600;
    color: #92400e;
    background: #fef3c7;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
}

/* CSNET member chips on each publication */
.pg-pub-members {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}
.pg-pub-member {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #1e3a8a;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    line-height: 1.2;
}
.pg-pub-member::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
    margin-right: 0.35rem;
}

/* DOI / link footer */
.pg-pub-actions {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

/* Load-more button under the list */
.pg-pub-loadmore-wrap {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0 0.25rem;
}
.pg-pub-loadmore-wrap button { cursor: pointer; }

/* ============================================================
   MODERN TEAM CARDS  (pg-team-*)
   Used on members.html — photo-forward, link-card design
   ============================================================ */

/* Director — featured horizontal card */
.pg-team-director {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 880px;
    margin: 2.5rem auto 0;
    background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
    border: 1px solid #e6ebf5;
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: 0 12px 40px rgba(31, 49, 115, 0.08);
    position: relative;
    overflow: hidden;
}
.pg-team-director::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #5b78d4 0%, #8b5cf6 50%, #ec4899 100%);
}
.pg-team-director-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f3f9;
    box-shadow: 0 8px 24px rgba(31, 49, 115, 0.15);
}
.pg-team-director-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pg-team-director-body { min-width: 0; }
.pg-team-director-name {
    font-size: 1.7rem;
    line-height: 1.25;
    color: #1f3173;
    font-weight: 700;
    margin: 0.6rem 0 0.4rem;
}
.pg-team-director-role {
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 1rem;
}
.pg-team-director-accolade {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0 0 1.5rem;
}
.pg-team-director-accolade svg { width: 14px; height: 14px; flex-shrink: 0; }

.pg-team-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1f3173;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 14px rgba(31, 49, 115, 0.25);
}
.pg-team-cta:hover {
    background: #2a4194;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(31, 49, 115, 0.32);
}
.pg-team-cta svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.pg-team-cta:hover svg { transform: translateX(3px); }

/* Member grid */
.pg-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}
.pg-team-section-sub {
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Card */
.pg-team-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e6ebf5;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}
.pg-team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(31, 49, 115, 0.14);
    border-color: #c7d2f0;
}
.pg-team-card-static { cursor: default; }
.pg-team-card-static:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(31, 49, 115, 0.08);
}

.pg-team-card-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f3f9 0%, #e6ebf5 100%);
}
.pg-team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.pg-team-card:hover .pg-team-card-photo img {
    transform: scale(1.04);
}
.pg-team-card-photo::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 40%;
    background: linear-gradient(to top, rgba(31, 49, 115, 0.45) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.pg-team-card:hover .pg-team-card-photo::after { opacity: 1; }

.pg-team-card-body {
    padding: 1.1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Badges */
.pg-team-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}
.pg-team-badge-director  { background: linear-gradient(135deg, #1f3173, #5b78d4); color: white; }
.pg-team-badge-prof      { background: #fef3c7; color: #92400e; }
.pg-team-badge-assoc     { background: #ede9fe; color: #6d28d9; }
.pg-team-badge-senior    { background: #f0fdf4; color: #166534; }
.pg-team-badge-lecturer  { background: #f0f9ff; color: #075985; }
.pg-team-badge-satellite { background: #fce7f3; color: #be185d; }

.pg-team-card-name {
    font-size: 1.02rem;
    font-weight: 600;
    color: #1f3173;
    line-height: 1.35;
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
}
.pg-team-card-specialty {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0 0 1rem;
    line-height: 1.5;
    flex: 1;
}
.pg-team-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5b78d4;
    margin-top: auto;
}
.pg-team-card-arrow svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}
.pg-team-card:hover .pg-team-card-arrow {
    color: #1f3173;
}
.pg-team-card:hover .pg-team-card-arrow svg {
    transform: translateX(4px);
}

/* Tablet */
@media (max-width: 768px) {
    .pg-team-director {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        padding: 1.75rem;
    }
    .pg-team-director-photo {
        max-width: 220px;
        margin: 0 auto;
    }
    .pg-team-director-accolade { font-size: 0.78rem; }
    .pg-team-director-name { font-size: 1.4rem; }
    .pg-team-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.25rem;
    }
    .pg-team-card-body { padding: 0.9rem 1rem 1.1rem; }
    .pg-team-card-name { font-size: 0.95rem; }
}

/* Small mobile */
@media (max-width: 420px) {
    .pg-team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .pg-team-card-name { font-size: 0.85rem; }
    .pg-team-card-specialty { font-size: 0.78rem; }
    .pg-team-card-arrow { font-size: 0.78rem; }
    .pg-team-badge { font-size: 0.62rem; padding: 0.2rem 0.5rem; }
}

/* ============================================================
   PUBLICATION VIEW TABS  (Research Papers / Theses)
   ============================================================ */
.pg-pub-tabs {
    display: inline-flex;
    gap: 0.4rem;
    background: #f1f3f9;
    padding: 0.4rem;
    border-radius: 14px;
    margin: 0 auto;
    border: 1px solid #e6ebf5;
}
.pg-pub-tabs {
    display: flex;
    justify-content: center;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.pg-pub-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.4rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}
.pg-pub-tab svg { width: 18px; height: 18px; }
.pg-pub-tab:hover { color: #1f3173; }
.pg-pub-tab.active {
    background: #ffffff;
    color: #1f3173;
    box-shadow: 0 4px 14px rgba(31, 49, 115, 0.12);
}
@media (max-width: 480px) {
    .pg-pub-tab { padding: 0.6rem 1rem; font-size: 0.85rem; }
    .pg-pub-tab svg { width: 16px; height: 16px; }
}

/* ===== INQUIRY TYPE SELECTOR ===== */
.pg-inquiry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.pg-inquiry-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem 1rem;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.pg-inquiry-card:hover {
    border-color: #93c5fd;
    background: #f8faff;
    transform: translateY(-2px);
}
.pg-inquiry-card.selected {
    border-color: #2563eb;
    background: #eff6ff;
}
.pg-inquiry-icon {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: background 0.2s, color 0.2s;
}
.pg-inquiry-card.selected .pg-inquiry-icon,
.pg-inquiry-card:hover .pg-inquiry-icon {
    background: #dbeafe;
    color: #2563eb;
}
.pg-inquiry-icon svg { width: 18px; height: 18px; }
.pg-inquiry-label {
    font-weight: 700;
    font-size: 0.875rem;
    color: #1e293b;
    line-height: 1.3;
}
.pg-inquiry-desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

/* ===== CONTACT FORM ===== */
.pg-contact-form { max-width: 700px; margin: 0 auto; }
.pg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pg-form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.pg-form-group label { font-size: 0.875rem; font-weight: 600; color: #1e293b; }
.pg-form-group input,
.pg-form-group select,
.pg-form-group textarea {
    border: 1.5px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}
.pg-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
}
.pg-form-group input:focus,
.pg-form-group select:focus,
.pg-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.pg-form-group textarea { resize: vertical; min-height: 130px; }
.pg-form-status { font-size: 0.9rem; margin-top: 0.75rem; min-height: 1.4rem; }
@media (max-width: 640px) {
    .pg-form-row { grid-template-columns: 1fr; }
    .pg-inquiry-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
    .pg-inquiry-grid { grid-template-columns: 1fr; }
}

/* ===== SERVICES PAGE ===== */
.pg-svc-section-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.pg-svc-section-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pg-svc-section-icon svg { width: 26px; height: 26px; }
.pg-svc-section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.3rem;
}
.pg-svc-section-sub {
    font-size: 0.95rem;
    color: #64748b;
}
@media (max-width: 640px) {
    .pg-opp-cards { grid-template-columns: 1fr; }
    .pg-svc-section-title { font-size: 1.3rem; }
}
@media (max-width: 900px) {
    .pg-opp-cards { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   CyberBot Chat Widget
   ========================================================================== */

:root {
    --cb-bg: #0d1b2a;
    --cb-surface: #132338;
    --cb-border: #1e3a5f;
    --cb-accent: #00c8ff;
    --cb-accent2: #0066cc;
    --cb-text: #e2eaf4;
    --cb-text-muted: #7a9ab8;
    --cb-user-bg: #0e4fa8;
    --cb-bot-bg: #132338;
    --cb-radius: 16px;
    --cb-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,200,255,0.08);
    --cb-glow: 0 0 20px rgba(0,200,255,0.25);
}

/* Floating toggle button */
#cb-toggle {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc 0%, #00c8ff 100%);
    border: none;
    cursor: grab;
    box-shadow: 0 4px 20px rgba(0,120,255,0.45), var(--cb-glow);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
#cb-toggle.cb-dragging {
    cursor: grabbing;
    transition: none;
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(0,120,255,0.7), 0 0 36px rgba(0,200,255,0.4);
}
#cb-toggle.cb-dragging::after { display: none; } /* pause pulse while dragging */
#cb-toggle.cb-dragging svg { animation: none; }
#cb-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(0,120,255,0.6), 0 0 30px rgba(0,200,255,0.35);
}
#cb-toggle svg { width: 30px; height: 30px; transition: transform 0.2s ease; }

/* Subtle continuous "I'm here" pulse — softer than the wiggle */
#cb-toggle::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(0,200,255,0.45);
    opacity: 0;
    animation: cb-pulse-ring 2.4s ease-out infinite;
    pointer-events: none;
}
@keyframes cb-pulse-ring {
    0%   { transform: scale(0.85); opacity: 0.7; }
    80%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

/* Wiggle — fires when peek bubble appears, draws the eye briefly */
#cb-toggle.cb-wiggle svg { animation: cb-wiggle 1.2s ease-in-out 3; }
@keyframes cb-wiggle {
    0%, 100% { transform: rotate(0); }
    15%      { transform: rotate(-14deg) scale(1.06); }
    30%      { transform: rotate(12deg) scale(1.06); }
    45%      { transform: rotate(-10deg); }
    60%      { transform: rotate(8deg); }
    75%      { transform: rotate(-4deg); }
}
@media (prefers-reduced-motion: reduce) {
    #cb-toggle::after { animation: none; }
    #cb-toggle.cb-wiggle svg { animation: none; }
}

/* Unread badge */
#cb-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #ff4757;
    border-radius: 50%;
    border: 2px solid #fff;
    display: none;
}
#cb-badge.visible { display: block; }

/* Chat panel */
#cb-panel {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 370px;
    max-height: 560px;
    background: var(--cb-bg);
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s ease;
}
#cb-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Header */
#cb-header {
    background: linear-gradient(135deg, #0a1628 0%, #0d2244 100%);
    border-bottom: 1px solid var(--cb-border);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
#cb-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a2a4a, #0d4080);
    border: 2px solid rgba(0,200,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0,200,255,0.2);
    flex-shrink: 0;
}
#cb-avatar svg { width: 24px; height: 24px; }
#cb-header-info { flex: 1; min-width: 0; }
#cb-header-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cb-text);
    letter-spacing: 0.02em;
}
#cb-header-status {
    font-size: 0.72rem;
    color: var(--cb-accent);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}
#cb-header-status::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #00e676;
    border-radius: 50%;
    box-shadow: 0 0 6px #00e676;
    animation: cb-pulse 2s infinite;
}
@keyframes cb-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
#cb-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--cb-text-muted);
    padding: 4px;
    border-radius: 6px;
    display: flex;
    transition: color 0.15s, background 0.15s;
}
#cb-close:hover { color: var(--cb-text); background: rgba(255,255,255,0.06); }
#cb-close svg { width: 18px; height: 18px; }

/* Messages */
#cb-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}
#cb-messages::-webkit-scrollbar { width: 4px; }
#cb-messages::-webkit-scrollbar-track { background: transparent; }
#cb-messages::-webkit-scrollbar-thumb { background: var(--cb-border); border-radius: 2px; }

/* Message bubbles */
.cb-msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    animation: cb-slide-in 0.2s ease;
}
@keyframes cb-slide-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cb-msg.user { flex-direction: row-reverse; }

.cb-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a2a4a, #0d4080);
    border: 1px solid rgba(0,200,255,0.3);
}
.cb-msg-avatar svg { width: 16px; height: 16px; }
.cb-msg.user .cb-msg-avatar {
    background: linear-gradient(135deg, #0e4fa8, #1a6fd4);
    border-color: rgba(0,200,255,0.2);
}

.cb-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--cb-text);
    word-break: break-word;
}
.cb-msg.bot .cb-bubble {
    background: var(--cb-bot-bg);
    border: 1px solid var(--cb-border);
    border-bottom-left-radius: 4px;
}
.cb-msg.user .cb-bubble {
    background: var(--cb-user-bg);
    border: 1px solid rgba(0,120,255,0.3);
    border-bottom-right-radius: 4px;
}

/* Markdown rendered inside bot bubbles */
.cb-msg.bot .cb-bubble strong { color: #fff; font-weight: 700; }
.cb-msg.bot .cb-bubble em { font-style: italic; color: var(--cb-text); }
.cb-msg.bot .cb-bubble a {
    color: var(--cb-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}
.cb-msg.bot .cb-bubble a:hover { color: #7fdcff; }
.cb-msg.bot .cb-bubble code {
    background: rgba(0,200,255,0.1);
    border: 1px solid rgba(0,200,255,0.18);
    color: #b6e8ff;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.82em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.cb-msg.bot .cb-bubble ul {
    margin: 6px 0 4px;
    padding-left: 18px;
    list-style: disc;
}
.cb-msg.bot .cb-bubble li { margin: 2px 0; }
.cb-msg.bot .cb-bubble p { margin: 0 0 6px; }
.cb-msg.bot .cb-bubble p:last-child { margin-bottom: 0; }

/* Typing indicator */
.cb-typing .cb-bubble {
    padding: 12px 16px;
}
.cb-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}
.cb-dots span {
    width: 6px;
    height: 6px;
    background: var(--cb-accent);
    border-radius: 50%;
    animation: cb-bounce 1.2s infinite;
    opacity: 0.7;
}
.cb-dots span:nth-child(2) { animation-delay: 0.15s; }
.cb-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes cb-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
    40% { transform: translateY(-5px); opacity: 1; }
}

/* Welcome / system message */
.cb-welcome {
    text-align: center;
    font-size: 0.78rem;
    color: var(--cb-text-muted);
    padding: 8px 12px;
    background: rgba(0,200,255,0.04);
    border: 1px solid rgba(0,200,255,0.1);
    border-radius: 10px;
    line-height: 1.5;
}

/* Input area */
#cb-input-area {
    border-top: 1px solid var(--cb-border);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--cb-surface);
    flex-shrink: 0;
}
#cb-input {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--cb-border);
    border-radius: 22px;
    padding: 9px 14px;
    font-size: 0.875rem;
    color: var(--cb-text);
    outline: none;
    resize: none;
    transition: border-color 0.15s;
    font-family: inherit;
    line-height: 1.4;
    max-height: 100px;
    overflow-y: auto;
}
#cb-input::placeholder { color: var(--cb-text-muted); }
#cb-input:focus { border-color: rgba(0,200,255,0.5); }
#cb-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc, #00c8ff);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s, opacity 0.15s;
}
#cb-send:hover { transform: scale(1.1); }
#cb-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
#cb-send svg { width: 18px; height: 18px; }

/* Disclaimer */
#cb-disclaimer {
    font-size: 0.68rem;
    color: var(--cb-text-muted);
    text-align: center;
    padding: 4px 14px 10px;
    background: var(--cb-surface);
}

/* Suggested follow-up chips — rendered under the latest bot reply */
.cb-suggest {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 14px 10px 46px; /* align with bubble (avatar 28px + 8px gap + 10px) */
    animation: cb-suggest-in 0.28s ease both;
}
.cb-suggest-chip {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(0, 200, 255, 0.08);
    border: 1px solid rgba(0, 200, 255, 0.32);
    color: #b6e3ff;
    font: inherit;
    font-size: 0.78rem;
    line-height: 1.25;
    padding: 6px 11px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    text-align: left;
    max-width: 100%;
    white-space: normal;
}
.cb-suggest-chip:hover {
    background: rgba(0, 200, 255, 0.16);
    border-color: rgba(0, 200, 255, 0.55);
    color: #e2eaf4;
}
.cb-suggest-chip:active {
    transform: scale(0.97);
}
.cb-suggest-chip:focus-visible {
    outline: 2px solid var(--cb-accent);
    outline-offset: 2px;
}
@keyframes cb-suggest-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
    .cb-suggest { padding-left: 14px; }
    .cb-suggest-chip { font-size: 0.74rem; padding: 5px 10px; }
}

/* Peek bubble — attention-grabber that appears a few seconds after load */
#cb-peek {
    position: fixed;
    bottom: 38px;
    right: 100px;
    max-width: 260px;
    background: linear-gradient(135deg, #132338 0%, #0d1b2a 100%);
    color: var(--cb-text);
    border: 1px solid rgba(0,200,255,0.35);
    border-radius: 14px;
    padding: 12px 36px 12px 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 18px rgba(0,200,255,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9997;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
#cb-peek.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
    animation: cb-peek-bob 2.6s ease-in-out 0.4s 2;
}
@keyframes cb-peek-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}
#cb-peek::after {
    /* Tail pointing toward toggle */
    content: '';
    position: absolute;
    right: -7px;
    bottom: 18px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #132338 0%, #0d1b2a 100%);
    border-right: 1px solid rgba(0,200,255,0.35);
    border-bottom: 1px solid rgba(0,200,255,0.35);
    transform: rotate(-45deg);
}
/* Once the user has dragged the toggle, the tail no longer points anywhere sensible */
#cb-peek.cb-custom-pos::after { display: none; }
.cb-peek-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a2a4a, #0d4080);
    border: 1.5px solid rgba(0,200,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cb-peek-avatar svg { width: 22px; height: 22px; }
.cb-peek-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
    font-size: 0.82rem;
}
.cb-peek-text strong {
    color: var(--cb-accent);
    font-weight: 700;
    font-size: 0.86rem;
}
.cb-peek-text span { color: var(--cb-text-muted); }
.cb-peek-close {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--cb-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}
.cb-peek-close svg { width: 12px; height: 12px; }
.cb-peek-close:hover { color: var(--cb-text); background: rgba(255,255,255,0.08); }

@media (prefers-reduced-motion: reduce) {
    #cb-peek.visible { animation: none; }
}

/* Tablet — narrow the panel a touch */
@media (max-width: 640px) {
    #cb-peek {
        bottom: 90px;
        right: 16px;
        max-width: calc(100vw - 32px);
    }
    /* On mobile the peek sits ABOVE the toggle, so retarget the tail downward */
    #cb-peek::after {
        right: 24px;
        bottom: -7px;
        border-right: 1px solid rgba(0,200,255,0.35);
        border-bottom: 1px solid rgba(0,200,255,0.35);
        border-top: none;
        border-left: none;
        transform: rotate(45deg);
    }
}

/* Mobile */
@media (max-width: 480px) {
    #cb-panel {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 90px;
        max-height: calc(100vh - 110px);
    }
    #cb-toggle {
        bottom: 20px;
        right: 16px;
        width: 56px;
        height: 56px;
    }
    #cb-toggle svg { width: 28px; height: 28px; }
    #cb-peek {
        bottom: 86px;
        right: 16px;
    }
}

/* ===== RESEARCH PROJECTS PAGE ===== */
.pg-proj-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0 0.75rem;
}
.pg-proj-filter {
    border: 1px solid #d4dbe7;
    background: #fff;
    color: #475569;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pg-proj-filter:hover { border-color: #94a3b8; color: #1e293b; }
.pg-proj-filter.active {
    background: linear-gradient(135deg, #0a2a4a, #0d4080);
    border-color: transparent;
    color: #fff;
}
.pg-proj-filter-count {
    margin-left: auto;
    font-size: 0.85rem;
    color: #64748b;
    min-height: 1.25rem;
}

.pg-proj-list { margin-top: 0.5rem; }

.pg-proj-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.pg-proj-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pg-proj-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 12px rgba(37,99,235,0.08);
}

.pg-proj-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.4rem;
}
.pg-proj-status, .pg-proj-fund, .pg-proj-years {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
}
.pg-proj-status-ongoing { background: #ecfdf5; color: #047857; }
.pg-proj-status-completed { background: #f1f5f9; color: #475569; }

.pg-proj-fund-national { background: #eff6ff; color: #1e40af; }
.pg-proj-fund-private  { background: #fdf4ff; color: #86198f; }
.pg-proj-fund-internal { background: #fffbeb; color: #92400e; }
.pg-proj-fund-international { background: #ecfeff; color: #155e75; }
.pg-proj-fund-other    { background: #f1f5f9; color: #334155; }

.pg-proj-years {
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
    text-transform: none;
    letter-spacing: 0;
}

.pg-proj-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    line-height: 1.45;
}
.pg-proj-pi, .pg-proj-coi {
    font-size: 0.8rem;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}
.pg-proj-label {
    font-weight: 600;
    color: #334155;
}

.pg-proj-footnote {
    margin-top: 2rem;
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
}

.pg-proj-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.75rem;
}
.pg-proj-page {
    border: 1px solid #d4dbe7;
    background: #fff;
    color: #334155;
    min-width: 38px;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pg-proj-page:hover:not(:disabled) {
    border-color: #94a3b8;
    background: #f1f5f9;
    color: #0f172a;
}
.pg-proj-page.active {
    background: linear-gradient(135deg, #0a2a4a, #0d4080);
    border-color: transparent;
    color: #fff;
    cursor: default;
}
.pg-proj-page:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.pg-proj-page-nav { padding: 0.4rem 0.95rem; }
.pg-proj-page-gap {
    padding: 0 0.25rem;
    color: #94a3b8;
    font-weight: 600;
    user-select: none;
}

@media (max-width: 640px) {
    .pg-proj-cards { grid-template-columns: 1fr; }
    .pg-proj-filter-count { margin-left: 0; width: 100%; }
}

/* ── Research Supervision Page (researchers.html) ──────────────────────── */
.pg-rs-degree-filter-wrap {
    display: contents;
}
.pg-rs-degree, .pg-rs-status {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}
.pg-rs-degree-phd    { background: #eff6ff; color: #1e40af; }
.pg-rs-degree-masters { background: #f5f3ff; color: #6d28d9; }
.pg-rs-status-active    { background: #ecfdf5; color: #047857; }
.pg-rs-status-inactive  { background: #f1f5f9; color: #475569; }
.pg-rs-status-graduate  { background: #f0fdf4; color: #15803d; }
.pg-rs-nationality {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: #64748b;
    margin-left: 0.25rem;
}
.pg-rs-sup-role {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 400;
}
.pg-al-name {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.pg-al-title {
    display: block;
    color: #1e40af;
    text-decoration: none;
}
.pg-al-title:hover { text-decoration: underline; }
@media (max-width: 640px) {
    .pg-rs-degree-filter-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; width: 100%; }
}
