/* ============================================================
   Danfield International School — Homepage Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=DM+Sans:wght@400;500;600&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/tabler-icons.min.css');

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: #1a1a1a;
  line-height: 1.7;
  background: #fff;
}

h1, h2, h3 { font-family: 'Merriweather', serif; line-height: 1.3; }

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

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

/* ---------- TOKENS ---------- */
:root {
  --navy:       #1a3a6b;
  --navy-dark:  #0d2145;
  --gold:       #C3B480;/*#f5c518;*/
  --gold-light: #fff4c2;
  --white:      #ffffff;
  --gray-bg:    #f4f6f9;
  --gray-text:  #5a6272;
  --border:     #dce2ee;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --shadow-sm:  0 2px 8px rgba(26,58,107,0.08);
  --shadow-md:  0 6px 24px rgba(26,58,107,0.12);
  --max-w:      1140px;
}

/* ---------- CONTAINER ---------- */
.dis-container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- BUTTONS ---------- */
.dis-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.dis-btn--gold    { background: var(--gold); color: var(--navy-dark); }
.dis-btn--gold:hover { background: #e6b800; }
.dis-btn--navy    { background: var(--navy); color: #fff; border-color: var(--navy); }
.dis-btn--navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.dis-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.dis-btn--outline:hover { background: rgba(255,255,255,0.12); }

/* ---------- SECTION UTILITIES ---------- */
.dis-section { padding: 72px 0; }
.dis-section--bg { background: var(--gray-bg); }

.dis-section__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.dis-section__title {
  font-size: 30px;
  color: var(--navy-dark);
  margin-bottom: 12px;
}
.dis-section__sub {
  font-size: 15px;
  color: var(--gray-text);
  max-width: 520px;
}
.dis-section__header {
  text-align: center;
  margin-bottom: 40px;
}
.dis-section__header .dis-section__sub { margin: 0 auto; }
.dis-section__more { text-align: center; margin-top: 36px; }

/* ---------- PLACEHOLDER ---------- */
.dis-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8a95a8;
  font-size: 13px;
  height: 100%;
  min-height: 200px;
  background: var(--gray-bg);
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--border);
}
.dis-placeholder i { font-size: 36px; }

/* ---------- BADGE ---------- */
.dis-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,197,24,0.18);
  color: var(--gold);
  border: 1px solid rgba(245,197,24,0.4);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 18px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.dis-topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  font-size: 12.5px;
  padding: 7px 0;
}
.dis-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.dis-topbar__left { display: flex; gap: 20px; }
.dis-topbar__left a,
.dis-topbar__right a {
  color: rgba(255,255,255,0.75);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}
.dis-topbar__left a:hover,
.dis-topbar__right a:hover { color: var(--gold); }
.dis-topbar__right { display: flex; align-items: center; gap: 14px; }
.dis-topbar__cta {
  background: var(--gold);
  color: var(--navy-dark) !important;
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 11.5px;
}

/* ============================================================
   HERO
   ============================================================ */
.dis-hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}
.dis-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(245,197,24,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(255,255,255,0.04) 0%, transparent 50%);
}
.dis-hero__overlay {
  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.02'%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");
}
.dis-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 72px 24px;
}
.dis-hero__text { flex: 1; min-width: 0; }
.dis-hero__heading {
  font-size: clamp(28px, 4vw, 44px);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
}
.dis-hero__accent { color: var(--gold); }
.dis-hero__sub {
  font-size: 15px;
  color: rgba(255,255,255,0.78);
  max-width: 480px;
  margin-bottom: 28px;
}
.dis-hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.dis-hero__image {
  width: 380px;
  height: 280px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.dis-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.dis-hero__image--placeholder {
  background: rgba(255,255,255,0.07);
  border: 1.5px dashed rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}
.dis-hero__image--placeholder i { font-size: 42px; }

/* ============================================================
   STATS BAR
   ============================================================ */
.dis-stats {
  background: var(--gold);
  padding: 20px 0;
}
.dis-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.dis-stat {
  text-align: center;
  padding: 8px 16px;
  border-right: 1px solid rgba(26,58,107,0.15);
}
.dis-stat:last-child { border-right: none; }
.dis-stat__num {
  display: block;
  font-family: 'Merriweather', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy-dark);
}
.dis-stat__label {
  font-size: 12px;
  color: var(--navy);
  opacity: 0.8;
  margin-top: 2px;
}

/* ============================================================
   QUICK LINKS
   ============================================================ */
.dis-quick { padding: 28px 0; background: #fff; border-bottom: 1px solid var(--border); }
.dis-quick__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.dis-quick__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  color: inherit;
}
.dis-quick__card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.dis-quick__card i { font-size: 26px; color: var(--navy); margin-bottom: 8px; }
.dis-quick__label { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.dis-quick__sub { font-size: 11px; color: var(--gray-text); margin-top: 2px; }

/* ============================================================
   ABOUT
   ============================================================ */
.dis-about__inner {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 56px;
  align-items: center;
}
.dis-about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 360px;
  box-shadow: var(--shadow-md);
}
.dis-about__image img { width: 100%; height: 100%; object-fit: cover; }
.dis-about__content .dis-section__title { margin-top: 8px; }
.dis-about__content p {
  color: var(--gray-text);
  font-size: 15px;
  margin: 16px 0 20px;
}
.dis-checklist { list-style: none; margin-bottom: 28px; }
.dis-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #1a1a1a;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.dis-checklist li:last-child { border-bottom: none; }
.dis-checklist li i {
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   DEPARTMENTS
   ============================================================ */
.dis-depts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dis-dept__card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.dis-dept__card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.dis-dept__img {
  background: var(--navy);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dis-dept__img i { font-size: 40px; color: var(--gold); }
.dis-dept__body { padding: 20px; }
.dis-dept__body h3 { font-size: 17px; color: var(--navy-dark); margin-bottom: 8px; }
.dis-dept__body p { font-size: 13.5px; color: var(--gray-text); margin-bottom: 14px; }
.dis-dept__body a {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.dis-dept__body a:hover { gap: 8px; }

/* ============================================================
   FACILITIES
   ============================================================ */
.dis-facilities__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.dis-facility {
  text-align: center;
  padding: 28px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  color: inherit;
}
.dis-facility:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.dis-facility:hover i,
.dis-facility:hover span { color: #fff; }
.dis-facility i { font-size: 32px; color: var(--navy); }
.dis-facility span { font-size: 13px; font-weight: 600; color: #1a1a1a; }

/* ============================================================
   NEWS
   ============================================================ */
.dis-news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dis-news__card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.dis-news__card:hover { box-shadow: var(--shadow-md); }
.dis-news__img {
  height: 180px;
  overflow: hidden;
  background: var(--gray-bg);
}
.dis-news__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.dis-news__card:hover .dis-news__img img { transform: scale(1.04); }
.dis-news__body { padding: 18px; }
.dis-news__date {
  font-size: 11px;
  color: var(--gray-text);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.dis-news__body h3 { font-size: 15px; color: var(--navy-dark); margin-bottom: 8px; line-height: 1.4; }
.dis-news__body h3 a { color: inherit; transition: color 0.2s; }
.dis-news__body h3 a:hover { color: var(--navy); }
.dis-news__body p { font-size: 13px; color: var(--gray-text); }

/* ============================================================
   CTA BAND
   ============================================================ */
.dis-cta {
  background: var(--navy);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.dis-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 90% 50%, rgba(245,197,24,0.1) 0%, transparent 60%);
}
.dis-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.dis-cta__text h2 { font-size: 26px; color: #fff; margin-bottom: 8px; }
.dis-cta__text p  { font-size: 15px; color: rgba(255,255,255,0.72); max-width: 460px; }
.dis-cta__btns { display: flex; gap: 12px; flex-shrink: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .dis-quick__grid { grid-template-columns: repeat(3, 1fr); }
  .dis-facilities__grid { grid-template-columns: repeat(3, 1fr); }
  .dis-about__inner { grid-template-columns: 1fr; }
  .dis-about__image { height: 260px; }
}

@media (max-width: 768px) {
  .dis-section { padding: 48px 0; }
  .dis-hero__inner { flex-direction: column; padding: 48px 24px; text-align: center; }
  .dis-hero__sub { margin: 0 auto 24px; }
  .dis-hero__btns { justify-content: center; }
  .dis-hero__image { width: 100%; max-width: 360px; height: 220px; }
  .dis-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .dis-stat { border-right: none; border-bottom: 1px solid rgba(26,58,107,0.15); }
  .dis-stat:nth-child(2n) { border-right: none; }
  .dis-quick__grid { grid-template-columns: repeat(2, 1fr); }
  .dis-depts__grid { grid-template-columns: 1fr; }
  .dis-facilities__grid { grid-template-columns: repeat(2, 1fr); }
  .dis-news__grid { grid-template-columns: 1fr; }
  .dis-cta__inner { flex-direction: column; text-align: center; }
  .dis-cta__btns { justify-content: center; }
  .dis-topbar__inner { flex-direction: column; text-align: center; }
  .dis-topbar__left { flex-direction: column; gap: 4px; align-items: center; }
}

@media (max-width: 480px) {
  .dis-quick__grid { grid-template-columns: 1fr 1fr; }
  .dis-facilities__grid { grid-template-columns: repeat(2, 1fr); }
  .dis-section__title { font-size: 22px; }
  .dis-hero__heading { font-size: 26px; }
}
