/* ===== Digital Schooling — Custom Styles ===== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --ds-blue:       #4285F4;
  --ds-red:        #EA4335;
  --ds-yellow:     #FBBC05;
  --ds-green:      #34A853;
  --ds-dark:       #162C51;
  --ds-gray-dark:  #444;
  --ds-gray-light: #E8E6E6;
  --ds-white:      #fff;
  --ds-body-bg:    #fff;
  --ds-font-heading: 'Syne', sans-serif;
  --ds-font-body:    'Questrial', sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--ds-font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.75em;
  color: var(--ds-gray-dark);
  background: var(--ds-body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ds-font-heading);
  font-weight: 400;
  color: var(--ds-dark);
}

a { color: var(--ds-blue); }
a:hover { color: #3367d6; }

/* ---------- Navbar ---------- */
.navbar {
  background: var(--ds-white);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.navbar-brand img {
  height: 62px;
}

.navbar .nav-link {
  color: var(--ds-gray-dark) !important;
  font-weight: 400;
  font-size: .95rem;
  transition: color .4s ease;
}

.navbar .nav-link:hover {
  color: #757575 !important;
}

@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
  .navbar .dropdown-toggle {
    pointer-events: none;
  }
}

.navbar .dropdown-menu {
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.navbar .dropdown-item {
  color: var(--ds-gray-dark);
  transition: color .4s ease;
}

.navbar .dropdown-item:hover {
  background: transparent;
  color: #757575;
}

.navbar .social-icon {
  color: var(--ds-gray-dark);
  font-size: 1.25rem;
  transition: color .2s;
}
.navbar .social-icon:hover { color: #0A66C2; }

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  background: url('../img/hero.jpg') center center / cover no-repeat;
  min-height: 590px;
  display: flex;
  align-items: center;
}

.hero .container { position: relative; z-index: 1; }

.hero-title {
  color: var(--ds-blue);
  font-size: 5.875rem;
  margin-bottom: .75rem;
  max-width: 600px;
}

.hero-subtitle {
  font-size: 1.75rem;
  color: var(--ds-dark);
}

/* ---------- Section Spacing ---------- */
.section-padding { padding: 4rem 0; }

.section-heading {
  margin-bottom: 1.5rem;
}

.section-subtext {
  color: #666;
  font-size: 18px;
  max-width: 960px;
  margin: 0 auto 1rem;
}

.bg-light-gray { background: var(--ds-gray-light); }
.bg-dark-navy  { background: var(--ds-dark); color: var(--ds-white); }
.bg-dark-navy h2,
.bg-dark-navy h3,
.bg-dark-navy h4 { color: var(--ds-white); }

/* ---------- Service Cards ---------- */
.service-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 8px;
  transition: transform .2s, box-shadow .2s;
  background: var(--ds-white);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
}

.service-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.service-card h5 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.service-card p {
  font-size: 1rem;
  color: var(--ds-gray-dark);
}

/* ---------- Flag Cloud ---------- */
.flag-cloud {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.flag-row {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
}

.flag-row:nth-child(1) { width: 65%; }   /* 3 flags */
.flag-row:nth-child(2) { width: 83%; }   /* 5 flags */
.flag-row:nth-child(3) { width: 100%; }  /* 6 flags */
.flag-row:nth-child(4) { width: 83%; }   /* 5 flags */
.flag-row:nth-child(5) { width: 33%; }   /* 2 flags */

.flag-cloud img {
  width: 60px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  transition: transform .2s;
}

.flag-cloud img:hover {
  transform: scale(1.15);
}

/* ---------- Gallery Grid ---------- */
.gallery-grid > div {
  flex: 0 0 20%;
  max-width: 20%;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  transition: transform .25s;
}

.gallery-grid img:hover {
  transform: scale(0.92);
}

/* ---------- Stats ---------- */
.stat-number {
  font-size: 80px;
  color: var(--ds-blue);
  margin-bottom: .25rem;
}

.stat-item p {
  font-size: .95rem;
}

/* ---------- Certification Grid ---------- */
.cert-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 2rem;
  align-items: center;
}

.cert-grid img {
  height: 100px;
  width: auto;
  object-fit: contain;
  transition: transform .2s;
}

.cert-grid img:hover {
  transform: scale(1.08);
}

/* ---------- CTA / Contact Section ---------- */
#contact {
  padding-top: 2rem;
}

#contact h2 {
  font-family: 'Syne', sans-serif;
  font-size: 38px;
  font-weight: 400;
  color: var(--ds-gray-dark);
  line-height: 1.34em;
  letter-spacing: 0em;
  margin-bottom: 2.5rem;
}

#contact h6 {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ds-gray-dark);
  line-height: 1.41em;
  letter-spacing: 0em;
}

.contact-block img.contact-flag {
  width: 48px;
  margin-bottom: .75rem;
}

.contact-block a {
  color: var(--ds-gray-dark);
  text-decoration: underline;
}

.contact-block p {
  font-family: 'Questrial', sans-serif;
  font-size: 15px;
  line-height: 1.875;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ds-gray-light);
  color: var(--ds-gray-dark);
  padding: 1.5rem 0;
  font-size: .85rem;
  border-top: 1px solid rgba(255,255,255,.15);
}

.site-footer a {
  color: var(--ds-gray-dark);
  text-decoration: underline;
}

/* ---------- Numbered List ---------- */
.num-item { transition: color .3s, transform .3s; cursor: default; min-height: 30px; }
.num-item .num-digit { transition: color .3s; }
.num-item:hover { color: #222; transform: translateY(-4px); }
.num-item:hover .num-digit { color: var(--ds-dark) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero h1 { font-size: 2.25rem; }
  .hero { min-height: 400px; }
  .stat-number { font-size: 3.5rem; }
}

@media (max-width: 575.98px) {
  .hero h1 { font-size: 1.75rem; }
  .hero { min-height: 340px; }
  .hero .subtitle { font-size: 1rem; }
  .section-padding { padding: 2.5rem 0; }
  .stat-number { font-size: 2.75rem; }
  .cert-grid img { height: 72px; }
  .flag-cloud img { width: 46px; }
}
