/* style.css */
:root {
  --basic-blue: #06559e;
  --prime-yellow: #fed23f;
  --white: #ffffff;
  --text-black: #000000;
  --text-gray: rgba(0, 0, 0, 0.55);
  --header-height: 100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.45;
  color: var(--text-black);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.u-reveal {
  opacity: 0;
  transition: all 0.8s ease-out;
}

.u-reveal--active {
  opacity: 1;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Base Link/Button Transitions */
a, button {
  background: transparent;
  border: none; 
  padding: 0;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

a:hover, button:hover {
  opacity: 0.6;
}

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

/* Layout */
.l-container {
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.l-header {
  background-color: var(--basic-blue);
  height: var(--header-height);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 5%;
}

.l-header__content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.l-footer {
  background-color: var(--basic-blue);
  padding: 0 5%;
  color: var(--white);
}

.l-footer__content {
  max-width: 1312px;
  margin: 0 auto;
  padding: 80px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Components */
.c-logo {
  display: flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}

.c-logo__img {
  max-height: 54px;
  max-width: 100%;
  width: auto;
  display: block;
}

.c-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.c-nav__item {
  color: var(--white);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.1px;
  text-decoration: none;
}

.c-nav__line-logo {
  width: 32px;
  height: 32px;
  aspect-ratio: 1 / 1;
}

.c-menu-toggle {
  display: none;
  z-index: 2100;
  background: none;
  border: none;
  cursor: pointer;
}

.c-menu-toggle__inner {
  background-color: var(--basic-blue);
  width: 60px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.c-menu-toggle__icon-wrapper {
  width: 27px;
  height: 20px;
  position: relative;
  margin-bottom: 4px;
}

.c-menu-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.c-menu-toggle__line:nth-child(1) { top: 0; }
.c-menu-toggle__line:nth-child(2) { top: 9px; }
.c-menu-toggle__line:nth-child(3) { top: 18px; }

.is-menu-open .c-menu-toggle__line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.is-menu-open .c-menu-toggle__line:nth-child(2) { opacity: 0; }
.is-menu-open .c-menu-toggle__line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.c-menu-toggle__text {
  color: var(--white);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 1.5px;
}

.c-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--basic-blue);
  z-index: 2050;
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.c-drawer--active {
  right: 0;
}

.c-drawer__list {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 100px 36px 40px;
  align-items: flex-end;
}

.c-drawer__item {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-align: right;
  text-decoration: none;
  white-space: nowrap;
}
.c-button {
  background-color: var(--basic-blue);
  color: var(--white);
  height: 90px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 32px;
  letter-spacing: -0.12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.c-button--large {
  background-color: var(--prime-yellow);
  color: var(--basic-blue);
  padding: 20px 40px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 36px;
  width: fit-content;
  line-height: 1.2;
  letter-spacing: -0.72px;
}

.c-button__icon {
  width: 36px;
  height: 36px;
}

.c-button__arrow {
  width: 24px;
  height: 24px;
}

.c-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
  padding-top: 12px;
}

.c-section-header__title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -2.5px;
  line-height: 1.1;
}

.p-greet .c-section-header__title { color: var(--white); }
.p-policy .c-section-header__title,
.p-profile .c-section-header__title,
.p-office .c-section-header__title { color: var(--basic-blue); }

.c-section-header__underline {
  width: 48px;
  height: 4px;
  background-color: var(--white);
}

.p-policy .c-section-header__underline,
.p-profile .c-section-header__underline,
.p-office .c-section-header__underline { background-color: var(--basic-blue); }

.c-card {
  width: 360px;
  height: 360px;
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.c-card:hover {
  transform: translateY(-5px);
}

.c-card__img {
  width: 100%;
  height: 225px;
  object-fit: contain;
}

.c-card__body {
  padding: 0 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.c-card__title {
  font-size: 24px;
  font-weight: 600;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-black);
  letter-spacing: -2px;
  line-height: 1.45;
}

.c-card__link {
  color: var(--basic-blue);
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  letter-spacing: -0.09px;
  line-height: 1.45;
}

.c-card__link img {
  width: 26px;
  height: 26px;
}

.c-banner {
  width: 486px;
  padding: 60px 24px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.72px;
  line-height: 1.2;
  text-decoration: none;
}

.c-banner--yellow {
  background-color: var(--prime-yellow);
  color: var(--basic-blue);
}

.c-banner--blue {
  background-color: var(--basic-blue);
  color: var(--white);
}

.c-banner__icon {
  width: 36px;
  height: 36px;
}

.c-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.c-modal--active {
  opacity: 1;
  visibility: visible;
}

.c-modal__content {
  background: var(--white);
  width: 90%;
  max-width: 1080px;
  height: 520px; /* Fixed height for Desktop */
  border-radius: 20px;
  position: relative;
  padding: 40px;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.c-modal__body {
  flex: 1;
  display: flex;
  align-items: center; /* Vertical centering */
  justify-content: center; /* Horizontal centering if flex items don't fill */
  overflow-y: auto;
}

.c-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.c-modal__close img {
  width: 30px;
  height: 30px;
}

.c-modal__flex {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 20px;
}

.c-modal__image-wrapper {
  flex: 0 0 440px;
}

.c-modal__image-wrapper img {
  width: 100%;
  border-radius: 12px;
}

.c-modal__text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertical centering */
}

.c-modal__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--basic-blue);
  margin-bottom: 24px;
  line-height: 1.3;
}

.c-modal__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-modal__list-item {
  display: flex;
  gap: 12px;
  font-size: 18px;
  line-height: 1.45;
}

.c-modal__bullet {
  color: var(--basic-blue);
}

.c-modal__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: auto; /* Push to bottom */
  padding-top: 20px;
}

.c-modal__arrow {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
}

.c-modal__arrow img {
  width: 14px;
  height: 32px;
  display: block;
}

.c-modal__pagination {
  display: flex;
  gap: 24px;
}

.c-modal__dot {
  width: 25px;
  height: 24px;
  border-radius: 50%;
  background-color: #eee;
  cursor: pointer;
}

.c-modal__dot--active {
  background-color: var(--basic-blue);
}

.c-volunteer-card {
  width: 480px;
  background-color: rgba(6, 85, 158, 0.04);
  border: 1px solid var(--basic-blue);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02), 0 6px 12px rgba(0, 0, 0, 0.03);
}

.c-volunteer-card__header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--basic-blue);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.08px;
}

.c-volunteer-card__icon {
  width: 24px;
  height: 24px;
}

.c-volunteer-card__text {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.09px;
}

/* Projects */
.p-hero {
  height: 910px;
  position: relative;
  overflow: hidden;
  background-color: var(--white);
  display: flex;
  align-items: center;
}

.p-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.p-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 5%;
}

.p-hero__text-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: left;
  max-width: 600px;
}

.p-hero__title {
  font-weight: 700;
  font-size: 64px;
  color: var(--basic-blue);
  line-height: 1.6;
  letter-spacing: -1.6px;
}

.p-hero__subtitle {
  font-weight: 700;
  font-size: 40px;
  color: var(--basic-blue);
  letter-spacing: -1px;
  line-height: 1.1;
}

.p-secondary-nav {
  background-color: rgba(6, 85, 158, 0.08);
  padding: 36px 5%;
}

.p-secondary-nav__inner {
  display: flex;
  gap: 40px;
  justify-content: center;
  max-width: 1240px;
  margin: 0 auto;
}

.p-secondary-nav__inner .c-button {
  flex: 1;
  max-width: 386px; /* Balance between gap and container width */
}

.p-greet {
  position: relative;
  padding: 120px 5%;
  color: var(--white);
  text-align: center;
}

.p-greet__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.p-greet__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-greet__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: -1;
}

.p-greet__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0;
}

.p-greet__text {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.4em;
  text-align: center;
  letter-spacing: 0;
}

.p-greet__text:last-child {
  margin-bottom: 0;
}

.p-policy {
  padding: 120px 5%;
  text-align: center;
}

.p-policy__main-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-black);
  letter-spacing: -0.72px;
  line-height: 1.2;
}

.p-policy__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  max-width: 1152px;
  margin: 0 auto;
  padding-bottom: 30px;
}

.p-cta-banners {
  background-color: rgba(6, 85, 158, 0.1);
  padding: 30px 5%;
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.p-profile {
  padding: 120px 5%;
  background-color: var(--white);
}

.p-profile__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 64px;
  align-items: flex-start;
  justify-content: center;
  padding: 30px 64px;
}

.p-profile__photo {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: #e6eef5;
}

.p-profile__details {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.p-profile__sub-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-profile__sub-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-black);
  letter-spacing: -0.72px;
  line-height: 1.2;
}

.p-profile__text {
  font-size: 18px;
  color: var(--text-black);
  margin-bottom: 0;
  line-height: 1.45;
  letter-spacing: 1.8px;
}

.p-office {
  padding: 120px 5%;
}

.p-office__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  justify-content: center;
  padding: 30px 0;
}

.p-office__list {
  width: 480px;
  display: flex;
  flex-direction: column;
  padding: 0 24px 0 12px;
}

.p-office__item {
  padding: 16px 0;
  border-top: 1px solid #000;
  display: flex;
  gap: 24px;
  font-size: 18px;
  letter-spacing: 1.8px;
}

.p-office__item:last-child {
  padding-bottom: 0;
}

.p-office__label {
  width: 150px;
  font-weight: 700;
  color: var(--text-black);
}

.p-office__value {
  flex: 1;
  color: var(--text-black);
}

.p-office__link {
  text-decoration: underline;
  color: var(--text-black);
}

/* Footer Components */
.l-footer__logo {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.48px;
  line-height: 1.45;
}

.l-footer__copyright {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.08px;
  line-height: 1.45;
}

/* Utilities */
.u-mobile-only { display: none; }
.u-pc-br { display: block; }

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

  .u-pc-br { display: none; }
  .u-mobile-only { display: inline; }

  .l-header {
    background-color: var(--basic-blue);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    min-height: var(--header-height);
    z-index: 1000;
    padding: 0 5%;
    display: flex;
    align-items: center;
  }

  .l-header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .c-logo {
    display: flex !important;
  }

  .c-logo__img {
    max-height: 40px;
  }

  .c-nav {
    display: none;
  }

  .c-menu-toggle {
    display: block;
  }

  .p-hero {
    height: 815px;
  }

  .p-hero__content {
    height: 100%;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 12px;
  }

  .p-hero__text-block {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    gap: 9px;
    text-align: center;
    align-items: center;
  }

  .p-hero__title {
    font-size: 36px;
    letter-spacing: -1.98px;
    line-height: 1.3;
  }

  .p-hero__subtitle {
    font-size: 20px;
    letter-spacing: -0.5px;
    padding: 12px 0;
  }

  .c-button--large {
    width: 100%;
    font-size: 24px;
    padding: 20px 40px;
    height: 59px;
    justify-content: center;
    letter-spacing: -0.48px;
  }

  .p-secondary-nav {
    padding: 24px 12px;
  }

  .p-secondary-nav__inner {
    flex-direction: column;
    gap: 12px;
    max-width: none;
    width: 100%;
    margin: 0; /* Reset desktop auto margin */
  }

  .p-secondary-nav__inner .c-button {
    width: 100%;
    max-width: none; /* Force override desktop max-width */
    flex: none; /* Disable flex: 1 from desktop */
    height: 90px;
    font-size: 24px;
  }

  .c-section-header__title {
    font-size: 32px;
    letter-spacing: -2.5px;
    line-height: 1.4;
  }

  .c-section-header__underline {
    width: 36px;
  }

  .p-greet {
    padding: 80px 24px;
  }

  .p-greet__text {
    font-size: 18px;
    text-align: left;
    line-height: 1.3;
  }

  .p-policy {
    padding: 80px 24px 38px;
  }

  .p-policy__main-title {
    font-size: 22px;
    letter-spacing: -0.44px;
    margin-bottom: 32px;
  }

  .c-card {
    width: 327px;
    height: auto;
    padding: 12px 0;
  }

  .c-card__img {
    height: 130px;
  }

  .c-card__body {
    padding: 12px;
  }

  .c-card__title {
    font-size: 20px;
    letter-spacing: -0.4px;
  }

  .c-card__link {
    font-size: 16px;
    letter-spacing: -0.08px;
  }

  .p-cta-banners {
    padding: 30px 24px;
    flex-direction: column;
    gap: 16px;
  }

  .c-banner {
    width: 100%;
    padding: 36px 24px;
    font-size: 22px;
    border-radius: 12px;
    letter-spacing: -0.48px;
  }

  .p-profile {
    padding: 64px 24px 40px;
  }

  .p-profile__container {
    flex-direction: column;
    padding: 12px 0;
    gap: 60px;
    width: 100%;
    max-width: none;
  }

  .p-profile__photo {
    flex: none; /* Disable desktop flex: 1 */
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    order: 2;
  }

  .p-profile__details {
    flex: none; /* Disable desktop flex: 1 */
    width: 100%;
    order: 1;
    gap: 48px;
  }

  .p-profile__sub-title {
    font-size: 24px;
    letter-spacing: -0.48px;
  }

  .p-profile__text {
    font-size: 14px;
    letter-spacing: normal;
  }

  .p-office {
    padding: 64px 24px 40px;
  }

  .p-office__container {
    flex-direction: column;
    padding: 12px 0;
  }

  .p-office__list {
    width: 100%;
    padding: 0;
  }

  .p-office__item {
    font-size: 16px;
    letter-spacing: normal;
    gap: 12px;
  }

  .p-office__label {
    width: 70px;
  }

  .p-office__value br {
    display: block;
  }

  .c-volunteer-card {
    width: 100%;
  }

  .l-footer__content {
    padding: 64px 0;
  }

  .l-footer__logo {
    font-size: 18px;
    letter-spacing: -0.36px;
  }

  .c-modal__content {
    padding: 30px 20px;
    height: 640px; /* Fixed height for Mobile */
    max-height: 85vh;
  }
  
  .c-modal__flex {
    flex-direction: column;
    gap: 24px;
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically if needed */
  }

  .c-modal__text-content {
    align-items: center; /* Center children like title and list */
    width: 100%;
  }
  
  .c-modal__image-wrapper {
    flex: none;
    width: 100%;
    max-width: none; /* Allow full width */
    margin: 0 0 24px 0; /* Add bottom margin instead of auto center */
  }
  
  .c-modal__title {
    font-size: 24px;
    margin-bottom: 16px;
    text-align: center;
  }
  
  .c-modal__list-item {
    font-size: 16px;
  }

  .c-modal__nav {
    gap: 20px;
    margin-top: 30px;
    padding-top: 15px;
  }

  .c-modal__arrow img {
    width: 10px;
    height: 24px;
  }

  .c-modal__pagination {
    gap: 12px;
  }

  .c-modal__dot {
    width: 12px;
    height: 12px;
  }
}
