/* RESET */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Media safety */
img, picture, video, canvas, svg, iframe, embed, object {
  display: block;
  max-width: 100%;
}
img { height: auto; }

body {
  background: #f6f9fc;
  color: #1f1f1f;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

main {
  display: block;
  width: 100%;
}

a,
button,
input,
textarea,
select {
  min-width: 0;
}

/* HEADER */
header {
  background: black;
  padding: 1.25rem 1rem;
  text-align: center;
  border-bottom: 2px solid red;
}

header h1 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  color: red;
  line-height: 1.2;
}

header p {
  color: whitesmoke;
  margin-top: 0.3rem;
  font-size: clamp(0.75rem, 2.5vw, 0.95rem);
  line-height: 1.4;
}

/* SCROLL MENU */
.scroll-menu {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: block;
  text-align: center;
}

.scroll-menu::-webkit-scrollbar { display: none; }

.scroll-menu .inner {
  display: inline-flex;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  width: max-content;
}

.scroll-menu a {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: #e8f1ff;
  border-radius: 20px;
  color: #0a3d62;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid #c8dfff;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}

.scroll-menu a:hover { background: #0077cc; color: #fff; border-color: #0077cc; }

/* HERO */
.hero {
  max-width: 1280px;
  margin: 2rem auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #ddd;
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-img {
  flex: 1 1 280px;
  min-width: 0;
}

.hero-img img {
  width: 100%;
  border-radius: 12px;
}

.hero-text {
  flex: 1 1 280px;
  min-width: 0;
}

.hero-text h2 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  color: #0a3d62;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.hero-text p {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  margin-top: 1.25rem;
  background: #0077cc;
  color: white;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.18s;
}

.hero-btn:hover { background: #005ea3; }

/* MOBILE HERO FIX */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 1rem !important;
    text-align: center;
    margin: 1rem auto;
  }

  .hero-img, .hero-text { flex: 1 1 100%; }

  .hero-btn { width: 100%; }

  .slider-container { border-radius: 0 !important; }
}

/* SLIDER */
.slider-container {
  max-width: 1280px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 12px;
  padding-inline: 1rem;
}

.slider {
  display: flex;
  transition: transform 0.7s ease;
  will-change: transform;
  border-radius: 12px;
}

.slide {
  min-width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  position: relative;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

/* SECTION */
.section {
  max-width: 1280px;
  margin: clamp(2rem, 5vw, 3rem) auto;
  padding-inline: 1rem;
}

.section h2 {
  text-align: center;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: #0a3d62;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.section-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 1.5rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* COURSES */
.courses {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.course-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.25rem;
}

.course-card h3 {
  color: #0a3d62;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  line-height: 1.3;
}

.course-card p {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* RESULTS */
.results-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  margin-top: 1.5rem;
}

.result-card {
  background: white;
  border: 1px solid #ddd;
  padding: 1.25rem;
  border-radius: 12px;
  text-align: center;
}

.result-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  display: block;
}

.result-card h4 {
  color: #0a3d62;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.result-rank {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0077cc;
  margin: 0.4rem 0;
}

.result-card p {
  color: #555;
  font-size: 0.875rem;
}

/* FOUNDERS */
.founder-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin-top: 1.5rem;
}

.founder-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 1.25rem;
  text-align: center;
}

.founder-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 0.6rem;
  display: block;
}

.founder-card h4 {
  margin-top: 0.5rem;
  color: #0a3d62;
  font-size: 1rem;
}

.founder-card p {
  color: #555;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* TEACHER CARDS */
.teacher-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  margin-top: 1.5rem;
}

.teacher-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.teacher-card-media {
  margin-bottom: 0.9rem;
}

.teacher-card img {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
  display: block;
  border: 2px solid #d7e6f6;
}

.teacher-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1 1 auto;
}

.teacher-card h4 {
  color: #0a3d62;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: break-word;
}

.teacher-card-role {
  color: #555;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.55;
}

.teacher-card-summary {
  color: #666;
  font-size: 0.86rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  word-break: break-word;
}

.teacher-card .link a {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.45rem 1rem;
  background: #0077cc;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.18s;
}

.teacher-card .link a:hover { background: #005ea3; }

.profile-link-disabled {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.45rem 1rem;
  background: #eef3f7;
  color: #5b6770;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

/* FAQ */
.faq-item {
  background: white;
  border: 1px solid #ddd;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  margin-top: 0.75rem;
  cursor: pointer;
  transition: border-color 0.18s;
}

.faq-item:hover { border-color: #0077cc; }

.faq-question {
  font-weight: 600;
  color: #0a3d62;
  font-size: 0.95rem;
  line-height: 1.4;
}

.faq-answer {
  display: none;
  color: #444;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* MAP */
.map-box {
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ddd;
  position: relative;
  width: 100%;
  padding-bottom: 40%;
  min-height: 220px;
}

.map-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* FORM */
.form-box {
  width: 100%;
  margin: 2rem auto;
  background: white;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid #ddd;
  border-radius: 12px;
}

.form-box h2 {
  text-align: center;
  color: #0a3d62;
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.form-box form {
  display: grid;
  gap: 0.9rem;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #aaa;
  background: #fff;
  color: #1f1f1f;
  transition: border-color 0.18s;
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: #0077cc;
}

button[type="submit"] {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 700;
  background: #0077cc;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
}

button[type="submit"]:hover { background: #005ea3; }
button[type="submit"]:disabled { background: #7ab8e8; cursor: not-allowed; }

/* FOOTER */
.site-footer {
  background: black;
  padding: clamp(2rem, 5vw, 3rem) 1rem clamp(1.5rem, 4vw, 2rem);
  border-top: 2px solid red;
  margin-top: clamp(2rem, 5vw, 3rem);
  color: white;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto 1.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.footer-col h3 {
  color: #ff9933;
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.footer-col h4 {
  color: #e8f1ff;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.footer-col p {
  color: #bbb;
  font-size: 0.875rem;
  line-height: 1.75;
  overflow-wrap: break-word;
  word-break: break-word;
  margin-bottom: 0.5rem;
}

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

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.3rem;
}

.footer-col ul li a,
.footer-col a {
  color: #bbb;
  font-size: 0.875rem;
  text-decoration: none;
  line-height: 1.75;
  transition: color 0.18s;
}

.footer-col ul li a:hover,
.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 1.25rem;
  color: #777;
  font-size: 0.82rem;
  max-width: 1280px;
  margin: 0 auto;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem 1.25rem;
}

.footer-bottom a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.18s;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-credit {
  margin-top: 0;
  font-size: 0.78rem;
  color: #555;
}

.footer-credit a {
  color: #777;
}

.footer-credit a:hover {
  color: #bbb;
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Thin scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: #b5b5b5; border-radius: 2px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---- RESPONSIVE ---- */
@media (max-width: 599px) {
  .section { margin: 1.75rem auto; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .teacher-cards { grid-template-columns: repeat(2, 1fr); }
  .founder-cards { grid-template-columns: 1fr; }
  .map-box { padding-bottom: 65%; }
  .slider-container { margin: 1.75rem auto; }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .results-grid { grid-template-columns: 1fr; }
  .teacher-cards { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1.5fr;
  }
}
