:root {
  --primary: #0d4f8b;
  --primary-dark: #07365e;
  --accent: #ff8f1f;
  --accent-soft: #fff2e1;
  --dark: #10243b;
  --light: #f4f8fc;
  --text: #43576b;
  --border: #dbe5ee;
  --shadow: 0 18px 40px rgba(13, 79, 139, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: #ffffff;
}

img { width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 0.75rem 0;
  font-size: 0.95rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--primary-dark);
}

.brand-name {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: var(--dark);
}

.nav-links a:hover { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 0.82rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn:hover { transform: translateY(-2px); }

.hamburger {
  display: none;
  background: none;
  border: 0;
  font-size: 1.4rem;
  color: var(--primary);
  cursor: pointer;
}

.hero {
  background: linear-gradient(135deg, #edf7ff 0%, #f9fcff 100%);
  padding: 4rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--dark);
  margin: 0 0 0.8rem;
  line-height: 1.12;
}

.hero-copy p { font-size: 1.02rem; margin-bottom: 1rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.2rem 0 1.4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.95rem;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary);
}

.stat-card span {
  display: block;
  font-size: 0.92rem;
  color: var(--text);
}

.hero-visual {
  position: relative;
}

.hero-visual {
  position: relative;
  min-height: 460px;
}

.hero-visual img {
  height: 100%;
  min-height: 460px;
  width: 100%;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-floating-card {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: 300px;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.hero-floating-card h3 {
  margin: 0 0 0.3rem;
  color: var(--primary);
}

.section {
  padding: 4.2rem 0;
}

.section-alt {
  background: var(--light);
}

.section-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2rem;
}

.section-intro h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  color: var(--dark);
  margin: 0 0 0.6rem;
}

.about-grid, .course-grid, .gallery-grid, .testimonial-grid {
  display: grid;
  gap: 1.15rem;
}

.about-grid { grid-template-columns: repeat(3, 1fr); }
.course-grid { grid-template-columns: repeat(3, 1fr); }
.gallery-grid { grid-template-columns: repeat(3, 1fr); }
.testimonial-grid { grid-template-columns: repeat(3, 1fr); }

.card, .course-card, .placement-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.card h3, .course-card h3 { margin-top: 0; color: var(--primary); }

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  font-weight: 800;
}

.course-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.course-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.course-tag {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
}

.course-duration {
  color: var(--primary);
  font-weight: 700;
}

.course-card ul {
  padding-left: 1rem;
  margin: 0.2rem 0 0;
  color: var(--text);
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.3rem;
}

.course-footer a {
  color: var(--accent);
  font-weight: 700;
}

.placement-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.3rem;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--dark);
}

.placement-card {
  background: linear-gradient(135deg, var(--primary), #1b76c5);
  color: white;
}

.placement-card h3 { color: white; }

.gallery-action {
  margin-top: 0.8rem;
}

.gallery-grid img,
.gallery-grid video {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  background: #e2e8f0;
}

.gallery-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.6rem;
  box-shadow: var(--shadow);
}

.gallery-meta {
  padding: 0.8rem 0.2rem 0.4rem;
}

.gallery-meta h3 {
  margin: 0 0 0.3rem;
  color: var(--primary);
  font-size: 1.05rem;
}

.gallery-meta p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.testimonial-card p {
  margin-top: 0;
  font-style: italic;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.gallery-modal.open {
  display: flex;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.8);
}

.gallery-modal-content {
  position: relative;
  width: min(960px, calc(100% - 2rem));
  max-height: 90vh;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
}

.gallery-modal-body {
  padding: 1rem;
}

.gallery-modal-media img,
.gallery-modal-media video {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 14px;
  background: #0f172a;
}

.gallery-modal-caption {
  padding: 0.9rem 0.2rem 0;
}

.gallery-modal-caption h3 {
  margin: 0 0 0.3rem;
  color: var(--primary);
}

.gallery-modal-caption p {
  margin: 0;
  color: var(--text);
}

.gallery-modal-close,
.gallery-modal-nav {
  position: absolute;
  top: 1rem;
  z-index: 2;
  border: 0;
  background: rgba(13, 79, 139, 0.9);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}

.gallery-modal-close { right: 1rem; }

.gallery-modal-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-modal-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.contact-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
  background: linear-gradient(135deg, var(--primary), #1c77ca);
  color: white;
  border-radius: 20px;
  padding: 2rem;
}

.contact-box a { color: #fde6c2; }

.contact-card ul {
  padding-left: 1rem;
  margin: 0.6rem 0 0;
}

.contact-card li { margin-bottom: 0.4rem; }

footer {
  background: var(--dark);
  color: #dce8f2;
  padding: 1.4rem 0;
  text-align: center;
}

@media (max-width: 920px) {
  .hero-grid, .placement-section, .contact-box { grid-template-columns: 1fr; }
  .about-grid, .course-grid, .gallery-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    right: 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    flex-direction: column;
    padding: 0.8rem;
    width: min(220px, calc(100% - 2rem));
    box-shadow: 0 14px 35px rgba(16, 42, 67, 0.12);
  }
  .nav-links.open { display: flex; }
  .about-grid, .course-grid, .gallery-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; }
  .hero-visual,
  .hero-visual img { min-height: 280px; }
}
