:root {
    --primary: #1a4ba0;
    --primary-light: #2563eb;
    --primary-dark: #1e3a8a;
    --primary-subtle: #eff6ff;
    --accent: #0284c7;
    --accent-light: #38bdf8;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
    --container-max: 1280px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Helpers */
.text-center { text-align: center; }
.text-accent { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.pt-0 { padding-top: 0 !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 14px;
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(26, 75, 160, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 75, 160, 0.35);
}

.btn-outline {
    background-color: white;
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--bg-light);
    border-color: var(--border-dark);
    color: var(--primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
}

.btn-text svg {
    transition: transform 0.25s ease;
}

.btn-text:hover svg {
    transform: translateX(4px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 100px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 80px;
    max-height: 80px;
    width: auto;
    display: block;
}

.nav-list {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background-color: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.admin-link-btn:hover {
    background-color: #e2e8f0;
    color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 32px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

.nav-toggle span {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

.nav-toggle.open span { background-color: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* Hero Section */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 80px;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, #eff6ff 0%, #ffffff 60%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(26, 75, 160, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.7;
}

.hero-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.hero-sphere-1 {
    top: -5%;
    right: 5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #bfdbfe 0%, #dbeafe 100%);
    animation: float 14s infinite ease-in-out;
}

.hero-sphere-2 {
    bottom: -10%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #e0e7ff 0%, #f1f5f9 100%);
    animation: float 18s infinite ease-in-out reverse;
}

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

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background-color: rgba(26, 75, 160, 0.08);
    border: 1px solid rgba(26, 75, 160, 0.15);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.hero-title {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 28px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: clamp(17px, 1.8vw, 20px);
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 680px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Sections General */
.section {
    padding: 96px 0;
}

.section-header {
    margin-bottom: 56px;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

.section-desc {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.65;
}

.section-divider {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 4px;
    margin: 16px auto 0;
}

/* Page Header (Inner Pages) */
.page-main {
    padding-top: 120px;
    min-height: 80vh;
}

.page-header {
    padding: 48px 0 40px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.page-header-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 8px;
}

.page-header-title {
    font-size: clamp(32px, 4.5vw, 50px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.page-header-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 760px;
    line-height: 1.6;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-pill {
    padding: 8px 18px;
    border-radius: 50px;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.filter-pill:hover {
    background-color: #e2e8f0;
    color: var(--text-dark);
}

.filter-pill.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* About Section */
.about {
    background-color: var(--bg-white);
}

.about-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 32px 0;
}

.about-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-feature-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.about-feature-item p {
    font-size: 14px;
    color: var(--text-muted);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background-color: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-image {
    position: relative;
}

.image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.image-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 140px;
    height: 140px;
    background-color: #dbeafe;
    border-radius: var(--radius-lg);
    z-index: -1;
}

.floating-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.floating-badge-city {
    font-weight: 800;
    font-size: 15px;
    color: var(--primary);
}

.floating-badge-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* Activities Grid */
.activities {
    background-color: var(--bg-light);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.activity-card {
    padding: 36px;
    border-radius: var(--radius-lg);
    background-color: white;
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.activity-icon {
    width: 58px;
    height: 58px;
    background-color: var(--primary-subtle);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 22px;
    transition: var(--transition);
}

.activity-card:hover .activity-icon {
    background-color: var(--primary);
    color: white;
}

.activity-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.35;
}

.activity-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

a.activity-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    cursor: pointer;
}

a.activity-card:hover .activity-title {
    color: var(--primary);
}

.activity-card-more {
    margin-top: auto;
    padding-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

a.activity-card:hover .activity-card-more svg {
    transform: translateX(4px);
}

.activity-single-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 16px 0 20px 0;
}

.activity-single-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background-color: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-bottom-nav {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.activity-next-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
}

.activity-next-hint {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
}

.activity-next-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
}

.activity-next-link:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.activity-next-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.activity-next-link:hover .activity-next-arrow {
    transform: translateX(4px);
}

.admin-act-icon-preview {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background-color: #f1f5f9;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Projects on Home */
.projects {
    background-color: var(--bg-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    background-color: #0f172a;
    display: block;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.85;
}

.project-card:hover .project-img {
    transform: scale(1.08);
    opacity: 0.95;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
}

.project-cat {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.project-title {
    font-size: 21px;
    font-weight: 800;
    color: white;
    line-height: 1.3;
    margin-bottom: 6px;
}

.project-excerpt-snippet {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.4;
}

/* News Section on Home Page */
.news-home {
    background-color: var(--bg-light);
}

.news-home-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: stretch;
}

.news-featured-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    height: 100%;
    transition: var(--transition);
}

.news-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.news-featured-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: #0f172a;
}

.news-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-featured-card:hover .news-featured-img {
    transform: scale(1.05);
}

.news-featured-cat {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 50px;
}

.news-featured-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.news-featured-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.news-featured-excerpt {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.news-stacked-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.news-list-item {
    display: block;
    background-color: white;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
    flex-grow: 1;
}

.news-list-item:hover {
    transform: translateX(6px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.news-list-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.news-list-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    background-color: var(--primary-subtle);
    padding: 2px 8px;
    border-radius: 4px;
}

.news-list-date {
    font-size: 12px;
    color: var(--text-muted);
}

.news-list-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 6px;
}

.news-list-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Events Teaser */
.events-teaser {
    background-color: var(--bg-white);
}

.events-teaser-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-card-compact {
    display: flex;
    align-items: center;
    gap: 24px;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 32px;
    transition: var(--transition);
}

.event-card-compact:hover {
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.event-date-box {
    flex-shrink: 0;
}

.event-date-badge {
    display: inline-block;
    padding: 10px 18px;
    background-color: #1e3a8a;
    color: white;
    font-weight: 700;
    font-size: 13px;
    border-radius: 12px;
    text-align: center;
    white-space: nowrap;
}

.event-card-content {
    flex-grow: 1;
}

.event-format-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 4px;
}

.event-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.event-card-title a:hover {
    color: var(--primary);
}

.event-card-loc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Archive Grids (Inner Pages) */
.projects-archive-grid,
.news-archive-grid,
.events-archive-grid,
.articles-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.project-archive-card,
.news-card,
.event-archive-card,
.article-card {
    background-color: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.project-archive-card:hover,
.news-card:hover,
.event-archive-card:hover,
.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.project-archive-img-wrap,
.news-card-img-wrap,
.event-archive-img-wrap,
.article-card-img-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: #0f172a;
}

.project-archive-img,
.news-card-img,
.event-archive-img,
.article-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-archive-card:hover .project-archive-img,
.news-card:hover .news-card-img,
.event-archive-card:hover .event-archive-img,
.article-card:hover .article-card-img {
    transform: scale(1.06);
}

.project-archive-tag,
.news-card-cat,
.event-archive-badge,
.article-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(15, 23, 42, 0.85);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.project-flag-home {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #f59e0b;
    color: #1e1b4b;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
}

.project-archive-body,
.news-card-body,
.event-archive-body,
.article-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-archive-date,
.news-card-date,
.article-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.project-archive-title,
.news-card-title,
.event-archive-title,
.article-card-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 12px;
}

.project-archive-excerpt,
.news-card-excerpt,
.event-archive-excerpt,
.article-card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-archive-footer,
.news-card-footer,
.event-archive-footer,
.article-card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.event-archive-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.article-card-author {
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 16px;
}

/* Detailed Single Pages */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
    flex-wrap: wrap;
}

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

.breadcrumbs .current {
    color: var(--text-dark);
    font-weight: 600;
}

.single-article-layout {
    max-width: 1040px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.single-header {
    margin-bottom: 32px;
}

.single-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.single-category {
    background-color: var(--primary-subtle);
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 50px;
}

.single-date, .single-views {
    font-size: 13px;
    color: var(--text-muted);
}

.single-status {
    background-color: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
}

.single-title {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.single-lead {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    border-left: 3px solid var(--primary);
    padding-left: 18px;
    margin-top: 16px;
}

.single-author-row {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 12px;
}

.single-hero-image-wrap {
    margin: 32px 0 48px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.single-hero-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.single-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

.prose {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.prose p {
    margin-bottom: 20px;
}

.prose h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 36px 0 16px;
    color: var(--text-dark);
}

.prose ul {
    list-style: disc;
    margin: 16px 0 24px 24px;
}

.prose li {
    margin-bottom: 8px;
}

.sidebar-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.sidebar-card-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.meta-dl dt {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 12px;
}

.meta-dl dd {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

.sidebar-links-list li {
    margin-bottom: 14px;
}

.sidebar-links-list a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    display: block;
}

.sidebar-links-list a:hover {
    color: var(--primary);
}

.sidebar-item-date {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.single-footer-nav {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

/* About Detailed Page */
.about-grid-detailed {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
}

.lead-p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-weight: 500;
}

.principles-list {
    margin-top: 16px;
}

.principles-list li {
    margin-bottom: 16px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.principles-list li::before {
    content: '■';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 12px;
    top: 2px;
}

.info-card-highlight {
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.info-card-highlight h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
}

.info-card-highlight p {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Contacts Page & Form */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contacts-list {
    margin-top: 36px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-text p, .contact-text a {
    color: var(--text-muted);
    font-size: 14px;
}

.contacts-form-wrapper {
    background-color: var(--bg-light);
    padding: 48px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.form-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    margin-left: 4px;
    color: var(--text-dark);
}

input, textarea, .form-select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background-color: white;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    color: var(--text-dark);
}

input:focus, textarea:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 75, 160, 0.15);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    cursor: pointer;
}

.form-disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.form-disclaimer a {
    text-decoration: underline;
    color: var(--primary);
}

.form-success {
    text-align: center;
    padding: 32px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.hidden {
    display: none !important;
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 80px 0 40px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid #1e293b;
}

.footer-logo-img {
    height: 76px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-desc {
    margin-top: 20px;
    font-size: 13px;
    max-width: 320px;
    line-height: 1.6;
}

.footer-badge {
    margin-top: 16px;
}

.footer-badge span {
    display: inline-block;
    padding: 4px 12px;
    background-color: #1e293b;
    color: #cbd5e1;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.footer-title {
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.footer-list li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-list a:hover {
    color: white;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-admin-link {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid #1e293b;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 36px;
    font-size: 13px;
    color: #64748b;
}

/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */
.admin-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, #f1f5f9 0%, #e2e8f0 100%);
    padding: 24px;
}

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

.admin-login-card {
    background-color: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 28px;
}

.admin-login-title {
    font-size: 24px;
    font-weight: 800;
    margin-top: 16px;
    color: var(--text-dark);
}

.admin-login-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.admin-login-hint {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

.admin-login-hint code {
    background-color: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--primary);
    font-weight: 700;
}

/* Admin App Shell */
.admin-body {
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background-color: #0f172a;
    color: white;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.admin-topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-logo-img {
    filter: brightness(0) invert(1);
}

.admin-badge {
    background-color: #2563eb;
    color: white;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
}

.admin-nav {
    display: flex;
    gap: 6px;
}

.admin-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    transition: var(--transition);
}

.admin-nav-item:hover {
    color: white;
    background-color: #1e293b;
}

.admin-nav-item.active {
    color: white;
    background-color: #1e293b;
    border: 1px solid #334155;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-btn-site {
    background-color: transparent;
    border-color: #334155;
    color: #e2e8f0;
}

.admin-btn-site:hover {
    background-color: #1e293b;
    color: white;
}

.admin-user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 16px;
    border-left: 1px solid #334155;
}

.admin-user-name {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
}

.admin-logout-btn {
    color: #ef4444;
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: 6px;
}

.admin-logout-btn:hover {
    background-color: rgba(239, 68, 68, 0.15);
}

.admin-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
    width: 100%;
    flex-grow: 1;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
}

.admin-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Stat Cards */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-blue { background-color: #eff6ff; color: #2563eb; }
.stat-icon-cyan { background-color: #ecfeff; color: #0891b2; }
.stat-icon-amber { background-color: #fffbeb; color: #d97706; }
.stat-icon-indigo { background-color: #eef2ff; color: #4f46e5; }

.admin-stat-info {
    flex-grow: 1;
}

.admin-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
}

.admin-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
}

.admin-stat-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

/* Admin Cards & Tables */
.admin-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.admin-card {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-bottom: 24px;
}

.admin-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
}

.admin-table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.admin-table th {
    background-color: #f8fafc;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.admin-table tr:hover td {
    background-color: #f8fafc;
}

.admin-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-action-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background-color: white;
}

.admin-btn-icon:hover {
    color: var(--primary);
    border-color: #cbd5e1;
    background-color: var(--bg-light);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.badge-success { background-color: #dcfce7; color: #15803d; }
.badge-neutral { background-color: #f1f5f9; color: #64748b; }
.badge-accent { background-color: #eff6ff; color: #1d4ed8; }
.badge-subtle { background-color: #f8fafc; color: #475569; border: 1px solid var(--border); }
.badge-outline { background-color: white; color: #475569; border: 1px solid var(--border); }

/* Admin Form */
.admin-form {
    padding: 28px;
}

.checkbox-group {
    background-color: #f8fafc;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.admin-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* Alerts */
.admin-alert {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.admin-alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.admin-footer {
    background-color: white;
    border-top: 1px solid var(--border);
    padding: 20px 0;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
}

.admin-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
}

/* Responsive */
@media (max-width: 1100px) {
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-section-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .about-inner, .contacts-grid, .about-grid-detailed {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .news-home-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .projects-archive-grid,
    .news-archive-grid,
    .events-archive-grid,
    .articles-archive-grid,
    .activities-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .single-content-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100px;
        left: 0;
        right: 0;
        background-color: white;
        padding: 24px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--border);
    }
    
    .nav.nav-open {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-toggle {
        display: block;
    }

    .logo-img {
        height: 64px;
        max-height: 64px;
    }
    
    .admin-btn-text {
        display: none;
    }

    .projects-archive-grid,
    .news-archive-grid,
    .events-archive-grid,
    .articles-archive-grid,
    .activities-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contacts-form-wrapper {
        padding: 32px 20px;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-nav span {
        display: none;
    }
}
