:root {
  --primary: #1f2f8d;
  --primary-dark: #141f60;
  --accent: #00a3d7;
  --text: #1f1f1f;
  --muted: #666;
  --bg: #f5f7fb;
  --white: #fff;
  --border: #e8ebf2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.topbar {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.92rem;
}

.topbar .container {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  flex-wrap: wrap;
}

header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-link {
  color: inherit;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand h1 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--primary);
}

.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.menu {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.ticker-wrap {
  overflow: hidden;
  max-width: 800px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f1f4ff;
  padding: 8px 0;
}

.ticker {
  white-space: nowrap;
  display: inline-block;
  padding-left: 100%;
  font-size: 0.88rem;
  color: var(--primary-dark);
  font-weight: 750;
  animation: tickerMove 12s linear infinite;
}

@keyframes tickerMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  background: var(--primary-dark);
  display: block;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  width: 19px;
  height: 2px;
  background: var(--primary-dark);
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.menu a {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.menu a:hover,
.menu a.active {
  background: var(--primary);
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-links a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: #edf1ff;
  color: var(--primary-dark);
}

.hero {
  padding: 76px 0;
  background: linear-gradient(130deg, var(--primary-dark), var(--primary));
  color: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
}

.hero h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.18;
}

.hero p {
  font-size: 1.04rem;
  max-width: 700px;
}

.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  margin-right: 8px;
  margin-top: 10px;
}

.btn.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.card {
  background: var(--white);
  border: 3px solid var(--border);
  border-radius: 18px;
  padding: 29px;
}

section {
  padding: 60px 0;
}

.section-title {
  margin: 0 0 22px;
  font-size: 1.8rem;
  color: var(--primary);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.list {
  padding-left: 18px;
}

.list li {
  margin: 8px 0;
}

.page-banner {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 42px 0;
}

.page-banner h2 {
  margin: 0;
  font-size: 2rem;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.placeholder-img {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  border: 1px dashed #9ba8ce;
  background: #eef2ff;
  display: grid;
  place-items: center;
  text-align: center;
  color: #46557d;
  font-weight: 600;
  padding: 10px;
}

.gallery-section {
  margin-bottom: 32px;
}

.gallery-section h3 {
  margin-top: 0;
  color: var(--primary);
}

.gallery-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.client-item {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 10px;
  padding: 18px 12px;
  text-align: center;
  font-weight: 700;
  color: #4b5472;
}

.scroll-strip {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 12px;
  padding: 14px 0;
}

.scroll-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: scrollLeft 55s linear infinite;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-logo-card {
  min-width: 180px;
  height: 90px;
  background: #f6f8ff;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.client-logo-card img {
  max-width: 100%;
  max-height: 62px;
  object-fit: contain;
}

.review-card {
  min-width: 320px;
  max-width: 320px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 14px;
}

.review-card h4 {
  margin: 0 0 8px;
  color: var(--primary);
}

.review-card p {
  margin: 0;
  color: #444;
  font-size: 0.95rem;
}

.course-list {
  margin: 0;
  padding-left: 20px;
}

.course-list li {
  margin-bottom: 6px;
}

.map-frame {
  width: 100%;
  min-height: 330px;
  border: 0;
  border-radius: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

footer {
  background: #0e143a;
  color: #dce1ff;
  padding: 36px 0 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr;
  gap: 20px;
}

footer h4 {
  margin: 0 0 10px;
  color: #fff;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 18px;
  padding-top: 12px;
  font-size: 0.86rem;
  color: #aeb7f0;
}

@media (max-width: 920px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .gallery,
  .footer-grid,
  .clients-grid {
    grid-template-columns: 1fr;
  }

  .ticker-wrap {
    max-width: 100%;
    width: 100%;
  }

  .navbar {
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-right {
    width: 100%;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    display: block;
    width: 100%;
  }

  .hero {
    padding: 48px 0;
  }

  section {
    padding: 40px 0;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }
}
@media screen and (max-width: 768px) {

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    padding: 10px 15px;
  }

  .brand-link {
    position: static;
    transform: none;
  }

  .brand img {
    width: 140px !important;
    height: auto !important;
  }

  .nav-right {
    position: static;
    width: auto;
    margin-left: auto;
  }

  .menu {
    width: 100%;
    margin-top: 10px;
  }
}




/* Mobile View Only Fix */
@media screen and (max-width: 768px) {

  html,
  body {
    overflow-x: hidden !important;
    width: 100%;
  }

  .container {
    width: 95%;
    overflow-x: hidden;
  }

  .card,
  .grid-2,
  .grid-3,
  .gallery,
  .footer-grid {
    width: 100%;
    overflow-x: hidden;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

@media screen and (max-width: 768px) {

  .scroll-strip {
    width: 100%;
    overflow: hidden;
  }

  .scroll-track {
    max-width: 100%;
  }

  .client-logo-card {
    min-width: 120px;
  }

  .review-card {
    min-width: auto;
    max-width: 100%;
  }

  iframe,
  img,
  video {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 500px) {

  * {
    max-width: 100% !important;
  }

  html,
  body {
    overflow-x: hidden !important;
  }

  .scroll-track,
  .review-card,
  .client-logo-card,
  .hero-grid,
  .grid-2,
  .grid-3 {
    width: 100% !important;
    min-width: 0 !important;
  }
}


@media screen and (max-width: 768px) {

  .scroll-strip {
    overflow-x: auto;
    padding: 10px;
  }

  .scroll-track {
    display: flex;
    gap: 15px;
    animation: none;
    width: max-content;
  }

  .client-logo-card {
    min-width: 140px;
    width: 140px;
    height: 100px;
    flex-shrink: 0;
    padding: 10px;
  }

  .client-logo-card img {
    width: 100%;
    height: 70px;
    object-fit: contain;
    display: block;
  }
}

/* Mobile Student Review Fix */
@media screen and (max-width: 768px) {

  .review-track,
  .review-container,
  .reviews-grid,
  .reviews-slider,
  .reviews {
    display: block !important;
  }

  .review-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin-bottom: 15px;
    height: auto !important;
  }

  .review-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .review-card p {
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
  }
}