/*
Theme Name: Aenaos Thalassa
Theme URI: https://aenaosthalassa.com
Author: Aenaos Thalassa
Description: Custom theme for Aenaos Thalassa - Marine Protection NGO
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: aenaos-thalassa
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --color-deep:       #0a2342;
  --color-ocean:      #1a5276;
  --color-sea:        #2e86c1;
  --color-wave:       #5dade2;
  --color-foam:       #aed6f1;
  --color-sand:       #f4f6f7;
  --color-white:      #ffffff;
  --color-text:       #1c2833;
  --color-text-light: #566573;
  --color-accent:     #1abc9c;
  --color-accent-dark:#148f77;

  --font-heading: 'Manrope', 'Helvetica Neue', sans-serif;
  --font-body:    'Open Sans', 'Helvetica Neue', sans-serif;

  --max-width: 1200px;
  --radius:    6px;
  --shadow:    0 4px 20px rgba(10, 35, 66, 0.12);
  --shadow-lg: 0 8px 40px rgba(10, 35, 66, 0.18);

  --transition: 0.3s ease;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-sea); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-ocean); }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-deep);
  line-height: 1.25;
  margin-bottom: 0.75em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

p { margin-bottom: 1.2em; }

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

.section { padding: 5rem 0; }
.section--alt { background: var(--color-sand); }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
}
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-deep);
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-deep);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  overflow: visible; /* Allow logo to overflow */
}

/* Floating Square Logo Container - Outside header-inner */
.site-header .site-logo {
  position: absolute;
  left: 1.5rem;
  top: 100%;
  transform: translateY(-50%);
  z-index: 101;
  background: var(--color-white);
  padding: 0.75rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  text-decoration: none;
}
.site-header .site-logo img,
.site-header .site-logo .custom-logo {
  height: 80px;
  width: 80px;
  object-fit: contain;
  display: block;
  max-width: none;
}
.site-header .site-logo:hover {
  transform: translateY(-50%) translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.site-header .site-logo-text {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.9rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  padding-left: 140px; /* Space for floating logo */
}

.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
}

.main-nav > ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-foam);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--color-white);
  background: rgba(255,255,255,0.1);
}

/* Dropdown */
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-ocean);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  box-shadow: var(--shadow-lg);
  z-index: 200;
}
.main-nav .menu-item-has-children:hover .sub-menu { display: block; }
.main-nav .sub-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  border-radius: 0;
  font-size: 0.88rem;
}
.main-nav .sub-menu a:hover { background: rgba(255,255,255,0.15); }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255,255,255,0.2);
}
.lang-switcher a {
  color: var(--color-foam);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lang-switcher a:hover,
.lang-switcher a.active { color: var(--color-white); background: rgba(255,255,255,0.15); }

/* Header Social Icons */
.header-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 1rem;
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--color-foam);
  transition: all var(--transition);
}

.header-social a:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.header-social svg {
  width: 16px;
  height: 16px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle:hover span {
  background: var(--color-foam);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-deep) 0%, var(--color-ocean) 60%, var(--color-sea) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

/* Wave decoration */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--color-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 4rem 1.5rem;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-lead {
  color: var(--color-foam);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

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

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
  padding: 6rem 0;
  background: var(--color-white);
}

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

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--color-foam);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }

.about-text .section-title { text-align: left; }
.about-text .section-title::after { margin-left: 0; }

.about-text p { color: var(--color-text-light); font-size: 1.05rem; }

/* =============================================
   PROGRAMMES - Compact Horizontal Layout
   ============================================= */
.programmes-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.programme-item {
  background: var(--color-white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: all var(--transition);
}

.programme-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.programme-item-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-ocean), var(--color-sea));
  overflow: hidden;
}

.programme-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.programme-item-title {
  flex: 1;
  font-size: 1.3rem;
  margin: 0;
  color: var(--color-deep);
}

.programme-item-link {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-sea);
  letter-spacing: 0.02em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--color-sea);
  transition: all var(--transition);
  white-space: nowrap;
}

.programme-item-link:hover {
  background: var(--color-sea);
  color: var(--color-white);
}

/* =============================================
   NEWS
   ============================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.news-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-card-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-deep), var(--color-ocean));
  overflow: hidden;
}
.news-card-image img { width: 100%; height: 100%; object-fit: cover; }

.news-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.news-date {
  color: var(--color-text-light);
  font-size: 0.82rem;
}
.news-cat {
  background: var(--color-foam);
  color: var(--color-ocean);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-card-body h3 { font-size: 1.1rem; margin-bottom: 0.6rem; flex: 1; }
.news-card-body h3 a { color: var(--color-deep); }
.news-card-body h3 a:hover { color: var(--color-sea); }

.news-card-body .excerpt { color: var(--color-text-light); font-size: 0.92rem; margin-bottom: 1rem; }

.section-footer { text-align: center; margin-top: 3rem; }

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section {
  background: linear-gradient(135deg, var(--color-deep) 0%, var(--color-ocean) 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--color-sand);
  clip-path: ellipse(55% 100% at 50% 0%);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { color: var(--color-white); }
.contact-info p { color: var(--color-foam); }

.contact-details { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-foam);
  font-size: 0.95rem;
}
.contact-item-icon {
  width: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-accent);
}

.contact-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  color: var(--color-foam);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-group textarea { min-height: 130px; resize: vertical; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-deep);
  color: var(--color-foam);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about img,
.footer-about .custom-logo {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-about p { font-size: 0.92rem; color: rgba(174,214,241,0.75); line-height: 1.7; }

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  color: rgba(174,214,241,0.75);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--color-white); }

.footer-social { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--color-foam);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--color-accent); color: var(--color-white); }

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { color: rgba(174,214,241,0.5); font-size: 0.82rem; }
.footer-bottom a { color: rgba(174,214,241,0.7); font-size: 0.82rem; }
.footer-bottom a:hover { color: var(--color-white); }

.footer-legal { display: flex; gap: 1.5rem; }

/* =============================================
   SINGLE POST
   ============================================= */
.post-hero {
  background: linear-gradient(135deg, var(--color-deep), var(--color-ocean));
  padding: 5rem 0 4rem;
  text-align: center;
}
.post-hero h1 { color: var(--color-white); max-width: 800px; margin: 0 auto 1rem; }
.post-meta-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--color-foam);
  font-size: 0.9rem;
}
.post-meta-bar .sep { color: rgba(255,255,255,0.3); }

.post-thumbnail-wrap {
  max-width: 900px;
  margin: -3rem auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.post-thumbnail-wrap img { width: 100%; display: block; }

.post-content-wrap {
  max-width: 780px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.post-content-wrap .entry-content h2,
.post-content-wrap .entry-content h3 { margin-top: 2rem; }
.post-content-wrap .entry-content p { font-size: 1.05rem; line-height: 1.85; color: var(--color-text); }
.post-content-wrap .entry-content ul,
.post-content-wrap .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.post-content-wrap .entry-content li { margin-bottom: 0.4rem; list-style: disc; }
.post-content-wrap .entry-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--color-sand);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-ocean);
}
.post-content-wrap .entry-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.post-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 2rem 0; }
.post-tag {
  background: var(--color-foam);
  color: var(--color-ocean);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
  padding: 0 1.5rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.post-nav-item {
  background: var(--color-sand);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  transition: background var(--transition);
}
.post-nav-item:hover { background: var(--color-foam); }
.post-nav-label { font-size: 0.75rem; color: var(--color-text-light); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.3rem; }
.post-nav-title { font-family: var(--font-heading); color: var(--color-deep); font-size: 1rem; }
.post-nav-item.next { text-align: right; }

/* =============================================
   ARCHIVE / NEWS LISTING
   ============================================= */
.archive-header {
  background: linear-gradient(135deg, var(--color-deep), var(--color-ocean));
  padding: 4rem 0 3rem;
  text-align: center;
}
.archive-header h1 { color: var(--color-white); }
.archive-header p { color: var(--color-foam); }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 3rem 0;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--color-sand);
  color: var(--color-text);
  transition: all var(--transition);
}
.pagination a:hover { background: var(--color-sea); color: var(--color-white); }
.pagination .current { background: var(--color-sea); color: var(--color-white); }

/* =============================================
   PAGE TEMPLATE
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--color-deep), var(--color-ocean));
  padding: 5rem 0 4rem;
  text-align: center;
}
.page-hero h1 { color: var(--color-white); }

.page-content-wrap {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}
.page-content-wrap .entry-content p { font-size: 1.05rem; line-height: 1.85; }
.page-content-wrap .entry-content h2 { margin-top: 2.5rem; }
.page-content-wrap .entry-content img { border-radius: var(--radius); margin: 1.5rem 0; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (min-width: 769px) {
  .main-nav { display: flex !important; flex-direction: row; }
  .main-nav > ul { flex-direction: row; }
  .menu-toggle { display: none; }
}

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image { max-width: 600px; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-deep);
    padding: 70px 1rem 1rem 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 998;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    animation: fadeInSlide 0.3s ease forwards;
  }

  @keyframes fadeInSlide {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  body.menu-open {
    overflow: hidden;
  }
  .main-nav > ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  .main-nav > ul > li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav > ul > li:last-child {
    border-bottom: none;
  }
  .main-nav > ul > li > a {
    display: block;
    padding: 0.65rem 0.75rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
  }
  .menu-toggle {
    display: flex;
    margin-left: auto;
    order: 1;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--color-deep);
  }

  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding-left: 90px;
    padding-right: 1rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    position: relative;
    min-height: 70px;
    box-sizing: border-box;
  }

  .lang-switcher {
    order: 2;
    margin-left: 0.5rem;
    position: relative;
    z-index: 1001;
  }

  body {
    padding-top: 70px;
  }

  .hero,
  .section:first-of-type {
    margin-top: 0 !important;
  }

  .site-header .site-logo {
    position: absolute;
    left: 1rem;
    padding: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
  }
  .site-header .site-logo img, .site-header .site-logo .custom-logo {
    margin-top: 5px;
  }

  .site-header .site-logo:hover {
    transform: translateY(-50%) scale(1.05);
  }
  .site-header .site-logo img,
  .site-header .site-logo .custom-logo {
    height: 55px;
    width: 55px;
  }

  .main-nav .header-social {
    order: 9;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    margin-right: 0;
    gap: 1rem;
  }
  .main-nav .header-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav .lang-switcher {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
    margin: 60px 0 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    order: -1;
  }
  .main-nav .lang-switcher a {
    font-size: 1rem;
    padding: 0.4rem 0.75rem;
  }

  .main-nav .sub-menu {
    position: static;
    box-shadow: none;
    display: block !important;
    background: rgba(0,0,0,0.15);
    border-radius: 0;
    margin-top: 0;
    padding: 0.25rem 0 0.25rem 1.25rem;
  }
  .main-nav .sub-menu li {
    padding: 0;
  }
  .main-nav .sub-menu a {
    padding: 0.5rem 0.75rem;
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
  }

  .hero { min-height: 70vh; }
  .hero-actions { flex-direction: column; align-items: center; }

  .programme-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .programme-item-image {
    width: 100%;
    height: 180px;
  }

  .programme-item-link {
    width: 100%;
    text-align: center;
  }

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

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .post-nav { grid-template-columns: 1fr; }
  .post-nav-item.next { text-align: left; }

  .contact-section { padding: 4rem 0; }
  .contact-inner { gap: 2rem; }
  .contact-form { padding: 1.5rem; }
  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 0; }

  body {
    padding-top: 60px;
  }

  .hero,
  .section:first-of-type {
    margin-top: 0 !important;
  }

  .header-inner {
    padding-left: 70px;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    min-height: 60px;
  }

  .menu-toggle {
    padding: 0.4rem;
    margin-right: 0;
  }

  .lang-switcher {
    margin-left: 0.5rem;
  }

  .site-header .site-logo {
    position: absolute;
    left: 0.75rem;
    padding: 0.4rem;
    top: 50%;
    transform: translateY(-30%);
  }
  .site-header .site-logo:hover {
    transform: translateY(-50%) scale(1.05);
  }
  .site-header .site-logo img,
  .site-header .site-logo .custom-logo {
    height: 45px;
    width: 45px;
  }

  .container {
    padding: 0 1rem;
  }

  .contact-section { padding: 3rem 0; }
  .contact-inner { gap: 2rem; }
  .contact-form {
    padding: 1.25rem;
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
  }
  .form-group {
    margin-bottom: 1rem;
  }
  .form-group input,
  .form-group textarea {
    padding: 0.65rem 0.85rem;
    font-size: 16px;
    box-sizing: border-box;
    max-width: 100%;
  }
  .form-group textarea {
    min-height: 100px;
  }
  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
  }
}

.wpcf7 > form > p {
  color: white;
}

.wpcf7 > form > p > input {
  padding: 8px 12px;
}

/* =============================================
   TEAM MEMBER SINGLE - RESPONSIVE
   ============================================= */
.team-member-wrapper {
  margin: 3rem auto 4rem;
}

.team-member-content {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: flex-start;
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.team-photo-sidebar {
  flex: 0 0 280px;
}

.team-photo-sidebar img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.team-bio-main {
  flex: 1;
  max-width: 550px;
}

.team-contact-box {
  background: var(--color-sand);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}

.team-contact-box h3 {
  margin: 0 0 1.5rem 0;
  color: var(--color-deep);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-sea);
  font-size: 0.92rem;
  text-decoration: none;
}

.contact-link:hover {
  color: var(--color-deep);
}

@media (max-width: 768px) {
  .team-member-wrapper {
    margin: 2rem auto;
  }

  .team-member-content {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
  }

  .team-photo-sidebar {
    flex: none;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .team-bio-main {
    max-width: 100%;
  }

  .team-contact-box {
    padding: 1.5rem;
  }
}