/*
 Theme Name:   Samariesi Med4U
 Theme URI:    https://example.com/
 Author:       Your Name
 Author URI:   https://example.com/
 Description:  A custom theme for the Samariesi Med4U site
 Version:      1.0
 Text Domain:  samariesi
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
*/

@font-face {
  font-family: "Aptos";
  src: url("/fonts/Aptos-Regular.woff2") format("woff2"),
    url("/fonts/Aptos-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/EBGaramond-Regular.woff2") format("woff2"),
    url("/fonts/EBGaramond-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-red: #a90230;
  --primary-gray: #d9d9d9;
  --primary-white: #ffffff;
  --primary-black: #000000;
  --secondary-gray-light: #e8e8e8;
  --secondary-gray-dark: #666666;

  --background-color: var(--primary-red);
  --text-color: var(--primary-black);
  --nav-background-color: var(--primary-white);
  --nav-text-color: var(--primary-red);
  --nav-height: 100px;
  --separator-color: var(--primary-red);
  --gallery-background-color: var(--primary-white);
  --card-background-color: var(--primary-white);
  --border-color: var(--primary-gray);
  --font-1: "EB Garamond", serif;
  --font-2: "Aptos", serif;
  --border-radius: 20px;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;
  --shadow-light: 0 2px 8px rgba(169, 2, 48, 0.1);
  --shadow-medium: 0 4px 16px rgba(169, 2, 48, 0.15);
  --shadow-heavy: 0 8px 32px rgba(169, 2, 48, 0.2);
}

.dark-mode {
  --background-color: var(--primary-black);
  --text-color: var(--primary-white);
  --nav-background-color: var(--primary-black);
  --nav-text-color: var(--primary-red);
  --separator-color: var(--primary-red);
  --gallery-background-color: var(--primary-black);
  --card-background-color: var(--secondary-gray-dark);
  --border-color: var(--secondary-gray-dark);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: var(--font-2);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  padding-top: var(--nav-height);
}

/* Typography */
h1,
h2,
h3,
h5,
h6 {
  font-family: var(--font-1);
  color: var(--separator-color);
  font-style: normal;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

p {
  margin: 0 0 1rem 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

ul,
ol {
  padding-left: 2rem;
  margin: 0 0 1rem 0;
}

li {
  margin-bottom: 0.5rem;
  font-size: 25px;
}

/* Navigation */
nav[role="navigation"] {
  display: flex;
  align-items: center;
  background-color: var(--nav-background-color);
  padding: 0 1rem;
  position: fixed;
  z-index: 1000;
  transition: top var(--transition-medium);
  width: 100%;
  box-sizing: border-box;
  left: 0;
  right: 0;
  top: 0;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  font-size: clamp(1rem, 2vw, 1.25rem);
  height: var(--nav-height);
  box-shadow: var(--shadow-light);
}

.logo-and-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}

.main-logo {
  max-width: 420px;
  max-height: 100px;
  height: auto;
  width: auto;
  padding: 0.5rem;
  transition: transform var(--transition-fast);
  display: block;
  object-fit: contain;
}

.main-logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-links ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--nav-text-color);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast),
    border-bottom-color var(--transition-fast);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--separator-color);
  border-bottom-color: var(--separator-color);
}

.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
  color: var(--separator-color);
  border-bottom-color: var(--separator-color);
}

/* Mobile Navigation */
.burger-menu {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  height: 24px;
  width: 30px;
  background: none;
  border: none;
  padding: 0;
}

.burger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--nav-text-color);
  border-radius: 3px;
  transition: all var(--transition-medium);
  transform-origin: center;
}

.burger-menu.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.open span:nth-child(2) {
  opacity: 0;
}

.burger-menu.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Gallery Slider */
.gallery {
  position: relative;
  overflow: hidden;
  background-color: var(--background-color);
  width: 100%;
  height: 100vh;
  min-height: 600px;
}

.gallery h3 {
  color: var(--primary-white);
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity var(--transition-slow);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.slide.active {
  display: block;
  opacity: 1;
}

.text-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: white;
  max-width: 50%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
  padding: 2rem;
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
}

.text-overlay h2 {
  font-family: var(--font-1);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.text-overlay a {
  color: var(--primary-white);
  border-color: var(--primary-white);
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 1rem;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  transition: background-color var(--transition-medium);
  border-radius: 0 3px 3px 0;
  user-select: none;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

/* Buttons */
.btn-primary,
button.sign-up,
.text-overlay button,
.separator2 button,
.full-screen button {
  border-radius: 30px;
  border: 2px solid;
  background: none;
  font-family: var(--font-2);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  padding: 0.75rem 1.5rem;
  margin: 0.25rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 150px;
}

.text-overlay button {
  border-color: white;
  color: white;
}

.text-overlay button:hover {
  background-color: white;
  color: var(--nav-text-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.separator2 a {
  border-color: white;
  color: white;
}

.separator2 a:hover {
  background-color: white;
  color: var(--nav-text-color);
  transform: translateY(-2px);
}

.btn-primary,
.full-screen button {
  border-color: var(--separator-color);
  color: var(--separator-color);
}

.btn-primary:hover,
.full-screen button:hover {
  background-color: var(--separator-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Sections */

#section1.full-screen {
  background-color: #f8f8f8;
}

.separator {
  background-color: var(--separator-color);
  text-align: center;
  padding: 3rem 2rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: #f7f5f3;
  margin: 0;
}

.separator h2 {
  color: var(--primary-white);
}

.separator h3 {
  color: var(--primary-white);
  font-weight: 400;
  max-width: 1200px;
  margin: 0 auto;
}

.separator2 {
  color: var(--primary-white);
  text-align: center;
  padding: 4rem 2rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin: 4rem 0;
}

.separator2 h1 {
  color: var(--primary-white);
  max-width: 1200px;
  margin: 0 auto 2rem auto;
}

/* Latvia Map Section */
.latvia-map-section {
  background-color: var(--primary-white);
  padding: 4rem 2rem;
  text-align: center;
}

.map-container h2 {
  color: var(--separator-color);
  margin-bottom: 3rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.map-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  display: inline-block;
}

.latvia-map {
  width: 100%;
  height: auto;
  max-width: 800px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.region {
  cursor: pointer;
  transition: all var(--transition-medium);
}

.region:hover {
  opacity: 1 !important;
  filter: brightness(1.1);
  transform: scale(1.02);
  transform-origin: center;
}

.region-label {
  pointer-events: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.map-popup {
  position: absolute;
  background: white;
  border: 2px solid var(--primary-red);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: var(--shadow-heavy);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 1000;
  min-width: 250px;
  pointer-events: none;
}

.map-popup.visible {
  opacity: 1;
  visibility: visible;
}

.popup-content h3 {
  color: var(--primary-red);
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
}

.popup-content p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-color);
}

.popup-content strong {
  color: var(--primary-red);
}

/* Overlay (dark background) */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: var(--primary-red);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

/* Show state */
.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Popup box */
.popup-box {
  background: var(--primary-red);
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-card-pop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.contact-item-pop {
  text-align: center;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  transition: border-color var(--transition-slow);
  border-color: var(--secondary-gray-light);
}

.contact-item-pop:hover {
  border-color: var(--primary-red);
}

.contact-item-pop h3 {
  color: var(--separator-color);
  margin-bottom: 0rem;
  font-size: 1.2rem;
  font-family: var(--font-2);
}

.contact-item-pop a {
  color: var(--nav-text-color);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: bold;
}

.contact-item-pop a:hover {
  color: var(--separator-color);
}

/* Popup box when active */
.popup-overlay.active .popup-box {
  transform: scale(1);
  opacity: 1;
}

/* Close button */
.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  color: var(--primary-white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.contact-card {
  margin-top: 1rem;
}

.contact-item h4 {
  margin: 0.5rem 0 0.2rem;
}

.contact-item a {
  color: #0073e6;
  text-decoration: none;
}

/* Additional region styling */
.region-zemgale {
  cursor: pointer;
  transition: all var(--transition-medium);
}

/* Responsive adjustments for map */
@media (max-width: 768px) {
  .latvia-map-section {
    padding: 2rem 1rem;
  }

  .map-popup {
    min-width: 200px;
    font-size: 0.85rem;
  }

  .region-label {
    font-size: 10px;
  }
}

.full-screen {
  display: flex;
  min-height: 75vh;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  background-color: var(--primary-white);
  padding: 2rem;
  gap: 2rem;
}

.full-screen:nth-child(even) {
  flex-direction: row-reverse;
}

.half-width {
  width: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
}

.half-width p {
  font-size: 25px;
  padding: 1rem 2rem;
  color: var(--separator-color);
  flex: 1 1 auto;
}

.half-width ul {
  color: var(--separator-color);
  padding: 1rem 2rem;
  font-size: 25px;
}

.image {
  background-color: #ddd;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  min-height: 400px;
}

.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
  border-radius: var(--border-radius);
}

.image:hover img {
  transform: scale(1.05);
}

/* =========================================
   TEAM PAGES - CONSOLIDATED & CLEANED
   ========================================= */

/* Team Hero Section */
.team-hero,
.main-team-hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.team-hero-image,
.main-team-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.team-hero-image img,
.main-team-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-hero::before,
.main-team-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.team-hero-content,
.main-team-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.main-team-quote {
  margin-bottom: 20rem;
}

.main-team-quote blockquote h1 {
  font-family: var(--font-1);
  color: white;
  margin: 0;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Team Intro Section */
.team-intro,
.team-intro-header {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  padding: 2rem;
}

.team-intro h1,
.team-intro-header h1 {
  margin-bottom: 2rem;
  color: var(--primary-red);
}

.team-intro p,
.team-intro-header p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Team Page Container */
.team-page {
  background-color: var(--primary-white);
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

/* Team Organization - Accordion Style */
.team-organization {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Accordion Subteam Container */
.subteam-simple {
  margin-bottom: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid rgba(169, 2, 48, 0.1);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.subteam-simple:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(169, 2, 48, 0.12);
}

/* Accordion Toggle Button */
.subteam-toggle {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-red) 0%, #8a0228 100%);
  padding: 1.25rem 2rem;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.subteam-toggle:hover {
  background: linear-gradient(135deg, #c00238 0%, #a00230 100%);
}

/* Shimmer effect on hover */
.subteam-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.subteam-toggle:hover::before {
  left: 100%;
}

.subteam-toggle h3 {
  margin: 0;
  color: white;
  font-family: var(--font-1);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: left;
}

/* Toggle Icon (Arrow) */
.toggle-icon {
  color: white;
  font-size: 1.2rem;
  transition: transform var(--transition-medium);
  flex-shrink: 0;
  margin-left: 1rem;
}

.subteam-simple.expanded .toggle-icon {
  transform: rotate(180deg);
}

/* Accordion Content - Team Member List */
.subteam-list {
  max-height: 0;
  overflow: hidden;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: #fafafa;
  border-top: 1px solid rgba(169, 2, 48, 0.1);
}

.subteam-simple.expanded .subteam-list {
  padding: 2rem;
  max-height: none;
  overflow: visible;
}

/* Team Member Item Card */
.team-member-item {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: white;
  border-radius: 8px;
  border-left: 3px solid var(--primary-red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-fast);
  gap: 0.5rem;
  min-height: 80px;
  align-items: flex-start;
}

.team-member-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(169, 2, 48, 0.15);
  border-left-width: 4px;
}

.member-name {
  font-weight: 600;
  color: var(--primary-red);
  font-size: 1.05rem;
  line-height: 1.3;
  word-wrap: break-word;
  width: 100%;
}
.member-role {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.4;
  word-wrap: break-word;
  width: 100%;
}

/* Head Team Section (for leadership team) */
.head-team-section {
  width: 100%;
  padding: 3rem 2rem;
  background-color: var(--primary-white);
  margin: 0 auto;
}

.head-team-title {
  text-align: center;
  color: var(--primary-red);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 3rem;
  font-family: var(--font-1);
}

.head-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
}

.team-member-card {
  background: var(--card-background-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-medium);
  transition: transform var(--transition-medium),
    box-shadow var(--transition-medium);
}

.team-member-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.team-member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--primary-gray);
  margin: 0 auto 1.5rem;
  border: 3px solid var(--primary-red);
}

.team-member-name {
  font-family: var(--font-1);
  color: var(--primary-red);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.team-member-occupation {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
}

/* Team Landing Page */
.komanda-landing {
  background-color: var(--primary-white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 4rem;
}

.komanda-landing h1 {
  color: var(--primary-red);
}

/* Region Split Layout */
.region-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  height: 60vh;
  min-height: 500px;
}

.region-option {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--transition-medium);
}

.region-option:hover {
  transform: scale(1.02);
}

.region-option::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: background var(--transition-medium);
}

.region-option:hover::before {
  background: rgba(0, 0, 0, 0.1);
}

.region-option span {
  position: relative;
  z-index: 2;
  color: white;
  font-size: clamp(2rem, 5vw, 4rem);
  font-family: var(--font-1);
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Coverage Area & Contact Sections */
.coverage-area,
.quick-contact {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
}

.coverage-area h2,
.quick-contact h2 {
  color: var(--primary-red);
  margin-bottom: 2rem;
}

.coverage-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.coverage-item {
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.coverage-item i {
  color: var(--primary-red);
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Team Separator Sections */
.team-separator {
  width: 100%;
  max-width: 800px;
  padding: 2rem 1rem;
  margin: 10vh auto;
}

.team-separator h3 {
  text-align: left;
  color: var(--primary-white);
  padding: 0 1rem;
}

.separator-text {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  line-height: 1.6;
  color: var(--primary-white);
  font-style: italic;
  margin: 0;
  text-align: left;
}

/* ========================================
   RESPONSIVE DESIGN - TEAM PAGES
   ======================================== */

@media (max-width: 992px) {
  .head-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .region-split {
    grid-template-columns: 1fr;
    height: auto;
  }
}

@media (max-width: 768px) {
  .subteam-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .subteam-simple.expanded .subteam-list {
    padding: 1.5rem;
  }

  .subteam-toggle {
    padding: 1.25rem 1.5rem;
  }

  .subteam-toggle h3 {
    font-size: 1.2rem;
  }

  .toggle-icon {
    font-size: 1rem;
  }

  .team-member-item {
    padding: 1rem;
  }

  .member-name {
    font-size: 1rem;
  }

  .member-role {
    font-size: 0.9rem;
  }

  .head-team-grid {
    grid-template-columns: 1fr;
  }

  .team-member-photo {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 576px) {
  .team-intro,
  .team-intro-header {
    padding: 1rem;
  }

  .team-organization {
    padding: 1rem 0.5rem;
  }

  .subteam-simple {
    margin-bottom: 1rem;
  }
}

/* Service Pages */
.service-page {
  background-color: var(--primary-white);
  min-height: 100vh;
  padding: 2rem;
}

.service-page h1 {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  padding: 1rem 0.5rem;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  padding: 0.5rem;
}

.service-card {
  background: var(--card-background-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-medium);
  box-shadow: var(--transition-medium);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.service-title {
  color: var(--separator-color);
  margin-bottom: 1.5rem;
  text-align: center;
  border-bottom: 2px solid var(--separator-color);
  padding-bottom: 1rem;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-color);
  font-size: 20px;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--separator-color);
  font-weight: bold;
}

.service-page > p {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Reviews Page */
.reviews-page {
  background-color: #f7f5f3;
  min-height: 100vh;
  padding: 2rem;
}

.reviews-submission {
  max-width: 800px;
  margin: 0 auto 4rem auto;
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.reviews-submission h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.reviews-carousel {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

.review-slides {
  display: flex;
  transition: transform var(--transition-slow);
}

.review-slide {
  min-width: 100%;
  text-align: center;
  padding: 2rem;
}

.review-slide blockquote {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--text-color);
  margin: 0 0 1rem 0;
  line-height: 1.7;
}

.review-author {
  color: var(--separator-color);
  font-weight: bold;
  margin: 0;
}

.review-prev,
.review-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--separator-color);
  color: white;
  border: none;
  padding: 1rem;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color var(--transition-medium);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-prev {
  left: 1rem;
}

.review-next {
  right: 1rem;
}

.review-prev:hover,
.review-next:hover {
  background: var(--nav-text-color);
}

/* Donation Page */
.donation-page {
  background-color: #f7f5f3;
  min-height: 100vh;
}

.donation-hero {
  height: 40vh;
  min-height: 300px;
  overflow: hidden;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.donation-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.donation-intro {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem 2rem;
  text-align: center;
}

.donation-intro h1 {
  margin-bottom: 2rem;
}

.donation-intro p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--text-color);
  line-height: 1.7;
}

.donation-details,
.donation-paypal {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.donation-details h2,
.donation-paypal h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.donation-details ul {
  list-style: none;
  padding: 0;
}

.donation-details li {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--separator-color);
}

.donation-details strong {
  color: var(--separator-color);
}

.paypal-button-container {
  text-align: center;
}

.paypal-btn {
  background: #0070ba;
  color: white;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.paypal-btn:hover {
  background: #005ea6;
  transform: translateY(-2px);
}

/* Vacancy Page */
.vacancy-page {
  background-color: #f7f5f3;
  min-height: 100vh;
  padding: 2rem;
}

.vacancy-intro {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 4rem auto;
  padding: 2rem;
}

.vacancy-cards {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.vacancy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.vacancy-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-medium),
    box-shadow var(--transition-medium);
  overflow: hidden;
  box-sizing: border-box;
}

.vacancy-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.vacancy-title {
  color: var(--separator-color);
  margin-bottom: 1rem;
}

.vacancy-card a {
  color: var(--nav-text-color);
  text-decoration: none;
}

.vacancy-card a:hover {
  text-decoration: underline;
}

.vacancy-description {
  color: var(--text-color);
  line-height: 1.6;
  margin: 1.5rem 0;
  font-style: italic;
}

.vacancy-footer {
  margin-top: 2rem;
}
.contact-info {
  margin-bottom: 1.5rem;
}
.contact-info p {
  margin: 0;
  color: var(--text-color);
  font-size: 0.95rem;
}
.email-link {
  color: var(--separator-color) !important;
  font-weight: 500;
}
.apply-btn {
  background: var(--separator-color);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  max-width: 200px;
  margin: 0 auto;
}
.apply-btn:hover {
  background: #8b0220;
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}
.apply-btn i {
  font-size: 0.9rem;
}

/* Volunteer Page */
.volunteer-page {
  background-color: #f7f5f3;
  min-height: 100vh;
}

.volunteer-hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.volunteer-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.volunteer-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.volunteer-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.volunteer-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}
.volunteer-quote {
  margin-bottom: 15rem;
}
.volunteer-quote blockquote {
  font-family: var(--font-1);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: white;
  font-style: italic;
  margin: 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border-left: 4px solid var(--primary-red);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.volunteer-hero-cta {
  text-align: center;
}

.volunteer-apply {
  background: var(--separator-color);
  color: white;
  border: none;
  padding: 1.5rem 3rem;
  font-size: 1.3rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-medium);
  animation: pulse 2s infinite;
}

.volunteer-apply:hover {
  background: var(--nav-text-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.volunteer-description {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem 2rem;
  text-align: center;
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
}
.volunteer-title {
  margin: 2rem;
  padding: 2rem;
  text-align: center;
}

.volunteer-description p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.volunteer-description li {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--text-color);
  line-height: 1;
  margin-bottom: 2rem;
  text-align: justify;
  justify-self: center;
}

.volunteer-description li b {
  color: var(--primary-red);
}

.volunteer-description ul {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--text-color);
  line-height: 1;
  margin-top: 2rem;
}

.volunteer-separator {
  text-align: center;
  background-color: #f7f5f3;
  padding: 4rem 2rem;
}
.application-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.application-container h2 {
  color: var(--separator-color);
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}
.application-container > p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 3rem;
  opacity: 0.8;
}

/* Google Forms Embed Styling */
.form-intro {
  font-size: 1.15rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.google-form-wrapper {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid #e8e8e8;
}

.google-form-wrapper iframe {
  display: block;
  width: 100%;
  border: none;
  min-height: 1000px;
}

/* Placeholder for when Google Form is not yet added */
.form-placeholder {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.placeholder-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.form-placeholder h3 {
  color: var(--separator-color);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.form-placeholder p {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.form-placeholder ol {
  text-align: left;
  max-width: 600px;
  margin: 2rem auto;
  padding-left: 1.5rem;
  color: #555;
}

.form-placeholder li {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1rem;
}

.form-placeholder .note {
  background: rgba(169, 2, 48, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-red);
  margin-top: 2rem;
  color: #333;
  font-size: 0.95rem;
}

/* Footer note below form */
.form-footer-note {
  text-align: center;
  padding: 2rem;
  background: rgba(169, 2, 48, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(169, 2, 48, 0.1);
}

.form-footer-note p {
  margin: 0.5rem 0;
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

.form-footer-note strong {
  color: var(--separator-color);
  font-weight: 600;
}

.form-footer-note a {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.form-footer-note a:hover {
  color: #8b0000;
  text-decoration: underline;
}
/* Multi-step form styling */
.volunteer-form-container {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
}
.volunteer-form-step {
  display: none;
  padding: 3rem 2rem;
  text-align: left;
  animation: fadeIn 0.3s ease;
}
.volunteer-form-step.active {
  display: block;
}
.volunteer-form-step h3 {
  color: var(--separator-color);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--primary-gray);
  padding-bottom: 1rem;
}
.form-group {
  margin-bottom: 2rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}
.required {
  color: var(--separator-color);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--primary-gray);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-2);
  transition: border-color var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--separator-color);
  box-shadow: 0 0 0 3px rgba(169, 2, 48, 0.1);
}
.form-group input.input-error,
.form-group textarea.input-error {
  border-color: #dc3545;
}
.error-message {
  display: block;
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
/* Quiz questions styling */
.quiz-question {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--separator-color);
}
.quiz-question label {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
}
.quiz-question textarea {
  margin-top: 0.5rem;
  min-height: 100px;
  resize: vertical;
}
.radio-group {
  margin-top: 1rem;
}
.radio-option {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background-color var(--transition-fast);
}
.radio-option:hover {
  background-color: rgba(169, 2, 48, 0.05);
}
.radio-option input[type="radio"] {
  width: auto;
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}
.radio-option span {
  line-height: 1.5;
}
/* Form buttons */
.form-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  gap: 1rem;
}
.btn-secondary {
  background: transparent;
  color: var(--separator-color);
  border: 2px solid var(--separator-color);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-medium);
  font-family: var(--font-2);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover {
  background: var(--separator-color);
  color: white;
  transform: translateY(-2px);
}
.next-step,
.submit-application {
  margin: 2rem auto 0 auto;
  display: block;
  min-width: 200px;
}
/* Thank you screen */
.thank-you-screen {
  text-align: center;
  padding: 4rem 2rem;
}
.thank-you-content h3 {
  color: var(--separator-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.thank-you-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}
.contact-info {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-top: 2rem;
  border-left: 4px solid var(--separator-color);
}
.contact-info p {
  margin: 0.5rem 0;
}
.contact-info strong {
  color: var(--separator-color);
}
.contact-info a {
  color: var(--separator-color);
  text-decoration: none;
}
.contact-info a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsive styles for volunteer form */
@media (max-width: 768px) {
  .volunteer-hero-content {
    padding: 1rem;
  }

  .volunteer-quote blockquote {
    font-size: 1.1rem;
    padding: 1.5rem;
  }

  .volunteer-form-step {
    padding: 2rem 1rem;
  }

  .form-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  /* Google Forms mobile responsiveness */
  .form-placeholder {
    padding: 3rem 1.5rem;
  }

  .placeholder-icon {
    font-size: 3rem;
  }

  .form-placeholder h3 {
    font-size: 1.5rem;
  }

  .form-placeholder ol {
    padding-left: 1rem;
  }

  .btn-secondary,
  .next-step,
  .submit-application {
    width: 100%;
    margin: 0;
  }

  .quiz-question {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .radio-option {
    padding: 0.75rem 0.5rem;
  }

  .thank-you-screen {
    padding: 2rem 1rem;
  }

  .contact-info {
    padding: 1.5rem;
  }
}

.volunteer-contact {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.volunteer-contact h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* Contact Cards */
.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  transition: border-color var(--transition-slow);
}

.contact-item:hover {
  border-color: var(--secondary-gray-light);
}

.contact-item h3 {
  color: var(--separator-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-family: var(--font-2);
}

.contact-item a {
  color: var(--nav-text-color);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: bold;
}

.contact-item a:hover {
  color: var(--separator-color);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 600px;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--separator-color);
}

/* Form Styles */
form {
  max-width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--separator-color);
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  font-family: var(--font-2);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--separator-color);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--separator-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Error States */
.error-message {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: block;
}

.input-error {
  border-color: #dc3545 !important;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus indicators */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--separator-color);
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  :root {
    --nav-height: 80px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--nav-background-color);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow-medium);
    padding: 1rem;
  }

  .nav-links.open {
    display: block;
  }

  .nav-links ul {
    flex-direction: column;
    gap: 1rem;
  }

  .main-logo {
    max-height: 80px;
  }

  .burger-menu {
    display: flex;
  }

  .full-screen {
    flex-direction: column !important;
    min-height: auto;
    padding: 1rem 1rem;
  }

  .half-width {
    width: 100%;
  }

  .text-overlay {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: none;
  }

  .region-split {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  .region-option {
    height: 200px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  :root {
    --nav-height: 70px;
  }

  nav {
    padding: 0 0.5rem;
  }

  .logo-and-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .logo-and-toggle a {
    flex: 0 0 75%;
    max-width: 75%;
  }

  .main-logo {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    padding: 0.25rem;
    object-fit: contain;
  }

  .burger-menu {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .gallery {
    height: 70vh;
    min-height: 400px;
  }

  .separator,
  .separator2 {
    padding: 2rem 1rem;
  }

  .team-cards,
  .service-cards,
  .vacancy-cards {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1.5rem;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .volunteer-hero {
    height: 50vh;
    min-height: 300px;
  }

  .volunteer-apply {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  .donation-hero {
    height: 30vh;
    min-height: 200px;
  }

  .prev,
  .next {
    padding: 0.5rem;
    font-size: 1.2rem;
  }

  .review-prev,
  .review-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .modal-content {
    margin: 10% auto;
    padding: 1.5rem;
    width: 95%;
  }
}

@media (max-width: 480px) {
  .separator,
  .separator2,
  .team-intro,
  .donation-intro,
  .volunteer-description {
    padding: 1.5rem 1rem;
  }

  .team-cards,
  .service-cards,
  .vacancy-cards,
  .donation-details,
  .donation-paypal,
  .volunteer-contact {
    margin: 0 1rem;
    padding: 1.5rem;
  }

  .volunteer-apply {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .text-overlay {
    padding: 1rem;
  }

  .prev,
  .next {
    display: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.5);
  }

  .nav-links a {
    border-bottom-width: 3px;
  }

  button,
  .btn-primary {
    border-width: 3px;
  }
}

/* =============================== */
/* LATEST UPDATES SECTION */
/* =============================== */

.latest-updates {
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  padding: 4rem 2rem;
  border-top: 1px solid rgba(169, 2, 48, 0.1);
}

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

.updates-title {
  text-align: center;
  color: var(--primary-red);
  font-family: var(--font-1);
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 1rem;
}

.updates-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-red);
  border-radius: 2px;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.update-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-medium);
  border-left: 4px solid var(--primary-red);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.update-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(169, 2, 48, 0.15);
  border-left-width: 6px;
}

.update-date {
  color: #999;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.update-title {
  color: var(--primary-red);
  font-family: var(--font-1);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.update-excerpt {
  color: #555;
  line-height: 1.6;
  flex-grow: 1;
  margin: 0;
  font-size: 1rem;
}

.update-link {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  align-self: flex-start;
  margin-top: auto;
}

.update-link:hover {
  gap: 0.75rem;
  text-decoration: underline;
}

.updates-footer {
  text-align: center;
  padding-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .latest-updates {
    padding: 3rem 1.5rem;
  }

  .updates-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .update-card {
    padding: 1.5rem;
  }

  .updates-title {
    margin-bottom: 2rem;
  }
}
/* =============================== */
/* SINGLE BLOG POST PAGE */
/* =============================== */

.blog-post-single {
  width: 100%;
  min-height: 100vh;
  background: #f5f5f5;
  padding: 0;
}

.post-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background: white;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Post Header */
.post-header {
  margin-bottom: 3rem;
  text-align: center;
}

.post-meta {
  color: #999;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.post-separator {
  margin: 0 0.5rem;
}

.post-category {
  color: var(--primary-red);
}

.post-title {
  font-family: var(--font-1);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--primary-red);
  line-height: 1.2;
  margin-bottom: 2rem;
  font-weight: 700;
}

.post-featured-image {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Post Content */
.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 4rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h2 {
  font-family: var(--font-1);
  color: var(--primary-red);
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.post-content h3 {
  font-family: var(--font-1);
  color: #333;
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.post-content ul,
.post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.75rem;
}

.post-content a {
  color: var(--primary-red);
  text-decoration: underline;
  transition: opacity var(--transition-fast);
}

.post-content a:hover {
  opacity: 0.8;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.post-content blockquote {
  border-left: 4px solid var(--primary-red);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: #f8f9fa;
  font-style: italic;
  color: #555;
}

/* Post Footer */
.post-footer {
  border-top: 2px solid #f0f0f0;
  padding-top: 3rem;
  margin-top: 3rem;
  background: none;
}

.post-tags {
  margin-bottom: 3rem;
}

.tags-label {
  font-weight: 600;
  color: #333;
  margin-right: 0.5rem;
}

.tag-link {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: #f8f9fa;
  color: var(--primary-red);
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.9rem;
  margin: 0.25rem;
  transition: all var(--transition-fast);
}

.tag-link:hover {
  background: var(--primary-red);
  color: white;
}

/* Post Navigation */
.post-navigation {
  margin-bottom: 3rem;
  background: transparent !important;
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  background: transparent !important;
  margin-left: 0 !important;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white !important;
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--transition-medium);
  border: 2px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
  background: white !important;
  border-color: var(--primary-red);
  box-shadow: 0 4px 12px rgba(169, 2, 48, 0.15);
  transform: translateY(-2px);
}

.post-navigation .nav-next {
  justify-content: flex-end;
  text-align: right;
}

.post-navigation .nav-arrow {
  font-size: 1.5rem;
  color: var(--primary-red);
  font-weight: bold;
  flex-shrink: 0;
}

.post-navigation .nav-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.post-navigation .nav-label {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.post-navigation .nav-title {
  color: #333;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
}

/* Back to Blog Button */
.back-to-blog {
  text-align: center;
}

/* No Post Found */
.no-post {
  text-align: center;
  padding: 4rem 2rem;
}

.no-post h2 {
  color: var(--primary-red);
  font-family: var(--font-1);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.no-post p {
  color: #666;
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-post-single {
    padding: 0;
  }

  .post-article {
    padding: 2rem 1.5rem;
    box-shadow: none;
  }

  .post-title {
    font-size: 1.8rem;
  }

  .post-content {
    font-size: 1rem;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .post-navigation .nav-previous,
  .post-navigation .nav-next {
    padding: 1.25rem;
  }

  .post-navigation .nav-title {
    font-size: 1rem;
  }

  .post-navigation .nav-label {
    font-size: 0.7rem;
  }
}

/* =============================== */
/* BLOG ARCHIVE (LISTING) PAGE */
/* =============================== */

.blog-archive {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%);
  padding: 4rem 2rem 5rem;
}

.blog-archive-header {
  max-width: 1200px;
  margin: 0 auto 4rem;
  text-align: center;
  padding: 2rem 0;
}

.archive-title {
  font-family: var(--font-1);
  color: var(--primary-red);
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.archive-description {
  font-size: 1.25rem;
  color: #555;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.blog-posts-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 3rem 2.5rem;
  padding: 1vw 2vw;
}

.blog-post-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-medium);
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e8e8;
}

.blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(169, 2, 48, 0.12);
  border-color: var(--primary-red);
}

.post-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.blog-post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-header {
  padding: 2rem 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.post-card-date {
  font-size: 0.95rem;
  color: #888;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.post-card-category {
  background: rgba(169, 2, 48, 0.1);
  color: var(--primary-red);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-card-content {
  padding: 2rem 2.5rem 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-meta {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-card-title {
  font-family: var(--font-1);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  line-height: 1.35;
  font-weight: 600;
}

.post-card-title a {
  color: #222;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.post-card-excerpt {
  color: #555;
  line-height: 1.75;
  margin-bottom: 2rem;
  flex: 1;
  font-size: 1.05rem;
}

.post-card-link {
  color: var(--primary-red);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  font-size: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

.post-card-link:hover {
  gap: 0.85rem;
  border-bottom-color: var(--primary-red);
}

.no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  background: white;
  border-radius: 16px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.no-posts h2 {
  color: var(--primary-red);
  font-family: var(--font-1);
  font-size: 2.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.no-posts p {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.blog-pagination {
  grid-column: 1 / -1;
  margin-top: 2rem;
  text-align: center;
}

.blog-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.blog-pagination a,
.blog-pagination span {
  padding: 0.75rem 1.5rem;
  background: white;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all var(--transition-fast);
}

.blog-pagination a:hover,
.blog-pagination .current {
  background: var(--primary-red);
  color: white;
}

@media (max-width: 768px) {
  .blog-archive {
    padding: 3rem 1.25rem 4rem;
  }

  .blog-archive-header {
    margin-bottom: 3rem;
    padding: 1rem 0;
  }

  .archive-title {
    font-size: 2.5rem;
  }

  .archive-description {
    font-size: 1.1rem;
  }

  .blog-posts-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-post-card {
    border-radius: 12px;
  }

  .post-card-header {
    padding: 1.75rem 1.75rem 0;
  }

  .post-card-title {
    font-size: 1.5rem;
  }

  .post-card-content {
    padding: 1.75rem 2rem 2rem;
  }

  .post-card-excerpt {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .post-card-image {
    height: 220px;
  }
}

/* =============================== */
/* FOOTER STYLES - Modern & Accessible */
/* =============================== */

footer {
  background: var(--nav-text-color);
  color: var(--primary-white);
  margin-top: auto;
  border-top: 3px solid var(--primary-red);
  position: relative;
  width: 100%;
  clear: both;
}

.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 1.5rem;
}

/* Main Footer Content */
.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Brand Section */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  max-width: 120px;
  height: auto;
  filter: brightness(1.15);
}

.footer-tagline {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Footer Headings */
.footer-heading {
  font-family: var(--font-1);
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin: 0 0 1rem 0;
  letter-spacing: 0.3px;
}

/* Contact Numbers Section */
.footer-contacts {
  display: flex;
  flex-direction: column;
}

.contact-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  padding: 0.5rem 0;
}

.contact-link:hover {
  transform: translateY(-2px);
}

.contact-region {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.contact-number {
  font-size: 1.35rem;
  color: white;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.contact-link:hover .contact-number {
  color: #ffd700;
}

/* Links Section */
.footer-links-section {
  display: flex;
  flex-direction: column;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 1rem;
  transition: all var(--transition-fast);
  padding: 0.25rem 0;
  display: inline-block;
  position: relative;
}

.footer-links a::before {
  content: "→";
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: white;
  padding-left: 20px;
}

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

/* Copyright */
.footer-copyright {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
}

/* Responsive Footer */
@media (max-width: 968px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .contact-grid {
    justify-content: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-links a::before {
    display: none;
  }

  .footer-links a:hover {
    padding-left: 0;
  }
}

@media (max-width: 576px) {
  .footer-wrapper {
    padding: 2rem 1.5rem 1rem;
  }

  .contact-grid {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .contact-link {
    align-items: center;
    text-align: center;
  }

  .contact-number {
    font-size: 1.5rem;
  }
}

.team-role {
  font-style: normal !important;
  font-weight: 600 !important;
  color: #333333 !important;
}

.subteam-header h3 {
  color: #ffffff !important;
}

.team-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  border-left: 4px solid var(--primary-red) !important;
}

/* END TEAM CUSTOMIZATION SECTION */
/* =============================== */

/* Print styles */
@media print {
  nav,
  .burger-menu,
  .prev,
  .next,
  .review-prev,
  .review-next,
  .volunteer-hero-cta,
  .modal {
    display: none !important;
  }

  body {
    padding-top: 0;
    background: white;
    color: black;
  }

  .gallery,
  .full-screen,
  .team-page,
  .service-page,
  .reviews-page,
  .donation-page,
  .vacancy-page,
  .volunteer-page {
    background: white;
  }

  .text-overlay {
    color: black;
    background: white;
  }
}
