/* ==========================================================================
   STARS Sivagangai — main stylesheet
   ========================================================================== */

:root {
  --navy-900: #071a33;
  --navy-800: #0b2545;
  --navy-700: #123a6b;
  --navy-600: #1a4f8f;
  --gold-500: #c9a227;
  --gold-400: #d4af37;
  --gold-300: #e6c757;
  --cream: #fdfbf5;
  --gray-50: #f7f8fa;
  --gray-100: #eef1f5;
  --gray-300: #d3d9e0;
  --gray-600: #5a6472;
  --gray-800: #262d38;
  --white: #ffffff;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.08);
  --shadow-md: 0 6px 24px rgba(11, 37, 69, 0.12);
  --shadow-lg: 0 12px 40px rgba(11, 37, 69, 0.18);
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy-800);
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-header .eyebrow {
  display: inline-block;
  color: var(--gold-500);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray-600);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-700);
}

.btn-block {
  width: 100%;
}

/* ---------- Top bar ---------- */

.topbar {
  background: var(--navy-900);
  color: var(--gray-300);
  font-size: 0.82rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.topbar a {
  color: var(--gray-300);
}

.topbar-contacts {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-contacts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Header / Nav ---------- */

header.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 56px;
  width: 56px;
  object-fit: contain;
}

.brand-text .brand-name {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy-800);
  letter-spacing: 0.02em;
}

.brand-text .brand-tag {
  font-size: 0.72rem;
  color: var(--gray-600);
  letter-spacing: 0.03em;
}

nav.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav.main-nav a.nav-link {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-800);
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

nav.main-nav a.nav-link:hover,
nav.main-nav li.active > a.nav-link {
  background: var(--gray-100);
  color: var(--gold-500);
}

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  min-width: 210px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.15s ease;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-800);
}

.dropdown a:hover {
  background: var(--gray-100);
  color: var(--gold-500);
}

.nav-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy-800);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  background: radial-gradient(circle at 15% 20%, var(--navy-700), var(--navy-900) 65%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(212, 175, 55, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 88px;
  padding-bottom: 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold-300);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 18px;
}

.hero h1 span {
  color: var(--gold-400);
}

.hero p.lead {
  color: var(--gray-300);
  font-size: 1.08rem;
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-stats .stat b {
  display: block;
  font-size: 1.7rem;
  color: var(--gold-400);
  font-family: Georgia, serif;
}

.hero-stats .stat span {
  font-size: 0.82rem;
  color: var(--gray-300);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(6px);
}

.hero-panel img {
  border-radius: 12px;
  width: 100%;
}

/* Simple inner-page hero (no image panel) */

.page-hero {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: var(--white);
  padding: 56px 0;
}

.page-hero .eyebrow {
  color: var(--gold-400);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.2rem;
  margin: 10px 0 12px;
}

.page-hero p {
  color: var(--gray-300);
  max-width: 640px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--gray-300);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--gold-300);
}

/* ---------- Cards / Grids ---------- */

.grid {
  display: grid;
  gap: 26px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--navy-900);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* Exam program card */

.exam-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.exam-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.exam-card .exam-top {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--white);
  padding: 22px 22px 18px;
}

.exam-card .exam-top .tag {
  font-size: 0.72rem;
  color: var(--gold-300);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.exam-card .exam-top h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-top: 6px;
}

.exam-card .exam-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.exam-card .exam-body p {
  color: var(--gray-600);
  font-size: 0.92rem;
  margin-bottom: 18px;
  flex: 1;
}

.exam-card .exam-body a.btn {
  align-self: flex-start;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  text-align: center;
}

.step .num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-400);
  font-weight: 700;
  font-family: Georgia, serif;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.step h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.step p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* ---------- Table ---------- */

table.schedule {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

table.schedule th,
table.schedule td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.92rem;
}

table.schedule th {
  background: var(--navy-800);
  color: var(--white);
  font-weight: 600;
}

table.schedule tr:last-child td {
  border-bottom: none;
}

table.schedule tr:nth-child(even) td {
  background: var(--gray-50);
}

/* ---------- Meet / CTA panel ---------- */

.meet-panel {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.meet-panel h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.meet-panel p {
  color: var(--gray-300);
  max-width: 560px;
  margin: 0 auto 22px;
}

.meet-link-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(212, 175, 55, 0.6);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--gold-300);
  margin-bottom: 22px;
  word-break: break-all;
}

.cta-banner {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  border-radius: 16px;
  padding: 44px;
  text-align: center;
  color: var(--navy-900);
}

.cta-banner h2 {
  color: var(--navy-900);
  margin-bottom: 10px;
}

.cta-banner p {
  color: var(--navy-800);
  margin-bottom: 24px;
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--navy-800);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

/* ---------- What's New list ---------- */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.news-date {
  flex: 0 0 90px;
  text-align: center;
  background: var(--navy-800);
  color: var(--white);
  border-radius: 10px;
  padding: 12px 6px;
  height: fit-content;
}

.news-date .day {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-400);
  display: block;
}

.news-date .mon {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-body .badge {
  display: inline-block;
  background: var(--gray-100);
  color: var(--navy-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.news-body h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.news-body p {
  color: var(--gray-600);
  font-size: 0.93rem;
}

/* ---------- Testimonials ---------- */

.testimonial {
  background: var(--white);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.testimonial p.quote {
  font-style: italic;
  color: var(--gray-800);
  margin-bottom: 14px;
}

.testimonial .who {
  font-weight: 700;
  color: var(--navy-800);
  font-size: 0.92rem;
}

.testimonial .who span {
  display: block;
  font-weight: 400;
  color: var(--gray-600);
  font-size: 0.82rem;
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--navy-900);
  color: var(--gray-300);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.footer-brand img {
  height: 46px;
  width: 46px;
  object-fit: contain;
}

.footer-brand .brand-name {
  color: var(--white);
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-brand .brand-tag {
  font-size: 0.75rem;
  color: var(--gray-300);
}

footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

footer ul li {
  margin-bottom: 10px;
}

footer ul li a {
  font-size: 0.9rem;
  color: var(--gray-300);
  transition: color 0.15s ease;
}

footer ul li a:hover {
  color: var(--gold-400);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  align-items: flex-start;
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--gray-300);
}

.disclaimer-bar {
  background: var(--navy-800);
  color: var(--gray-300);
  font-size: 0.78rem;
  text-align: center;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.disclaimer-bar strong {
  color: var(--gold-300);
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
}

.social-row a:hover {
  background: var(--gold-500);
  color: var(--navy-900);
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.small { font-size: 0.85rem; color: var(--gray-600); }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: none;
}

.map-embed iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  nav.main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    transform: translateX(100%);
    transition: transform 0.2s ease;
    overflow-y: auto;
    padding: 16px;
  }

  nav.main-nav.open {
    transform: translateX(0);
  }

  nav.main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    padding-left: 14px;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .nav-cta {
    margin: 12px 0 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 { font-size: 2rem; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-contacts { gap: 12px; }
}
