@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Poppins:wght@400;600&display=swap');

/* Colours */
:root[data-theme="dark"], [data-theme="dark"] {
  --light-color: #eee;
  --dark-color: #0e0e0e;
  --gray-1: #222;
  --gray-2: #555;
  --gray-3: #aaa;
  --gray-4: #f6f6f6;
  --light-blue: #007acc;
  --dark-blue: #005bb5;
  --light-red: #ff3838;
  --dark-red: #cc0000;

  --pico-primary: #007acc;
  --pico-primary-hover: #005bb5;
  --pico-primary-border: #007acc;
  --q2-accent-color: #007acc;
  --pico-ins-color: #007acc;

  --pico-del-color: #ff3838;

  --pico-background-color: #0e0e0e;
  /* Main background */
  --pico-card-background-color: #222222;
  /* Cards & dropdowns */
  --pico-form-element-background-color: #222222;

  --pico-color: #eeeeee;
  /* Primary body text */
  --pico-h1-color: #f8fafc;
  /* Main headings */
  --pico-h2-color: #f8fafc;
  --pico-h3-color: #f8fafc;
  --pico-muted-color: #aaaaaa;

  --pico-border-color: rgba(255, 255, 255, 0.12);
  --pico-card-border-color: rgba(255, 255, 255, 0.08);
  --pico-card-border-color-hover: rgba(255, 255, 255, 0.15);
  --pico-form-element-border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="light"],
:root:not([data-theme="dark"]) {
  /* Accent & Interactive Colors */
  --pico-primary: #005bb5;
  --pico-primary-hover: #007acc;
  --pico-primary-border: #005bb5;
  --q2-accent-color: #005bb5;
  --pico-ins-color: #005bb5;

  /* Utility Status Colors */
  --pico-del-color: #cc0000;

  /* Background Surface Colors */
  --pico-background-color: #f6f6f6;
  --pico-card-background-color: #fdfdfd;
  --pico-form-element-background-color: #fdfdfd;

  /* Typography Colors */
  --pico-color: #0e0e0e;
  --pico-h1-color: #0e0e0e;
  --pico-h2-color: #0e0e0e;
  --pico-h3-color: #0e0e0e;
  --pico-muted-color: #555555;

  /* Borders & Dividers */
  --pico-border-color: #e5e7eb;
  --pico-card-border-color: #e5e7eb;
  --pico-form-element-border-color: #d1d5db;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    /* Accent & Interactive Colors */
    --pico-primary: #005bb5;
    --pico-primary-hover: #007acc;
    --pico-primary-border: #005bb5;
    --q2-accent-color: #005bb5;
    --pico-ins-color: #005bb5;

    /* Utility Status Colors */
    --pico-del-color: #cc0000;

    /* Background Surface Colors */
    --pico-background-color: #f6f6f6;
    --pico-card-background-color: #fdfdfd;
    --pico-form-element-background-color: #fdfdfd;

    /* Typography Colors */
    --pico-color: #0e0e0e;
    --pico-h1-color: #0e0e0e;
    --pico-h2-color: #0e0e0e;
    --pico-h3-color: #0e0e0e;
    --pico-muted-color: #555555;

    /* Borders & Dividers */
    --pico-border-color: #e5e7eb;
    --pico-card-border-color: #e5e7eb;
    --pico-form-element-border-color: #d1d5db;
  }
}

.text-justify {
  text-align: justify;
  hyphens: auto;
}

.gray-text {
  color: var(--pico-muted-color);
}
.blue-text {
  color: var(--q2-accent-color);
}
.red-text {
  color: var(--pico-del-color);
}

.search-container input, .filter-group select {
  background-color: var(--pico-form-element-background-color);
  border: 1px solid var(--pico-form-element-border-color);
}

.modular-hero h1 {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.modular-hero h6 {
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.modular-hero p {
  font-size: 1.1rem;
  max-width: 38rem;
  margin-bottom: 2rem;
  margin-left: 0;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  row-gap: 1rem;
  align-items: center;
  width: 100%;
}

.hero-buttons .pill-btn {
  border-radius: 1.85rem;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.hero-buttons .hero-btn {
  background-color: var(--pico-ins-color);
  border: 1px solid var(--pico-primary-hover);
}

.hero-buttons .hero-btn:hover {
  background-color: var(--pico-primary-hover);
  border-color: var(--pico-primary-border);
  transform: translateY(-2px);
}

.hero-buttons .hero-btn-outline {
  background-color: transparent;
  border: 1px solid var(--pico-muted-color);
}

.hero-buttons .hero-btn-outline:hover {
  transform: translateY(-2px);
}

.hero.overlay-left-dark-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
}

.hero.overlay-left-dark-gradient .container {
  position: relative;
  z-index: 2;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero.hero-fullscreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.text-image-split {
  display: flex;
  flex-direction: column;
  column-gap: 5rem;
  row-gap: 1rem;
  align-items: center;
  margin-block: 2rem;
}

@media (min-width: 768px) {
  .text-image-split {
    flex-direction: row;
  }

  .text-image-split>div:first-child {
    flex: 3;
    /* Gives text 60% width */
  }

  .text-image-split>div:last-child {
    flex: 2;
    /* Gives image 40% width */
  }
}

.text-image-split img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.facility-card {
  background-color: var(--pico-card-background-color);
  border: 1px solid var(--pico-card-border-color);
  border-radius: 12px;
  padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.facility-card:hover {
  border-color: var(--pico-card-border-color-hover);
  transform: translateY(-2px);
}

.facility-card .icon-box {
  width: 42px;
  height: 42px;
  background-color: var(--pico-card-background-color);
  border: 1px solid var(--pico-card-border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.facility-card .icon-box i {
  font-size: 1.2rem;
  color: var(--pico-ins-color);
}

.columns .column {
  background-color: var(--pico-card-background-color);
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px var(--pico-card-border-color);
}

.frame-box .grid .card {
  background-color: var(--pico-card-background-color);
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px var(--pico-card-border-color);
}

.topic-details .detail-name {
  margin-bottom: 0;
}
.topic-details .detail-numbers {
  color: var(--pico-muted-color);
}

.detail-return a {
  background-color: var(--pico-ins-color);
  transition: transform 0.2s ease;
}
.detail-return a:hover {
  background-color: var(--pico-primary-hover);
  transform: translateY(-2px);
}

/* Footer Customizations */
/* Footer Layout (Inheriting theme colors) */
#footer .columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

#footer .footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    text-align: left;
}

#footer .footer-col .footer-title {
    text-align: left;
}

#footer .footer-col p {
    text-align: left;
    margin-bottom: 1rem;
}

#footer .footer-links {
    text-align: left;
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

#footer .footer-links li {
    list-style-type: none !important;
}

#footer .footer-links li::before {
    display: none !important;
}

#footer .footer-links a {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

#footer .footer-links a:hover {
    transform: translateX(5px);
}

#footer .footer-links i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    text-align: center;
    width: 100%;
}

.footer-bottom p {
    font-size: 0.85rem;
    margin: 0;
    text-align: center !important;
}