body {
  font-family: Arial, sans-serif;
  background: #f7f7f7;
}

.nav {
  margin-bottom: 15px;
}

.nav a {
  margin-right: 15px;
  text-decoration: none;
  font-weight: bold;
  color: #0066cc;
}

.nav a:hover {
  text-decoration: underline;
}

.iframe-container {
  border: 2px solid #ddd;
  background: #fff;
  height: 400px;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: none; /* All hidden by default */
}

/* Default visible iframe */
iframe#blog1 {
  display: block;
}

   :root {
  --primary: #ffcc33;
  --accent: #ff8800;
  --bg: #fdf6e3;
  --text: #333;
  --card-bg: #fff;
}

* {
  box-sizing: border-box;
}

body {
    margin: 0;
	padding: 0;
    overflow-x: hidden
    font-family: "Poppins", sans-serif;
  }

  html{
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #ff6f61, #ffd23f, #00aeef);
    color: white;
    padding: 10px 40px;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
  }

  .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
  }

  .logo-container img {
    width: 90px;
    height: auto;
    transition: width 0.3s ease;
  }

  .site-title {
    font-size: 1.6rem;
    margin: 0;
    white-space: nowrap;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }

  nav a:hover {
    color: #000;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    header {
      flex-direction: column;
      align-items: flex-start;
      padding: 15px 20px;
    }
    .logo-container {
      justify-content: flex-start;
      width: 100%;
    }
    nav {
      justify-content: center;
      width: 100%;
      flex-wrap: wrap;
    }
    .logo-container img {
      width: 70px;
    }
  }

section {

  text-align: center;
}

section h2 {
  color: var(--accent);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1rem;
}

/* Reusable Flexbox Grid */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Cards */
.card {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 0.8rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: clamp(200px, 30%, 300px);
}

.card img {
  width: 100%;
  border-radius: 0.5rem;
  height: auto;
}

/* Quiz/Consult Forms */
.quiz,
.consult {
  max-width: 400px;
  margin: auto;
  text-align: left;
}

.quiz button {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--text);
  padding: 1.5rem;
  font-size: 1rem;
}

/* Responsive Nav */
@media (max-width: 600px) {
  nav a {
    display: block;
    margin: 0.5rem 0;
  }
}

/* Image Gallery */
#image-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 20px;
}

#image-gallery img {
  width: 100%;
  max-width: 150px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  aspect-ratio: 1/1;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#image-gallery img:hover {
  transform: scale(1.15);
}

/* Modal for Image */
#modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

#modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Video Gallery */
#video-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 20px;
}

#video-gallery img {
  width: 150px;
  height: auto;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease-in-out;
}

#video-gallery img:hover {
  transform: scale(1.1);
}

#video-gallery video {
  max-width: 90%;
  border: 4px solid #444;
  border-radius: 12px;
  background: black;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Video Modal Popup */
.video-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.video-popup-content {
  position: relative;
  background: #000;
  padding: 10px;
  border-radius: 8px;
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.video-popup-close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #ff4444;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 16px;
  cursor: pointer;
}

.video-popup-content video {
  max-width: 100%;
  max-height: 80vh;
}

/* Game Section */
h2 {
  margin-top: 30px;
  color: #333;
}

.game-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.item {
  padding: 20px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: bold;
  min-width: 60px;
  transition: transform 0.2s ease;
}

.item:hover {
  transform: scale(1.1);
}

/* Category Colors */
.abc {
  background: #ffe4e1;
}

.number {
  background: #e1f7e7;
}

.color-shape {
  background: #e1e7f7;
}

/* === Carousel Wrapper === */
.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 650px;
  margin: 10px auto;
}

/* Navigation Buttons */
.nav-btn {
  background: #222;
  color: #fff;
  border: none;
  font-size: 22px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 5px;
}
.nav-btn:hover {
  background: #444;
}

/* === SINGLE ROW VIEWPORT === */
.carousel-container {
    overflow-x: hidden;      /* We hide the bar, but keep scroll ability */
    scroll-behavior: smooth; /* This makes the "slide" look nice */
    width: 100%;
}

.grid-gallery, #youtube-container {
    display: flex !important;
    gap: 10px;
    width: max-content;      /* Keeps items in a single long row */
    padding: 10px;
}
.carousel-container::-webkit-scrollbar {
    display: none;             /* Hides scrollbar for Chrome/Safari */
}

/* === Convert Grid to Horizontal Track === */

}	
.carousel-wrapper {
    display: flex;
    align-items: center;x
    position: relative;
    max-width: 55%;           /* Adjust based on your layout */
    margin: 20px auto;
}

/* PDF Thumbnails */
.grid-gallery img {
  width: 130px;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.2s;
}
.grid-gallery img:hover {
  transform: scale(1.05);
}


/**************** EXISTING PDF MODAL ****************/
.pdf-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.pdf-modal-content {
  margin: 5% auto;
  width: 90%;
  max-width: 800px;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  position: relative;
}

.pdf-close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
}

#pdf-frame {
  width: 100%;
  height: 70vh;
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .card {
    width: 90%;
  }

  .quiz,
  .consult {
    width: 100%;
    padding: 0 1rem;
  }

  .pdf-modal-content {
    width: 95%;
  }

  #color-shape-game {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.shape-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.item.color-shape {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 90px;
  min-height: 90px;
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;

  /* ✅ White text */
  color: white;
}

.item.color-shape:hover {
  transform: scale(1.1);
}

.shape-label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
}

/* Grid -> Flex for single row */
#social .grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap; /* prevent wrapping to force one row */
  margin-top: 20px;
}

#social .card {
  text-align: center;
}

#social .card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

#social .card img:hover {
  transform: scale(1.05);
}

  .hero-banner {
    background: linear-gradient(135deg, #f9f7ff, #d3e0ff);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 100vh;
    padding: 0; /* Remove top/bottom padding */
    box-sizing: border-box;
    padding-top: 0 !important;
  }

  .hero-content {
    width: 100%;
    text-align: center;
    margin: 0; /* Remove all side margins */
  }

  .hero-content h1 {
    font-size: 2.5rem;
    margin: 0;
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    margin-top: 0 !important;
  }
.hero-banner {
  padding-top: -5px !important;
  padding-bottom: 0 !important;
  min-height: auto !important;
}

 

  @media (max-width: 768px) {
    .hero-content h1 {
      font-size: 1.8rem;
    }
  }
  .hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
}

.contact-table td {
  padding: 12px;
  border: 1px solid #dee2e6;
}

.contact-table input,
.contact-table textarea {
  width: 100%;
  padding: 8px;
}
.contact-table {
  margin: 0 auto;   /* 👈 centers horizontally */
}
.contact-box {
  max-width: 700px;
  margin: 40px auto;  /* top-bottom | left-right */
}
.form-wrapper {
  display: flex;
  justify-content: center;
}
tr.spaceUnder>td {
  padding-bottom: 4em;
}
