/* ---------- Root Variables ---------- */
:root {
  --primary: #0077cc;
  --primary-dark: #005fa3;
  --bg: #fafafa;
  --white: #fff;
  --text: #333;
  --text-light: #555;
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; border-radius: var(--radius); }
ul { list-style: none; margin-bottom: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid #ddd;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
}
.header .logo { height: 40px; margin-right: 0.5rem; }
.header .brand { font-weight: 600; color: var(--primary-dark); }
.menu-btn, .close-btn { font-size: 1.6rem; background: none; border: none; cursor: pointer; }

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 2000;
  padding: 2rem;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { margin-top: 2rem; }
.mobile-menu li { margin: 1.2rem 0; }
.mobile-menu a { font-size: 1.2rem; font-weight: 500; color: var(--text); }

/* ---------- Footer ---------- */
.footer {
  background: #222;
  color: #ddd;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}
/* Image on top in left section */
.top-img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  object-fit: cover;
  max-height: 300px;
}

/* ---------- Student Section ---------- */
.student-section {
  display: flex;
  max-width: 1200px;
  margin: 120px auto 2rem; /* account for fixed header */
  padding: 0 1.5rem;
  gap: 2rem;
}
.student-content { flex: 0 0 60%; }
.student-content h2 { color: var(--primary-dark); margin-bottom: 1rem; }
.student-content p, .student-content ul { margin-bottom: 1rem; }

.student-form {
  flex: 0 0 40%;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.student-form h2 { text-align: center; color: var(--primary-dark); margin-bottom: 1rem; }
.student-form form { display: flex; flex-direction: column; gap: 0.8rem; }
.student-form input, .student-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
  width: 100%;
}
.student-form textarea { min-height: 120px; resize: vertical; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .student-section { flex-direction: column; }
  .student-content, .student-form { flex: 1 1 100%; }
}
/* ---------- Mobile Header ---------- */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: nowrap; /* prevent wrapping */
    justify-content: space-between;
  }
  .header .brand {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* space between logo and text */
    white-space: nowrap; /* prevent text from breaking */
  }
  .header .brand span {
    font-size: 1rem; /* reduce text size if needed */
  }
}
/* ---------- Gallery Section ---------- */
.gallery-section {
  max-width: 1200px;
  margin: 100px auto 2rem;
  padding: 0 1.5rem;
}

.gallery-section h2.big-title {
  text-align: center;
  color: var(--primary-dark);
  margin-bottom: 2rem;
}

/* Photos & Videos Grid */
.gallery, .videos {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Card style for images & videos */
.gallery img,
.videos iframe {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover,
.videos iframe:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Optional: center videos section on small screens */
.videos {
  justify-items: center;
}
/* Footer container */
.footer {
  background: #222;
  color: #fff;
  padding: 2rem 1.5rem;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Individual clinic box */
.clinic {
  flex: 0 0 48%;
  background: #333;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.clinic h3 {
  color: #00aaff;
  margin-bottom: 0.5rem;
}

.clinic p, .clinic a {
  margin-bottom: 0.5rem;
  color: #ddd;
  text-decoration: none;
  display: block;
}

/* Map styling */
.clinic iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 8px;
}

/* Responsive tweak for very small phones */
@media (max-width: 400px) {
  .footer-container {
    flex-direction: column;
    gap: 1rem;
  }
  .clinic iframe {
    height: 150px;
  }
}

/* ---------- VIDEO TESTIMONIALS ---------- */
#video-testimonials {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.video-card {
  width: 320px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  background: #f9f9f9;
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-card iframe {
  width: 100%;
  height: 180px;
}

.video-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 10px 0 15px;
  color: #0077cc;
}

/* Responsive */
@media (max-width: 768px) {
  .video-card {
    width: 90%;
  }
}
