/* ===== BASE ===== */
body {
  font-family: Arial;
  margin: 0;
  background: white;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: #111;
  height: 40px;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.top-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.news-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.news-label {
  background: red;
  color: white;
  font-weight: bold;
  padding: 4px 10px;
  font-size: 0.85rem;
  border-radius: 3px;
}

.news-text {
  color: white;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* ===== HEADER ===== */
header {
  background: white;
  padding: 10px;
  border-bottom: 3px solid #006400;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.header-text {
  width: 100%;
  text-align: center;
}

.banner {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* ===== NAVIGATION ===== */
nav {
  background: white;
  text-align: center;
  padding: 10px;
  position: relative;
}

nav button {
  margin: 5px;
  padding: 10px 20px;
  border: none;
  background: #006400;
  color: white;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
}

nav button:hover {
  background: #004d00;
}

nav::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100vw;
  height: 3px;
  background-color: #006400;
}

/* ===== LANDING PAGE ===== */
#landing {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px 40px;
}

/* -- Hero Slider -- */
.landing-hero {
  margin-bottom: 50px;
}

.hero {
  width: 100%;
  max-width: 1000px;
  height: 500px;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 6px;
}

.hero-slider {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.hero-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-controls {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-controls button {
  padding: 10px 20px;
  margin: 0;
  border: 2px solid #006400;
  background: white;
  color: #006400;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}

.slider-controls button:hover {
  background: #006400;
  color: white;
}

/* -- Announcements Section -- */
.announcements-section {
  margin-bottom: 50px;
  padding-top: 10px;
  border-top: 3px solid #006400;
}

.announcements-title {
  color: #006400;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.announcement-card {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  background: #f4f9f4;
  border-left: 5px solid #006400;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 15px;
}

.announcement-img {
  width: 280px;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.announcement-text h3 {
  margin-top: 0;
  color: #006400;
  font-size: 1.2rem;
}

.announcement-text p {
  margin: 0;
  line-height: 1.6;
}

.announcement-date {
  font-size: 0.85rem;
  color: #666;
  font-weight: bold;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.announcement-link {
  display: inline-block;
  margin-top: 12px;
  color: #006400;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid #006400;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.announcement-link:hover {
  color: #004d00;
  border-color: #004d00;
}

/* -- Calendar Section -- */
.calendar-section {
  margin-bottom: 50px;
  padding-top: 30px;
  border-top: 3px solid #006400;
}

.calendar-title {
  color: #006400;
  font-size: 1.6rem;
  margin-bottom: 5px;
}

.calendar-subtitle {
  color: #555;
  font-size: 0.9rem;
  margin: 0 0 15px 0;
}

.calendar-subtitle a {
  color: #006400;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid #006400;
  padding-bottom: 1px;
}

.calendar-subtitle a:hover {
  color: #004d00;
  border-color: #004d00;
}

.calendar-embed-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  border: 2px solid #006400;
  border-radius: 6px;
  overflow: hidden;
  background: #f4f9f4;
}

.calendar-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* -- Landing About -- */
.landing-about {
  padding-top: 10px;
  border-top: 3px solid #006400;
}

.landing-about h2 {
  color: #006400;
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.about-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
}

.about-logo {
  max-width: 150px;
  height: auto;
}

/* ===== HIDDEN SECTIONS ===== */
.hidden-section {
  display: none;
  padding: 50px;
  text-align: center;
}

/* ===== ABOUT PAGE ===== */
.about-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.about-image img {
  width: 180px;
  height: auto;
  border-radius: 6px;
  border: 3px solid #cfe0e8;
}

.about-text {
  max-width: 900px;
  text-align: left;
}

.about-text h3 {
  margin-top: 0;
  color: #ff6600;
}

.about-bottom-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.about-large-img {
  max-width: 350px;
  border-radius: 6px;
}

.about-card-img {
  max-width: 250px;
  border-radius: 6px;
}

.about-history {
  text-align: center;
  margin-top: 40px;
}

.about-history h2 {
  color: #ff6600;
}

/* ===== SOFTCHOICE VIDEO ===== */
.about-video-section {
  max-width: 900px;
  margin: 50px auto 0;
  padding-top: 30px;
  border-top: 3px solid #006400;
  text-align: center;
}

.about-video-section h2 {
  color: #ff6600;
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.video-embed-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #006400;
}

.video-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== VIDEO THUMBNAIL FALLBACK ===== */
.video-thumbnail-link {
  display: block;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #006400;
  text-decoration: none;
}

.video-thumbnail-img {
  width: 100%;
  height: auto;
  display: block;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 100, 0, 0.85);
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 14px 28px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s;
}

.video-thumbnail-link:hover .video-play-btn {
  background: #004d00;
}

/* ===== HISTORY PHOTO ===== */
.about-history-photo {
  max-width: 900px;
  margin: 50px auto 0;
  padding-top: 30px;
  border-top: 3px solid #006400;
  text-align: center;
}

.about-history-photo h2 {
  color: #ff6600;
  margin-bottom: 20px;
}

.history-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

/* ===== WHAT IS JUDO ===== */
.about-judo-section {
  max-width: 900px;
  margin: 50px auto 0;
  padding-top: 30px;
  border-top: 3px solid #006400;
  text-align: left;
}

.about-judo-section h2 {
  color: #ff6600;
  margin-bottom: 15px;
}

.about-judo-inner {
  display: flex;
  align-items: flex-start;
  gap: 25px;
}

.jigoro-img {
  width: 200px;
  height: auto;
  border-radius: 6px;
  border: 3px solid #cfe0e8;
  flex-shrink: 0;
}

.about-judo-inner p {
  line-height: 1.8;
  margin: 0;
}

/* ===== IMPORTANT JUDO LINKS ===== */
.about-links-section {
  max-width: 900px;
  margin: 40px auto 0;
  padding-top: 30px;
  border-top: 3px solid #006400;
  text-align: left;
}

.about-links-section h2 {
  color: #ff6600;
  margin-bottom: 20px;
}

.judo-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 40px;
}

.judo-links-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.judo-link-item {
  display: block;
  background: #f4f9f4;
  border-left: 4px solid #006400;
  padding: 12px 16px;
  border-radius: 4px;
  color: #006400;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.judo-link-item:hover {
  background: #006400;
  color: white;
}

/* ===== CONTACT BOX ===== */
#contact-section {
  padding: 50px 20px;
  text-align: center;
}

#contact-section .contact-box {
  display: inline-block;
  text-align: left;
  max-width: 400px;
  width: 100%;
}

.contact-box {
  background: #f8f8f8;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===== EMAIL LINK ===== */
.email-link {
  color: #006400;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid #006400;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.email-link:hover {
  color: #004d00;
  border-color: #004d00;
}

/* ===== INSTRUCTORS GRID ===== */
.instructors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 30px auto;
}

.instructor-card {
  text-align: center;
}

.instructor-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #006400;
  margin-bottom: 10px;
}

.instructor-card p {
  font-weight: bold;
}

/* ===== FACILITY ===== */
.facility-section {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: center;
}

.facility-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.facility-images img {
  width: 45%;
  max-width: 400px;
  border-radius: 6px;
}

/* ===== STATIC CONTACT ===== */
section#contact {
  padding: 40px;
  background: white;
  margin: 20px;
  border-radius: 5px;
}

/* ===== FOOTER ===== */
footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 20px;
}

footer .social-bottom {
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center;
}

footer .social-bottom .icon {
  width: 35px;
  height: auto;
  display: block;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  /* Hero */
  .hero {
    height: 250px;
  }

  /* Header */
  header {
    padding: 5px;
  }

  .banner {
    max-width: 95%;
    max-height: 180px;
    height: auto;
  }

  /* Nav */
  nav button {
    display: block;
    width: 90%;
    margin: 5px auto;
  }

  /* Announcement card stacks */
  .announcement-card {
    flex-direction: column;
  }

  .announcement-img {
    width: 100%;
  }

  /* About page rows stack */
  .about-row {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: center;
    max-width: 100%;
  }

  .about-image img {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 0 auto;
  }

  .about-bottom-flex {
    flex-direction: column;
  }

  .about-large-img,
  .about-card-img {
    width: 100%;
    max-width: 90%;
    display: block;
    margin: 0 auto;
  }

  /* Instructors / Facility */
  .instructors-grid {
    grid-template-columns: 1fr;
  }

  .facility-images {
    flex-direction: column;
  }

  .facility-images img {
    width: 100%;
  }

  /* Static contact */
  section#contact {
    margin: 10px;
    padding: 20px;
  }

  /* Judo links stack */
  .judo-links-grid {
    grid-template-columns: 1fr;
  }

  /* Judo / links sections full width */
  .about-judo-section,
  .about-links-section {
    margin-left: 0;
    margin-right: 0;
  }

  /* Judo image stacks above text */
  .about-judo-inner {
    flex-direction: column;
    align-items: center;
  }

  .jigoro-img {
    width: 100%;
    max-width: 280px;
    display: block;
    margin: 0 auto;
  }

  /* Calendar */
  .calendar-embed-wrapper {
    height: 450px;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
  }

  .calendar-iframe {
    width: 200%;
    margin-left: -50%;
    height: 100%;
    transform: scale(0.8);
    transform-origin: top center;
  }

  /* Video section */
  .about-video-section {
    margin: 30px 0 0;
    padding-top: 20px;
  }

  .about-video-section h2 {
    font-size: 0.95rem;
    padding: 0 10px;
  }

  .video-thumbnail-link,
  .video-embed-wrapper {
    width: 100%;
    max-width: 100%;
    border-radius: 4px;
  }

  .video-play-btn {
    font-size: 1rem;
    padding: 10px 18px;
    white-space: normal;
    text-align: center;
  }

  /* History photo */
  .about-history-photo {
    margin: 30px 0 0;
    padding-top: 20px;
  }

  .history-img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}