/* =============================================
   CSS RESET & NORMALIZE
   ============================================= */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.5;
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #F6F6F3;
}
body {
  background: #F6F6F3;
  color: #202233;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  min-height: 100vh;
  position: relative;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: #202233;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #6DD0C8;
  outline-offset: 2px;
}
button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}
section {
  width: 100%;
  background: transparent;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #202233;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* =============================================
   BRAND FONTS (Google Fonts fallback & classic)
   ============================================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap');

body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  color: #23243B;
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

@media (min-width: 900px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.1rem; }
  h3 { font-size: 1.3rem; }
  body { font-size: 17px; }
}

p, ul, ol, li {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1em;
  line-height: 1.65;
  color: #393A4A;
  margin-top: 0;
  margin-bottom: 12px;
}

strong {
  font-weight: 700;
  color: #202233;
}

/* =============================================
   COLOR PALETTE (Elegant Classic + Brand)
   ============================================= */
:root {
  --clr-primary: #202233;
  --clr-secondary: #D6D850;
  --clr-accent: #6DD0C8;
  --clr-muted-bg: #F6F6F3;
  --clr-surface: #FFFDF8;
  --clr-card-shadow: rgba(32,34,51,0.07);
  --clr-border: #E4E4DC;
  --clr-link: #4A4A45;
  --clr-link-hover: #202233;
}

/* =============================================
   UNIVERSAL GUTTERS, CONTAINERS, & LAYOUT
   ============================================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 32px;
    padding: 28px 6vw;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
header {
  background: var(--clr-muted-bg);
  border-bottom: 1px solid var(--clr-border);
  position: sticky;
  z-index: 20;
  top: 0;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
header img {
  height: 44px;
  margin-right: 24px;
}
nav.main-nav {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
}
nav.main-nav a {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1em;
  color: var(--clr-link);
  padding: 8px 0;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition: border 0.18s, color 0.18s;
}
nav.main-nav a:hover,
nav.main-nav a:focus {
  color: var(--clr-primary);
  border-bottom: 2px solid var(--clr-secondary);
}

.cta-btn {
  background-color: var(--clr-secondary);
  color: #202233;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.04em;
  padding: 13px 32px;
  border-radius: 32px;
  box-shadow: 0 1px 8px var(--clr-card-shadow);
  font-weight: 700;
  border: none;
  transition: background 0.19s, color 0.19s, box-shadow 0.28s;
  margin-left: 18px;
  letter-spacing: 0.02em;
  display: inline-block;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--clr-accent);
  color: #202233;
  box-shadow: 0 4px 22px var(--clr-card-shadow);
  outline: none;
}

/* =============================================
   MOBILE BURGER MENU
   ============================================= */
.mobile-menu-toggle {
  display: none;
  background: var(--clr-secondary);
  color: var(--clr-primary);
  width: 46px;
  height: 46px;
  font-size: 2.1rem;
  border-radius: 50%;
  border: none;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  z-index: 99;
  box-shadow: 0 0 10px rgba(32,34,51,0.12);
  transition: background 0.14s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--clr-accent);
  outline: 2px solid var(--clr-secondary);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  height: 100%;
  width: 82vw;
  max-width: 390px;
  transform: translateX(-110%);
  background: #fff;
  box-shadow: 2px 0 20px rgba(50, 50, 70, 0.13);
  z-index: 9999;
  padding: 40px 32px 24px 20px;
  gap: 20px;
  transition: transform 0.35s cubic-bezier(0.57,0.08,0.19,1.02);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.3rem;
  color: var(--clr-primary);
  background: none;
  width: 44px;
  height: 44px;
  align-self: flex-end;
  margin-bottom: 18px;
  border-radius: 50%;
  border: none;
  transition: background 0.13s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--clr-secondary);
  color: var(--clr-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.14em;
  font-weight: 600;
  color: var(--clr-link);
  padding: 12px 0;
  border-bottom: 1px solid var(--clr-border);
  border-radius: 2px;
  transition: background 0.17s, color 0.15s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--clr-accent);
  color: var(--clr-primary);
}

@media (max-width: 950px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  header .container {
    flex-direction: row;
    gap: 0;
  }
}

/* =============================================
   HERO, SECTIONS & CONTENT LAYOUT
   ============================================= */
.hero-section {
  padding-top: 34px;
  padding-bottom: 16px;
  background: var(--clr-surface);
  box-shadow: 0 1px 16px var(--clr-card-shadow);
  border-bottom: 1px solid var(--clr-border);
}
.hero-section h1 {
  font-size: 2.1rem;
  margin-bottom: 10px;
  color: var(--clr-primary);
  font-family: 'Georgia', serif;
}
.hero-section p {
  font-size: 1.07em;
  margin-bottom: 20px;
  color: #41424c;
}
.features-section, .about-section, .values-section, .services-preview-section, .publications-list-section, 
.research-areas-section, .methods-section, .project-list-section, .events-list-section, .thankyou-section, .contact-section, .about-preview-section, .map-section, .cta-section, .policy-section {
  background: var(--clr-muted-bg);
  border-radius: 18px;
  box-shadow: 0 2px 18px var(--clr-card-shadow);
  border: 1px solid var(--clr-border);
}

@media (max-width: 900px) {
  .hero-section {
    padding-top: 16px;
  }
}

/* =============================================
   FLEXBOX CARD & FEATURE LAYOUTS
   ============================================= */
.feature-grid, .project-grid, .team-bio-grid, .event-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 8px;
  align-items: stretch;
}
.card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 3px 18px var(--clr-card-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px 26px 24px;
  border: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 230px;
  transition: box-shadow 0.24s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 28px var(--clr-card-shadow);
  transform: translateY(-3px) scale(1.015);
}
.feature-item, .project-item, .event-item, .team-bio {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 13px var(--clr-card-shadow);
  padding: 26px 18px 22px 18px;
  border: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.19s, border 0.17s, transform 0.19s;
  min-width: 220px;
  flex: 1 1 265px;
}
.feature-item img, .project-item img, .event-item img {
  width: 42px;
  margin-bottom: 6px;
  filter: grayscale(24%) opacity(0.94);
}
.feature-item:hover, .project-item:hover, .team-bio:hover, .event-item:hover {
  box-shadow: 0 7px 24px var(--clr-card-shadow);
  border-color: var(--clr-accent);
  transform: translateY(-2px);
}
.team-bio {
  min-width: 210px;
  gap: 12px;
}
@media (max-width: 900px) {
  .feature-grid, .project-grid, .team-bio-grid, .event-grid {
    gap: 13px;
  }
  .feature-item, .project-item, .team-bio, .event-item {
    padding: 20px 10px 17px 13px;
    min-width: 160px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .project-grid, .team-bio-grid, .event-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-item, .project-item, .team-bio, .event-item {
    min-width: unset;
  }
}

/* =============================================
   TEXT-IMAGE FLEX WRAPPERS
   ============================================= */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* =============================================
   VALUES & LISTS
   ============================================= */
.values-list {
  margin: 12px 0 18px 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.values-list li {
  position: relative;
  padding-left: 22px;
  color: #3a3a34;
  font-size: 1em;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.values-list li:before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0; top: 9px;
  width: 11px;
  height: 11px;
  background: var(--clr-secondary);
  border-radius: 50%;
  margin-right: 11px;
  opacity: 0.68;
}

ul, ol {
  margin-top: 0;
  margin-bottom: 1em;
  padding-left: 21px;
}

/* =============================================
   TESTIMONIAL CARDS
   ============================================= */
.testimonials-section {
  padding: 36px 0 32px 0;
}
.testimonials-section h2 {
  font-size: 1.48rem;
  margin-bottom: 22px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 17px var(--clr-card-shadow);
  padding: 20px 28px 20px 30px;
  margin: 0 0 20px 0;
  border-left: 5px solid var(--clr-accent);
  min-width: 210px;
  transition: box-shadow 0.19s, border 0.18s;
  color: #23243B;
}
.testimonial-card p {
  color: #302C27;
  font-style: italic;
  font-size: 1.08em;
  flex: 1 1 auto;
}
.testimonial-card strong {
  color: var(--clr-primary);
  font-size: 1em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px var(--clr-card-shadow);
  border-left: 5px solid var(--clr-secondary);
}
@media (max-width: 768px) {
  .testimonials-section {
    padding: 21px 0 10px 0;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 14px 10px 14px 15px;
  }
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--clr-primary);
  color: #f5f5eb;
  padding: 40px 0 18px 0;
  border-top: 1px solid var(--clr-border);
}
footer .container {
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
  padding-bottom: 12px;
}
.footer-nav a {
  color: #f5f5eb;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 0;
  margin-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border 0.15s, color 0.19s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--clr-secondary);
  border-bottom: 1px solid var(--clr-secondary);
}
.footer-contact p {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #f5f5eb;
  font-size: 0.99em;
  line-height: 1.65;
  margin-bottom: 3px;
}
@media (max-width: 840px) {
  footer .container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    min-width: unset;
  }
}

/* =============================================
   RESPONSIVE CONTACT & MAP SECTIONS
   ============================================= */
.contact-details, .map-placeholder {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.address-info, .phone-email, .opening-hours {
  min-width: 190px;
  flex: 1 1 240px;
}
@media (max-width: 850px) {
  .contact-details {
    flex-direction: column;
    gap: 13px;
  }
}
.map-placeholder {
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--clr-border);
  box-shadow: 0px 1px 7px var(--clr-card-shadow);
  padding: 18px 14px 12px 10px;
  align-items: center;
  gap: 18px;
}

/* =============================================
   FEATURE, EVENT, PROJECT CARDS' HOVER EFFECTS
   ============================================= */
.feature-item:focus-within, .project-item:focus-within, .event-item:focus-within{
  box-shadow: 0 7px 22px var(--clr-card-shadow);
  border-color: var(--clr-accent);
}

/* =============================================
   PUBLICATION-LIST & POLICY SECTION
   ============================================= */
.publication-category ul {
  margin-bottom: 18px;
}
.publication-category li {
  padding-bottom: 9px;
  font-size: 1em;
}
.publication-category a {
  color: var(--clr-accent);
  font-weight: 700;
  margin-left: 14px;
  border-bottom: 1px dotted var(--clr-accent);
  transition: border 0.17s, color 0.19s;
}
.publication-category a:hover,
.publication-category a:focus {
  border-bottom: 1px solid var(--clr-secondary);
  color: var(--clr-primary);
}
.policy-section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* =============================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================= */
.cta-btn, .card, .feature-item, .project-item, .event-item, .testimonial-card, .mobile-menu, .mobile-menu-toggle, .cookie-consent-banner, .cookie-modal {
  transition: box-shadow 0.20s, border 0.16s, transform 0.16s, background 0.14s, color 0.14s, opacity 0.3s, visibility 0s, outline 0.12s;
}

/* =============================================
   COOKIE CONSENT BANNER & MODAL
   ============================================= */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12000;
  background: #fffdfa;
  border-top: 1px solid var(--clr-border);
  box-shadow: 0 -2px 16px var(--clr-card-shadow);
  padding: 18px 14px 18px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: center;
  width: 100%;
  font-size: 1em;
  color: #23243B;
  min-height: 44px;
  animation: cookiefadein 0.8s cubic-bezier(.82,.05,.45,.99) 1;
}
@keyframes cookiefadein {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner button, .cookie-consent-banner .cookie-btn {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1em;
  padding: 10px 22px;
  border-radius: 28px;
  font-weight: 600;
  border: none;
  margin-right: 10px;
  box-shadow: 0 1px 6px var(--clr-card-shadow);
  transition: background 0.19s, color 0.16s, box-shadow 0.17s;
}
.cookie-consent-banner .cookie-accept {
  background: var(--clr-secondary);
  color: var(--clr-primary);
}
.cookie-consent-banner .cookie-accept:hover,
.cookie-consent-banner .cookie-accept:focus {
  background: var(--clr-accent);
  color: #202233;
}
.cookie-consent-banner .cookie-reject {
  background: #ede8d7;
  color: var(--clr-primary);
}
.cookie-consent-banner .cookie-reject:hover,
.cookie-consent-banner .cookie-reject:focus {
  background: #F7C8C3;
  color: #202233;
}
.cookie-consent-banner .cookie-settings {
  background: transparent;
  border: 1.5px solid var(--clr-accent);
  color: var(--clr-accent);
}
.cookie-consent-banner .cookie-settings:hover,
.cookie-consent-banner .cookie-settings:focus {
  background: var(--clr-accent);
  color: #fff;
}
@media (max-width: 740px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 10px;
    font-size: 0.97em;
    align-items: flex-start;
    padding: 14px 8px 14px 12px;
  }
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0;right:0;top:0;bottom:0;
  z-index: 13000;
  background: rgba(32,34,51,0.37);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.29s;
}
.cookie-modal.open {
  opacity: 1;
  visibility: visible;
}
.cookie-modal-content {
  background: #fffefc;
  border-radius: 15px;
  padding: 40px 24px 32px 32px;
  max-width: 412px;
  width: 90vw;
  box-shadow: 0 8px 34px rgba(32,34,51,0.17);
  border: 1.5px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: cookiepopin 0.29s cubic-bezier(.82,.05,.45,.99) 1;
}
@keyframes cookiepopin {
  from { opacity: 0; transform: translateY(32px) scale(0.93); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal-close {
  position: absolute;
  right: 1.2em;
  top: 1.2em;
  font-size: 1.5em;
  color: var(--clr-primary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: var(--clr-accent);
}
.cookie-modal-content h2 {
  font-size: 1.24em;
  margin-bottom: 12px;
  color: var(--clr-primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 11px;
  font-size: 1em;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: #ececec;
  border-radius: 14px;
  border: none;
  position: relative;
  transition: background 0.17s;
}
.cookie-toggle.on {
  background: var(--clr-accent);
}
.cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.16s;
  box-shadow: 0 2px 6px var(--clr-card-shadow);
}
.cookie-toggle.on:before {
  left: 19px;
}
.cookie-category label {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #23243B;
}

/* =============================================
   MISC CLASSES, UTILITIES & ACCESSIBILITY
   ============================================= */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-block {
  background: #fff;
  padding: 18px 28px;
  border-radius: 13px;
  box-shadow: 0 2px 13px var(--clr-card-shadow);
  border: 1px solid var(--clr-border);
  margin-top: 24px;
}

hr {
  border: none;
  height: 1.5px;
  background: var(--clr-border);
  margin: 44px 0 32px 0;
}

::-webkit-scrollbar {
  width: 8px;
  background: #f8f8f3;
}
::-webkit-scrollbar-thumb {
  background: var(--clr-border);
  border-radius: 10px;
}

/* =============================================
   MEDIA QUERIES - GENERAL RESPONSIVENESS
   ============================================= */
@media (max-width: 600px) {
  .container {
    padding-left: 2vw;
    padding-right: 2vw;
  }
  .hero-section, .section {
    padding: 19px 4vw;
  }
  .card, .feature-item, .project-item, .event-item {
    padding: 13px 8px 14px 9px;
    border-radius: 8px;
  }
  h1 {
    font-size: 1.45rem; margin-bottom: 6px;
  }
  h2 {
    font-size: 1.17rem; margin-bottom: 5px;
  }
  h3 {
    font-size: 1.03rem; margin-bottom: 3px;
  }
}

/* =============================================
   END OF CSS FILE
   ============================================= */
