/* ===== GENERAL ===== */
body {
  font-family: 'Open Sans', Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #fdfdfd;
  color: #333;
}

h1, h2, h3 { margin: 0 0 15px; }
p { margin: 0 0 15px; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
header {
  background: #fff;
  color: #333;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Logo */
header img.logo {
  max-height: 50px;
  margin-right: auto;
}

/* Navigation (desktop default) */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
}

nav ul li a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

nav ul li a:hover {
  background: #4CAF50;
  color: #fff;
}

/* CTA link (Contact/Book Now) */
nav ul li a.contact-btn {
  background: #ff8a00;
  color: #fff !important;
  border-radius: 20px;
  padding: 8px 18px;
}
nav ul li a.contact-btn:hover {
  background: #e67600;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none; /* hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #333; /* visible on white header */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Active state → turns into X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
              url('images/pic1.jpg') center/cover no-repeat;
  color: #f9f9f9;
  text-align: center;
  padding: 140px 20px;
}

.hero-content {
  max-width: 850px;
  margin: auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 15px;
  line-height: 1.6;
  color: #eaeaea;
}

.hero .cta-button {
  background: #ff8a00;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background 0.3s, transform 0.2s;
}

.hero .cta-button:hover {
  background: #e67600;
  transform: translateY(-3px);
}


/* CTA link (Contact/Book Now) */
nav ul li a.contact-btn {
  background: #ff8a00;
  color: #fff ;
  border-radius: 20px;
  padding: 8px 18px;
}
nav ul li a.contact-btn:hover {
  background: #e67600;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 220px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    border-bottom: 1px solid #eee;
  }

  nav ul li a {
    display: block;
    padding: 12px;
    color: #333;
    text-align: center;
  }

  .hamburger {
    display: flex; /* show on mobile */
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: url('images/pic1.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: auto;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.2rem;
}
.cta-button {
  background: #ff8a00;
  color: #fff;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 15px;
  transition: background 0.3s;
}
.cta-button:hover {
  background: #e67600;
}

/* ===== ABOUT ME ===== */
.about-me {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}


.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.about-photo img {
  width: 100%;
  max-width: 350px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.about-text h2 {
  color: #4CAF50;
  margin-bottom: 15px;
}
.about-text p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ===== CREDENTIALS ===== */
.credentials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  text-align: center;
}
.credential-box {
  flex: 1 1 250px;
  max-width: 300px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.credential-box h3 {
  margin: 10px 0;
  color: #4CAF50;
}
.credential-box p {
  font-size: 0.95rem;
  color: #555;
}
.credential-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* ===== SERVICES ===== */
.services {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}
.services h2 {
  text-align: center;
  color: #4CAF50;
  margin-bottom: 30px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 20px;
}
.service-box {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-box h3 {
  color: #4CAF50;
  margin-bottom: 10px;
}
.service-box p {
  color: #555;
}
.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.testimonial-grid blockquote {
  width: 100%;
  max-width: 450px;   /* each card capped at 450px */
  flex: 1 1 300px;    /* minimum width, then grows */
  background: #f9f9f9;
  border-left: 5px solid #4CAF50;
  padding: 20px;
  margin: 0;
  font-style: italic;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-grid blockquote:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.testimonial-grid span {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #333;
  font-style: normal;
}

/* Small screens: full width */
@media (max-width: 768px) {
  .testimonial-grid blockquote {
    max-width: 100%;
  }
}



/* ===== CTA BANNER ===== */
.cta-banner {
  background: #4CAF50;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}
.cta-banner h2 {
  margin-bottom: 15px;
}

/* ===== SIGNATURE ===== */
.signature {
  text-align: center;
  margin: 40px auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
}
.signature img {
  max-width: 200px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ===== LOCAL COVERAGE ===== */
.coverage {
  background: #f9f9f9;
  padding: 40px 20px;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 1000px;
}
.coverage h2 {
  color: #4CAF50;
  margin-bottom: 15px;
}
.coverage p {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 10px;
}

/* ===== FOOTER ===== */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 30px;
}
footer a {
  color: #ff8a00;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* === Mobile Dropdown Animation === */
@media (max-width: 768px) {
  nav ul {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
  }

  nav ul.show {
    max-height: 500px; /* enough for your menu items */
    opacity: 1;
    transform: translateY(0);
  }
}


/* === Fix Hamburger Alignment === */
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hamburger {
  margin-left: auto;  /* pushes it fully to the right */
}

/* === Fix About Section on Mobile === */
@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;   /* stack vertically */
    text-align: center;
  }

  .about-photo img {
    margin: 0 auto;   /* center the photo */
  }
}


/* === Fix Credentials Layout on Mobile === */
@media (max-width: 600px) {
  .credentials {
    grid-template-columns: 1fr;  /* stack each box in a single column */
  }

  .credential-box {
    margin-bottom: 15px; /* add spacing between boxes */
  }
}



/* === Math in Motion Section === */
.math-motion {
  padding: 60px 20px;
  text-align: center;
}

.math-motion h2 {
  color: #4CAF50;
  margin-bottom: 30px;
}

.motion-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.motion-box {
  flex: 1 1 280px;
  max-width: 350px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.motion-box img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.motion-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}


.blog-teaser {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.blog-teaser h2 {
  color: #4CAF50;
  margin-bottom: 15px;
}

.blog-teaser p {
  color: #555;
  max-width: 700px;
  margin: 0 auto 25px auto;
}

.blog-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 20px auto;
  max-width: 700px;
}

.blog-list li {
  margin-bottom: 12px;
}

.blog-list a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.blog-list a:hover {
  color: #4CAF50;
}

.boards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 700px;
  margin: 25px auto 0;
}

.board-card {
  flex: 1 1 180px; /* min width 180px, expands to fit */
  max-width: 220px;
  text-align: center;
  display: block;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  font-weight: bold;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s, box-shadow 0.3s, color 0.3s;
}

.board-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  color: #4CAF50;
}


.other-exams {
  padding: 60px 20px;
  text-align: center;
}

.other-exams h2 {
  color: #4CAF50;
  margin-bottom: 20px;
}

.other-exams p {
  max-width: 700px;
  margin: 0 auto 25px auto;
  color: #555;
}

.exams-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.exam-card {
  flex: 1 1 200px;
  max-width: 250px;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exam-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  color: #4CAF50;
}


.philosophy {
  background: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.philosophy blockquote {
  font-style: italic;
  color: #555;
  margin-bottom: 30px;
  font-size: 1.2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.philosophy-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.philosophy-card {
  flex: 1 1 250px;
  max-width: 300px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.philosophy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.philosophy-card h3 {
  color: #4CAF50;
  margin: 10px 0;
}

.blog-teaser {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.blog-teaser h2 {
  color: #4CAF50;
  margin-bottom: 25px;
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.blog-card {
  flex: 1 1 280px;     /* flexible layout, min width 280px */
  max-width: 320px;    /* don’t let them get too wide */
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.blog-card a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.blog-card a:hover {
  color: #4CAF50;
}

.blog-card p {
  font-size: 0.95rem;
  color: #555;
}
