:root {
  --isdl-navy: #0f2348;
  --isdl-blue: #1c6ea4;
  --isdl-cyan: #7fd0e6;
  --isdl-teal: #376f7c;
  --isdl-gold: #d7b66f;
  --isdl-sand: #f4efe6;
  --isdl-ink: #162033;
  --isdl-card: rgba(255, 255, 255, 0.82);
  --isdl-shadow: 0 24px 60px rgba(15, 35, 72, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--isdl-ink);
  background:
    radial-gradient(circle at top left, rgba(127, 208, 230, 0.38), transparent 30%),
    radial-gradient(circle at top right, rgba(215, 182, 111, 0.2), transparent 26%),
    linear-gradient(180deg, #f7fbff 0%, #f3f0e8 100%);
}

h1,
h2,
h3,
.brand-title,
.section-kicker,
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.6rem;
}

.site-nav {
  background: rgba(15, 35, 72, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(15, 35, 72, 0.15);
}

.site-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  padding: 4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.88);
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 35, 72, 0.24);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-brand {
  gap: 1rem;
}

.brand-title {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.brand-subtitle {
  font-size: 0.86rem;
  font-weight: 700;
  opacity: 0.84;
  max-width: 21rem;
  line-height: 1.15;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  color: #fff !important;
}

.hero-shell {
  padding: 1.25rem 0 0;
}

.hero-carousel-card {
  padding: 1rem;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(15, 35, 72, 0.96), rgba(28, 110, 164, 0.92));
  box-shadow: var(--isdl-shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.writers-collage {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.writer-cell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 340px;
  background: rgba(255, 255, 255, 0.08);
}

.writer-cell-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.writer-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 35, 72, 0.5) 100%);
  pointer-events: none;
}

.writer-cell-label {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 1;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-actions-below {
  margin-top: 1.5rem;
}

.btn-isdl-primary {
  background: linear-gradient(135deg, var(--isdl-navy), var(--isdl-blue));
  color: #fff;
  border: 0;
  box-shadow: 0 14px 28px rgba(15, 35, 72, 0.22);
}

.btn-isdl-primary:hover,
.btn-isdl-primary:focus {
  color: #fff;
  background: linear-gradient(135deg, #0b1b38, #1a79b8);
}

.btn-isdl-secondary {
  background: rgba(244, 239, 230, 0.96);
  color: var(--isdl-navy);
  border: 1px solid rgba(15, 35, 72, 0.18);
  box-shadow: 0 14px 28px rgba(15, 35, 72, 0.12);
}

.btn-isdl-secondary:hover,
.btn-isdl-secondary:focus {
  color: var(--isdl-navy);
  background: #fff;
}

.writer-portrait-image {
  width: 100%;
  height: 320px;
  border-radius: 22px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.writer-meta span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}

.writer-meta strong {
  font-size: 1.4rem;
}

.section-pad {
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.section-muted {
  background: rgba(255, 255, 255, 0.45);
}

.info-panel,
.feature-card,
.event-card,
.news-card,
.registration-card,
.contact-band {
  border-radius: 24px;
  background: var(--isdl-card);
  box-shadow: var(--isdl-shadow);
  border: 1px solid rgba(15, 35, 72, 0.08);
}

.founder-portrait-card {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 239, 230, 0.96));
  box-shadow: var(--isdl-shadow);
  border: 1px solid rgba(15, 35, 72, 0.08);
}

.founder-portrait-slot {
  min-height: 280px;
  padding: 1rem;
}

.founder-portrait-image,
.founder-portrait-placeholder {
  width: 100%;
  height: 280px;
  border-radius: 20px;
  object-fit: cover;
}

.founder-portrait-placeholder {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(127, 208, 230, 0.3), transparent 26%),
    linear-gradient(135deg, rgba(15, 35, 72, 0.08), rgba(28, 110, 164, 0.14));
  color: var(--isdl-navy);
  border: 1px dashed rgba(15, 35, 72, 0.2);
}

.founder-portrait-placeholder i {
  font-size: 4rem;
}

.founder-portrait-placeholder span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 700;
}

.founder-portrait-caption {
  padding: 0 1.25rem 1.25rem;
}

.info-panel {
  padding: clamp(1.5rem, 2.2vw, 2rem);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 65px rgba(15, 35, 72, 0.2);
}

.info-panel h3 {
  font-size: 1.65rem;
  color: var(--isdl-navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(15, 35, 72, 0.08);
}

.info-panel p {
  color: #33445e;
  line-height: 1.65;
  margin-bottom: 0.85rem;
}

.info-panel .check-list {
  margin: 0.75rem 0 0;
}

.info-panel .check-list li {
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  color: #33445e;
}

.registration-card,
.news-card,
.contact-band {
  padding: 1.5rem;
}

.feature-card {
  padding: 0.5rem;
}

.feature-card .card-body {
  padding: 1.5rem;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, var(--isdl-blue), var(--isdl-cyan));
  margin-bottom: 1rem;
}

.event-card {
  overflow: hidden;
}

.event-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.event-body {
  padding: 1.25rem;
}

.event-year,
.news-date {
  color: var(--isdl-blue);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.check-list li::before {
  content: '\f26e';
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 0;
  color: var(--isdl-blue);
}

.contact-band {
  background: linear-gradient(135deg, var(--isdl-navy), var(--isdl-teal));
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.site-footer {
  background: var(--isdl-navy);
  color: rgba(255, 255, 255, 0.82);
}

.footer-brand {
  font-size: 2rem;
  margin-bottom: 0.35rem;
  color: #fff;
}

.form-control {
  border-radius: 16px;
  border-color: rgba(15, 35, 72, 0.12);
}

.btn {
  border-radius: 999px;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--isdl-blue), var(--isdl-teal));
  border: none;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.38);
}

.carousel-control-prev,
.carousel-control-next {
  width: 7%;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

@media (max-width: 991.98px) {
  .writers-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .writer-cell {
    min-height: 280px;
  }

  .contact-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .site-brand {
    gap: 0.75rem;
  }

  .site-logo {
    width: 52px;
    height: 52px;
  }

  .brand-title {
    font-size: 1.65rem;
  }

  .brand-subtitle {
    font-size: 0.74rem;
  }

  .brand-subtitle {
    display: none;
  }

  .writers-collage {
    grid-template-columns: 1fr;
  }

  .hero-carousel-card {
    padding: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions-below {
    gap: 0.75rem;
  }
}
