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

body {
  font-family: var(--font-sans);
  background: var(--off-white);
  color: var(--navy);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-weight: 700;
}

/* Navbar */
.ds-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.ds-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.ds-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.ds-nav__badge { border-radius: 50%; }
.ds-nav__wordmark { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; }
.ds-nav__digital { color: #fff; }
.ds-nav__sreeni  { color: var(--light-teal); }

.ds-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.ds-nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.ds-nav__links a:hover { color: var(--light-teal); }

/* Mobile hamburger toggle (plain flexbox nav — no Bootstrap collapse) */
.ds-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}
.ds-nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Hero section (dark — matches YouTube banner) */
.ds-hero {
  background: var(--navy);
  color: #fff;
  padding: 6rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}
/* Ghost DS watermark top-right */
.ds-hero::after {
  content: 'DS';
  position: absolute;
  right: -2rem;
  top: -1rem;
  font-family: var(--font-serif);
  font-size: clamp(180px, 25vw, 320px);
  font-weight: 700;
  color: #0F3A55;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.ds-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
/* Two-column hero layout support (text + image) via Bootstrap row/col nested inside .ds-hero__inner */
.ds-hero__inner .row {
  align-items: center;
}
/* Left accent bar */
.ds-hero__inner::before {
  content: '';
  display: block;
  width: 5px;
  height: 60px;
  background: var(--light-teal);
  border-radius: 3px;
  margin-bottom: 1.5rem;
}
.ds-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 1rem;
}
.ds-hero h1 span { color: var(--light-teal); }
.ds-hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 2rem;
}
.ds-hero__tagline {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.ds-hero__tagline span { margin: 0 0.5rem; color: var(--teal); }

/* CTA Buttons */
.btn-primary {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: var(--light-teal);
  color: var(--navy);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--light-teal);
  border: 2px solid var(--light-teal);
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.btn-outline:hover {
  background: var(--light-teal);
  color: var(--navy);
}

/* Section defaults (light background) */
.ds-section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.ds-section__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.ds-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}
.ds-section__divider {
  width: 60px;
  height: 4px;
  background: var(--teal);
  border-radius: 2px;
  margin-bottom: 2.5rem;
}

/* Cards (industries / services) */
.ds-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(12,43,69,0.08);
  border-top: 4px solid var(--teal);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ds-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(12,43,69,0.14);
}
.ds-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.ds-card p {
  font-size: 0.9rem;
  color: var(--muted-dark);
}

.ds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Dark alternate sections */
.ds-section--dark {
  background: var(--navy);
  padding: 5rem 1.5rem;
}
.ds-section--dark .ds-section__label { color: var(--light-teal); }
.ds-section--dark h2 { color: #fff; }
.ds-section--dark p  { color: var(--muted); }
.ds-section--dark .ds-card {
  background: #0F3A55;
  border-top-color: var(--light-teal);
}
.ds-section--dark .ds-card h3 { color: #fff; }
.ds-section--dark .ds-card p { color: var(--muted); }

/* Contact form (Flask-WTF) */
.ds-form { max-width: 640px; margin: 0 auto; }
.ds-form .form-group { margin-bottom: 1.25rem; }
.ds-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.ds-form input,
.ds-form textarea,
.ds-form select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #C8D8E8;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: #fff;
  color: var(--navy);
  transition: border-color 0.2s;
}
.ds-form input:focus,
.ds-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15,110,86,0.12);
}
.ds-form .error-msg {
  font-size: 0.8rem;
  color: #C0392B;
  margin-top: 0.25rem;
}

/* Flask flash messages */
.flash-success {
  background: #D4EFDF;
  border-left: 4px solid var(--teal);
  color: #1E5631;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.flash-error {
  background: #FDECEA;
  border-left: 4px solid #C0392B;
  color: #78281F;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
/* Extra flash categories used across the app (warning + default "message") */
.flash-warning {
  background: #FDF3D8;
  border-left: 4px solid #B7862A;
  color: #6B4E11;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.flash-message {
  background: var(--pale-blue);
  border-left: 4px solid var(--teal);
  color: var(--navy);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Footer */
.ds-footer {
  background: var(--navy);
  padding: 3rem 1.5rem;
  border-top: 3px solid var(--teal);
}
.ds-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}
.ds-footer__brand p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}
.ds-footer__links {
  display: flex;
  gap: 1.5rem;
}
.ds-footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.ds-footer__links a:hover { color: var(--light-teal); }
.ds-footer__copy {
  width: 100%;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid #1A4A6A;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .ds-nav__toggle { display: flex; }
  .ds-nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--navy);
    box-shadow: 0 8px 12px rgba(0,0,0,0.25);
    padding: 0.5rem 1.5rem 1rem;
  }
  .ds-nav--open .ds-nav__links { display: flex; }
  .ds-nav__links li { width: 100%; }
  .ds-nav__links a { display: block; padding: 0.6rem 0; font-size: 0.9rem; }
  .ds-hero { padding: 4rem 1rem 3rem; }
  .ds-grid { grid-template-columns: 1fr; }
  .ds-footer__inner { flex-direction: column; }
}
@media (max-width: 480px) {
  .ds-nav__wordmark { display: none; } /* badge only on very small screens */
}

/* ── Hero photo ──────────────────────────────────────────── */
.ds-hero__photo {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--light-teal);
  box-shadow: 0 0 0 8px rgba(93,202,165,0.15);
  display: block;
  margin: 0 auto;
}
.ds-hero__label {
  font-size: 11pt;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-teal);
  margin-bottom: 0.75rem;
}

/* ── Credibility strip ───────────────────────────────────── */
.ds-credibility {
  background: #071E30;
  padding: 1rem 1.5rem;
}
.ds-credibility__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.ds-credibility__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}
.ds-credibility__item i {
  color: var(--light-teal);
  font-size: 1.1rem;
}

/* ── Topics grid ──────────────────────────────────────────── */
.ds-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 992px) {
  .ds-topics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .ds-topics-grid { grid-template-columns: 1fr; }
}

/* ── Topic cards ─────────────────────────────────────────── */
.ds-topic-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(12,43,69,0.08);
  border-bottom: 3px solid var(--teal);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.ds-topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(12,43,69,0.15);
  border-bottom-color: var(--light-teal);
  color: inherit;
  text-decoration: none;
}
.ds-topic-card__img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
}
.ds-topic-card__fallback {
  width: 100%;
  height: 140px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--light-teal);
}
.ds-topic-card__body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}
.ds-topic-card__body i {
  color: var(--light-teal);
  font-size: 1.1rem;
}
.ds-topic-card__body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0.2rem 0;
  font-family: var(--font-serif);
}
.ds-topic-card__link {
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 600;
  margin-top: auto;
}

/* ── Featured video thumbnail ────────────────────────────── */
.ds-video-thumb {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.ds-video-thumb img {
  width: 100%;
  display: block;
}
.ds-video-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  transition: background 0.2s;
}
.ds-video-thumb__play i {
  font-size: 4rem;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.ds-video-thumb:hover .ds-video-thumb__play {
  background: rgba(0,0,0,0.1);
}
.ds-video-more-link {
  display: inline-block;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.ds-video-more-link:hover {
  color: var(--light-teal);
}

/* ── About section ────────────────────────────────────────── */
.ds-about {
  max-width: 780px;
  margin: 0 auto;
}

/* ── About social icons ──────────────────────────────────── */
.ds-social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.ds-social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
}
.ds-social-btn:hover {
  background: var(--navy);
  color: #fff;
}

/* ── Academy / Consulting split ──────────────────────────── */
.ds-split {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 800px;
  margin: 0 auto;
}
.ds-split__divider {
  background: var(--teal);
  align-self: stretch;
  opacity: 0.4;
}
.ds-split__col i {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}
.ds-split__col h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.ds-split__col p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* ── Responsive (Step 3/4 additions) ─────────────────────── */
@media (max-width: 992px) {
  .ds-hero__photo { width: 220px; height: 220px; }
}
@media (max-width: 768px) {
  .ds-hero__photo { width: 200px; height: 200px; margin-bottom: 1.5rem; }
  .ds-credibility__inner { gap: 1.25rem; }
  .ds-split { grid-template-columns: 1fr; }
  .ds-split__divider { display: none; }
}
