/* ==========================================
   CSS DESIGN SYSTEM
   Centrul de Transfuzie Sanguină Caraș-Severin
   ========================================== */

/* ---------- CSS Variables ---------- */
:root {
    /* Brand Colors */
    --blood-red: #E10600;
    --blood-red-dark: #B80500;
    --blood-red-light: #FF2D28;
    --trust-blue: #0D3B66;
    --trust-blue-dark: #092A4A;
    --soft-blue: #1E5AA8;
    --soft-blue-light: #2B6EC2;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F4F6F8;
    --medium-gray: #E0E4E8;
    --text-gray: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --dark: #1A1A1A;
    
    /* Functional Colors */
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --info: #17A2B8;
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Layout */
    --container-max: 1200px;
    --header-height: 80px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-gray);
    background-color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

a {
    color: var(--soft-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--blood-red);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--trust-blue);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
}

ul, ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-xl);
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-gray {
    background-color: var(--light-gray);
}

.section-blue {
    background-color: var(--trust-blue);
    color: var(--white);
}

.section-blue h2,
.section-blue h3 {
    color: var(--white);
}

/* ---------- Header ---------- */
.site-header {
    background-color: var(--trust-blue);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-top {
    background-color: var(--trust-blue-dark);
    padding: var(--spacing-xs) 0;
    font-size: 0.85rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: var(--white);
    opacity: 0.9;
}

.header-top a:hover {
    opacity: 1;
}

.header-top-info {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.header-top-info span {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.header-top-link {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: opacity var(--transition-fast);
    font-weight: 500;
}

.header-top-link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.header-main {
    padding: var(--spacing-md) 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--white);
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 75px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .logo-name {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.logo-text .logo-subtitle {
    font-size: 0.75rem;
    opacity: 0.85;
    font-weight: 400;
}

/* ---------- Navigation ---------- */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-xs);
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: block;
    white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.nav-cta {
    margin-left: var(--spacing-md);
}

.nav-cta .btn {
    white-space: nowrap;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: var(--spacing-sm);
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background-color: var(--blood-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--blood-red-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--soft-blue);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--trust-blue);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--blood-red);
    border: 2px solid var(--blood-red);
}

.btn-outline:hover {
    background-color: var(--blood-red);
    color: var(--white);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--trust-blue);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
}

.btn-success {
    background-color: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background-color: #218838;
    color: var(--white);
}

.btn-danger {
    background-color: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background-color: #C82333;
    color: var(--white);
}

.btn-warning {
    background-color: var(--warning);
    color: var(--dark);
}

/* ---------- Hero Section ---------- */
.hero {
    background: linear-gradient(135deg, var(--trust-blue) 0%, var(--soft-blue) 100%);
    color: var(--white);
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-3xl);
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.hero-content h1 .highlight {
    color: var(--blood-red-light);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-image {
    flex: 0 0 300px;
    text-align: center;
}

.hero-image img {
    max-width: 280px;
    margin: 0 auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* ---------- Cards ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--spacing-xl);
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--medium-gray);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--light-gray);
}

.card-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--blood-red) 0%, var(--soft-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.card-body {
    padding: var(--spacing-lg);
}

.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.card-body h3 a {
    color: var(--trust-blue);
}

.card-body h3 a:hover {
    color: var(--blood-red);
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.card-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
}

/* ---------- Announcement Cards ---------- */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.announcement-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    border-left: 4px solid var(--soft-blue);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.announcement-item:hover {
    box-shadow: var(--shadow-md);
}

.announcement-item.urgent {
    border-left-color: var(--blood-red);
    background: #FFF5F5;
}

.announcement-item .badge-urgent {
    display: inline-block;
    background-color: var(--blood-red);
    color: var(--white);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.announcement-item h3 {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-xs);
}

.announcement-item h3 a {
    color: var(--trust-blue);
}

.announcement-item .announcement-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
}

/* ---------- Section Titles ---------- */
.section-title {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-md);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--blood-red);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: var(--spacing-md) auto 0;
}

/* ---------- Info Bar ---------- */
/* ---------- Info Bar: Map + Details ---------- */
.info-bar {
    background: var(--light-gray);
    padding: var(--spacing-2xl) 0;
}

.info-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: stretch;
}

.info-map {
    min-height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.info-map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Schedule Tabs */
.schedule-tabs-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.schedule-tabs {
    display: flex;
    border-bottom: 2px solid var(--light-gray);
}

.schedule-tab {
    flex: 1;
    padding: 0.9rem 1rem;
    border: none;
    background: var(--light-gray);
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.schedule-tab:first-child {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.schedule-tab i {
    font-size: 1rem;
}

.schedule-tab:hover {
    background: rgba(13, 59, 102, 0.06);
    color: var(--trust-blue);
}

.schedule-tab.active {
    background: var(--white);
    color: var(--trust-blue);
}

.schedule-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--blood-red);
}

.schedule-tab-content {
    display: none;
    padding: var(--spacing-lg);
}

.schedule-tab-content.active {
    display: block;
}

.info-details h2 {
    font-size: 1.6rem;
    color: var(--trust-blue);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--blood-red);
}

.info-detail-card {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast);
}

.info-detail-card:hover {
    box-shadow: var(--shadow-md);
}

.info-detail-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
}

.info-detail-card h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}

.info-detail-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.info-detail-card a {
    color: var(--soft-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.info-detail-card a:hover {
    color: var(--blood-red);
    text-decoration: underline;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
}

.schedule-table tr td {
    padding: 4px 0;
    color: var(--text-dark);
}

.schedule-table tr td:first-child {
    padding-right: var(--spacing-lg);
    color: var(--text-muted);
}

.schedule-table tr td:last-child {
    text-align: right;
}

.schedule-table tr td strong {
    color: var(--trust-blue);
}

.schedule-table tr.schedule-closed td {
    opacity: 0.5;
}

.schedule-table tr.schedule-closed td strong {
    color: var(--blood-red);
}

/* ---------- Page Header (Breadcrumb Area) ---------- */
.page-header {
    background: linear-gradient(135deg, var(--trust-blue) 0%, var(--soft-blue) 100%);
    color: var(--white);
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: var(--spacing-sm);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: 0.9rem;
    opacity: 0.9;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb a {
    color: var(--white);
    opacity: 0.85;
}

.breadcrumb a:hover {
    opacity: 1;
    color: var(--white);
}

.breadcrumb .separator {
    opacity: 0.6;
}

/* ---------- Content Area ---------- */
.content-area {
    padding: var(--spacing-3xl) 0;
}

.content-body {
    max-width: 800px;
    margin: 0 auto;
}

.content-body h2 {
    margin-top: var(--spacing-xl);
}

.content-body h3 {
    margin-top: var(--spacing-lg);
}

.content-body ul,
.content-body ol {
    margin-bottom: var(--spacing-lg);
}

.content-body li {
    margin-bottom: var(--spacing-sm);
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.faq-question {
    padding: var(--spacing-lg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    font-weight: 600;
    color: var(--trust-blue);
    transition: background var(--transition-fast);
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question .faq-icon {
    font-size: 1.5rem;
    transition: transform var(--transition-normal);
    flex-shrink: 0;
    margin-left: var(--spacing-md);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    background: var(--light-gray);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: var(--spacing-lg);
    color: var(--text-light);
    line-height: 1.7;
}

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
    padding: var(--spacing-lg);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-overlay h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.gallery-item-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* ---------- Contact Page ---------- */
.contact-page {
    padding: var(--spacing-2xl) 0;
}

.contact-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.contact-alert .alert-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-alert p {
    margin: 4px 0 0;
    font-weight: 400;
}

.contact-alert ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

/* Contact Info Cards Row */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--blood-red), #c40500);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto var(--spacing-md);
    box-shadow: 0 4px 14px rgba(225, 6, 0, 0.25);
}

.contact-card h4 {
    font-size: 1rem;
    color: var(--trust-blue);
    margin-bottom: var(--spacing-xs);
}

.contact-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.contact-card p a {
    color: var(--soft-blue);
    text-decoration: none;
    font-weight: 500;
}

.contact-card p a:hover {
    color: var(--blood-red);
    text-decoration: underline;
}

.contact-card .text-muted {
    color: #999;
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Contact Grid: Form + Map */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.contact-form-card,
.contact-map-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-form-header,
.contact-map-header {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--light-gray);
}

.contact-form-header h2,
.contact-map-header h2 {
    font-size: 1.3rem;
    color: var(--trust-blue);
    margin-bottom: 0;
}

.contact-form-header h2 i,
.contact-map-header h2 i {
    color: var(--blood-red);
    margin-right: 8px;
}

.contact-form-header p {
    margin: 6px 0 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact-form-card form {
    padding: var(--spacing-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-form-card .form-group label .required {
    color: var(--blood-red);
    font-weight: 700;
}

.contact-form-card .form-group label .optional {
    color: #999;
    font-weight: 400;
    font-size: 0.85rem;
}

/* GDPR Consent Checkbox */
.form-group-gdpr {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-gray);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    accent-color: var(--blood-red);
    cursor: pointer;
}

.checkbox-label a {
    color: var(--blood-red);
    font-weight: 600;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--trust-blue);
}

.btn-submit {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Contact Map */
.contact-map {
    width: 100%;
    height: 360px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.contact-map-footer {
    padding: var(--spacing-md) var(--spacing-xl);
    text-align: center;
    border-top: 1px solid var(--light-gray);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--soft-blue);
    color: var(--soft-blue);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--soft-blue);
    color: var(--white);
}

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

@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-map {
        height: 280px;
    }
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--trust-blue);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-primary);
    color: var(--text-gray);
    transition: border-color var(--transition-fast);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--soft-blue);
    box-shadow: 0 0 0 3px rgba(30, 90, 168, 0.15);
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--blood-red);
}

/* ---------- Alerts ---------- */
.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

.alert-success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.alert-error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.alert-warning {
    background-color: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEEBA;
}

.alert-info {
    background-color: #D1ECF1;
    color: #0C5460;
    border: 1px solid #BEE5EB;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-2xl);
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-xs);
    padding: 0;
    margin: 0;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--spacing-sm);
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius-sm);
    color: var(--text-gray);
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.pagination-link:hover {
    background-color: var(--soft-blue);
    border-color: var(--soft-blue);
    color: var(--white);
}

.pagination-link.active {
    background-color: var(--blood-red);
    border-color: var(--blood-red);
    color: var(--white);
}

.pagination-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--text-muted);
}

/* ---------- Footer ---------- */
/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--trust-blue);
    color: var(--white);
}

/* -- Footer Top: Brand + CTA -- */
.footer-top {
    background: rgba(0,0,0,0.12);
    padding: var(--spacing-xl) 0;
}

.footer-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 500px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 10px;
}

.footer-logo img {
    max-height: 52px;
    width: auto;
    flex-shrink: 0;
}

.footer-logo-name {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.1;
}

.footer-logo-subtitle {
    display: block;
    font-size: 0.78rem;
    opacity: 0.85;
    margin-top: 3px;
    font-weight: 400;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0;
}

.footer-cta-box {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-shrink: 0;
}

.footer-cta-text {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.9;
    white-space: nowrap;
}

/* -- Footer Main: Columns -- */
.footer-main {
    padding: var(--spacing-2xl) 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-2xl);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    border-radius: 2px;
    background: var(--blood-red);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    opacity: 0.78;
    font-size: 0.92rem;
    text-decoration: none;
    transition: opacity 0.2s, padding-left 0.2s;
    display: inline-block;
}

.footer-links a::before {
    content: '›';
    margin-right: 6px;
    opacity: 0;
    transition: opacity 0.2s, margin-right 0.2s;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 4px;
}

.footer-links a:hover::before {
    opacity: 1;
}

/* Footer info rows (contact + program) */
.footer-address {
    font-style: normal;
}

.footer-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.92rem;
    line-height: 1.5;
    opacity: 0.85;
}

.footer-info-row .fi-icon {
    flex-shrink: 0;
    font-size: 1.05rem;
    line-height: 1.4;
    opacity: 0.9;
}

.footer-info-row a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-info-row a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* -- Footer Bottom -- */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: var(--spacing-md) 0;
}

.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    opacity: 0.65;
}

.footer-bottom-row p {
    margin: 0;
}

.footer-credit-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.2s;
}

.footer-credit-link:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* ---------- Blog Post Single ---------- */
.post-header {
    margin-bottom: var(--spacing-xl);
}

.post-header h1 {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-md);
}

.post-meta {
    display: flex;
    gap: var(--spacing-lg);
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--medium-gray);
}

.post-featured-image {
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.post-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.post-content p {
    margin-bottom: var(--spacing-lg);
}

.post-content h2 {
    margin-top: var(--spacing-2xl);
}

.post-content h3 {
    margin-top: var(--spacing-xl);
}

.post-content img {
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
}

/* ---------- Error Page ---------- */
.error-page {
    text-align: center;
    padding: var(--spacing-3xl) 0;
}

.error-page h1 {
    font-size: 8rem;
    color: var(--blood-red);
    line-height: 1;
    margin-bottom: var(--spacing-md);
}

.error-page h2 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-lg);
}

.error-page p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-red { color: var(--blood-red); }
.text-blue { color: var(--trust-blue); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }

.mt-1 { margin-top: var(--spacing-md); }
.mt-2 { margin-top: var(--spacing-xl); }
.mt-3 { margin-top: var(--spacing-2xl); }
.mb-1 { margin-bottom: var(--spacing-md); }
.mb-2 { margin-bottom: var(--spacing-xl); }
.mb-3 { margin-bottom: var(--spacing-2xl); }

.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--spacing-md); }
.gap-2 { gap: var(--spacing-xl); }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-published { background-color: var(--success); color: var(--white); }
.badge-draft { background-color: var(--warning); color: var(--dark); }
.badge-urgent { background-color: var(--blood-red); color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        flex: none;
    }
    
    .footer-top-inner {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-tagline {
        text-align: center;
    }

    .footer-cta-box {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }
    
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    
    .hamburger {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--trust-blue-dark);
        flex-direction: column;
        padding: 80px var(--spacing-xl) var(--spacing-xl);
        transition: right var(--transition-normal);
        box-shadow: var(--shadow-xl);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-list a {
        padding: var(--spacing-md);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-radius: 0;
    }
    
    .nav-cta {
        margin-left: 0;
        margin-top: var(--spacing-lg);
        width: 100%;
    }
    
    .nav-cta .btn {
        display: block;
        width: 100%;
    }
    
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    .header-top {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-info-row {
        justify-content: center;
    }

    .footer-logo img {
        max-height: 44px;
    }

    .footer-logo-name {
        font-size: 1.2rem;
    }

    .footer-bottom-row {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    .page-header {
        padding: var(--spacing-xl) 0;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .post-header h1 {
        font-size: 1.8rem;
    }
    
    .post-meta {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero {
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-content h1 {
        font-size: 1.7rem;
    }
    
    .hero-image {
        display: none;
    }
    
    .btn-lg {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
    
    .info-split {
        grid-template-columns: 1fr;
    }

    .schedule-tab {
        font-size: 0.82rem;
        padding: 0.7rem 0.5rem;
    }

    .info-map {
        min-height: 280px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .error-page h1 {
        font-size: 5rem;
    }
}
