/* ===== GLOBAL ===== */
body {
  background-color: #f2ebe3;
  font-family: 'Inter', sans-serif;
  color: #3a3a3a;
  margin: 0;
  position: relative;
}

/* Subtle paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('images/paper-texture.png');
  opacity: 0.10; /* KEY: keep subtle */
  pointer-events: none;
  z-index: 0;
}

/* Ensure content sits above texture */
body * {
  position: relative;
  z-index: 1;
}

/* Container */
.mission-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Mission + Vision layout */
.mission-vision {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.mission-box {
  background: #ffffffcc;
  padding: 25px 30px;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.mission-box h3 {
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}

/* Values section */
.values-title {
  text-align: center;
  margin-bottom: 30px;
  font-family: 'Playfair Display', serif;
}

/* Grid layout */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Cards */
.value-card {
  background: #ffffffcc;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.value-card h4 {
  margin-bottom: 10px;
}

/* Centered welcome section */
.welcome-centered {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.welcome-text.centered p {
  margin-bottom: 20px;
  line-height: 1.7;
}

/* DOJO KUN BOX */
.dojo-kun-box {
  background: white;
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.dojo-kun-box h3 {
  text-align: center;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
}

.inline-link {
  color: #b30000; /* subtle dojo red */
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(179,0,0,0.4);
  transition: all 0.2s ease;
}

.inline-link:hover {
  color: #800000;
  border-bottom: 1px solid rgba(179,0,0,0.8);
}

/* DOJO KUN IMAGE */
.dojo-kun-image {
  max-width: 700px;
  margin: 0 auto 30px auto;
  text-align: center;
}

.dojo-kun-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  opacity: 0.95;

  /* subtle blend into background */
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);

  /* soft fade edges */
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* Each line */
.kun-line {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.kun-line:last-child {
  border-bottom: none;
}

.kun-line strong {
  font-size: 16px;
}

.kun-line span {
  font-size: 13px;
  color: #777;
  font-style: italic;
}

/* Japanese label inside cards */
.japanese {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
  font-style: italic;
}

/* ===== HEADER ===== */
.site-header {
  background:
    linear-gradient(rgba(20,40,60,0.75), rgba(20,40,60,0.65)),
    url('images/blue-pattern.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 30px 20px;
  color: white;
}

.site-header img {
  height: 100px;
  margin-bottom: 10px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.header-text {
  text-align: left;
}

.site-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin: 0;
}

.site-header p {
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.85;
}

/* ===== NAV ===== */
.main-nav {
  background: rgba(20,40,60,0.92);
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 1000;
}

.nav-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-inner a {
  color: #e9e5e1;
  padding: 14px 20px;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;

  background: rgba(20,40,60,0.95);
  min-width: 180px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition: 0.25s;

  z-index: 9999; /* 🔥 fixes overlap issue */
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: #e9e5e1;
  text-decoration: none;
}

.dropdown > a {
  padding: 14px 20px;
  color: #e9e5e1;
  text-decoration: none;
  display: inline-block;
}

.dropdown-menu a:hover {
  background: rgba(255,255,255,0.08);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Elegant hover underline */
.nav-inner a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #e9e5e1;
  transition: 0.3s;
  transform: translateX(-50%);
}

.nav-inner a:hover::after {
  width: 60%;
}

.officer {
  margin: 0 auto;
  max-width: 900px;
  text-align: center;
}

.officer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.officer-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.officer h3 {
  font-family: 'Playfair Display', serif;
  color: #2f4a63;
  margin-bottom: 5px;
}

.officer h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8a8178;
  margin-bottom: 15px;
}

.officer:hover {
  transform: translateY(-5px);
}

.simple-list p {
  margin: 6px 0;
  font-size: 16px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 40px;
  margin-top: 20px;
}

.eccku-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.simple-list {
  margin-top: 15px;
}

.simple-list li,
.simple-list p {
  margin: 6px 0;
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.region-card {
  display: block;
  padding: 25px;
  text-align: center;
  background: #f4efe9;
  border: 1px solid #d8d2c8;
  text-decoration: none;
  color: #2f4a63;
  font-weight: 500;
  transition: 0.3s;
}

.region-card:hover {
  background: #2f4a63;
  color: white;
  transform: translateY(-4px);
}

@media (max-width: 800px) {
  .regions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .regions-grid {
    grid-template-columns: 1fr;
  }
}

.dojo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.dojo-card {
  background: #f4efe9;
  border: 1px solid #d8d2c8;
  padding: 25px;
  transition: 0.3s;
}

.dojo-card:hover {
  transform: translateY(-5px);
}

.link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}

.link-item svg {
  width: 16px;
  height: 16px;
  fill: #2f4a63;
  flex-shrink: 0;
}

.link-item a {
  color: #2f4a63;
  text-decoration: none;
  border-bottom: 1px solid #2f4a63;
  font-size: 13px;
}

.link-item a:hover {
  color: #000;
  border-color: #000;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto;
}

/* center line */
.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: #6e8aa3;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* items */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

/* content box */
.timeline-content {
  background: #f4efe9;
  border: 1px solid #d8d2c8;
  padding: 20px;
  transition: 0.3s;
}

.timeline-content:hover {
  transform: translateY(-4px);
}

/* circle */
.timeline-item::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  right: -7px;
  background: #2f4a63;
  border-radius: 50%;
  top: 28px;
  z-index: 1;
}

.timeline-item.right::after {
  left: -7px;
}

/* headings */
.timeline-content h3 {
  font-family: 'Playfair Display', serif;
  color: #2f4a63;
  margin-bottom: 8px;
}

/* mobile */
@media (max-width: 768px) {
  .timeline::after {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 20px;
  }

  .timeline-item.right {
    left: 0;
  }

  .timeline-item::after {
    left: 13px;
  }
}

/* ===== MASTER PROFILE (MUSEUM STYLE) ===== */
.master-card {
  padding: 25px;
}

.master-profile {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Circular portrait */
.master-profile img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;

  border: 3px solid #2f4a63;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Text styling */
.master-profile h3 {
  font-family: 'Playfair Display', serif;
  color: #2f4a63;
  margin-bottom: 4px;
}

.master-years {
  font-size: 12px;
  letter-spacing: 1px;
  color: #8a8178;
  margin-bottom: 8px;
}

/* Alternate layout for right side */
.timeline-item.right .master-profile {
  flex-direction: row-reverse;
  text-align: right;
}

/* Subtle hover lift */
.master-card:hover {
  transform: translateY(-5px);
}

.master-profile img {
  filter: grayscale(100%) contrast(1.05);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.news-card {
  background: #fff;
  padding: 20px;
  border-left: 4px solid #2f4a63;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: 0.2s ease;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-date {
  font-size: 12px;
  color: #8a8178;
  margin-bottom: 10px;
}

.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.features {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  text-align: center;
}

.feature {
  max-width: 250px;
}

.features-horizontal {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  margin-top: 50px;
  flex-wrap: nowrap;
}

.feature-horizontal {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 300px;
  text-align: left;
}

.icon-circle {
  width: 82px;
  height: 82px;
  min-width: 82px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  display: block;
}

.feature-text h4 {
  margin: 0 0 10px 0;
  font-family: 'Playfair Display', serif;
  color: #2f4a63;
  font-size: 18px;
}

.feature-text p {
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .features-horizontal {
    flex-wrap: wrap;
    gap: 30px;
  }

  .feature-horizontal {
    width: 100%;
    max-width: 420px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .master-profile {
    flex-direction: column;
    text-align: center;
  }

  .timeline-item.right .master-profile {
    flex-direction: column;
  }
}

.pdf-link {
  display: inline-block;
  margin-top: 6px;
  color: #2f4a63;
  text-decoration: none;
  border-bottom: 1px solid #2f4a63;
  font-size: 14px;
  transition: all 0.2s ease;
}

.pdf-link:hover {
  color: #000;
  border-color: #000;
}

.pdf-link::before {
  content: "📄 ";
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 300px); /* fixed width cards */
  justify-content: center; /* THIS centers the whole grid */
  gap: 40px;
  margin-top: 40px;
}

.directory-card {
  background: #f4efe9;
  border: 1px solid #d8d2c8;
  padding: 40px 20px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.directory-card h3 {
  font-family: 'Playfair Display', serif;
  color: #2f4a63;
}

.directory-card:hover {
  background: #2f4a63;
  transform: translateY(-5px);
}

.directory-card:hover h3 {
  color: #fff;
}

/* ===== SECTIONS ===== */
.section {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
  text-align: center;
}


/* Alternate section */
.section-alt {
  width: 100%;
  background-color: #e6ded6;
  padding: 70px 0; /* vertical only */
}
/* ===== HEADINGS ===== */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  text-align: center;
  position: relative;
   color: #2f4f6b;
}

.section-title::after {
  content: "";
  display: block;

  width: 1040px;        /* 🔥 adjust this to taste */
  height: 2px;

  margin: 14px auto 0;

  background: linear-gradient(
    to right,
    transparent 0%,
    #6e8aa3 20%,
    #6e8aa3 80%,
    transparent 100%
  );
}

.section-title.large {
  font-size: 28px;
}

.subtitle {
  color: #666;
  max-width: 600px;
  margin: auto;
}

.section-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #3f5f7a;
  margin-top: 30px;
  margin-bottom: 10px;
}

.values-list h4 {
  margin-top: 20px;
  color: #2f4f6b;
}

.values-list p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.edited-version {
  margin-top: 30px;
  font-size: 12px;
  color: #777;
}

/* ===== WELCOME GRID ===== */
.welcome-section {
  text-align: center;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.welcome-text p {
  margin-bottom: 18px;
  line-height: 1.6;
}

.welcome-image {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.welcome-image img {
  width: 140%;
  max-width: none;

  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 25%,
    black 75%,
    transparent 100%
  );

  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 25%,
    black 75%,
    transparent 100%
  );
}


/* ===== COMMUNITY ===== */
.features {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.feature {
  width: 30%;
}

.feature h4 {
  margin-top: 10px;
}

.icon {
  font-size: 30px;
  margin-bottom: 10px;
}

/* ===== BUTTON ===== */
.btn {
  background: #8b2e2e;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: #a83a3a;
}

/* ===== FOOTER ===== */
.site-footer {
  background:
    linear-gradient(rgba(20,40,60,0.85), rgba(20,40,60,0.75)),
    url('images/blue-pattern.jpg');
  background-size: cover;
  background-position: center;
  color: #e9e5e1;
  padding: 60px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: auto;
}

.footer-grid div {
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 20px;
}

.footer-grid div:first-child {
  border-left: none;
}

footer h4 {
  color: white;
  font-size: 30px;
}


.footer-bottom {
  text-align: center;

  font-size: 12px;
  letter-spacing: 0.5px;

  margin-top: 40px;
  padding-top: 20px;

  border-top: 1px solid rgba(255,255,255,0.15);

  color: rgba(255,255,255,0.7);

  /* 🔥 THIS keeps it on ONE LINE */
  white-space: nowrap;
}

/* Form */
input, textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: none;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}

.social-icons {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}

.social-icons a {
  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);

  transition: all 0.25s ease;
}

.social-icons a:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.social-icons svg {
  width: 22px;
  height: 22px;

  fill: white; /* 🔥 perfect visibility */
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== MOBILE ===== */
@media (max-width: 768px) {

  .welcome-grid {
    grid-template-columns: 1fr;
      align-items: center; /* 🔥 THIS centers vertically */
  }

  .features {
    flex-direction: column;
    gap: 25px;
  }

  .feature {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-header img {
    height: 60px;
  }
}