/**
* Template Name: Dewi
* Template URL: https://bootstrapmade.com/dewi-free-multi-purpose-html-template/
* Updated: Aug 07 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Marcellus",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Marcellus",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";/** was "Libre Baskerville", serif; **/
  --nav-font: "Marcellus",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #444444; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #273d4e; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #e7daa8; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #e5eaee;  /* The default color of the main navmenu links */
  --nav-hover-color: #e7daa8; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #444444; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #c1a53f; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f1f4fa;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #000910;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #28323a;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--default-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}


/* Pulsating Play Button
------------------------------*/
.pulsating-play-btn {
  width: 94px;
  height: 94px;
  background: radial-gradient(var(--accent-color) 50%, color-mix(in srgb, var(--accent-color), transparent 75%) 52%);
  border-radius: 50%;
  display: block;
  position: relative;
  overflow: hidden;
}

.pulsating-play-btn:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  animation-delay: 0s;
  animation: pulsate-play-btn 2s;
  animation-direction: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: steps;
  opacity: 1;
  border-radius: 50%;
  border: 5px solid color-mix(in srgb, var(--accent-color), transparent 30%);
  top: -15%;
  left: -15%;
  background: rgba(198, 16, 0, 0);
}

.pulsating-play-btn:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 100;
  transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.pulsating-play-btn:hover:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border: none;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 200;
  animation: none;
  border-radius: 0;
}

.pulsating-play-btn:hover:after {
  border-left: 15px solid var(--accent-color);
  transform: scale(20);
}

@keyframes pulsate-play-btn {
  0% {
    transform: scale(0.6, 0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1, 1);
    opacity: 0;
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: rgba(0, 0, 0, 0);
  --default-color: #ffffff;
  --heading-color: #ffffff;
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0 0 0;
  transition: all 0.5s;
  z-index: 997;
}

.header hr {
  border: none;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.7); /* subtle white line */
  margin: 10px auto;
  width: 100%;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 100;
  color: var(--heading-color);
}

.header .cta-btn,
.header .cta-btn:focus {
  color: var(--contrast-color);
  font-size: 13px;
  padding: 7px 25px;
  margin: 0 0 0 30px;
  border-radius: 4px;
  transition: 0.3s;
  text-transform: uppercase;
  border: 2px solid var(--contrast-color);
}

.header .cta-btn:hover,
.header .cta-btn:focus:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
  border-color: var(--accent-color);
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .cta-btn {
    order: 2;
    margin: 0 15px 0 0;
    padding: 6px 15px;
  }

  .header .navmenu {
    order: 3;
  }
}

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}


/* Smooth transitions */
.header {
  transition: all 0.4s ease;
}

/* Logo container */
.logo-wrap {
  overflow: hidden;
  transition: all 0.4s ease;
}

/* Logo image */
.logo-wrap img {
  max-height: 60px;
  transition: all 0.4s ease;
}

/* 🔥 SHRUNK STATE */
.header.header-shrink {
  padding: 0px 0; 
}

.header.header-shrink .navmenu .dropdown ul {
  top: 80px; /* adjust this */
}

/* Hide top half (logo area) */
.header.header-shrink .logo-wrap {
  max-height: 0;
  margin: 0;
  opacity: 0;
}

.header hr {
  transition: all 0.3s ease;
}

.header.header-shrink hr {
  opacity: 0;
  transform: scaleY(0);
  margin: 0;
}

#header .container-xl {
  display: flex;
  flex-direction: column;
  align-items: center;
}



#header .navmenu ul li {
  list-style: none;
}

/* Default = desktop */
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Center logo */
.header-top {
  justify-content: center !important;
}

/* Center nav items */

.nav-logo-icon {
  max-height: 35px;
  margin-right: 15px;

  opacity: 0;
  transform: translateX(-50px) scale(0.9); /* was -15px */
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0.1s;

  display: inline-block;
}

.header.header-shrink .nav-logo-icon {
  opacity: 1;
  transform: translateX(-30px) scale(1); /* final resting position slightly left */
}

.navmenu ul {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding-left: 0;
  margin: 0;
}

.navmenu ul li {
  list-style: none;
}



/* Heroes */
.hero-wrapper-3 {
  position: relative;
  width: 100%;
  min-height: 600px;
  background: url('../img/hero-2.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-wrapper-4 {
  position: relative;
  width: 100%;
  min-height: 600px;
  background: url('../img/hero-2.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-wrapper-5 {
  position: relative;
  width: 100%;
  min-height: 600px;
  background: url('../img/hero-2.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
}




/* Global Header on Scroll
------------------------------*/
.scrolled .header {
  --background-color: rgba(0, 0, 0, 0.90);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu>ul>li {
    white-space: nowrap;
    padding: 15px 30px;
  }

  .navmenu>ul>li:last-child {
    padding-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    font-size: 15px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
    text-transform: uppercase;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu>ul>li>a:before {
    content: "";
    position: absolute;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--nav-hover-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }

  .navmenu a:hover:before,
  .navmenu li:hover>a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 100%;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: color-mix(in srgb, var(--nav-color) 90%, white 15%);
  }

  .navmenu .dropdown ul {
  position: fixed;

  left: 50%;
  transform: translateX(-50%);

  top: 170px; /* adjust to your header height */

  margin: 0;
  padding: 10px 0;
  width:100%;

  background: var(--nav-dropdown-background-color);

  visibility: hidden;
  opacity: 0;
   transition: top 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 0.3s ease;

  border-radius: 0px;
  z-index: 999;

  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
}

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

.navmenu .dropdown ul {
  
}

.navmenu .dropdown:last-child ul,
.navmenu .dropdown:nth-last-child(2) ul {
  left: auto;
  right: 0;
  transform: none;
}



/* Mobile Navigation */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}



#cta-contact .btn:hover {
  background-color: #d4c594 !important; /* A slightly darker version of your gold */
  transition: 0.3s;
}

/*--------------------------------------------------------------
# hero 2 section
--------------------------------------------------------------*/
/* Container for the hero image */
.hero-wrapper {
  position: relative;
  width: 100%;
  min-height: 600px;
  background: url('../img/hero-2.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
}

/* The text box positioning */
.content-overlay {
  width: 100%;
  max-width: 1320px; /* Aligns with standard Bootstrap container width */
  margin: 0 auto;
  padding: 0 20px;
}

.text-box {
  background: rgba(255, 255, 255, 0.0); /* transparent white */
  padding: 40px;
  max-width: 500px;
}

.text-box h3 {
  font-family: 'Marcellus', serif;
  font-size: 2.5rem;
  color: #222;
}

.btn-gold {
  display: inline-block;
  background-color: #e7daa8;
  color: #000;
  padding: 12px 35px;
  text-transform: uppercase;
  font-weight: 100;
  text-decoration: none;
  margin-top: 15px;
}

/* Mobile View: Push words below the image */
@media (max-width: 768px) {
  .hero-wrapper {
    flex-direction: column;
    min-height: auto;
    background: none; /* Remove background on wrapper */
  }

  /* Create the image at the top for mobile */
  .hero-wrapper::before {
    content: "";
    display: block;
    width: 100%;
    height: 300px; /* Height of image on mobile */
    background: url('../img/hero-2.jpg') right/cover no-repeat;
  }

  .content-overlay {
    padding: 0;
  }

  .text-box {
    max-width: 100%;
    background: #ffffff; /* Solid white for mobile */
    text-align: center;
    padding: 40px 20px;
  }
}




/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: #000000;
  font-size: 14px;
  position: relative;
}

.footer .footer-top {
  padding-top: 50px;
  border-top: 0px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 1px;
  font-family: var(--heading-font);
  color: var(--heading-color);
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 3px;
  font-size: 13px;
  line-height: 0;
  color: var(--accent-color);
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .footer-newsletter .newsletter-form {
  margin-top: 30px;
  margin-bottom: 15px;
  padding: 6px 8px;
  position: relative;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  display: flex;
  background-color: var(--background-color);
  transition: 0.3s;
}

.footer .footer-newsletter .newsletter-form:focus-within {
  border-color: var(--accent-color);
}

.footer .footer-newsletter .newsletter-form input[type=email] {
  border: 0;
  padding: 4px;
  width: 100%;
  background-color: var(--background-color);
  color: var(--default-color);
}

.footer .footer-newsletter .newsletter-form input[type=email]:focus-visible {
  outline: none;
}

.footer .footer-newsletter .newsletter-form input[type=submit] {
  border: 0;
  font-size: 16px;
  padding: 0 20px;
  margin: -7px -8px -7px 0;
  background: var(--accent-color);
  color: var(--contrast-color);
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
}

.footer .footer-newsletter .newsletter-form input[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 6px;
  font-size: 13px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: #e7daa8;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: #b79953;
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 160px 0 80px 0;
  text-align: center;
  position: relative;
}

.page-title:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 30%);
  position: absolute;
  inset: 0;
}

.page-title h1 {
  font-size: 42px;
  font-weight: 300;
  margin-bottom: 10px;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 300;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 30px 0;
  scroll-margin-top: 90px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 76px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 40px;
  position: relative;
}

.section-title h2 {
  font-size: 18px;
  font-weight: 300;
  padding-bottom: 20px;
  line-height: 1px;
  margin: 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  position: relative;
}

.section-title h2::after {
  content: "";
  width: 120px;
  height: 1px;
  display: inline-block;
  background: var(--accent-color);
  margin: 4px 10px;
}

.section-title p {
  color: var(--heading-color);
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  font-family: var(--heading-font);
}

@media (max-width: 768px) {
  .section-title p {
    font-size: 24px;
  }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-pg {
  width: 100%;
  min-height: 75vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}


@media (max-width: 768px) {
  .hero-pg {
  width: 100%;
  min-height: 40vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

}


.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-transp {
  opacity: 70% !important;
}

.hero:before {
  content: "";
  background: color-mix(in srgb, var(--background-color));
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h2 {
  margin: 0;
  font-size: 38px;
  font-family: var(--default-font);
}

.hero p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 10px 0 0 0;
  font-size: 24px;
}

.hero .btn-get-started {
  background: var(--accent-color);
  color: var(--contrast-color);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 30px;
  border-radius: 4px;
  transition: 0.3s;
  text-transform: uppercase;
}

.hero .btn-get-started:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.hero .btn-watch-video {
  font-size: 16px;
  transition: 0.5s;
  margin-left: 25px;
  font-weight: 300;
  color: var(--default-color);
}

.hero .btn-watch-video i {
  color: var(--accent-color);
  font-size: 32px;
  transition: 0.3s;
  line-height: 0;
  margin-right: 8px;
}

.hero .btn-watch-video:hover {
  color: var(--accent-color);
}

.hero .btn-watch-video:hover i {
  color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about h3 {
  font-weight: 300;
  font-size: 28px;
  margin-bottom: 20px;
}

.about .fst-italic {
  color: color-mix(in srgb, var(--default-color), var(--contrast-color) 50%);
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  padding: 0 0 10px 30px;
  position: relative;
}

.about .content ul i {
  position: absolute;
  font-size: 20px;
  left: 0;
  top: -3px;
  color: var(--accent-color);
}

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

.about .pulsating-play-btn {
  position: absolute;
  left: calc(50% - 47px);
  top: calc(50% - 47px);
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats .stats-item {
  background-color: var(--surface-color);
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.stats .stats-item i {
  color: var(--accent-color);
  font-size: 42px;
  line-height: 0;
  margin-right: 20px;
}

.stats .stats-item span {
  color: var(--heading-color);
  font-size: 36px;
  display: block;
  font-weight: 300;
}

.stats .stats-item p {
  padding: 0;
  margin: 0;
  font-family: var(--heading-font);
  font-size: 16px;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .img {
  border-radius: 0px;
  overflow: hidden;
}

.services .img img {
  transition: 0.6s;
}

.services .details {
  background: color-mix(in srgb, var(--surface-color), 
    transparent 20%);
  padding: 25px 25px;
  margin: -215px 60px 0 60px;
  transition: all ease-in-out 0.3s;
  position: relative;
  text-align: center;
  border-radius: 0px;
  box-shadow: 0px 0 25px rgba(0, 0, 0, 0.1);
}

.services .details .icon {
  margin: 0;
  width: 72px;
  height: 72px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border: 6px solid var(--contrast-color);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  transition: ease-in-out 0.3s;
  position: absolute;
  top: -36px;
  left: calc(50% - 36px);
}

.services .details h3 {
  font-weight: 300;
  margin: 10px 0 15px 0;
  font-size: 22px;
  transition: ease-in-out 0.3s;
}

.services .details p {
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .service-item:hover .details h3 {
  color: #c1a53f;
}

.services .service-item:hover .details .icon {
  background: var(--surface-color);
  border: 2px solid var(--accent-color);
}

.services .service-item:hover .details .icon i {
  color: var(--accent-color);
}

.services .service-item:hover .img img {
  transform: scale(1.2);
}

/*--------------------------------------------------------------
# Clients Section
--------------------------------------------------------------*/
.clients {
  padding: 20px 0;
}

.clients .client-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.clients .client-logo img {
  padding: 20px 40px;
  max-width: 90%;
  transition: 0.3s;
  opacity: 0.5;
  filter: grayscale(100);
}

.clients .client-logo img:hover {
  filter: none;
  opacity: 1;
}

@media (max-width: 640px) {
  .clients .client-logo img {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features .nav-tabs {
  border: 0;
}

.features .nav-link {
  background-color: var(--surface-color);
  color: var(--heading-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  padding: 15px 20px;
  transition: 0.3s;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 100%;
}

.features .nav-link i {
  padding-right: 15px;
  font-size: 48px;
}

.features .nav-link h4 {
  font-size: 18px;
  font-weight: 300;
  margin: 0;
}

.features .nav-link:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.features .nav-link.active {
  background: #e7daa8;
  color: var(--contrast-color);
  border-color: #e7daa8;
}

.features .nav-link.active h4 {
  color: var(--contrast-color);
}

@media (max-width: 768px) {
  .features .nav-link i {
    padding: 0;
    line-height: 1;
    font-size: 36px;
  }
}

@media (max-width: 575px) {
  .features .nav-link {
    padding: 15px;
  }

  .features .nav-link i {
    font-size: 24px;
  }
}

.features .tab-content {
  margin-top: 30px;
}

.features .tab-pane h3 {
  color: var(--heading-color);
  font-weight: 300;
  font-size: 26px;
}

.features .tab-pane ul {
  list-style: none;
  padding: 0;
}

.features .tab-pane ul li {
  padding-bottom: 10px;
}

.features .tab-pane ul i {
  font-size: 20px;
  padding-right: 4px;
  color: var(--accent-color);
}

.features .tab-pane p:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Services 2 Section
--------------------------------------------------------------*/
.services-2 .service-item {
  background-color: var(--surface-color);
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  transition: 0.3s;
}

.services-2 .service-item .icon {
  font-size: 36px;
  line-height: 0;
  margin-right: 30px;
  color: var(--accent-color);
}

.services-2 .service-item .title {
  font-weight: 300;
  margin-bottom: 15px;
  font-size: 20px;
}

.services-2 .service-item .title a {
  color: var(--heading-color);
}

.services-2 .service-item .description {
  line-height: 24px;
  font-size: 14px;
  margin: 0;
}

.services-2 .service-item:hover {
  border-color: var(--accent-color);
}

.services-2 .service-item:hover .title a {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials {
  padding: 80px 0;
  position: relative;
}

.testimonials:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 30%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.testimonials .testimonials-bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.testimonials .container {
  position: relative;
  z-index: 3;
}

.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  text-align: center;
}

.testimonials .testimonial-item .testimonial-img {
  width: 100px;
  border-radius: 50%;
  border: 6px solid color-mix(in srgb, var(--default-color), transparent 85%);
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  margin: 0 0 15px 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.testimonials .testimonial-item .stars {
  margin-bottom: 15px;
}

.testimonials .testimonial-item .stars i {
  color: #ffc107;
  margin: 0 1px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 auto 15px auto;
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 50%);
  opacity: 0.5;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--default-color);
  opacity: 1;
}

@media (min-width: 992px) {
  .testimonials .testimonial-item p {
    width: 80%;
  }
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  font-size: 18px;
  font-weight: 300;
  margin: 0 10px;
  line-height: 1;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--accent-color);
}

.portfolio .portfolio-filters li:first-child {
  margin-left: 0;
}

.portfolio .portfolio-filters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .portfolio .portfolio-filters li {
    font-size: 14px;
    margin: 0 5px;
  }
}

.portfolio .portfolio-content {
  position: relative;
  overflow: hidden;
}

.portfolio .portfolio-content img {
  transition: 0.3s;
}

.portfolio .portfolio-content .portfolio-info {
  opacity: 0;
  position: absolute;
  inset: 0;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
}

.portfolio .portfolio-content .portfolio-info h4 {
  font-size: 14px;
  padding: 5px 10px;
  font-weight: 300;
  color: #ffffff;
  display: inline-block;
  background-color: var(--accent-color);
}

.portfolio .portfolio-content .portfolio-info p {
  position: absolute;
  bottom: 10px;
  text-align: center;
  display: inline-block;
  left: 0;
  right: 0;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
}

.portfolio .portfolio-content .portfolio-info .preview-link,
.portfolio .portfolio-content .portfolio-info .details-link {
  position: absolute;
  left: calc(50% - 40px);
  font-size: 26px;
  top: calc(50% - 14px);
  color: #fff;
  transition: 0.3s;
  line-height: 1.2;
}

.portfolio .portfolio-content .portfolio-info .preview-link:hover,
.portfolio .portfolio-content .portfolio-info .details-link:hover {
  color: var(--accent-color);
}

.portfolio .portfolio-content .portfolio-info .details-link {
  left: 50%;
  font-size: 34px;
  line-height: 0;
}

.portfolio .portfolio-content:hover .portfolio-info {
  opacity: 1;
}

.portfolio .portfolio-content:hover img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.team .member {
  position: relative;
}

.team .member .pic {
  overflow: hidden;
  margin-bottom: 50px;
}

.team .member .member-info {
  background-color: var(--surface-color);
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  position: absolute;
  bottom: -50px;
  left: 20px;
  right: 20px;
  padding: 20px 15px;
  overflow: hidden;
  transition: 0.5s;
}

.team .member h4 {
  font-weight: 300;
  margin-bottom: 10px;
  font-size: 16px;
  position: relative;
  padding-bottom: 10px;
}

.team .member h4::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 60%);
  bottom: 0;
  left: 0;
}

.team .member span {
  font-style: italic;
  display: block;
  font-size: 13px;
}

.team .member .social {
  position: absolute;
  right: 15px;
  bottom: 15px;
}

.team .member .social a {
  transition: color 0.3s;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.team .member .social a:hover {
  color: var(--accent-color);
}

.team .member .social i {
  font-size: 16px;
  margin: 0 2px;
}


/* --- Custom Team Section Layout Helpers --- */

.square-profile {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-img-wrap {
  overflow: hidden;
  background-color: #f8f9fa; /* temporary placeholder background */
}

/* Optional hover polish: dynamic subtle imagery scaling */
.team-member-card:hover .square-profile {
  transform: scale(1.03);
}

.team-member-card h4 {
  font-family: var(--heading-font);
  font-size: 18px;
  color: var(--heading-color);
}

.team-member-card p {
  line-height: 1.5;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Micro styling adjustments for tighter mobile rendering views */
@media (max-width: 576px) {
  .team-member-card p {
    font-size: 12px;
    padding: 0 !important;
  }
  .team-member-card h4 {
    font-size: 16px;
  }
}

/* --- Bio Toggle Expand Styling --- */

.bio-container {
  position: relative;
  padding-bottom: 25px; /* Creates spacing for the icon positioning layout */
}

.bio-toggle-btn {
  display: inline-block;
  color: var(--accent-color, #e7daa8);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: color 0.3s ease;
  padding: 5px;
}

.bio-toggle-btn:hover {
  color: color-mix(in srgb, var(--accent-color), #000 25%);
}

/* CSS transition engine rules for toggle animation rotating indicators */
.bio-toggle-btn i {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Flipped behavior state matching Bootstrap state status indicators */
.bio-toggle-btn:not(.collapsed) i {
  transform: rotate(180deg);
}

/* --- Smooth Bio Expansion Engine --- */

.bio-wrapper {
  position: relative;
  padding-bottom: 30px; /* Space for the absolute positioned arrow */
}

.bio-text {
  overflow: hidden;
  display: block; /* Swapped from webkit-box for smooth height calculations */
  max-height: 40px; /* Adjust this to match exactly 2 lines of text height */
  
  /* Smooth animation speed configuration */
  transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1); 
  
  position: relative;
}

/* Fallback blur gradient that masks the text gracefully right before the arrow */
.bio-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* When expanded, open up max-height capacity and hide the fade mask */
.bio-text.expanded {
  max-height: 400px; /* Safe upper bound limit larger than your longest bio text */
}

.bio-text.expanded::after {
  opacity: 0; /* Instantly hide the fade when fully revealed */
}

.bio-toggle-btn {
  display: inline-block;
  color: var(--accent-color, #e7daa8);
  font-size: 16px;
  cursor: pointer;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  z-index: 2;
}

/* --- Arrow position & style --- */
.bio-toggle-btn {
  display: inline-block;
  color: var(--accent-color, #e7daa8);
  font-size: 16px;
  cursor: pointer;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
}

/* Ensure the baseline arrow icon points directly down initially */
.bio-toggle-btn i {
  display: inline-block;
}

/* Smooth flip rotation when toggled open */
.bio-toggle-btn.active i {
  transform: rotate(180deg);
}






/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 24px 0 30px 0;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  width: 56px;
  height: 56px;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  border-radius: 50%;
  border: 2px dotted color-mix(in srgb, var(--accent-color), transparent 40%);
}

.contact .info-item h3 {
  font-size: 20px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-size: 18px;
  font-weight: 300;
  margin: 10px 0;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .php-email-form {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  height: 100%;
  padding: 30px;
}

@media (max-width: 575px) {
  .contact .php-email-form {
    padding: 20px;
  }
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-info {
  background-color: var(--surface-color);
  padding: 30px;
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 300;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li+li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 300;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .services-list {
  background-color: var(--surface-color);
  padding: 10px 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-bottom: 20px;
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 8px 0 8px 15px;
  border-left: 3px solid color-mix(in srgb, var(--default-color), transparent 70%);
  margin: 20px 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 300;
  border-color: var(--accent-color);
}

.service-details .services-list a:hover {
  border-color: var(--accent-color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 300;
}

.service-details h4 {
  font-size: 20px;
  font-weight: 300;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/
.starter-section {
  /* Add your styles here */
}





/* --- Custom Two-Column Dropdown Styling --- */

/* Ensure the dropdown UL can be wide enough for two columns */
.navmenu .dropdown ul {
  width: 600px !important; /* Force a wider dropdown */
  padding: 0 !important;
  overflow: hidden;
}

/* Force the internal LI to allow flex behavior */
.navmenu .dropdown ul li {
  width: 100% !important;
}

/* The magic layout container */
.dropdown-container {
  display: flex !important; /* Force side-by-side */
  flex-direction: row !important; 
  width: 100%;
  min-height: 250px;
  background: #fff;
}

/* Left Column: List of links */
.dropdown-links {
  flex: 1; /* Takes half the space */
  display: flex;
  flex-direction: column; /* Stacks links vertically */
  padding: 15px 0;
}

/* Right Column: The Image */
.dropdown-image {
  flex: 1; /* Takes the other half */
  display: block; 
  position: relative;
}

.dropdown-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Keeps image from stretching */
  display: block;
}


@media (min-width: 1200px) {
  /* This ensures the mouse has a 'bridge' to reach the menu */
  .navmenu .dropdown {
    position: static !important;
  }

  .navmenu .dropdown ul {
    /* Reset visibility and positioning */
    display: block !important;
    visibility: hidden;
    opacity: 0;
    
    /* Full Width Logic */
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    
    /* Align it exactly below the nav bar */
    /* If 170px is your normal height, use that. 
       If it feels too low, try 100% or a smaller px value. */
    top: 165px !important; 
    
    transform: none !important;
    transition: all 0.3s ease;
    z-index: 999;
    background: #fff;
    border-bottom: 0px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    pointer-events: none; /* Prevents it from blocking clicks when hidden */
  }

  /* Show the menu on hover */
  .navmenu .dropdown:hover > ul {
    visibility: visible !important;
    margin-top: -8px !important;
    opacity: 1 !important;
    top: 165px !important; /* Slight 'drop down' effect on hover */
    pointer-events: auto !important;
  }

  .navmenu .dropdown ul::before {
    content: "";
    position: absolute;
    top: -40px !important; /* Reaches up 40px */    
    left: 0;
    right: 0;
    height: 40px;
    background: transparent;
    z-index: 1;
}

  /* Content Alignment */
  .dropdown-container {
    display: flex !important;
    max-width: 1320px;
    margin: 0 auto;
    background: #fff;
  }

  .dropdown-links {
    flex: 0 0 350px;
    padding: 30px !important;
    display: flex;
    flex-direction: column;
  }

  .dropdown-image {
    flex: 1;
    height: 400px;
    overflow: hidden;
  }

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

/* 🔥 ADJUSTMENT FOR SHRUNK HEADER */
.header.header-shrink .navmenu .dropdown ul,
.header.header-shrink .navmenu .dropdown:hover > ul {
  /* Match this to your shrunk header height. 
     If your header is 60px tall, set this to 60px. */
  top: 70px !important; 
}



/* MOBILE NAV */
@media (max-width: 1199px) {
  /* Hide the images in the dropdown to save space on mobile */
  .dropdown-image {
    display: none !important;
  }

  /* Reset the container to a simple vertical block */
  .dropdown-container {
    display: block !important;
    min-height: auto !important;
    padding: 0 !important;
  }

  /* Adjust the links for easier tapping */
  .dropdown-links {
    padding: 10px 0 !important;
  }

  .dropdown-links h5 {
    font-size: 14px;
    padding: 10px 20px;
    color: #888 !important;
    background: #fdfdfd;
    margin: 0;
  }

  .navmenu .dropdown ul a {
    padding: 12px 30px !important; /* Indent sub-links */
    font-size: 15px;
    border-bottom: 1px solid #eee;
  }

  /* Ensure the mobile menu has enough height to scroll */
  .navmenu ul {
    max-height: 80vh;
    overflow-y: auto;
  }

  .header .logo img {
    max-height: 50px; /* Keep the logo legible */
  }
  
  .header.header-shrink .logo-wrap {
    max-height: 60px !important; /* Prevent it from disappearing on scroll on mobile */
    opacity: 1 !important;
  }
  
  /* Center the mobile toggle icon */
  .mobile-nav-toggle {
    position: absolute;
    right: 20px;
    top: 25px;
  }
}


@media (max-width: 1199px) {
  #header .navmenu ul {
    display: none; /* This hides that horizontal bar you're seeing */
    flex-direction: column; /* Stacks items vertically when it IS shown */
    align-items: flex-start;
    gap: 0;
  }

  /* Show the menu only when the mobile-nav-active class is on the body */
  .mobile-nav-active .navmenu ul {
    display: block;
  }
}

@media (min-width: 1200px) {
  #header .navmenu ul {
    display: flex;
    justify-content: center;
    gap: 10px; /* Spacing between menu items on desktop */
    padding-left: 0;
    margin-bottom: 0;
  }
  
  .navmenu ul li {
    list-style: none;
  }
}

/* 1. Mobile State (Below 1200px) */
@media (max-width: 1199px) {
  .navmenu ul {
    display: none !important; /* Force hide the horizontal bar */
    flex-direction: column;
    position: absolute;
    /* ... existing mobile styles ... */
  }

  /* 2. Shown State (When Hamburger is Tapped) */
  .mobile-nav-active .navmenu ul {
    display: block !important; 
    position: absolute;
    inset: 60px 20px 20px 20px;
    background: #fff;
    padding: 10px 0;
    z-index: 9998;
  }
}

/* 3. Desktop State (Above 1200px) */
@media (min-width: 1200px) {
  .navmenu ul {
    display: flex !important; /* Bring back the horizontal look */
    justify-content: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
}


@media (max-width: 1199px) {
  /* Ensure the sub-menu UL is hidden by default on mobile */
  .navmenu .dropdown ul {
    display: none;
    position: static !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    background-color: #fdfdfd !important;
    box-shadow: none !important;
    border: none !important;
  }

  /* Show the UL when the parent <li> has the 'active' class */
  .navmenu .dropdown.active > ul {
    display: block !important;
  }

  /* Reset the mega-menu container for mobile flow */
  .dropdown-container {
    display: block !important;
    padding: 0 !important;
    min-height: auto !important;
  }

  /* Ensure the links are visible */
  .dropdown-links {
    display: flex !important;
    flex-direction: column !important;
  }
}


@media (max-width: 1199px) {
  /* Hide the mega-menu image - it takes up too much room on mobile */
  .dropdown-image {
    display: none !important;
  }

  /* 1. FORCE HIDE all sub-menus by default */
  .navmenu .dropdown ul {
    display: none !important;
    position: static !important; /* This moves it from 'floating' to 'inline' */
    visibility: visible !important; /* We use display:none to hide it instead */
    opacity: 1 !important;
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
  }

  /* 2. ONLY show the UL when the parent <li> has the 'active' class */
  .navmenu .dropdown.active > ul {
    display: block !important;
  }

  /* 3. Reset the Mega-Menu internal layout */
  .dropdown-container {
    display: block !important;
    min-height: auto !important;
  }

  .dropdown-links {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Make the links look like a list */
  .navmenu .dropdown ul a {
    padding: 12px 25px !important;
    color: var(--nav-dropdown-color) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
}


@media (max-width: 1199px) {
  .navmenu .dropdown > a {
    position: relative;
  }
  
  /* This makes the arrow cover the right side of the menu item */
  .toggle-dropdown {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }
}

@media (max-width: 1199px) {
  .navmenu .dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}


@media (max-width: 1199px) {
  /* Make the link row fill the width and look clickable */
  .navmenu .dropdown > a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding-right: 15px !important;
    width: 100%;
  }

  /* Prevent the icon from stealing the click event */
  .navmenu .toggle-dropdown {
    pointer-events: none !important; 
    transition: transform 0.3s ease;
  }

  /* Rotate arrow when active */
  .navmenu .dropdown.active > a .toggle-dropdown {
    transform: rotate(180deg);
  }

  /* Keep sub-menus hidden until active */
  .navmenu .dropdown ul {
    display: none; /* The JS will turn this to 'block' on click */
  }
}

@media (max-width: 1199px) {
  /* Reduce the padding at the top and bottom of the header */
  .header {
    padding: 8px 0 !important; 
  }

  /* Shrink the logo slightly so it doesn't push the header height out */
  .header .logo-wrap img {
    min-height: 45px !important; /* Reduced from 60px */
    height: 45px !important;
  }

  /* Narrow the gap between the logo and the nav toggle icon */
  #header .container-fluid {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  /* Ensure the hamburger icon is centered with the new smaller logo */
  .mobile-nav-toggle {
    top: 15px !important;
  }
}

@media (max-width: 1199px) {
  .navmenu {
    height: auto !important;
    min-height: unset !important;
    padding: 0 !important;
  }
}


@media (max-width: 1199px) {
  .navmenu {
    height: auto !important;
    min-height: unset !important;
    padding: 0 !important;
  }
}

@media (max-width: 1199px) {
  /* 1. Force the header to only be as tall as its content */
  #header {
    height: auto !important;
    padding: 5px 0 !important; /* Extremely tight padding */
    min-height: unset !important;
  }

  /* 2. Reset the container flex properties */
  #header .container-fluid, 
  #header .container-xl {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* 3. Strip margins from the logo and nav icons */
  .header .logo, 
  .header .logo-wrap {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  /* 4. Ensure the navigation menu container isn't taking up space */
  #navmenu {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 5. Force the logo image height */
  .header .logo img {
    max-height: 40px !important; /* Force it a bit smaller to test */
    min-height: unset !important;
    margin: 0 !important;
    padding-left:34vw;
  }
}


/* 1. Hide the toggle arrow on desktop */
@media (min-width: 1200px) {
  .navmenu .toggle-dropdown {
    display: none !important;
  }
}

/* 2. Show the toggle arrow on mobile/tablet */
@media (max-width: 1199px) {
  .navmenu .toggle-dropdown {
    display: flex !important; /* Use flex to help with centering */
    align-items: center;
    justify-content: center;
    /* Optional: add some spacing so it doesn't touch the text */
    margin-left: 10px; 
    font-size: 12px;
  }
}




/* --- Services Section Custom Styles --- */

/* Container for the Services tabs */
.services-nav-wrapper {
  margin-bottom: 30px;
}

/* 1. Mobile & Tablet View: Horizontal Scroll */
@media (max-width: 991px) {
  .services-nav-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px; /* Space for the scrollbar */
    scrollbar-width: thin; /* Firefox support */
  }

  .services-nav-wrapper .nav-tabs {
    display: flex !important;
    flex-wrap: nowrap !important; /* Prevents 8 tabs from stacking vertically */
    width: max-content; /* Allows row to expand past screen width */
    margin: 0;
    border-bottom: none; /* Optional: cleans up the look on mobile */
  }

  .services-nav-wrapper .nav-item {
    width: 160px; /* Fixed width so tabs are consistent while swiping */
    margin-right: 0px;
    flex: 0 0 auto;
  }

  /* Custom Scrollbar Styling for Chrome/Safari/Edge */
  .services-nav-wrapper::-webkit-scrollbar {
    height: 4px;
  }
  
  .services-nav-wrapper::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 10px;
  }
}

/* 2. Desktop View: 2 Rows of 4 Grid */
@media (min-width: 992px) {
  .services .nav-tabs .nav-item {
    margin-bottom: 20px;
  }

  /* Ensures the links fill the grid cell nicely */
  .services .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    transition: 0.3s;
    height: 100%;
  }
}

/* General consistency for icons/text within the tabs */
.services .nav-link i {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
}

.services .nav-link h4 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}





/* --- Services Underline Navigation --- */

/* 1. Remove the default Bootstrap border and background */
.services .nav-link {
  border: none !important;
  background: transparent !important;
  position: relative; /* Necessary for positioning the underline */
  padding-bottom: 15px;
  color: #666; /* Default inactive color */
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

/* 2. Style the active tab text color */
.services .nav-link.active {
  color: #bbaf85; /* Your theme's active color (e.g., Bootstrap primary) */
}

/* 3. Create the underline using a pseudo-element */
.services .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%); /* Centers the line */
  width: 0; /* Start with no width */
  height: 3px; /* Thickness of the line */
  background-color: #bbaf85; /* Color of the line */
  transition: width 0.3s ease; /* Smooth growing effect */
}

/* 4. Show the line when the tab is active */
.services .nav-link.active::after {
  width: 80px; /* Width of the underline for the active tab */
}

/* 5. (Optional) Hover effect: show a subtle line on hover */
.services .nav-link:hover::after {
  width: 80px;
}

/* 6. Ensure the mobile scroller still looks clean */
@media (max-width: 991px) {
  .services-nav-wrapper .nav-tabs {
    border-bottom: 1px solid #eee; /* Light base line for the whole row */
  }
  
  .services .nav-link {
    padding-bottom: 10px;
  }
}





/*--------------------------------------------------------------
# News Grid Custom Section
--------------------------------------------------------------*/
.news-grid {
  background-color: var(--background-color);
  padding: 60px 0;
}

/* Contained Card Frame Customization */
.news-card {
  background-color: #ffffff !important;
  border: 1px solid #cccccc !important; /* Elegant subtle gray border */
  border-radius: 0px !important;       /* Hard sharp luxury corners */
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Accentuate container cleanly on hover interaction */
.news-card:hover {
  border-color: #a8a8a8 !important;   /* Slightly deeper gray frame focus on hover */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

/* 2:1 Panoramic container profile makes image window exactly half layout height */
.news-img-wrap {
  width: 100%;
  aspect-ratio: 2 / 1; 
  overflow: hidden;
  background-color: #f8f9fa;
  border-bottom: 1px solid #cccccc; /* Separator divider tracking card frame gray */
}

.news-panoramic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Elegant Image Grow Effect on Hover */
.news-card:hover .news-panoramic {
  transform: scale(1.04);
}

/* Text Padding and Formatting inside contained card */
.news-card .card-body {
  padding: 20px 18px !important;
}

.news-title {
  font-family: var(--heading-font);
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-title a {
  color: var(--heading-color) !important;
}

.news-title a:hover {
  color: var(--accent-color) !important;
}

.news-excerpt {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #555555;
  font-weight: 300;
  margin-bottom: 0;
}

/* Responsive adjustments for mobile viewports */
@media (max-width: 576px) {
  .news-card .card-body {
    padding: 15px 14px !important;
  }
  .news-title {
    font-size: 15px;
  }
  .news-excerpt {
    font-size: 12px;
  }
}



/*--------------------------------------------------------------
# Landing Announcement Popup Modal Styling (Mobile Height Fixed)
--------------------------------------------------------------*/
#landingModal {
  cursor: pointer; /* Visually tells user they can click away to exit */
}

#landingModal .modal-dialog {
  max-width: 90vw; 
  margin: auto;
  pointer-events: none; /* Allows the background click matrix to pass through cleanly */
}

.custom-modal-frame {
  background: transparent !important;
  border: none !important;
  border-radius: 0px !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  pointer-events: auto; /* Re-enables clicking context rules inside the frame area */
}

/* --- Responsive Structural Height Bounds --- */
.structural-modal-body {
  overflow: hidden;
  border-radius: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* Mobile Default Constraint: Leaves plenty of pixel runtime room for close button */
  height: 55vh; 
  transition: height 0.3s ease;
}

.custom-modal-img {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain; 
  border: 1px solid rgba(255, 255, 255, 0.15); 
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.4));
  cursor: default;
}

/* Close Button Design Parameters */
.custom-modal-close-bottom {
  margin-top: 15px;
  background-color: #ffffff !important;
  opacity: 0.9 !important;
  border-radius: 50% !important;
  padding: 12px !important;
  flex-shrink: 0; /* Prevents the button from getting crushed on micro screens */
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.custom-modal-close-bottom:hover {
  opacity: 1 !important;
  transform: scale(1.1);
}

/* --- Media Queries for Responsive Scaling --- */

/* Medium devices (Tablets, 576px and up) */
@media (min-width: 576px) {
  .structural-modal-body {
    height: 65vh; /* Gives tablet view screens a little more size */
  }
}

/* Large devices (Desktops, 992px and up) */
@media (min-width: 992px) {
  #landingModal .modal-dialog {
    max-width: 75vw; /* Keeps it perfectly proportioned on expansive widescreen monitors */
  }
  .structural-modal-body {
    height: 75vh; /* Opens up window space to look gorgeous on standard desktop displays */
  }
}