/* =====================================
   BASE CSS – SITE FOUNDATION
   Copy this whole block
===================================== */

/* -------- Design Tokens -------- */
:root {
  /* Colors */
  --color-primary: #1a5a99;
  --color-accent: #e94e1b;
  --color-dark: #222222;
  --color-muted: #666666;
  --color-light: #f7f7f7;
  --color-border: #dddddd;

  /* Typography */
  --font-base: Arial, Helvetica, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Spacing scale */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-soft: 0 2px 12px rgba(0,0,0,0.07);

  /* Layout */
  --max-width: 1200px;
}

/* -------- Reset -------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
}

body {
  margin: 0;
  font-family: var(--font-base);
  line-height: var(--line-height-base);
  color: var(--color-dark);
  background-color: #ffffff;
}


/* BASE CONTAINER */
.container {
    max-width: 1440px;  /* match site max-width */
    width: 100%;
    margin: 0 auto;     /* center */
    padding: 0 20px;    /* small horizontal padding for mobile */
    box-sizing: border-box;
}



/* -------- Typography -------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-md);
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin: 0 0 var(--space-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* -------- Media -------- */
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* -------- Forms (neutral) -------- */
input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  cursor: pointer;
}

/* -------- Lists -------- */
ul,
ol {
  margin: 0 0 var(--space-md);
  padding-left: var(--space-lg);
}

/* -------- Tables -------- */
table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  padding: var(--space-sm);
  border: 1px solid var(--color-border);
  text-align: left;
}

/* =====================================
   END BASE CSS
===================================== */


/* =====================================
   HEADER COMPONENT
===================================== */

.site-header {
  width: 100%;
  border-bottom: 1px solid var(--color-border);
  background: #ffffff;
}

/* Header inner layout */
.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* Logo */
.logo img {
  height: 80px;
  width: auto;
}

/* =====================================
   MAIN NAV
===================================== */

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-dark);
  font-weight: 500;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* =====================================
   DROPDOWN (Events)
===================================== */

.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;

  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-sm);

  display: none;
  z-index: 1000;
}

.dropdown-content a {
  display: block;
  padding: var(--space-xs) var(--space-md);
  font-size: 14px;
}

.dropdown-content a:hover {
  background: var(--color-light);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* =====================================
   LANGUAGE SWITCHER
===================================== */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 14px;
}

.lang-switcher a {
  color: var(--color-muted);
}

.lang-switcher a.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* =====================================
   RESPONSIVE (Header only)
===================================== */

@media (max-width: 900px) {
  .header-container {
    flex-wrap: wrap;
  }

  .main-nav ul {
    gap: var(--space-md);
  }
}



/* =====================================
   SCROLL TO TOP BUTTON
===================================== */

.scroll-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;

  width: 44px;
  height: 44px;

  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;

  font-size: 20px;
  line-height: 44px;
  text-align: center;

  cursor: pointer;
  box-shadow: var(--shadow-soft);

  display: none; /* controlled by JS */
  z-index: 999;
}

.scroll-to-top:hover {
  background: var(--color-accent);
}





/* =====================================
   HERO SECTION / SLIDER
===================================== */

.hero-slider-advanced {
    position: relative;
    max-width: 1440px;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.slide-adv {
    display: none;
    position: relative;
    width: 100%;
    height: 400px;
}

.slide-adv img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.hero-overlay {
    position: absolute;
    top: 30px;
    left: 40px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.hero-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-tagline {
    font-size: 1.3em;
    font-weight: 400;
}

.hero-img-title {
    position: absolute;
    left: 40px;
    bottom: 24px;
    background: rgba(26,90,153,0.85);
    color: #fff;
    padding: 6px 18px;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 2em;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

.hero-arrow-left { left: 18px; }
.hero-arrow-right { right: 18px; }

.hero-arrow:hover {
    background: rgba(233,78,27,0.85);
}

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 3;
}

.hero-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 0 5px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    border: 2px solid #1a5a99;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.hero-dot.active {
    background: #e94e1b;
    border-color: #e94e1b;
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .hero-overlay,
    .hero-img-title {
        left: 12px;
        right: 12px;
        font-size: 1em;
    }

    .hero-title { font-size: 1.3em; }
    .slide-adv, .slide-adv img { height: 220px; }
}





/* =====================================
   HOME INFO CARDS GRID
===================================== */

.home-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1440px;
    margin: 60px auto 60px;
    padding: 0 16px;
}

.home-info-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.home-info-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a5a99;
}

.home-info-body {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 18px;
    color: #333;
}

.home-info-body blockquote {
    font-style: italic;
    margin: 0 0 12px;
    padding-left: 12px;
    border-left: 3px solid #1a5a99;
    color: #555;
}

/* Buttons inside cards */
.home-info-card .button {
    display: inline-block;
    padding: 10px 18px;
    font-size: 0.95em;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.button-primary {
    background: #1a5a99;
    color: #fff;
}

.button-primary:hover {
    background: #e94e1b;
}

.button-secondary {
    background: #f0f0f0;
    color: #1a5a99;
    border: 1px solid #1a5a99;
}

.button-secondary:hover {
    background: #1a5a99;
    color: #fff;
}

/* Meet us section inside card */
.meet-group {
    margin-bottom: 12px;
}

.meet-label {
    font-weight: 700;
    margin-bottom: 4px;
    color: #1a5a99;
}

.meet-contact,
.meet-hours,
.meet-location {
    font-size: 0.95em;
    color: #333;
}

.meet-location br {
    line-height: 1.2;
}

/* Responsive adjustments */
@media (max-width: 700px) {
    .home-info-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 12px;
    }

    .home-info-card {
        padding: 16px;
    }

    .home-info-title {
        font-size: 1.25em;
    }
}



/* =====================================
   SHOWCASE VIDEOS
===================================== */
.showcase-videos-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* exactly 3 videos per row */
    gap: 24px; /* spacing between videos */
    max-width: 1440px; /* match site max-width */
    margin: 60px auto; /* spacing from previous section */
    padding: 0 20px; /* horizontal padding on small screens */
}

.video-block iframe {
    width: 100%;
    height: 220px;
    border: none;
    border-radius: 8px;
}

/* =====================================
   YEAR-ROUND EVENTS
===================================== */

.year-round-events-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    max-width: 1440px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .year-round-events-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .year-round-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 580px) {
    .year-round-events-grid {
        grid-template-columns: 1fr;
    }
}

.year-event-block {
    position: relative;
    --accent-start: #f8fbff;
    --accent-end: #ffffff;
    --accent-strong: #e0ecff;
    background: linear-gradient(160deg, var(--accent-start), var(--accent-end));
    border-radius: 20px;
    padding: 28px 24px 32px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 35px rgba(43, 59, 74, 0.12);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.year-event-block:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px rgba(25, 49, 70, 0.16);
}

.year-event-block::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.year-event-month {
    position: relative;
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 14px;
    color: #1a5a99;
}

.year-event-list {
    position: relative;
    padding-left: 20px;
    margin: 0;
    color: #333;
    list-style: none;
}

.year-event-list li {
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.year-event-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-strong);
}

.year-event-ribbon {
    position: absolute;
    top: -20px;
    right: -60px;
    width: 160px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-strong), rgba(255,255,255,0.9));
    transform: rotate(25deg);
    filter: blur(0.3px);
}

.year-event-footer {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.year-event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-strong);
}

.year-event-block:nth-of-type(6n+1) {
    --accent-start: #e4f7ef;
    --accent-end: #ffffff;
    --accent-strong: #bdebd4;
}

.year-event-block:nth-of-type(6n+2) {
    --accent-start: #f3e9ff;
    --accent-end: #ffffff;
    --accent-strong: #dcc8ff;
}

.year-event-block:nth-of-type(6n+3) {
    --accent-start: #f6f7fb;
    --accent-end: #ffffff;
    --accent-strong: #d7dbe7;
}

.year-event-block:nth-of-type(6n+4) {
    --accent-start: #ffeef4;
    --accent-end: #fff9fb;
    --accent-strong: #ffcfe2;
}

.year-event-block:nth-of-type(6n+5) {
    --accent-start: #fff8e0;
    --accent-end: #fffdf6;
    --accent-strong: #ffe4a6;
}

.year-event-block:nth-of-type(6n) {
    --accent-start: #eaf3ff;
    --accent-end: #ffffff;
    --accent-strong: #c8defd;
}






/* =====================================
   EVENTS by YEAR (FLIP CARDS)
===================================== */

.event-years-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1440px;
    margin: 60px auto; /* spacing from previous section */
    padding: 0 20px;
    box-sizing: border-box;
    perspective: 1500px; /* needed for 3D flip */
}

.year-card {
    width: 100%;
    aspect-ratio: 4/3; /* maintain card ratio */
    perspective: 1200px; /* needed for inner flip */
}

.year-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.year-card:hover .year-card-inner {
    transform: rotateY(180deg);
}

.year-card-front,
.year-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.6s, box-shadow 0.3s;
}

.year-card-front {
    font-size: 2.2em;
    font-weight: 700;
    color: #fff;
}

.year-card-back {
    transform: rotateY(180deg);
}

.year-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}


/* =====================================
   FEATURED AWARDS GRID
===================================== */



   .featured-awards-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1440px;
    margin: 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.award-block {
    flex: 1 1 calc(33.333% - 20px); /* 3 in a row */
    max-width: 400px;
    text-align: center;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
}

.award-block:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.18);
}

.award-image-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fdf5f1, #f1f6ff);
    padding: 12px;
}

.award-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.award-title {
    padding: 12px 8px;
    font-weight: 600;
    font-size: 1em;
    color: #333;
}

/* Lightbox styles */
.award-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.award-lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 12px;
}

.award-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}


/* =====================================
   MEMBERS FEEDBACKS
===================================== */

.feedback-section {
    max-width: 1440px;
    margin: 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.feedback-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.feedback-item {
    flex: 1 1 calc(33.333% - 20px); /* 3 per row */
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    font-style: italic;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feedback-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 22px rgba(0,0,0,0.18);
}

.feedback-avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px auto; /* center above text */
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f7b731; /* accent color border */
}

.feedback-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.feedback-author {
    margin-top: 12px;
    font-weight: 600;
    font-style: normal;
    text-align: right;
    color: #555;
    font-size: 0.95em;
}


.site-footer {
    background-color: #1a5a99; /* match site palette */
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.95rem;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

.site-footer .footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/** =====================================
   SITE FOOTER
  ===================================== */

.site-footer {
    background-color: #1a5a99; /* match site palette */
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.95rem;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

.site-footer .footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}


