/* ============================================================
   LADO International Institute — Global Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Eagle+Lake&family=Lora:ital,wght@0,400;0,600;1,400&family=Roboto:wght@300;400;500;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary:       #1a2551;
  --primary-dark:  #111a3a;
  --primary-light: #243070;
  --secondary:     #dd0009;
  --secondary-dark:#b00007;
  --white:         #ffffff;
  --off-white:     #f7f8fc;
  --light-gray:    #e8eaf0;
  --mid-gray:      #9aa0b5;
  --text:          #1a1f35;
  --text-muted:    #5a6178;

  --font-display: 'Lora', serif;
  --font-body:    'Roboto', Helvetica, Arial, sans-serif;
  --font-nav:     'Times New Roman', Times, serif;
  --font-accent:  'Lora', serif;

  --radius:     6px;
  --radius-lg:  12px;
  --shadow-sm:  0 2px 8px rgba(26,37,81,0.08);
  --shadow-md:  0 6px 24px rgba(26,37,81,0.12);
  --shadow-lg:  0 16px 48px rgba(26,37,81,0.18);
  --transition: 0.3s ease;
  --max-width:  1200px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-accent);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-alt {
  background: var(--off-white);
}

/* ── Section Headers ───────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 3px;
  background: var(--secondary);
  margin: 1rem 0 2rem;
  border-radius: 2px;
}

.divider-center {
  margin: 1rem auto 2rem;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.btn-primary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
}

.btn-lg {
  padding: 0.9rem 2.2rem;
  font-size: 1.05rem;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

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

.card-body {
  padding: 1.75rem;
}

.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(26,37,81,0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.4rem;
}

/* ── Grid Layouts ──────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Page Hero (non-home) ──────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
  position: relative;
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.page-hero .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  position: relative;
}

.page-hero .breadcrumb a { color: rgba(255,255,255,0.8); }
.page-hero .breadcrumb a:hover { color: var(--white); }

/* ── Accordion (details/summary) ───────────────────────────── */
.accordion {
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.accordion summary {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
  background: var(--white);
  transition: background var(--transition);
}

.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--secondary);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.accordion[open] summary {
  background: var(--off-white);
  border-bottom: 1px solid var(--light-gray);
}

.accordion[open] summary::after {
  content: '−';
}

.accordion-body {
  padding: 1.5rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Tables ────────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

thead th {
  background: var(--primary);
  color: var(--white);
  padding: 0.85rem 1.2rem;
  text-align: left;
  font-weight: 500;
  letter-spacing: 0.03em;
}

tbody td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--light-gray);
  vertical-align: top;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--off-white); }
tbody tr:hover { background: rgba(26,37,81,0.03); }

/* ── Badge ─────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.badge-primary { background: rgba(26,37,81,0.1); color: var(--primary); }
.badge-secondary { background: rgba(221,0,9,0.1); color: var(--secondary); }

/* ── Highlight Box ─────────────────────────────────────────── */
.highlight-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.highlight-box h3 { color: var(--white); }
.highlight-box p { color: rgba(255,255,255,0.85); }

.highlight-box-red {
  background: linear-gradient(135deg, var(--secondary) 0%, #ff2230 100%);
}

/* ── Info Box ──────────────────────────────────────────────── */
.info-box {
  background: var(--off-white);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.info-box.info-box-red { border-left-color: var(--secondary); }

/* ── Scroll Animations ─────────────────────────────────────── */
.anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.anim.visible {
  opacity: 1;
  transform: none;
}
.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.4s; }
.anim-delay-5 { transition-delay: 0.5s; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

footer h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 1rem;
}

footer a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}
footer a:hover { color: var(--white); }

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white) !important;
  font-size: 1rem;
  transition: background var(--transition) !important;
}
.social-link:hover { background: var(--secondary) !important; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Accreditation Logos ───────────────────────────────────── */
.accred-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 3rem 0;
}

.accred-logos img {
  height: 64px;
  width: auto;
  filter: grayscale(30%);
  opacity: 0.8;
  transition: var(--transition);
}
.accred-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ── Pricing Cards ─────────────────────────────────────────── */
.price-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

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

.price-card.featured {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.price-card.featured h3,
.price-card.featured .price-amount { color: var(--white); }

.price-amount {
  font-size: 2.5rem;
  font-family: var(--font-display);
  color: var(--secondary);
  font-weight: 700;
  line-height: 1;
  margin: 0.75rem 0 0.25rem;
}

.price-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.price-period {
  font-size: 0.85rem;
  color: var(--mid-gray);
}

.price-card.featured .price-period { color: rgba(255,255,255,0.65); }

/* ── Contact ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(26,37,81,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item h4 { margin-bottom: 0.15rem; font-size: 0.95rem; }
.contact-item p, .contact-item a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ── Gallery ───────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: var(--secondary); }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Link Cards (Lado Life / Academics) ────────────────────── */
.link-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
}

.link-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.link-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(26,37,81,0.07);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.link-card:hover .link-card-icon {
  background: var(--secondary);
  color: var(--white);
}

.link-card-text h4 { font-size: 1rem; margin-bottom: 0.15rem; }
.link-card-text p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.link-card-arrow {
  margin-left: auto;
  color: var(--mid-gray);
  font-size: 1.1rem;
  transition: var(--transition);
}
.link-card:hover .link-card-arrow { color: var(--secondary); transform: translateX(4px); }

/* ── Utility ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
