:root {
  --brand: #4f46e5;
  --brand-2: #6366f1;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #f9fafb;
  --card: rgba(255, 255, 255, 0.9);
  --radius: 16px;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-right: 1rem;
  padding-left: 1rem;
}

/* Header */
header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  font-size: 18px;
}

@media (orientation: portrait) {
  header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 14px 14px;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
}
header h1 {
  font-size: 18px;
}
/* #mainheadingtag {
  font-size: 16px;
  display: block;
} */

#brandHeading {
  text-decoration: none;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
}
.logo {
  background: var(--brand);
  color: white;
  padding: 6px 10px;
  border-radius: 12px;
  font-weight: 700;
}
.menu {
  display: flex;
  gap: 20px;
}
.menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}
.menu a:hover {
  color: var(--brand);
}
.hero-media img {
  border-radius: 0.5rem;
}
.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}
@media (max-width: 768px) {
  .menu {
    display: none;
    position: absolute;
    top: 64px;
    right: 20px;
    flex-direction: column;
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 220px;
  }
  .menu.active {
    display: flex;
    animation: fadeIn 0.3s ease;
  }
  .hamburger {
    display: block;
  }
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Sections */
.container {
  max-width: 1200px;
  margin: auto;
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
  margin-top: 4rem;
}
.section-title h2 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  margin-bottom: 8px;
}
.muted {
  color: var(--text-light);
  font-size: 15px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 20px 20px;
}
.hero .tag {
  display: inline-block;
  background: #eef2ff;
  color: var(--brand);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}
.hero h1 {
  margin: 20px 0 16px;
  font-family: "Playfair Display", serif;
  font-size: 40px;
  line-height: 1.2;
}
.hero p {
  max-width: 700px;
  margin: auto;
  color: var(--text-light);
}
.cta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-media {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-media .card {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-media img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Grid system */
.grid {
  display: grid;
  gap: 24px;
}
.col-3 {
  grid-column: span 3;
}
.col-4 {
  grid-column: span 4;
}
.col-6 {
  grid-column: span 6;
}
.col-12 {
  grid-column: span 12;
}
@media (min-width: 768px) {
  .col-3 {
    grid-column: span 3;
  }
  .col-4 {
    grid-column: span 4;
  }
  .col-6 {
    grid-column: span 6;
  }
}

/* Cards */
.card {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Chips and Badges */
.chip {
  display: inline-block;
  padding: 6px 12px;
  background: #f3f4f6;
  border-radius: 20px;
  font-size: 13px;
  margin: 4px 4px 0 0;
}
.badge {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: white;
  border-radius: 20px;
  font-size: 13px;
  margin-top: 0.8rem;
}

/* Buttons */
.btn {
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: #e5e7eb;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
}

#contact {
  scroll-margin-top: 5.5rem;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}
.btn.primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: white;
}

/* Jobs */
.job {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.job h4 {
  margin: 0 0 4px;
}
.job .meta {
  font-size: 14px;
  color: var(--text-light);
}

/* Features */
.feature {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Form */
/* form .form-group {
  position: relative;
  margin-bottom: 20px;
}
form input,
form select,
form textarea {
  width: 100%;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
  font-size: 15px;
}
form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
} */

/* Form */
.enroll {
  width: 100%;
}
form {
  /* max-width: 600px; */
  margin: auto;
  width: 100%;

  background: var(--card);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

form .form-group {
  margin-bottom: 20px;
}

form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

form input,
form select,
form textarea {
  width: 100%;
  box-sizing: border-box; /* <-- add this */
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.grid {
  gap: 16px; /* example */
}

form input,
form select,
form textarea {
  width: 100%;
  max-width: 100%; /* prevent overflow */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

form textarea {
  resize: vertical;
  min-height: 120px;
}

form .btn {
  width: 100%;
  margin-top: 10px;
}

/* Footer */
footer {
  background: white;
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 40px 20px;
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.foot-bottom a {
  margin-left: 12px;
  text-decoration: none;
  color: var(--text-light);
  font-size: 14px;
}
.foot-bottom a:hover {
  color: var(--brand);
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 900;
}
.overlay.active {
  display: block;
}

/* Ensure mobile menu sits above overlay */
.menu {
  z-index: 1000;
}

/* === Original CSS (unchanged) === */
/* keep all your original code here as it is... */

/* === Responsive Fixes (only overrides) === */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr; /* stack columns */
    gap: 16px;
  }

  .col-6 {
    grid-column: span 12; /* full width on mobile */
  }
}

@media (max-width: 600px) {
  .btn {
    padding: 10px 14px; /* smaller padding */
    font-size: 14px; /* smaller text */
    border-radius: 10px; /* proportional rounded corners */
  }

  .cta {
    gap: 10px; /* reduce button spacing */
  }

  .section-title h2 {
    font-size: 20px; /* scale down heading */
  }

  form {
    padding: 20px; /* reduce padding on mobile */
  }
}

@media (max-width: 600px) {
  .btn {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 6px;
  }

  .job-card {
    padding: 15px;
  }

  .job-header h3 {
    font-size: 18px;
  }

  .foot-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .foot-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

#foot-links {
  display: flex;
  justify-content: space-between;
}

#footerBadge {
  margin-top: 1rem;
  color: #eef2ff;
}

a {
  text-decoration: none;
  cursor: pointer;
  color: #1f2937;
}

#homeContact h3,
#homeContact p {
  margin-bottom: 1rem;
}

#message {
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}
