:root {
  --brand-navy: #07264a;
  --brand-navy-dark: #041a33;
  --brand-blue: #0d4774;
  --brand-gold: #ffcb09;
  --brand-gold-dark: #c89a32;
  --brand-ink: #17283a;
  --brand-muted: #66788a;
  --brand-surface: #f4f7fa;
  --brand-line: #e2e8ee;
  --brand-white: #fff;
  --brand-shadow: 0 14px 38px rgba(7, 38, 74, 0.10);
}

/* Shared headings */
.modern-section-heading {
  max-width: 700px;
  margin: 0 auto 42px;
  text-align: center;
}

.modern-section-heading .eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--brand-gold-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.modern-section-heading h2 {
  margin: 0;
  color: var(--brand-navy);
  font-family: "Roboto Slab", serif;
  font-size: 36px;
  line-height: 1.25;
}

.modern-section-heading .heading-line {
  display: block;
  width: 62px;
  height: 3px;
  margin: 16px auto;
  background: var(--brand-gold);
  border-radius: 3px;
}

.modern-section-heading p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Homepage foundation */
.home-news-ticker {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--brand-navy-dark), var(--brand-blue));
  border-bottom: 3px solid var(--brand-gold);
}

.home-news-ticker::before {
  content: "Latest";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 24px;
  color: var(--brand-navy);
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: var(--brand-gold);
}

.home-news-ticker marquee {
  padding-left: 95px;
}

.home-news-ticker a {
  color: #fff !important;
  font-weight: 500;
}

.home-services-section,
.home-other-services,
.home-gallery-section,
.home-testimonials-section,
.home-investment-section {
  padding: 78px 0;
}

.home-services-section {
  background: #fff;
}

.home-services-section .row,
.home-other-services .single-service-box-wrapper {
  display: flex;
  flex-wrap: wrap;
}

.home-services-section .col-md-4,
.home-other-services .col-md-4 {
  display: flex;
  margin-bottom: 30px;
}

.home-services-section .single-service-box-two {
  width: 100%;
  min-height: 225px;
  margin: 0;
  padding: 30px 25px;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-top: 3px solid transparent;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(7, 38, 74, .07);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.home-services-section .single-service-box-two:hover {
  border-top-color: var(--brand-gold);
  box-shadow: var(--brand-shadow);
  transform: translateY(-5px);
}

.home-services-section .single-service-box-two .icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-right: 18px;
  color: var(--brand-gold);
  background: var(--brand-navy);
  border-radius: 50%;
}

.home-services-section .single-service-box-two .icon-box i {
  color: var(--brand-gold) !important;
  font-size: 25px;
}

.home-services-section .single-service-box-two h3 {
  color: var(--brand-navy);
}

.home-services-section .single-service-box-two p {
  color: var(--brand-muted);
  line-height: 1.7;
}

.home-other-services {
  background: var(--brand-surface) !important;
}

.home-other-services .single-service-box-one {
  width: 100%;
  margin: 0;
  padding-bottom: 25px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 11px;
  box-shadow: 0 10px 28px rgba(7, 38, 74, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.home-other-services .single-service-box-one:hover {
  box-shadow: var(--brand-shadow);
  transform: translateY(-5px);
}

.home-other-services .single-service-box-one .img-box {
  height: 220px;
  overflow: hidden;
}

.home-other-services .single-service-box-one .img-box > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-other-services .single-service-box-one h3,
.home-other-services .single-service-box-one p {
  padding-right: 24px;
  padding-left: 24px;
}

.home-other-services .single-service-box-one h3 {
  margin-top: 22px;
  color: var(--brand-navy);
}

.home-other-services .single-service-box-one p {
  color: var(--brand-muted);
  line-height: 1.7;
}

.home-gallery-section {
  position: relative !important;
  background: linear-gradient(135deg, var(--brand-navy-dark), #0b3d67) !important;
}

.home-gallery-section .modern-section-heading h2,
.home-gallery-section .modern-section-heading p,
.home-testimonials-section.is-dark .modern-section-heading h2,
.home-testimonials-section.is-dark .modern-section-heading p {
  color: #fff;
}

.home-gallery-section .modern-section-heading p {
  color: rgba(255, 255, 255, .72);
}

.home-gallery-section .filter-item {
  margin-bottom: 30px;
}

.home-gallery-section .single-project-item {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
}

.home-gallery-section .single-project-item .img-box,
.home-gallery-section .single-project-item .img-box img {
  width: 100%;
  height: 280px !important;
  object-fit: cover;
}

.home-testimonials-section {
  background: var(--brand-surface) !important;
}

.home-testimonials-section .single-testimonial-home {
  min-height: 250px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-top: 3px solid var(--brand-gold);
  border-radius: 11px;
  box-shadow: 0 10px 28px rgba(7, 38, 74, .08);
}

.home-testimonials-section .single-testimonial-home .icon-box img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--brand-gold);
}

.home-testimonials-section .single-testimonial-home .text-box p {
  color: var(--brand-muted);
  font-size: 15px;
  line-height: 1.8;
}

.home-testimonials-section .single-testimonial-home .text-box h3 {
  color: var(--brand-navy);
}

.home-investment-section {
  background: #fff;
}

.home-investment-section .investment-panel {
  display: flex;
  align-items: center;
  padding: 42px;
  background: linear-gradient(135deg, #fff, #f7fafc);
  border: 1px solid var(--brand-line);
  border-left: 5px solid var(--brand-gold);
  border-radius: 12px;
  box-shadow: var(--brand-shadow);
}

.home-investment-section p {
  color: var(--brand-muted);
  font-size: 16px;
  line-height: 1.85;
}

.home-investment-section img {
  max-height: 265px;
  margin: auto;
  filter: drop-shadow(0 14px 20px rgba(7, 38, 74, .14));
}

/* Shared inner page shell */
.modern-page {
  background: var(--brand-surface);
}

.modern-page-hero {
  position: relative;
  padding: 68px 0;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, var(--brand-navy-dark), var(--brand-blue));
  border-bottom: 4px solid var(--brand-gold);
}

.modern-page-hero::after {
  content: "";
  position: absolute;
  top: -150px;
  right: -80px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 203, 9, .2);
  border-radius: 50%;
}

.modern-page-hero .eyebrow {
  color: var(--brand-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.modern-page-hero h1 {
  margin: 10px 0 12px;
  color: #fff;
  font-family: "Roboto Slab", serif;
  font-size: 42px;
}

.modern-page-hero p {
  max-width: 640px;
  margin: auto;
  color: rgba(255, 255, 255, .75);
  font-size: 15px;
  line-height: 1.7;
}

.modern-page-content {
  padding: 70px 0;
}

.modern-share-row {
  min-height: 20px;
  margin-bottom: 24px;
}

/* Gallery page */
.modern-gallery-grid {
  display: flex;
  flex-wrap: wrap;
}

.modern-gallery-grid .gallery-column {
  display: flex;
  margin-bottom: 30px;
}

.modern-gallery-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--brand-navy);
  border: 1px solid var(--brand-line);
  border-radius: 11px;
  box-shadow: var(--brand-shadow);
}

.modern-gallery-card img {
  display: block;
  width: 100%;
  height: 285px;
  object-fit: cover;
  transition: transform .4s ease, opacity .3s ease;
}

.modern-gallery-card:hover img {
  opacity: .72;
  transform: scale(1.05);
}

.modern-gallery-card .gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  text-align: center;
  background: linear-gradient(to top, rgba(4, 26, 51, .94), transparent 70%);
}

.modern-gallery-card .gallery-action {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: var(--brand-navy);
  font-size: 19px;
  background: var(--brand-gold);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -40%);
  transition: opacity .25s ease, transform .25s ease;
}

.modern-gallery-card:hover .gallery-action {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.modern-gallery-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.4;
}

/* Testimonials page */
.modern-testimonial-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.modern-testimonial-card {
  position: relative;
  padding: 34px 30px 30px;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-top: 4px solid var(--brand-gold);
  border-radius: 12px;
  box-shadow: var(--brand-shadow);
}

.modern-testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 12px;
  right: 24px;
  color: rgba(255, 203, 9, .25);
  font-family: Georgia, serif;
  font-size: 82px;
  line-height: 1;
}

.modern-testimonial-card .client-head {
  display: flex;
  align-items: center;
  margin-bottom: 23px;
}

.modern-testimonial-card img {
  width: 82px;
  height: 82px;
  margin-right: 18px;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--brand-gold);
}

.modern-testimonial-card h3 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 19px;
}

.modern-testimonial-card .client-label {
  display: block;
  margin-top: 5px;
  color: var(--brand-gold-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.modern-testimonial-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--brand-muted);
  font-size: 15px;
  line-height: 1.85;
}

/* Shared video cards: homepage and Videos page */
.video-grid-modern {
  display: flex;
  flex-wrap: wrap;
}

.video-grid-modern .video-column {
  display: flex;
  margin-bottom: 30px;
}

.video-card-modern {
  width: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  box-shadow: var(--brand-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.video-card-modern:hover {
  box-shadow: 0 20px 44px rgba(7, 38, 74, .18);
  transform: translateY(-6px);
}

.video-card-modern .video-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--brand-navy-dark);
}

.video-card-modern .video-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 26, 51, .45), transparent);
}

.video-card-modern .video-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s ease, transform .4s ease;
}

.video-card-modern:hover .video-media img {
  opacity: .88;
  transform: scale(1.04);
}

.video-card-modern .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: var(--brand-navy);
  font-size: 22px;
  background: var(--brand-gold);
  border: 5px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
  transform: translate(-50%, -50%);
  transition: background .25s ease, transform .25s ease;
}

.video-card-modern .play-button::before {
  margin-left: 4px;
}

.video-card-modern:hover .play-button {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.08);
}

.video-card-modern .video-card-body {
  min-height: 82px;
  padding: 20px 22px;
  border-top: 3px solid var(--brand-gold);
}

.video-card-modern .video-card-body h3 {
  margin: 0;
  color: var(--brand-navy);
  font-family: "Roboto Slab", serif;
  font-size: 18px;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 991px) {
  .home-investment-section .investment-panel {
    display: block;
  }

  .modern-testimonial-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .modern-section-heading {
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .modern-section-heading h2,
  .video-section-heading h2 {
    font-size: 28px;
  }

  .home-services-section,
  .home-other-services,
  .home-gallery-section,
  .home-testimonials-section,
  .home-investment-section,
  .modern-page-content {
    padding: 55px 0;
  }

  .home-news-ticker::before {
    display: none;
  }

  .home-news-ticker marquee {
    padding-left: 0;
  }

  .home-investment-section .investment-panel {
    padding: 28px 22px;
  }

  .modern-page-hero {
    padding: 48px 15px;
  }

  .modern-page-hero h1 {
    font-size: 32px;
  }

  .modern-gallery-card img {
    height: 250px;
  }

  .modern-testimonial-card {
    padding: 28px 22px 24px;
  }

  .video-card-modern .video-card-body {
    min-height: auto;
  }
}
