:root {
 --primary-color: #0d3b66; /* Deep, knowledgeable blue */
 --primary-dark: #07223d;
 --secondary-color: #faf0ca; /* Elegant, gallery-like cream */
 --accent-color: #f9a826; /* Gold accent */
 --text-dark: #1f2937;
 --text-light: #6b7280;
 --bg-light: #f7f9fb;
 --bg-white: #ffffff;
 --border-color: #e5e7eb;
 --radius: 4px;
 --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
 --shadow-md: 0 4px 8px rgba(0,0,0,0.07);
 --transition: all 0.3s ease-in-out;
 --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- RESET & BASE STYLES --- */
*, *::before, *::after {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

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

body {
 font-family: var(--font-main);
 line-height: 1.7;
 color: var(--text-dark);
 background-color: var(--bg-white);
 -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
 font-weight: 700;
 line-height: 1.3;
 color: var(--primary-dark);
 margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }

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

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

a:hover {
 color: var(--accent-color);
}

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

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

/* --- HEADER & NAVIGATION --- */
.header {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 z-index: 1000;
 background-color: rgba(255, 255, 255, 0.9);
 backdrop-filter: blur(10px);
 box-shadow: none;
 transition: var(--transition);
 height: 80px;
}
.header.scrolled {
 box-shadow: var(--shadow-md);
 height: 70px;
 background-color: rgba(255, 255, 255, 0.95);
}
.nav {
 height: 100%;
 display: flex;
 align-items: center;
 justify-content: space-between;
}
.nav-logo {
 font-size: 1.5rem;
 font-weight: 800;
 color: var(--primary-dark);
}
.nav-logo:hover {
 color: var(--primary-color);
}
.nav-links {
 list-style: none;
 display: flex;
 gap: 32px;
}
.nav-links a {
 font-size: 1rem;
 font-weight: 500;
 color: var(--text-dark);
 position: relative;
 padding-bottom: 8px;
}
.nav-links a::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 0;
 height: 2px;
 background-color: var(--accent-color);
 transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
 width: 100%;
}
.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
 z-index: 1001;
}
.nav-toggle span {
 display: block;
 width: 25px;
 height: 2px;
 background-color: var(--text-dark);
 margin: 5px 0;
 transition: all 0.3s;
}
@media (max-width: 768px) {
 .nav-toggle { display: block; }
 .nav-links {
 position: fixed;
 top: 0;
 right: -100%;
 width: 70%;
 height: 100vh;
 background-color: var(--bg-white);
 flex-direction: column;
 padding: 100px 40px;
 gap: 24px;
 box-shadow: -5px 0 15px rgba(0,0,0,0.1);
 transition: right 0.4s ease-in-out;
 }
 .nav-links.active { right: 0; }
 .nav-links li { text-align: center; }
 .nav-links a { font-size: 1.25rem; }
}

/* --- MAIN SECTIONS & LAYOUT --- */
main {
 padding-top: 80px;
}

.section {
 padding: 100px 0;
}

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

.section-header {
 text-align: center;
 max-width: 750px;
 margin: 0 auto 60px;
}
.section-label {
 display: inline-block;
 font-size: 0.875rem;
 font-weight: 600;
 padding: 6px 16px;
 background-color: var(--secondary-color);
 color: var(--primary-dark);
 border-radius: 20px;
 margin-bottom: 1rem;
 text-transform: uppercase;
 letter-spacing: 0.5px;
}
.section-title {
 margin-bottom: 1rem;
}
.section-subtitle {
 font-size: 1.125rem;
 line-height: 1.8;
 color: var(--text-light);
}

.page-header-section {
 padding: 80px 0;
 text-align: center;
}

/* --- BUTTONS --- */
.btn {
 display: inline-block;
 padding: 14px 28px;
 font-size: 1rem;
 font-weight: 600;
 border-radius: var(--radius);
 cursor: pointer;
 transition: var(--transition);
 border: 2px solid transparent;
 text-align: center;
}

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

.btn-secondary {
 background-color: transparent;
 border-color: var(--primary-color);
 color: var(--primary-color);
}
.btn-secondary:hover {
 background-color: var(--primary-color);
 color: white;
}
.btn-full { width: 100%; }

/* --- ART GALLERY HERO --- */
.art-gallery-hero {
 min-height: 85vh;
 position: relative;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 background-size: cover;
 background-position: center;
 padding: 40px;
 color: white;
}

.art-gallery-hero::before {
 content: '';
 position: absolute;
 top: 0; left: 0; right: 0; bottom: 0;
 background: linear-gradient(0deg, rgba(13, 59, 102, 0.7) 0%, rgba(13, 59, 102, 0.4) 100%);
}

.hero-content {
 position: relative;
 z-index: 1;
 max-width: 800px;
}

.hero-content h1 {
 color: white;
 text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
 font-size: 1.25rem;
 color: rgba(255, 255, 255, 0.9);
 margin-bottom: 2rem;
}

/* --- STATS SECTION --- */
.stats-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
 gap: 30px;
 text-align: center;
 margin-top: 50px;
}
.stat-item { padding: 20px; }
.stat-number {
 font-size: 3rem;
 font-weight: 700;
 color: var(--primary-color);
}
.stat-caption {
 font-size: 1rem;
 color: var(--text-light);
 margin-top: 0.5rem;
}

/* --- CARDS & GRID (Art Gallery Frame Style) --- */
.cards-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 30px;
}
.card {
 background: var(--bg-white);
 border-radius: var(--radius);
 overflow: hidden;
 transition: var(--transition);
 display: flex;
 flex-direction: column;
 border: 1px solid var(--border-color);
 box-shadow: 0 0 0 6px var(--bg-white), 0 1px 3px 0 rgba(0,0,0,0.1);
}
.card:hover {
 transform: translateY(-8px);
 box-shadow: 0 0 0 6px var(--bg-white), 0 10px 20px rgba(0,0,0,0.1);
}
.card-image {
 height: 200px;
 width: 100%;
 object-fit: cover;
}
.card-body {
 padding: 24px;
 flex-grow: 1;
 display: flex;
 flex-direction: column;
}
.card-title {
 margin-bottom: 0.75rem;
 font-size: 1.25rem;
}
.card-text {
 flex-grow: 1;
 margin-bottom: 1.5rem;
}
.card-meta {
 font-size: 0.8rem;
 color: var(--text-light);
 margin-bottom: 0.5rem;
 font-weight: 500;
}
@media (max-width: 992px) {
 .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
 .cards-grid { grid-template-columns: 1fr; }
}

/* MEDIA OBJECT */
.media-object {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 60px;
 align-items: center;
}
.media-object.reverse { grid-template-columns: 1fr 1fr; }
.media-object.reverse .media-visual { order: 2; }
.media-object.reverse .media-copy { order: 1; }
.media-visual img {
 border-radius: var(--radius);
 box-shadow: var(--shadow-md);
}
.media-copy ul {
 list-style: none;
 padding-left: 0;
 margin-top: 1.5rem;
}
.media-copy ul li {
 padding-left: 30px;
 position: relative;
 margin-bottom: 1rem;
}
.media-copy ul li::before {
 content: '';
 position: absolute;
 left: 0;
 color: var(--accent-color);
 font-weight: bold;
}
@media (max-width: 992px) {
 .media-object, .media-object.reverse {
 grid-template-columns: 1fr;
 gap: 40px;
 }
 .media-object.reverse .media-visual,
 .media-object.reverse .media-copy {
 order: unset;
 }
}

/* --- CTA SECTION --- */
.cta-section { text-align: center; }
.newsletter-form {
 display: flex;
 gap: 16px;
 max-width: 600px;
 margin: 30px auto 0;
}
.newsletter-form input {
 flex-grow: 1;
 padding: 14px 20px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius);
 font-size: 1rem;
}
.newsletter-form input:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(13,59,102, 0.1);
}
.newsletter-form button { flex-shrink: 0; }
@media (max-width: 576px) {
 .newsletter-form { flex-direction: column; }
}

/* --- FOOTER --- */
.footer {
 background-color: var(--primary-dark);
 color: #a0aec0;
 padding: 80px 0 30px;
 margin-top: 80px;
}
.footer-grid {
 display: grid;
 grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
 gap: 40px;
 margin-bottom: 40px;
}
.footer-logo {
 font-size: 1.5rem;
 font-weight: 800;
 color: var(--bg-white);
 margin-bottom: 1rem;
 display: inline-block;
}
.footer-heading {
 font-size: 1rem;
 font-weight: 600;
 color: var(--bg-white);
 margin-bottom: 1.5rem;
 text-transform: uppercase;
 letter-spacing: 1px;
}
.footer-links, .footer-contact {
 list-style: none;
}
.footer-links li, .footer-contact li {
 margin-bottom: 12px;
}
.footer-links a, .footer-contact a {
 color: #a0aec0;
}
.footer-links a:hover, .footer-contact a:hover {
 color: var(--bg-white);
}
.footer-social {
 display: flex;
 gap: 16px;
 margin-top: 1.5rem;
}
.footer-social a {
 color: #a0aec0;
 transition: color 0.3s;
}
.footer-social a:hover {
 color: var(--accent-color);
}
.footer-bottom {
 border-top: 1px solid rgba(255,255,255,0.1);
 padding-top: 30px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 font-size: 0.875rem;
}
.footer-legal-links {
 display: flex;
 gap: 24px;
}
@media (max-width: 992px) {
 .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
 .footer-grid { grid-template-columns: 1fr; }
 .footer-bottom { flex-direction: column; gap: 16px; }
}

/* --- ABOUT PAGE --- */
.values-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 30px;
 text-align: center;
}
.value-item .value-icon {
 width: 60px;
 height: 60px;
 margin: 0 auto 1.5rem;
 background: var(--secondary-color);
 color: var(--primary-color);
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
}
.value-item .value-icon svg { width: 30px; height: 30px; }
.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
 gap: 30px;
}
.team-member-card {
 text-align: center;
 padding: 24px;
 background: var(--bg-light);
 border-radius: var(--radius);
}
.team-photo {
 width: 120px;
 height: 120px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 1.5rem;
 border: 4px solid var(--bg-white);
 box-shadow: var(--shadow-md);
}
.team-name { font-size: 1.25rem; margin-bottom: 0.25rem; }
.team-title {
 color: var(--primary-color);
 font-weight: 600;
 margin-bottom: 0.5rem;
}
.team-bio { font-size: 0.9rem; }
@media (max-width: 992px) {
 .values-grid { grid-template-columns: 1fr; }
}

/* --- TIMELINE/PROCESS --- */
.timeline {
 position: relative;
 max-width: 800px;
 margin: 0 auto;
 padding-left: 40px;
 border-left: 3px solid var(--border-color);
}
.timeline-step {
 position: relative;
 margin-bottom: 50px;
}
.timeline-step:last-child { margin-bottom: 0; }
.timeline-number {
 position: absolute;
 left: -63px;
 top: -5px;
 width: 40px;
 height: 40px;
 border-radius: 50%;
 background: var(--primary-color);
 color: white;
 display: flex;
 align-items: center;
 justify-content: center;
 font-weight: bold;
 font-size: 1.25rem;
 border: 3px solid var(--bg-light);
}
.timeline-content h3 { font-size: 1.35rem; }

/* --- CONTACT PAGE --- */
.contact-page-layout {
 display: grid;
 grid-template-columns: 2fr 1.5fr;
 gap: 60px;
}
.form-title, .info-title {
 font-size: 1.75rem;
 margin-bottom: 2rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-label {
 display: block;
 margin-bottom: 0.5rem;
 font-weight: 500;
}
.form-control {
 width: 100%;
 padding: 14px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius);
 font-size: 1rem;
 font-family: inherit;
 transition: var(--transition);
}
.form-control:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(13,59,102, 0.1);
}
textarea.form-control {
 min-height: 150px;
 resize: vertical;
}
.contact-info-item {
 display: flex;
 gap: 16px;
 align-items: flex-start;
 margin-bottom: 1.5rem;
}
.contact-info-item .info-icon {
 flex-shrink: 0;
 color: var(--primary-color);
}
.contact-info-item .info-icon svg { width: 24px; height: 24px; }
.map-section {
 padding-top: 0;
 margin-top: -50px;
}
.map-section iframe {
 filter: grayscale(1) invert(0.9) contrast(0.9);
}
@media (max-width: 992px) {
 .contact-page-layout { grid-template-columns: 1fr; }
}

/* --- NEWS PAGE --- */
.pagination {
 display: flex;
 justify-content: center;
 gap: 8px;
 margin-top: 4rem;
}
.pagination a {
 padding: 10px 16px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius);
 color: var(--text-dark);
}
.pagination a:hover {
 background: var(--bg-light);
 color: var(--primary-color);
}
.pagination a.active {
 background: var(--primary-color);
 color: white;
 border-color: var(--primary-color);
}

/* --- LEGAL & THANK YOU PAGES --- */
.legal-page, .thank-you-section {
 padding: 100px 0;
}
.legal-page .container {
 max-width: 800px;
}
.legal-page h1 { font-size: 2.5rem; }
.legal-page h2 { font-size: 1.75rem; margin-top: 2rem; }
.legal-page ul { margin-left: 20px; margin-bottom: 1rem; }
.thank-you-section .container { max-width: 700px; }
.text-center { text-align: center; }
.thank-you-icon {
 width: 80px;
 height: 80px;
 margin: 0 auto 2rem;
 color: var(--primary-color);
}

.cookie-table-container { overflow-x: auto; }
.cookie-table {
 width: 100%;
 border-collapse: collapse;
 margin: 2rem 0;
}
.cookie-table th, .cookie-table td {
 border: 1px solid var(--border-color);
 padding: 12px;
 text-align: left;
}
.cookie-table th {
 background-color: var(--bg-light);
 font-weight: 600;
}

/* --- COOKIE BANNER --- */
#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background-color: var(--primary-dark);
 color: #e2e8f0;
 padding: 20px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 gap: 20px;
 z-index: 2000;
 box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
 display: none; /* Initially hidden */
}
#cookie-banner p {
 margin: 0;
 font-size: 0.9rem;
}
#cookie-banner a {
 color: var(--accent-color);
 text-decoration: underline;
}
#cookie-banner div {
 display: flex;
 gap: 10px;
}
#cookie-banner .btn-primary { background-color: var(--accent-color); color: var(--primary-dark); }
#cookie-banner .btn-secondary { color: white; border-color: white; }
@media (max-width: 768px) {
 #cookie-banner { flex-direction: column; text-align: center; }
}