/* ===== Reset & Base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background-color: #f0c14b;
  color: #1a1f3d;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 24px 0;
}

.nav-container {
  max-width: 1152px;
  margin: 0 auto;
  background: #ffffff;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 900px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled .nav-container {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.nav-logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.nav-logo img {
  height: 85px;
  width: auto;
  display: block;
}

@media (max-width: 600px) {
  .nav-logo img {
    height: 70px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #c9941c;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  background: #f0c14b;
  color: #5c4200;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background-color 0.2s ease;
}

.btn-contact:hover {
  background: #e5b847;
}

.menu-toggle {
  display: none;
  padding: 8px;
  color: #1e293b;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-menu {
  display: none;
  max-width: 1152px;
  margin: 8px auto 0;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 20px;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: #1e293b;
}

.mobile-menu .btn-contact {
  justify-content: center;
  padding: 12px 24px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: #161c3a;
  padding-top: 120px;
  overflow: hidden;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 0 40px;
}

.hero-content {
  color: #fff;
  padding: 64px 0;
  padding-right: 24px;
}

.hero-content h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 18px;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  background: #d9a417;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: #c9941c;
  transform: translateY(-1px);
}

.hero-image {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/*
.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f3cd74;
  border-radius: 36px;  
}
*/

.hero-image img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 640px;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
  border-radius: 0px;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.2));
}

/* ===== Trusted Section ===== */
.trusted {
  background: #f0c14b;
  padding: 96px 24px;
}

.trusted-card {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 72px 48px;
  text-align: center;
}

.trusted-card h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.trusted-card p {
  font-size: 20px;
  color: #475569;
}

/* ===== Services ===== */
.services {
  background: #fff;
  padding: 112px 24px;
}

.services-container {
  max-width: 1152px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 80px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card .image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #f1f5f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.03);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  color: #475569;
  line-height: 1.65;
  max-width: 380px;
}

/* ===== About ===== */
.about {
  background: #161c3a;
  padding: 112px 24px;
}

.about-container {
  max-width: 1152px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-content {
  color: #fff;
}

.about-content h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 32px;
}

.about-content p {
  font-size: 16px;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* ===== Contact ===== */
.contact {
  background: #f6f1e3;
  padding: 112px 24px;
}

.contact-container {
  max-width: 1152px;
  margin: 0 auto;
}

.contact-form-card {
  max-width: 768px;
  margin: 0 auto 96px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 48px;
}

.contact-form-card h2 {
  text-align: center;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-family: inherit;
  font-size: 15px;
  color: #0f172a;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form input {
  border-radius: 999px;
}

.contact-form textarea {
  border-radius: 16px;
  resize: none;
  margin-bottom: 16px;
  min-height: 140px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: #f0c14b;
  box-shadow: 0 0 0 3px rgba(240, 193, 75, 0.25);
}

.form-submit {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.btn-submit {
  padding: 14px 40px;
  border-radius: 999px;
  background: #d9a417;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s ease;
}

.btn-submit:hover {
  background: #c9941c;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.contacts-heading {
  text-align: center;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 48px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info,
.contact-map {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.contact-info {
  padding: 40px;
}

.contact-info h3 {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 24px;
}

.contact-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #334155;
  font-size: 15px;
  line-height: 1.55;
}

.contact-info svg {
  width: 20px;
  height: 20px;
  color: #c9941c;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info strong {
  font-weight: 600;
}

.contact-info a {
  color: #c9941c;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-map {
  min-height: 340px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

/* ===== Footer ===== */
.footer {
  background: #000;
  color: #cbd5e1;
  padding: 40px 24px;
  text-align: center;
  font-size: 15px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #0f172a;
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 360px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.toast-description {
  font-size: 14px;
  color: #cbd5e1;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links,
  .nav-container > .btn-contact {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 110px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 0;
  }

  .hero-content {
    padding: 40px 0;
  }

  .hero-image {
    height: auto;
    padding: 24px 0;
  }

  .hero-image::before {
    border-radius: 24px;
    inset: 16px 0;
  }

  .trusted {
    padding: 64px 20px;
  }

  .trusted-card {
    padding: 48px 24px;
  }

  .services {
    padding: 72px 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-title {
    margin-bottom: 56px;
  }

  .about {
    padding: 72px 20px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact {
    padding: 72px 20px;
  }

  .contact-form-card {
    padding: 32px 24px;
    margin-bottom: 64px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-info {
    padding: 28px;
  }
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 14px 32px;
  border-radius: 999px;
  background: #d9a417;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-download::before {
  content: "↓";
  font-size: 18px;
}

.btn-download:hover {
  background: #d9a417;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Page Header (for subpages) ===== */
.page-header {
  background: #161c3a;
  padding: 140px 24px 64px;
  color: #fff;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.page-header p {
  font-size: 18px;
  color: rgba(226, 232, 240, 0.85);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.page-header .accent-bar {
  width: 72px;
  height: 4px;
  background: #f0c14b;
  border-radius: 4px;
  margin: 0 auto 24px;
}

/* ===== News Page ===== */
.news-section {
  background: #f8fafc;
  padding: 64px 24px 96px;
  min-height: 60vh;
}

.news-container {
  max-width: 1152px;
  margin: 0 auto;
}

.news-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.news-tab {
  padding: 10px 22px;
  border-radius: 999px;
  background: #fff;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.news-tab:hover {
  border-color: #d9a417;
  color: #c9941c;
}

.news-tab.active {
  background: #161c3a;
  color: #fff;
  border-color: #161c3a;
}

.news-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #64748b;
}

.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.refresh-btn:hover {
  background: #f1f5f9;
}

.refresh-btn svg {
  width: 14px;
  height: 14px;
}

.refresh-btn.spinning svg {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.news-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  overflow: hidden;
  position: relative;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-image .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
}

.news-card-image .placeholder svg {
  width: 56px;
  height: 56px;
}

.news-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.news-tag.international {
  background: #dbeafe;
  color: #1e3a8a;
}

.news-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card p {
  font-size: 14px;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #94a3b8;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.news-card-footer .source {
  font-weight: 600;
  color: #334155;
}

.news-empty,
.news-loading,
.news-error {
  text-align: center;
  padding: 80px 20px;
  color: #64748b;
  font-size: 15px;
}

.news-loading .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #d9a417;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

/* ===== Team Page ===== */
.team-section {
  background: #f8fafc;
  padding: 72px 24px 112px;
}

.team-container {
  max-width: 1100px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.team-card {
  background: #fff;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  box-shadow: 0 8px 22px rgba(22, 28, 58, 0.2);
  background: linear-gradient(135deg, #161c3a 0%, #2a3460 60%, #d9a417 140%);
  border: 4px solid #fff;
  outline: 3px solid #f0c14b;
  outline-offset: -2px;
}

.avatar.variant-b {
  background: linear-gradient(135deg, #0e7c66 0%, #161c3a 70%, #d9a417 140%);
  outline-color: #0e7c66;
}

.team-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.team-role {
  font-size: 14px;
  font-weight: 600;
  color: #c9941c;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.team-bio {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  max-width: 440px;
}

.team-card .divider {
  width: 40px;
  height: 3px;
  background: #f0c14b;
  border-radius: 3px;
  margin: 0 auto 18px;
}

/* ===== Responsive (news + team) ===== */
@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .page-header {
    padding: 120px 20px 48px;
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .team-card {
    padding: 28px 20px;
  }
  .avatar {
    width: 110px;
    height: 110px;
    font-size: 36px;
  }
}

/* ===== News Preview Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  flex-shrink: 0;
  overflow: hidden;
}

.modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-hero .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
}

.modal-hero .placeholder svg {
  width: 72px;
  height: 72px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.modal-close:hover {
  background: #0f172a;
  transform: scale(1.05);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-body {
  padding: 28px 32px 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.modal-meta .news-tag {
  margin: 0;
}

.modal-meta .dot {
  color: #cbd5e1;
}

.modal-meta .source-name {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.modal-meta .publisher,
.modal-meta .date {
  font-size: 13px;
  color: #64748b;
}

.modal h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.modal-excerpt {
  font-size: 16px;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 8px;
}

.modal-note {
  margin-top: 18px;
  padding: 12px 14px;
  background: #fef9ed;
  border-left: 3px solid #d9a417;
  border-radius: 6px;
  font-size: 13px;
  color: #78500f;
  line-height: 1.55;
}

.modal-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
  flex-wrap: wrap;
}

.modal-footer .spacer {
  flex: 1;
}

.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #d9a417;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn-read:hover {
  background: #c9941c;
  transform: translateY(-1px);
}

.btn-read svg {
  width: 16px;
  height: 16px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background: #f1f5f9;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .modal-body {
    padding: 20px 22px 18px;
  }
  .modal-footer {
    padding: 14px 22px;
  }
  .modal-footer .btn-read,
  .modal-footer .btn-secondary {
    flex: 1;
    justify-content: center;
  }
}

/* News card renders as a button now (opens modal) — strip default button styles */
button.news-card {
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
}

/* Modal excerpt — supports multiple paragraphs loaded from /api/news/preview */
.modal-excerpt p {
  font-size: 16px;
  color: #334155;
  line-height: 1.7;
  margin: 0 0 12px;
}
.modal-excerpt p:last-child {
  margin-bottom: 0;
}
.modal-excerpt .preview-hint {
  font-size: 14px;
  color: #64748b;
  font-style: italic;
}

.preview-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 15px;
}

.preview-loading .dots {
  display: inline-flex;
  gap: 4px;
}

.preview-loading .dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9a417;
  animation: pulse-dot 1.2s ease-in-out infinite;
}

.preview-loading .dots i:nth-child(2) { animation-delay: 0.15s; }
.preview-loading .dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes pulse-dot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* Branded placeholder for cards without an original article image */
.branded-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}

.branded-placeholder::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14), transparent 45%),
    radial-gradient(circle at 75% 80%, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
}

.branded-placeholder .bp-icon {
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 1;
}

.branded-placeholder .bp-label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  z-index: 1;
}

.avatar-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 3px solid #c9941c;
}


/* Modal hero version is slightly larger */
.modal-hero .branded-placeholder .bp-icon { width: 60px; height: 60px; }
.modal-hero .branded-placeholder .bp-label { font-size: 18px; letter-spacing: 0.14em; }

/* Make sure news-card-image stays positioned for the absolute placeholder */
.news-card-image { position: relative; }
