@font-face {
  font-family: "Dazzed-Regular";
  src: url("../fonts/Dazzed-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Dazzed-SemiBold";
  src: url("../fonts/Dazzed-SemiBold.ttf") format("truetype");
  font-display: swap;
}

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar-wrapper {
  background-color: #212e7e;
  height: 80px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  border-radius: 10px;
}

@media (max-width: 576px) {

  .navbar-wrapper {
    height: 64px;
  }

  .navbar-wrapper .navbar {
    padding: 0 10px;
    height: 64px;
  }

  /* Single row, no wrapping, items don't overflow */
  .navbar-wrapper .container-fluid {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px;
    margin-top: 0 !important;
    padding: 0;
    height: 64px;
  }

  /* Logo — shrink so it doesn't hog space */
  .navbar-brand {
    flex: 0 0 auto;
  }
  .navbar-brand img {
    width: 80px !important;
    height: auto !important;
    margin-right: 0 !important;
  }

  /* Explore button wrapper — centered, flexible but capped */
  .navbar-center {
    position: static !important;
    transform: none !important;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }

  /* Explore button — compact, no wrap */
  .explore-btn {
    font-size: 11px !important;
    padding: 7px 12px !important;
    white-space: nowrap;
    width: 100%;
    
  }

  /* Language button — shrink, no wrap */
  .language-btn,
  .language-btn:hover {
    font-size: 12px !important;
    padding: 6px 8px !important;
    white-space: nowrap;
  }

  /* Language form — don't grow or shrink too much */
  .navbar-wrapper form.d-inline {
    flex: 0 0 auto;
  }

  /* Banner clears the 64px navbar */
  .page-banner {
    margin-top: 64px !important;
  }
}

/* ─── Explore Button ─────────────────────────────────────── */
.explore-btn {
  width: 100%;
  padding: 12px 36px;
  border-radius: 50px;
  border: none;
  font-size: 18px;
  font-weight: 600;
  color: #212e7e;
  background: rgb(255, 255, 255);
  box-shadow: rgb(17, 23, 63) 0px 0px 24px 0px inset;
}
.explore-btn:hover {
  color: #212e7e;
  transform: translateY(-2px);
  background: linear-gradient(180deg, #b5b9da 0%, #ffffff 45%, #b5b9da 100%);
  box-shadow: rgb(17, 23, 63) 0px 0px 24px 0px inset;
}

@media (max-width: 480px) {
  .explore-btn {
    font-size: 15px;
    padding: 10px 24px;
    
  }
}

/* ─── Language Button ────────────────────────────────────── */
.language-btn,
.language-btn:hover {
  color: white;
  font-size: 18px;
  font-weight: 500;
  font-family: "Dazzed-Regular", "Almarai", sans-serif;
}

@media (max-width: 480px) {
  .language-btn,
  .language-btn:hover {
    font-size: 15px;
    
  }
}

/* ─── Body ───────────────────────────────────────────────── */
body {
  font-family: "Dazzed-Regular";
  color: #2c3e50;
  background-color: #ffffff;
}
html[lang="ar"] body {
  font-family: "Almarai", sans-serif;
}

/* ─── Page Banner ────────────────────────────────────────── */
.page-banner {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  margin-top: 80px;
}
.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
}
.banner-title {
  color: #fff;
  font-size: 5rem;
  font-weight: 800;
  text-align: center;
  padding: 0 1rem;
}

@media (max-width: 992px) {
  .page-banner { height: 420px; }
  .banner-title { font-size: 3.5rem; }
}
@media (max-width: 768px) {
  .page-banner { height: 320px; }
  .banner-title { font-size: 2.5rem; }
}
@media (max-width: 480px) {
  .page-banner { height: 220px; margin-top: 60px; }
  .banner-title { font-size: 1.75rem; }
}

/* ─── Intro Text ─────────────────────────────────────────── */
.intro-text {
  margin-top: 60px;
  font-size: 18px;
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
  text-align: left;
  color: #4a5568;
  line-height: 2;
  padding: 0 20px;
  letter-spacing: 0.05rem;
}

@media (max-width: 768px) {
  .intro-text {
    margin-top: 40px;
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .intro-text {
    margin-top: 28px;
    font-size: 15px;
    padding: 0 16px;
  }
}

/* ─── Explore Research Section ───────────────────────────── */
.explore-research {
  margin-top: 50px;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
}
.explore-research h1 {
  color: #212e7e;
  font-weight: 900;
}

@media (max-width: 480px) {
  .explore-research { margin-top: 32px; }
  .explore-research h1 { font-size: 1.5rem; }
}

/* ─── Research Grid ──────────────────────────────────────── */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
}

@media (max-width: 992px) {
  .research-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 16px;
  }
}
@media (max-width: 576px) {
  .research-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 12px;
  }
}

/* ─── Card ───────────────────────────────────────────────── */
.card-img-wrapper {
  display: flex;
  justify-content: center;
}
.research-img {
  max-width: 100%;
  height: auto;
  margin-top: 25px;
}
.card-body a {
  text-decoration: none;
  color: #212e7e;
  font-weight: 700;
}
.card-body a:hover {
  text-decoration: underline !important;
}
.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── View All Button ────────────────────────────────────── */
.view_all {
  width: 150px;
  border-radius: 50px;
  background: #212e7e;
  color: white;
}
.view_all:hover {
  transform: translateY(-5px);
  background: white;
  border: 2px solid #212e7e;
  color: #212e7e;
}

/* ─── Meet Card ──────────────────────────────────────────── */
.meet-card {
  display: block;
  padding: 4rem;
  text-align: center;
  background: #f5f7ff;
  margin-top: 50px;
  transition: transform 0.3s ease;
  line-height: 45px;
}
.meet-card a {
  text-decoration: none;
  color: #212e7e;
  font-size: 27px;
  font-weight: 500;
}
.meet-card a:hover {
  font-size: 30px;
  font-weight: 700;
}
.meet-card p {
  font-size: 20px;
}

@media (max-width: 768px) {
  .meet-card {
    padding: 2.5rem 1.5rem;
    line-height: 36px;
    margin-top: 32px;
  }
  .meet-card a { font-size: 22px; }
  .meet-card a:hover { font-size: 24px; }
  .meet-card p { font-size: 17px; }
}
@media (max-width: 480px) {
  .meet-card {
    padding: 2rem 1rem;
    line-height: 30px;
  }
  .meet-card a { font-size: 18px; }
  .meet-card p { font-size: 15px; }
}

/* ─── View / PDF Buttons ─────────────────────────────────── */
.view-btn {
  border-color: #212e7e !important;
  color: #212e7e !important;
}
.view-btn:hover {
  background-color: #212e7e !important;
  border: 2px solid #212e7e !important;
  color: white !important;
}
.research-pdf-btn {
  background-color: #212e7e !important;
  border: 2px solid #212e7e !important;
  color: white !important;
  transition: all 0.3s ease;
}
.research-pdf-btn:hover {
  background-color: white !important;
  border: 2px solid #212e7e !important;
  color: #212e7e !important;
}

/* ─── Research Description ───────────────────────────────── */
.research-section {
  border-left: 5px solid #212e7e;
  padding-left: 2rem;
}
.research-description {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #333;
  max-width: 900px;
}
.research-description p { margin-bottom: 1.5rem; text-align: justify; }
.research-description p:first-of-type { font-weight: 500; font-size: 1.15rem; }
.research-description h2,
.research-description h3,
.research-description h4 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: #212e7e;
  font-weight: 600;
}
.research-description ul,
.research-description ol { margin-bottom: 1.5rem; padding-left: 2.5rem; }
.research-description li { margin-bottom: 0.75rem; }
.research-description a { color: #212e7e; text-decoration: underline; }
.research-description a:hover { color: #1a2560; }

@media (max-width: 768px) {
  .research-section {
    padding-left: 1rem;
    border-left-width: 3px;
  }
  .research-description { font-size: 1rem; }
}
@media (max-width: 480px) {
  .research-description { font-size: 0.95rem; }
  .research-description p:first-of-type { font-size: 1rem; }
}

/* ─── Abstract Section ───────────────────────────────────── */
.abstract-section {
  border-left: 5px solid #212e7e;
  padding-left: 2rem;
}

@media (max-width: 768px) {
  .abstract-section {
    padding-left: 1rem;
    border-left-width: 3px;
  }
}

/* ─── Download Button ────────────────────────────────────── */
.download-btn:hover {
  background-color: white !important;
  border: 3px solid #212e7e !important;
  color: #212e7e !important;
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background-color: #212e7e;
  color: #ffffff;
  margin-top: 120px;
}
.footer-title {
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 16px;
  letter-spacing: 0.3px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
}
.footer-links a:hover { color: #ffffff; padding-left: 4px; }
.footer-divider { border-color: rgba(255, 255, 255, 0.15); margin: 40px 0; }
.footer-logo { font-weight: 600; letter-spacing: 1px; opacity: 0.9; }
.footer-socials a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  margin-left: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.footer-socials a:hover { color: #ffffff; transform: translateY(-2px); }

@media (max-width: 768px) {
  .site-footer { margin-top: 60px; }
  .footer-socials a { margin-left: 10px; font-size: 20px; }
}

@media (max-width: 576px) {
  .site-footer { margin-top: 40px; }

  /* Single row, all 3 cols side by side, no wrapping */
  .site-footer .row {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  /* Equal thirds */
  .site-footer .row > [class*="col-"] {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    padding: 0 4px;
  }

  /* Copyright — left */
  .site-footer .row > .col-md-4:first-child { text-align: left !important; }
  .site-footer small { font-size: 10px; line-height: 1.3; display: block; }

  /* Logo — center */
  .site-footer .row > .col-md-4:nth-child(2) { text-align: center !important; }
  .site-footer .row > .col-md-4:nth-child(2) img { width: 80px !important; height: auto !important; }

  /* Socials — right, icons smaller, gap instead of margin */
  .site-footer .text-end { text-align: right !important; }
  .footer-socials { display: flex !important; justify-content: flex-end !important; flex-wrap: wrap; gap: 5px; }
  .footer-socials a { margin-left: 0 !important; font-size: 15px; }
}
/* ─── Secondary Button ───────────────────────────────────── */
.btn-secondary {
  background-color: #212e7e;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(33, 46, 126, 0.2);
}
.btn-secondary:hover {
  background-color: #1a2568;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(33, 46, 126, 0.3);
}
.btn-secondary a { color: #ffffff !important; text-decoration: none; }

/* ─── Container ──────────────────────────────────────────── */
.container {
  max-width: 1200px;
  padding: 0 20px;
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
}

/* ─── Global Touch / Tap Improvements ───────────────────── */
@media (max-width: 768px) {
  /* Ensure tap targets are large enough */
  
  .view_all,
  .view-btn,
  .research-pdf-btn,
  .download-btn,
  .btn-secondary {
    min-height: 44px;
  }

  /* Disable hover transform effects on touch devices to avoid sticky states */
  .view_all:hover,
  .explore-btn:hover {
    transform: none;
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}