/* =========================================================
   Desert Research Association — Design System
   Deep slate + teal accent
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --dra-ink: #0b2c5a;
  --dra-ink-soft: #143a6b;
  --dra-accent: #1f8a4c;
  --dra-accent-dark: #176b3a;
  --dra-mist: #d9eee3;
  --dra-sand-soft: #eef7f1;
  --dra-stone: #eef1f3;
  --dra-muted: #5a6b74;
  --dra-line: #d5dde2;
  --dra-white: #ffffff;
  --dra-amber: #e8922a;
  --dra-radius: 0.35rem;
  --dra-shadow: 0 12px 40px rgba(11, 44, 90, 0.08);
  --dra-font-display: "Fraunces", Georgia, serif;
  --dra-font-body: "Manrope", system-ui, sans-serif;
  --header-offset: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--dra-font-body);
  color: var(--dra-ink);
  background: var(--dra-white);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--dra-accent-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--dra-ink);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--dra-font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dra-ink);
}

.container-narrow {
  max-width: 760px;
}

/* ---------- Top bar (reference structure, DRA colors) ---------- */
.top-bar {
  background: var(--dra-ink);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  padding: 0.4rem 0;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.top-bar a:hover {
  color: var(--dra-mist);
}

.top-bar i {
  color: var(--dra-mist);
  margin-right: 0.35rem;
}

.top-bar .top-email {
  display: block;
  text-align: right;
}

/* ---------- Branding block (reference structure, DRA colors) ---------- */
.site-branding {
  background: var(--dra-white);
  border-bottom: 1px solid var(--dra-line);
  padding: 0.85rem 0 0.95rem;
}

@media (max-height: 900px) and (min-width: 992px) {
  .site-branding {
    padding: 0.55rem 0 0.65rem;
  }

  .brand-logo img {
    width: 130px;
    height: 130px;
  }

  .branding-title {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
  }

  .branding-tagline {
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
  }

  .branding-meta {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .site-navbar .navbar-nav .nav-link {
    padding: 0.65rem 0.75rem !important;
  }

  .hero-slider-wrap,
  .quick-panel {
    max-height: min(320px, 38vh);
  }
}

.branding-inner {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.brand-logo {
  flex-shrink: 0;
  display: block;
}

.brand-logo img {
  width: 140px;
  height: 140px;
}

.branding-copy {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.branding-head {
  min-width: 0;
}

.branding-title {
  display: block;
  font-family: var(--dra-font-display);
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  font-weight: 700;
  color: var(--dra-ink);
  line-height: 1.1;
  margin: 0;
  text-decoration: none;
}

.branding-title:hover {
  color: var(--dra-accent-dark);
}

.branding-tagline {
  margin: 0 0 0.3rem;
  font-family: var(--dra-font-display);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  line-height: 1.25;
  color: var(--dra-ink-soft);
  font-weight: 500;
}

.branding-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--dra-ink);
  line-height: 1.35;
  font-weight: 500;
}

.branding-meta strong {
  color: var(--dra-accent-dark);
}

.branding-meta-accent {
  color: var(--dra-accent-dark);
  font-weight: 700;
  margin-top: 0.1rem;
}

/* ---------- Navbar (solid bar, DRA colors) ---------- */
.site-navbar {
  background: var(--dra-ink);
  padding: 0;
  z-index: 1030;
}

.site-navbar.is-sticky {
  position: sticky;
  top: 0;
  box-shadow: 0 4px 18px rgba(11, 44, 90, 0.28);
}

.site-navbar .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.4rem 0.7rem;
  margin: 0.55rem 0;
  color: #fff;
  align-items: center;
  gap: 0.45rem;
}

@media (max-width: 991.98px) {
  .site-navbar .navbar-toggler {
    display: inline-flex;
  }
}

.site-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(31, 138, 76, 0.35);
}

.site-navbar .navbar-toggler-icon {
  width: 1.2rem;
  height: 1.2rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.site-navbar .navbar-nav {
  width: 100%;
  justify-content: center;
  align-items: center;
}

.site-navbar .navbar-nav .nav-item {
  display: flex;
  align-items: center;
}

.site-navbar .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 0.85rem !important;
  position: relative;
  white-space: nowrap;
  border-radius: 0;
  display: flex;
  align-items: center;
  line-height: 1.2;
  background: transparent;
  transition: transform 0.3s ease;
}

.site-navbar .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.55rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.site-navbar .navbar-nav .nav-link:hover,
.site-navbar .navbar-nav .nav-link:focus-visible {
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  transform: translateY(-1px);
}

.site-navbar .navbar-nav .nav-link:hover::after,
.site-navbar .navbar-nav .nav-link:focus-visible::after {
  transform: scaleX(1);
}

.site-navbar .navbar-nav .nav-link.active {
  color: #fff;
  background: transparent;
}

.site-navbar .navbar-nav .nav-link.active::after {
  display: block;
  transform: scaleX(1);
}

.site-navbar .nav-join {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--dra-accent) !important;
  color: #fff !important;
  margin: 0.55rem 0 0.55rem 0.65rem;
  border-radius: 999px !important;
  padding: 0.42rem 1.15rem !important;
  line-height: 1 !important;
  height: 2rem;
  min-height: 2rem;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-navbar .nav-join::after {
  display: none !important;
}

.site-navbar .nav-join:hover,
.site-navbar .nav-join:focus-visible {
  background: var(--dra-accent) !important;
  color: #fff !important;
  border-radius: 999px !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.site-navbar .nav-join.active {
  background: var(--dra-accent) !important;
  color: #fff !important;
  border-radius: 999px !important;
  transform: none;
  box-shadow: none;
}

.btn-dra {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--dra-accent);
  color: #fff !important;
  border: 1px solid var(--dra-accent);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--dra-radius);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-dra:hover,
.btn-dra:focus-visible {
  background: var(--dra-accent-dark);
  border-color: var(--dra-accent-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

.btn-dra-outline {
  background: transparent;
  color: var(--dra-ink) !important;
  border: 1.5px solid var(--dra-ink);
}

.btn-dra-outline:hover {
  background: var(--dra-ink);
  color: #fff !important;
}

.btn-dra-dark {
  background: var(--dra-ink);
  border-color: var(--dra-ink);
}

.btn-dra-dark:hover {
  background: var(--dra-ink-soft);
  border-color: var(--dra-ink-soft);
}

.btn-dra-ghost {
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.btn-dra-ghost:hover {
  background: #fff;
  color: var(--dra-ink) !important;
  border-color: #fff;
}

/* ---------- Hero / Page banner ---------- */
.hero-home {
  position: relative;
  background: #d9e7db;
  color: var(--dra-ink);
  overflow: visible;
  padding-bottom: 0.25rem;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 25%, rgba(31, 138, 76, 0.12), transparent 48%),
    radial-gradient(ellipse at 88% 70%, rgba(11, 44, 90, 0.06), transparent 42%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  gap: 0.75rem;
  align-items: stretch;
  min-height: 0;
  padding: 0.85rem 0 1.25rem;
}

.hero-slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0.4rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(360px, 42vh);
  height: auto;
  min-height: 0;
}

.hero-slider-wrap .carousel,
.hero-slider-wrap .carousel-inner,
.hero-slider-wrap .carousel-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none;
}

.hero-slider-wrap .carousel {
  position: absolute;
}

.hero-slider-wrap .carousel-item img {
  width: 100%;
  height: 100% !important;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.04);
  transition: transform 5.5s ease-out;
  will-change: transform;
}

.hero-slider-wrap .carousel-item.active img {
  transform: scale(1);
}

/* Horizontal swipe timing */
.hero-slider-wrap .carousel-item {
  transition: transform 0.85s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.hero-slider-wrap .carousel-control-prev,
.hero-slider-wrap .carousel-control-next {
  width: 2.75rem;
  height: 2.75rem;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  opacity: 0.9;
  background: rgba(11, 44, 90, 0.55);
  border-radius: 50%;
  z-index: 5;
}

.hero-slider-wrap .carousel-control-prev {
  left: 0.75rem;
}

.hero-slider-wrap .carousel-control-next {
  right: 0.75rem;
}

.hero-slider-wrap .carousel-control-prev:hover,
.hero-slider-wrap .carousel-control-next:hover {
  opacity: 1;
  background: rgba(11, 44, 90, 0.8);
}

.hero-slider-wrap .carousel-control-prev-icon,
.hero-slider-wrap .carousel-control-next-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.hero-caption,
.hero-actions {
  display: none !important;
}

.quick-panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  max-height: min(360px, 42vh);
  min-height: 0;
  align-self: stretch;
}

.quick-panel a {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 44, 90, 0.14);
  color: var(--dra-ink);
  border-radius: var(--dra-radius);
  backdrop-filter: blur(6px);
  min-height: 0;
}

.quick-panel .qp-icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 1px solid rgba(11, 44, 90, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dra-accent-dark);
  flex-shrink: 0;
  font-size: 0.72rem;
}

.quick-panel strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.quick-panel small {
  display: block;
  color: var(--dra-muted);
  opacity: 1;
  font-size: 0.65rem;
  line-height: 1.25;
}

.quick-panel a:hover {
  background: var(--dra-accent);
  border-color: var(--dra-accent);
  color: #fff;
}

.quick-panel a:hover .qp-icon {
  border-color: #fff;
  color: #fff;
}

.quick-panel a:hover small {
  color: rgba(255, 255, 255, 0.85);
}

.page-hero {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  color: var(--dra-ink);
  background-color: #e4eef6;
  background-image:
    linear-gradient(135deg, rgba(11, 44, 90, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #dce8f2 0%, #e8f0f7 55%, #eef4f8 100%);
  border-bottom: 1px solid var(--dra-line);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 35%, rgba(31, 138, 76, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 90% 55%, rgba(11, 44, 90, 0.1) 0%, transparent 34%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 11px,
      rgba(11, 44, 90, 0.03) 11px,
      rgba(11, 44, 90, 0.03) 12px
    );
  pointer-events: none;
  z-index: 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(38%, 280px);
  background: linear-gradient(90deg, transparent, rgba(11, 44, 90, 0.08));
  pointer-events: none;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.page-hero h1 {
  color: var(--dra-ink);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  margin: 0 0 0.45rem;
}

.breadcrumb-dra {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--dra-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: var(--dra-radius);
  border: 1px solid rgba(11, 44, 90, 0.08);
  margin: 0;
  line-height: 1.3;
  backdrop-filter: blur(4px);
}

.breadcrumb-dra a {
  color: var(--dra-accent-dark);
}

.breadcrumb-dra a:hover {
  color: var(--dra-ink);
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}

.section-muted {
  background: var(--dra-stone);
}

.section-mist {
  background: var(--dra-sand-soft);
}

.section-ink {
  background: var(--dra-ink);
  color: rgba(255, 255, 255, 0.9);
}

.section-ink h2,
.section-ink h3 {
  color: #fff;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dra-accent-dark);
  margin-bottom: 0.65rem;
}

.section-label::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--dra-accent);
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--dra-muted);
  font-size: 1.05rem;
  max-width: 42rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* ---------- Highlight strip ---------- */
.highlight-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--dra-line);
  border: 1px solid var(--dra-line);
  border-radius: var(--dra-radius);
  overflow: hidden;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--dra-shadow);
}

.highlight-item {
  background: var(--dra-white);
  padding: 1.35rem 1.25rem;
  text-align: center;
}

.highlight-item .num {
  font-family: var(--dra-font-display);
  font-size: 1.85rem;
  color: var(--dra-accent);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.highlight-item .label {
  font-size: 0.85rem;
  color: var(--dra-muted);
  font-weight: 600;
}

/* ---------- Events ---------- */
.event-featured {
  position: relative;
  overflow: hidden;
  border-radius: var(--dra-radius);
  background: var(--dra-ink);
  color: #fff;
  height: 100%;
  min-height: 420px;
}

.event-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  position: absolute;
  inset: 0;
}

.event-featured .ef-body {
  position: relative;
  z-index: 1;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  background: linear-gradient(transparent 20%, rgba(11, 44, 90, 0.92));
}

.event-featured .link-more {
  color: #fff;
  margin-top: 0.75rem;
  align-self: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 0.15rem;
}

.event-featured .link-more:hover {
  color: var(--dra-mist);
  border-bottom-color: var(--dra-mist);
}

.date-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--dra-accent);
  color: #fff;
  width: 3.6rem;
  min-height: 3.6rem;
  border-radius: var(--dra-radius);
  font-weight: 700;
  line-height: 1.1;
  flex-shrink: 0;
}

.date-badge .d {
  font-family: var(--dra-font-display);
  font-size: 1.25rem;
}

.date-badge .m {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.date-badge.light {
  background: var(--dra-white);
  color: var(--dra-ink);
  border: 1px solid var(--dra-line);
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
}

.event-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.15rem;
  background: var(--dra-white);
  border: 1px solid var(--dra-line);
  border-radius: var(--dra-radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.event-row:hover {
  border-color: var(--dra-accent);
  transform: translateX(3px);
}

.event-row h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  font-family: var(--dra-font-body);
  font-weight: 700;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--dra-muted);
  margin-bottom: 0.35rem;
}

.link-more {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dra-accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.link-more:hover {
  color: var(--dra-ink);
}

/* ---------- News / Publications ---------- */
.news-tile {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--dra-white);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  position: relative;
  transition: transform 0.3s ease;
}

.news-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--dra-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
  z-index: 2;
}

.news-tile:hover {
  transform: none;
  box-shadow: none;
}

.news-tile:hover::before {
  transform: scaleY(1);
}

.news-tile .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dra-ink);
  border-radius: 0.25rem 0.25rem 0 0;
}

.news-tile .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, opacity 0.35s ease;
  opacity: 0.95;
}

.news-tile:hover .thumb img {
  transform: scale(1.06);
  opacity: 1;
}

.news-tile .date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.7rem;
  padding: 0.3rem 0.65rem;
  background: var(--dra-sand-soft);
  color: var(--dra-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0.2rem;
  border-left: 3px solid var(--dra-accent);
}

.news-tile .body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 0.15rem 0.35rem 0.85rem;
  border-bottom: 1px solid var(--dra-line);
}

.news-tile h3 {
  font-family: var(--dra-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.55rem;
  line-height: 1.3;
  color: var(--dra-ink);
  transition: color 0.25s ease;
}

.news-tile:hover h3 {
  color: var(--dra-accent-dark);
}

.news-tile p {
  font-size: 0.9rem;
  color: var(--dra-muted);
  margin-bottom: 0.9rem;
  line-height: 1.55;
  flex: 1;
}

.news-tile .link-more {
  margin-top: auto;
  padding-bottom: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.news-tile .link-more i {
  transition: transform 0.25s ease;
}

.news-tile:hover .link-more i {
  transform: translateX(4px);
}

/* ---------- News detail ---------- */
.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
}

.news-detail-date,
.news-detail-cat {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 0.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.news-detail-date {
  background: var(--dra-sand-soft);
  color: var(--dra-ink);
  border-left: 3px solid var(--dra-accent);
}

.news-detail-cat {
  background: var(--dra-ink);
  color: #fff;
}

.news-detail-author {
  color: var(--dra-muted);
}

.news-detail-title {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.news-detail-lead {
  font-size: 1.05rem;
  color: var(--dra-muted);
  margin-bottom: 1.35rem;
  line-height: 1.6;
}

.news-detail-figure {
  margin: 0 0 1.5rem;
  border-radius: var(--dra-radius);
  overflow: hidden;
  background: var(--dra-stone);
}

.news-detail-figure img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.news-detail-content h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.65rem;
}

.news-detail-content p,
.news-detail-content li {
  color: var(--dra-ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

.news-detail-content ul {
  padding-left: 1.15rem;
  margin-bottom: 1rem;
}

.news-detail-content li {
  margin-bottom: 0.4rem;
}

.news-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--dra-line);
}

.news-detail-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--dra-line);
}

/* ---------- Event detail ---------- */
.event-detail-aside .side-links li + li {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--dra-line);
}

.event-detail-aside .side-links a {
  color: var(--dra-ink);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.event-detail-aside .side-links a:hover {
  color: var(--dra-accent);
}

.related-news {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-news li {
  padding: 0.7rem 0 !important;
}

.related-news a {
  display: block;
  color: var(--dra-ink);
}

.related-news a:hover {
  color: var(--dra-accent-dark);
}

.related-news strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.related-news small {
  color: var(--dra-muted);
  font-size: 0.75rem;
}

.pub-tile {
  position: relative;
  height: 100%;
  border-radius: var(--dra-radius);
  overflow: hidden;
  background: var(--dra-ink);
  min-height: 320px;
}

.pub-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  position: absolute;
  inset: 0;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.pub-tile:hover img {
  transform: scale(1.06);
  opacity: 0.55;
}

.pub-tile .pt-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(11, 44, 90, 0.95));
  color: #fff;
}

.pub-tile h3 {
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.pub-tile .link-more {
  color: var(--dra-mist);
}

/* ---------- Publication detail ---------- */
.pub-detail-cover {
  border-radius: var(--dra-radius);
  overflow: hidden;
  background: var(--dra-ink);
  box-shadow: var(--dra-shadow);
  aspect-ratio: 3 / 4;
}

.pub-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pub-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--dra-stone);
  border-radius: var(--dra-radius);
  border-left: 3px solid var(--dra-accent);
}

.pub-meta-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dra-muted);
  margin-bottom: 0.2rem;
}

.pub-meta-grid strong {
  font-size: 0.95rem;
  color: var(--dra-ink);
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .pub-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Objectives / info panels ---------- */
.obj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.obj-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  background: var(--dra-white);
  border-left: 3px solid var(--dra-accent);
  border-radius: 0 var(--dra-radius) var(--dra-radius) 0;
  box-shadow: 0 1px 0 var(--dra-line);
}

.obj-item .n {
  font-family: var(--dra-font-display);
  color: var(--dra-accent);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

.obj-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--dra-ink-soft);
}

.info-panel {
  background: var(--dra-white);
  border: 1px solid var(--dra-line);
  border-radius: var(--dra-radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.info-panel .ip-head {
  background: var(--dra-ink);
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.info-panel .ip-body {
  padding: 1rem;
}

.info-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-panel li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--dra-line);
  font-size: 0.9rem;
}

.info-panel li:last-child {
  border-bottom: 0;
}

.deadline-table,
.fees-table,
.bank-table,
.downloads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.deadline-table th,
.fees-table th,
.bank-table th,
.downloads-table th {
  background: var(--dra-ink);
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: 600;
  text-align: left;
}

.fees-table th:first-child,
.deadline-table th:first-child {
  background: var(--dra-accent);
}

.deadline-table td,
.fees-table td,
.bank-table td,
.downloads-table td {
  padding: 0.7rem 1rem;
  border: 1px solid var(--dra-line);
  vertical-align: middle;
}

.deadline-table tr:nth-child(even),
.fees-table tr:nth-child(even),
.downloads-table tbody tr:nth-child(even) {
  background: var(--dra-stone);
}

.downloads-table {
  background: #fff;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--dra-radius);
  border: 1px solid var(--dra-line);
}

/* ---------- Forms ---------- */
.form-shell {
  background: var(--dra-white);
  border: 1px solid var(--dra-line);
  border-radius: var(--dra-radius);
  padding: 1.75rem;
  box-shadow: var(--dra-shadow);
}

.form-shell .form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--dra-ink);
}

.form-shell .form-control,
.form-shell .form-select {
  background: var(--dra-stone);
  border: 1px solid transparent;
  border-radius: var(--dra-radius);
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
}

.form-shell .form-control:focus,
.form-shell .form-select:focus {
  background: #fff;
  border-color: var(--dra-accent);
  box-shadow: 0 0 0 0.2rem rgba(31, 138, 76, 0.18);
}

.form-note {
  font-size: 0.95rem;
  color: var(--dra-muted);
  margin-bottom: 1.25rem;
}

.contact-block {
  padding: 1.25rem;
  border-radius: var(--dra-radius);
  margin-bottom: 1rem;
  height: 100%;
}

.contact-block.address {
  background: #e7f1ef;
}

.contact-block.phone {
  background: #e8eef2;
}

.contact-block.email {
  background: #e9edf0;
}

.contact-block .cb-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--dra-ink);
  color: var(--dra-mist);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.contact-block h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.contact-block p,
.contact-block a {
  margin: 0;
  color: var(--dra-ink-soft);
  font-size: 0.95rem;
}

/* ---------- Gallery ---------- */
.gallery-group-title {
  background: var(--dra-ink);
  color: #fff;
  padding: 0.85rem 1.15rem;
  font-family: var(--dra-font-display);
  font-size: 1.25rem;
  margin: 0 0 1.25rem;
  border-radius: var(--dra-radius);
  border-left: 4px solid var(--dra-accent);
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--dra-radius);
  margin-bottom: 1.25rem;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--dra-stone);
}

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

.gallery-item::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 44, 90, 0.45);
  color: #fff;
  font-size: 1.35rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 28, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox-overlay img {
  max-width: min(96vw, 1000px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--dra-radius);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--dra-accent);
  color: #fff;
  border: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
}

/* ---------- Quote / CTA band ---------- */
.cta-band {
  position: relative;
  padding: 4rem 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(31, 138, 76, 0.22), transparent 50%),
    linear-gradient(135deg, var(--dra-ink) 0%, var(--dra-ink-soft) 100%);
  color: #fff;
  overflow: hidden;
}

.cta-band::before {
  display: none;
}

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

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(31, 138, 76, 0.12), transparent 45%),
    linear-gradient(180deg, var(--dra-ink-soft) 0%, var(--dra-ink) 100%);
  color: rgba(255, 255, 255, 0.85);
  position: relative;
}

.site-footer::before {
  display: none;
}

.site-footer .footer-inner {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 2rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 1.15rem;
}

.site-footer .footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.site-footer .footer-brand img {
  width: 48px;
  height: 48px;
}

.site-footer .footer-brand strong {
  color: #fff;
  font-family: var(--dra-font-display);
  display: block;
}

.site-footer p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

.footer-contact li,
.footer-links li {
  list-style: none;
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact,
.footer-links {
  padding: 0;
  margin: 0;
}

.footer-contact i {
  color: var(--dra-amber);
  width: 1.15rem;
  margin-right: 0.4rem;
}

.site-footer a,
.footer-contact a,
.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.site-footer a:hover,
.footer-contact a:hover,
.footer-links a:hover {
  color: var(--dra-mist);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
}

.footer-links a::before {
  content: "›";
  margin-right: 0.45rem;
  color: var(--dra-amber);
  font-weight: 700;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.95rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom a {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 0.55rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.footer-social a:hover {
  background: var(--dra-accent);
  border-color: var(--dra-accent);
  color: #fff;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: var(--dra-radius);
  background: var(--dra-accent);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(31, 138, 76, 0.35);
}

.back-to-top.is-visible {
  display: inline-flex;
}

.back-to-top:hover {
  background: var(--dra-accent-dark);
}

/* ---------- Reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Pagination (Bootstrap / Laravel-compatible) ---------- */
.pagination {
  --bs-pagination-padding-x: 0.85rem;
  --bs-pagination-padding-y: 0.5rem;
  --bs-pagination-font-size: 0.9rem;
  --bs-pagination-color: var(--dra-ink);
  --bs-pagination-bg: var(--dra-white);
  --bs-pagination-border-width: 1px;
  --bs-pagination-border-color: var(--dra-line);
  --bs-pagination-border-radius: var(--dra-radius);
  --bs-pagination-hover-color: var(--dra-white);
  --bs-pagination-hover-bg: var(--dra-accent);
  --bs-pagination-hover-border-color: var(--dra-accent);
  --bs-pagination-focus-color: var(--dra-white);
  --bs-pagination-focus-bg: var(--dra-accent-dark);
  --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(31, 138, 76, 0.25);
  --bs-pagination-active-color: #fff;
  --bs-pagination-active-bg: var(--dra-accent);
  --bs-pagination-active-border-color: var(--dra-accent);
  --bs-pagination-disabled-color: var(--dra-muted);
  --bs-pagination-disabled-bg: var(--dra-stone);
  --bs-pagination-disabled-border-color: var(--dra-line);
  gap: 0.35rem;
  margin-bottom: 0;
}

.pagination .page-item {
  margin: 0;
}

.pagination .page-link {
  min-width: 2.4rem;
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--dra-radius) !important;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination .page-item.active .page-link {
  color: #fff;
  background-color: var(--dra-accent);
  border-color: var(--dra-accent);
  box-shadow: 0 6px 16px rgba(31, 138, 76, 0.28);
}

.pagination .page-item.disabled .page-link,
.pagination .page-item.disabled span.page-link {
  color: var(--dra-muted);
  background-color: var(--dra-stone);
  border-color: var(--dra-line);
  opacity: 1;
}

.pagination .page-link:hover {
  z-index: 2;
}

.pagination .page-link:focus {
  z-index: 3;
}

/* Alias kept for existing markup */
.pagination-dra {
  /* inherits .pagination redesign */
}

/* ---------- Alert / form feedback ---------- */
.form-feedback {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--dra-radius);
  background: #e7f0ec;
  color: #1a4a3a;
  border: 1px solid #b7d4c6;
  font-weight: 600;
}

.form-feedback.is-visible {
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-slider-wrap {
    aspect-ratio: 16 / 9;
    max-height: min(300px, 40vh);
    height: auto;
    min-height: 0;
  }

  .hero-slider-wrap .carousel,
  .hero-slider-wrap .carousel-inner,
  .hero-slider-wrap .carousel-item,
  .hero-slider-wrap .carousel-item img {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none;
  }

  .quick-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: auto;
  }

  .quick-panel a {
    min-height: 3.75rem;
    padding: 0.75rem 0.9rem;
  }

  .highlight-strip {
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
  }

  .branding-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.85rem;
    row-gap: 0.35rem;
    text-align: left;
  }

  .branding-copy {
    display: contents;
    text-align: left;
  }

  .brand-logo {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .brand-logo img {
    width: 78px;
    height: 78px;
    margin: 0;
  }

  .branding-head {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-width: 0;
  }

  .branding-title {
    font-size: 1.28rem;
    line-height: 1.1;
    margin: 0;
  }

  .branding-tagline {
    font-size: 0.88rem;
    line-height: 1.2;
    margin: 0;
  }

  .branding-meta {
    display: block;
    grid-column: 1 / -1;
    font-size: 0.88rem;
    line-height: 1.28;
    margin: 0;
  }

  .branding-meta-accent {
    margin-top: 0.08rem;
  }

  .site-branding {
    padding: 0.65rem 0;
  }

  .site-navbar .navbar-nav .nav-link {
    text-align: left;
    padding: 0.7rem 0.85rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-navbar .nav-join {
    margin: 0.75rem 0.85rem 1rem;
    text-align: center;
    display: inline-flex !important;
    width: auto;
    height: 2.25rem;
    min-height: 2.25rem;
  }

  .page-hero {
    padding-top: 1.35rem !important;
    padding-bottom: 1.35rem !important;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .section-head {
    margin-bottom: 1.25rem;
    gap: 0.75rem;
  }

  .obj-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .top-bar {
    font-size: 0.75rem;
    padding: 0.35rem 0;
  }

  .top-bar .top-email {
    text-align: left;
    margin-top: 0.2rem;
  }

  .brand-logo img {
    width: 70px;
    height: 70px;
  }

  .branding-title {
    font-size: 1.18rem;
  }

  .branding-tagline {
    font-size: 0.84rem;
  }

  .branding-meta {
    font-size: 0.84rem;
  }

  .quick-panel {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .quick-panel a {
    padding: 0.7rem 0.65rem;
  }

  .quick-panel strong {
    font-size: 0.75rem;
  }

  .quick-panel small {
    font-size: 0.62rem;
  }

  .highlight-strip {
    grid-template-columns: 1fr;
  }

  .hero-caption,
  .hero-caption .brand-signal,
  .hero-caption p {
    display: none !important;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-head .btn-dra {
    width: 100%;
    justify-content: center;
  }

  .event-row {
    gap: 0.75rem;
    padding: 0.9rem 0.85rem;
  }

  .event-row h3 {
    font-size: 0.95rem;
  }

  .form-shell {
    padding: 1.15rem;
  }
}
