:root {
  --cassiopeia-color-primary: #003d6b;
  --cassiopeia-color-link: #0a446e;
  --cassiopeia-color-hover: #163a60;
}

/* GENERAL */

body {
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.site-grid {
  gap: 2rem;
}

/* HEADER */

.container-header {
  background: #0a446e;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 999;
}

.container-header .navbar-brand,
.container-header .mod-menu a {
  color: #ffffff;
}

.container-header .mod-menu a:hover {
  color: #dbeafe;
}

/* HERO BANNER */

.container-banner {
  margin: 0;
  padding: 0;
}

.hero-box {
  position: relative;
  min-height: 75vh;

  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.45)
    ),
    url('/images/hero/hero-bg.jpg');

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  overflow: hidden;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 900px;
  padding: 2rem;
}

.hero-overlay h1 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-overlay p {
  font-size: clamp(1rem, 2vw, 1.4rem);
  margin-bottom: 2rem;
}

.hero-btn {
  padding: 0.9rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
}

/* MODULE TITLE AREA */

/* Standard Joomla module titles */
.moduletable h3,
.moduletable .module-title,
.moduletable .mod-title,
.module h3,
.module .module-title,
.module .mod-title {
  background: #1f4f82 !important;
  color: #ffffff !important;
  padding: 1rem 1.25rem;
  border-radius: 12px 12px 0 0;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0;
}

/* Cassiopeia card-style module titles */
.card-header {
  background: #1f4f82 !important;
  color: #ffffff !important;
  border-radius: 12px 12px 0 0;
  border-bottom: none;
}

.card-header h3,
.card-header .card-title,
.card-header .module-title,
.card-header .mod-title {
  color: #ffffff !important;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

/* Module title links */
.moduletable h3 a,
.module h3 a,
.card-header a {
  color: #ffffff !important;
  text-decoration: none;
}

/* MODULE BODY */

.card,
.moduletable,
.module {
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-bottom: 2rem;
}

.card-body,
.moduletable > *:not(h3):not(.module-title):not(.mod-title),
.module > *:not(h3):not(.module-title):not(.mod-title) {
  background: #ffffff;
}

/* CONTENT */

.blog-item {
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  padding: 1.5rem;
  background: #ffffff;
}

/* BUTTONS */

.btn-primary {
  background-color: #1f4f82;
  border-color: #1f4f82;
}

.btn-primary:hover {
  background-color: #163a60;
  border-color: #163a60;
}

/* FOOTER */

.container-footer {
  background: #0a446e;
  color: #ffffff;
  padding: 2rem 1rem;
}

.container-footer a {
  color: #ffffff;
}

.container-footer a:hover {
  color: #dbeafe;
}

/* TABLET */

@media (max-width: 991px) {

  .site-grid {
    display: block;
  }

  .container-sidebar-right,
  .container-sidebar-left {
    margin-top: 2rem;
  }

  .hero-box {
    min-height: 65vh;
    background-attachment: scroll;
  }

  .hero-overlay {
    padding: 1.5rem;
  }

  .hero-overlay h1 {
    font-size: 2.2rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }
}

/* MOBILE */

@media (max-width: 575px) {

  body {
    font-size: 15px;
  }

  .hero-box {
    min-height: 60vh;
    background-attachment: scroll;
    background-position: center center;
  }

  .hero-overlay {
    padding: 1.25rem;
  }

  .hero-overlay h1 {
    font-size: 1.8rem;
  }

  .hero-overlay p {
    font-size: 0.95rem;
  }

  .hero-btn {
    width: 100%;
    max-width: 260px;
  }

  .container-header .navbar-brand {
    font-size: 1.1rem;
  }

  .mod-menu {
    text-align: left;
  }

  .blog-item,
  .mod-custom {
    padding: 1rem;
  }

  .moduletable h3,
  .moduletable .module-title,
  .moduletable .mod-title,
  .module h3,
  .module .module-title,
  .module .mod-title,
  .card-header h3,
  .card-header .card-title {
    font-size: 1.1rem;
  }
}