/* Fonts */
:root {
  --default-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading-font: "Inter", sans-serif;
  --nav-font: "Inter", sans-serif;
}

/* Global Colors */
:root {
  --background-color: #ffffff;
  --default-color: #212529;
  --heading-color: #2d465e;
  --accent-color: #0f75bc;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

/* Nav Menu Colors */
:root {
  --nav-color: #212529;
  --nav-hover-color: #0f75bc;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #212529;
  --nav-dropdown-hover-color: #0f75bc;
}

/* Color Presets */
.light-background {
  --background-color: #f9f9f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --accent-color: #0678c9;
  --surface-color: #252525;
  --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(--accent-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);
}

/* PHP Email Form Messages */
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #0f75bc;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}
.btn-outline-success:hover {
  background-color: #0f75bc !important;
  color: #ffffff !important;
}

.btn-outline-success {
  color: #0f75bc !important;
  border-color: #0f75bc !important;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 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 {
  color: var(--default-color);
  /* 1. Initial State: Transparent */
  background-color: transparent; 
  padding: 20px 0;
  transition: all 0.5s;
  z-index: 997;

  /* 2. Sticky Positioning - ENHANCED */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  overflow: visible;
}

/* Sticky Header State - Maintains Position */
.header.sticky {
  position: fixed !important;
  top: 0 !important;
  background-color: var(--background-color);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

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

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

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

/* Scrolled State - Turn White */
.scrolled .header {
  background-color: var(--background-color); 
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

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

  .navmenu li {
    position: relative;
  }

  /* 1. Default State (Top of Page) */
  .navmenu a,
  .navmenu a:focus {
    color: #ffffff; /* Links are White */
    padding: 18px 15px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  /* Maintain Active State at Top */
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--accent-color); /* Active link stays Green */
  }

  /* 2. Scrolled State */
  .scrolled .navmenu a,
  .scrolled .navmenu a:focus {
    color: var(--nav-color); /* Links become Dark */
  }

  /* Maintain Active State when Scrolled */
  .scrolled .navmenu .active,
  .scrolled .navmenu .active:focus {
    color: var(--accent-color); /* Active link stays Green */
  }

  /* Hover States (Optional but good for UX) */
  .navmenu li:hover>a {
    color: var(--nav-hover-color);
  }

  /* 2. Scrolled State: Switch back to Dark color */
  .scrolled .navmenu a,
  .scrolled .navmenu a:focus {
    color: var(--nav-color);
  }

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

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

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

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px color-mix(in srgb, var(--default-color), transparent 85%);
  }

  .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;
    top: 100%;
    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 - Mobile */
@media (max-width: 1199px) {
  
  /* 1. The Toggle Button Container */
  .mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px; 
    height: 18px;
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  }

  /* 2. The Bars (Lines) */
  .mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--nav-color);
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-origin: center;
  }

  /* 3. The "Bloom" Animation (Active State) */
  .mobile-nav-toggle.toggled {
    transform: rotate(90deg); 
  }

  .mobile-nav-toggle.toggled span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
    background-color: var(--accent-color);
  }

  .mobile-nav-toggle.toggled span:nth-child(2) {
    transform: scale(0);
    opacity: 0;
  }

  .mobile-nav-toggle.toggled span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--accent-color);
  }

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

  /* 4. The Menu Container (Slide Down) */
  .navmenu ul {
    display: block;
    
    /* Animation Properties */
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0); /* FIXED: 0px to prevent jumping */
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Position & Shape */
    list-style: none;
    position: absolute;
    inset: 40px 10px auto 10px; /* Tucked higher up */
    
    border-radius: 0 0 20px 20px; /* Flat top, rounded bottom */

    padding: 0;
    margin: 0;
    
    /* Visuals */
    background-color: color-mix(in srgb, var(--nav-mobile-background-color), transparent 5%);
    z-index: -1; /* Sits behind header */
    
    /* Shadow Fix: Negative spread to hide top line */
    box-shadow: 0px 20px 35px -10px rgba(0, 0, 0, 0.15); 
    
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Border Fix: Explicitly remove top border */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: none !important;

    /* Scrollbar Hiding */
    overflow-y: auto; 
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .navmenu ul::-webkit-scrollbar {
    display: none;
  }

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

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 10px;
    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);
  }

  /* 5. Dropdowns (Slide Down) */
  .navmenu .dropdown ul {
    position: static;
    display: block;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    overflow-y: hidden;
    overflow-x: auto; 
    transition: all 0.5s ease-in-out;
    z-index: 99;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
  }

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

  .navmenu .dropdown > .dropdown-active {
    max-height: 700px;
    opacity: 1;
    visibility: visible;
    padding: 10px 0;
    background-color: rgba(33, 37, 41, 0.03);
  }

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

  .mobile-nav-active .navmenu {
    position: static;
    overflow: visible;
    background: transparent;
  }

  .mobile-nav-active .navmenu>ul {
    max-height: 80vh;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding: 10px 0;
  }
  
  /* 6. Header Fix: Turn solid when menu opens, remove shadow/borders */
  .mobile-nav-active .header {
    background-color: var(--background-color);
    box-shadow: none !important;
    border-bottom: none !important;
  }
}

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

.footer .footer-top {
  background-color: color-mix(in srgb, var(--background-color), white 5%);
  padding-top: 50px;
}

.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 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

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

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

.footer h4::after {
  content: "";
  position: absolute;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent-color);
  bottom: 0;
  left: 0;
}

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

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

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.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 .copyright {
  padding: 30px 0;
}

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

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

.footer .social-links a {
  font-size: 18px;
  display: inline-block;
  background: color-mix(in srgb, var(--default-color), transparent 92%);
  color: var(--accent-color);
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 4px;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
  text-decoration: none;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Preloader with Custom Logo
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color); /* White background */
  transition: all 0.6s ease-out;
  
  /* Flexbox to center the logo */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The Container for the Image */
#preloader .preloader-content {
  position: relative;
  width: 80px; /* Adjust size of your logo here */
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The Logo Image itself */
#preloader img {
  width: 100%;
  height: auto;
  object-fit: contain;
  
  /* Animation: Pulse Effect */
  animation: logo-pulse 1.5s ease-in-out infinite;
}

/* Optional: Add a colored ring around the logo */
#preloader .preloader-content:before {
  content: "";
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  border: 3px solid transparent;
  border-top-color: var(--accent-color); /* Your Blue Color */
  border-radius: 50%;
  animation: spin-ring 2s linear infinite;
}

/* Keyframes for the Logo Pulse */
@keyframes logo-pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* Keyframes for the Ring Spin */
@keyframes spin-ring {
  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: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  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: 80px 0;
  text-align: center;
  position: relative;
}

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

.page-title h1 {
  font-size: 42px;
  font-weight: 700;
  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: 400;
}

.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: 60px 0;
  scroll-margin-top: 100px;
  overflow: clip;
}

@media (max-width: 1199px) {
  section, .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 15px;
  margin-top: -3%;
}

.section-title p {
  margin-bottom: 0;
  font-family: var(--heading-font);
  font-size: 32px;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  padding: 0;
  border-radius: 0 0 25px 25px;
}

.hero .carousel {
  width: 100%;
  min-height: 86vh; /* 100% Viewport Height */
  padding: 0;
  margin: 0;
  background-color: var(--background-color);
  position: relative;
}

/* 1. Define the Zoom Animation */
@keyframes zoomEffect {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: scale(1); /* Default state */
}

/* 2. Apply Animation ONLY when the slide is active */
.hero .carousel-item.active img {
  animation: zoomEffect 5s linear forwards;
}

.hero .carousel-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

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

.hero .carousel-container {
  position: absolute;
  inset: 90px 64px 64px 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  z-index: 3;
}

.hero h2 {
  margin-bottom: 30px;
  font-size: 48px;
  font-weight: 700;
  animation: fadeInDown 1s both;
}

@media (max-width: 768px) {
  .hero .carousel {
  min-height: 78vh; /* 100% Viewport Height */
}
  .hero h2 {
    font-size: 30px;
  }
  .section-title h2 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
  margin-top: -12%;
}
.section-title p {
  font-size: 25px;
  margin-bottom: 15px;
}
}

.hero p {
  animation: fadeInDown 1s both 0.2s;
}

@media (min-width: 1024px) {
  .hero h2, .hero p {
    max-width: 60%;
  }
}

.hero .btn-get-started {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 8px 32px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px;
  animation: fadeInUp 1s both 0.4s;
}

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

/* Hide navigation arrows */
.hero .carousel-control-prev,
.hero .carousel-control-next {
  display: none;
}

/* Pagination Indicators - Loading Bar Effect */
.hero .carousel-indicators {
  list-style: none;
}

.hero .carousel-indicators li {
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.3);
  width: 40px;
  height: 4px;
  margin: 0 5px;
  border-radius: 1px;
  border: none;
  overflow: hidden;
  position: relative;
}

.hero .carousel-indicators li.active {
  background-color: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.hero .carousel-indicators li.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: var(--accent-color);
  animation: loading-bar 5s linear forwards;
}

@keyframes loading-bar {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 100%, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translate3d(0, -100%, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .section-title h2 {
  color: var(--accent-color);
  font-size: 20px;
  margin-top: -3%;
}

.services .content .service-item {
  background-color: var(--surface-color);
  padding: 20px 30px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-left: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  position: relative;
}

.services .content .service-item .number {
  position: absolute;
  right: 10px;
  top: 10px;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.services .content .service-item .service-item-icon {
  position: relative;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.services .content .service-item .service-item-icon img {
  width: 50px;
}

.services .content .service-item .service-item-icon:before {
  position: absolute;
  content: "";
  transform: rotate(45deg);
  z-index: -1;
  left: -20px;
  border-top: 40px solid transparent;
  border-bottom: 40px solid transparent;
  border-right: 40px solid var(--accent-color);
  display: none;
}

.services .content .service-item .service-item-icon>span {
  color: var(--default-color);
  font-size: 4rem;
}

.services .content .service-item .service-item-content .service-heading {
  font-size: 20px;
  color: var(--default-color);
  font-weight: 400;
}

.services .content .service-item .service-item-content p {
  font-size: 15px;
}

@media (min-width: 769px) {
  .services .content [class^=col-]:nth-child(4n+4) .service-item {
    border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  }
  .services .content [class^=col-]:nth-last-child(-n+4) .service-item {
    border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  }
}

@media (max-width: 768px) {
  .services .content [class^=col-]:nth-child(2n+2) .service-item {
    border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  }
  .services .content [class^=col-]:last-child .service-item,
  .services .content [class^=col-]:nth-last-child(2) .service-item {
    border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  }
}

@media (max-width: 576px) {
  .services .content [class^=col-] .service-item {
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    margin-bottom: 10px;
  }
}

/* Targets almost all Phones and Tablets (Landscape and Portrait) */

@media (max-width: 1199px) {
  .about .content {
  padding: 0rem 0 !important;
}

}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .section-title {
  margin-bottom: -60px;
}

.about .content {
  background: var(--accent-color);
  color: var(--contrast-color);
  padding: 7rem 0;
}

.about .content .img-overlap {
  margin-top: -150px;
}

.about p {
  color: var(--contrast-color);
}

.about .content-title {
  color: var(--contrast-color);
  font-weight: 300;
  text-align: left;
}

.about .content-title strong {
  font-weight: 700;
}

.about .content-subtitle {
  font-weight: 300;
  color: var(--contrast-color);
  text-transform: uppercase;
  font-size: 1.3rem;
}

/*--------------------------------------------------------------
# Services 2 Section
--------------------------------------------------------------*/
.services-2 {
  overflow: visible;
  margin-bottom: 200px;
  margin-top: -18%;
}

.services-2 .section-title {
  text-align: left;
}

.services-2 .section-title h2 {
  color: color-mix(in srgb, var(--contrast-color), transparent 50%);
  text-transform: uppercase;
  font-size: 20px;
}

.services-2 .section-title p {
  color: var(--contrast-color);
}

.services-2 .services-carousel-wrap {
  position: relative;
  margin-bottom: -200px;
}

.services-2 .swiper-wrapper {
  height: auto;
}

.services-2 .service-item {
  position: relative;
  overflow: hidden;
}

.services-2 .service-item:before {
  content: "";
  background-color: color-mix(in srgb, var(--background-color), transparent 50%);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  position: absolute;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: 0.3s all ease;
}

.services-2 .service-item img {
  transition: 0.5s all ease;
  transform: scale(1);
}

.services-2 .service-item .service-item-contents {
  z-index: 9;
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  transition: 0.3s all ease;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
}

.services-2 .service-item .service-item-contents .service-item-category {
  color: var(--accent-color);
  text-transform: uppercase;
}

.services-2 .service-item .service-item-contents .service-item-title {
  color: var(--contrast-color);
  margin-bottom: 0;
}

.services-2 .service-item:hover:before {
  opacity: 1;
  visibility: visible;
}

.services-2 .service-item:hover .service-item-contents {
  transform: translateY(0%);
  opacity: 1;
  visibility: visible;
}

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

.services-2 .navigation-prev,
.services-2 .navigation-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  width: 46px;
  height: 46px;
  background: var(--contrast-color);
  background-color: none;
  border: none;
  transition: 0.3s all ease;
}

.services-2 .navigation-prev i,
.services-2 .navigation-next i {
  font-size: 2rem;
}

.services-2 .navigation-prev:hover,
.services-2 .navigation-next:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.services-2 .navigation-prev {
  left: 10px;
}

.services-2 .navigation-next {
  right: 10px;
}

.services-2 .swiper {
  padding-bottom: 50px;
}

.services-2 .swiper-pagination {
  bottom: 0px;
}

.services-2 .swiper-pagination .swiper-pagination-bullet {
  border-radius: 0;
  width: 20px;
  height: 4px;
  background-color: color-mix(in srgb, var(--background-color), transparent 80%) !important;
  opacity: 1;
}

.services-2 .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color) !important;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonial img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.testimonials .testimonial blockquote p {
  font-size: 20px;
  color: var(--default-color);
  font-weight: 500;
}

.testimonials .testimonial .client-name {
  text-transform: uppercase;
  font-size: 1.2rem;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Recent Posts Section
--------------------------------------------------------------*/
.recent-posts .post-item {
  background: var(--surface-color);
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.recent-posts .post-item .post-img img {
  transition: 0.5s;
}

.recent-posts .post-item .post-date {
  position: absolute;
  right: 0;
  bottom: 0;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  text-transform: uppercase;
  font-size: 13px;
  padding: 6px 12px;
  font-weight: 500;
}

.recent-posts .post-item .post-content {
  padding: 30px;
}

.recent-posts .post-item .post-title {
  color: var(--heading-color);
  font-size: 20px;
  font-weight: 700;
  transition: 0.3s;
  margin-bottom: 15px;
}

.recent-posts .post-item .meta i {
  font-size: 16px;
  color: var(--accent-color);
}

.recent-posts .post-item .meta span {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.recent-posts .post-item hr {
  color: color-mix(in srgb, var(--default-color), transparent 80%);
  margin: 20px 0;
}

.recent-posts .post-item .readmore {
  display: flex;
  align-items: center;
  font-weight: 600;
  line-height: 1;
  transition: 0.3s;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.recent-posts .post-item .readmore i {
  line-height: 0;
  margin-left: 6px;
  font-size: 16px;
}

.recent-posts .post-item:hover .post-title,
.recent-posts .post-item:hover .readmore {
  color: var(--accent-color);
}

.recent-posts .post-item:hover .post-img img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Call To Action Section
--------------------------------------------------------------*/
.call-to-action .content {
  padding: 20px 0;
}

.call-to-action .content h3 {
  font-weight: 300;
  text-transform: uppercase;
}

.call-to-action .content .form-subscribe .form-control {
  border: 2px solid var(--accent-color);
  background: var(--surface-color);
  border-radius: 0;
}

.call-to-action .content .form-subscribe input[type=email] {
  height: 63px !important;
  color: var(--default-color);
}

.call-to-action .content .form-subscribe input[type=email]:focus {
  box-shadow: none;
}

.call-to-action .content .form-subscribe input[type=email]::placeholder {
  color: color-mix(in srgb, var(--contrast-color), transparent 50%);
}

.call-to-action .content .loading,
.call-to-action .content .error-message,
.call-to-action .content .sent-message {
  margin-top: 15px;
}

.call-to-action .content .btn {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  border: 1px solid var(--accent-color);
  border-radius: 0;
}

.call-to-action .content .btn:hover,
.call-to-action .content .btn:active,
.call-to-action .content .btn:focus {
  box-shadow: none;
  outline: none;
  background-color: var(--contrast-color);
  border: 1px solid var(--contrrast-color);
}

/*--------------------------------------------------------------
# About 3 Section
--------------------------------------------------------------*/
.about-3 .content-title {
  color: var(--accent-color);
  margin-bottom: 30px;
}

.about-3 .btn-cta {
  text-transform: uppercase;
  font-size: 14px;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 30px;
  padding-right: 30px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 6px;
}

.about-3 .list-check {
  margin-bottom: 50px;
}

.about-3 .list-check li {
  display: block;
  padding-left: 30px;
  position: relative;
}

.about-3 .list-check li:before {
  content: "\f26e";
  display: inline-block;
  font-family: "bootstrap-icons" !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: -0.125em;
  -webkit-font-smoothing: antialiased;
  position: absolute;
  top: 0.1rem;
  font-size: 20px;
  left: 0;
  color: var(--accent-color);
}

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

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

.team .person figure {
  margin-bottom: 0;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.team .person img {
  transition: 0.3s all ease;
}

.team .person .person-contents {
  text-align: center;
}

.team .person .person-contents h3 {
  color: var(--heading-color);
  font-size: 24px;
}

.team .person .person-contents .position {
  color: var(--accent-color);
}

.team .person:hover img {
  transform: scale(1.05);
}

.team .person .social {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
}

.team .person .social a {
  display: block;
  margin-bottom: 10px;
  width: 40px;
  height: 40px;
  background: var(--contrast-color);
  position: relative;
}

.team .person .social a>span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.team .person .social a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

/*--------------------------------------------------------------
# Blog Posts 2 Section
--------------------------------------------------------------*/
.blog-posts-2 article {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
  border-radius: 8px;
  overflow: hidden;
}

.blog-posts-2 .post-img img {
  transition: 0.5s;
}

.blog-posts-2 .post-content {
  padding: 30px;
}

.blog-posts-2 .post-title {
  font-size: 20px;
  line-height: 24px;
  color: var(--heading-color);
  font-weight: 600;
  transition: 0.3s;
  margin-bottom: 20px;
}

.blog-posts-2 .meta {
  position: relative;
  margin-top: -20px;
  padding: 0 30px;
}

.blog-posts-2 .meta i {
  font-size: 16px;
  color: var(--accent-color);
}

.blog-posts-2 .meta span {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-posts-2 .meta .post-date {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  font-size: 13px;
  padding: 6px 12px;
  text-align: center;
  margin-right: 15px;
  border-radius: 4px;
}

.blog-posts-2 .meta .post-date span {
  display: block;
  color: var(--contrast-color);
  font-weight: 700;
  font-size: 20px;
}

.blog-posts-2 .readmore {
  display: flex;
  align-items: center;
  font-weight: 400;
  line-height: 1;
  transition: 0.3s;
  color: color-mix(in srgb, var(--heading-color), transparent 20%);
}

.blog-posts-2 .readmore i {
  line-height: 0;
  margin-left: 6px;
  font-size: 16px;
}

.blog-posts-2 article:hover .post-title,
.blog-posts-2 article:hover .readmore {
  color: var(--accent-color);
}

.blog-posts-2 article:hover .post-img img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Blog Pagination Section
--------------------------------------------------------------*/
.blog-pagination {
  padding-top: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-pagination ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.blog-pagination li {
  margin: 0 5px;
  transition: 0.3s;
}

.blog-pagination li a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-pagination li a.active,
.blog-pagination li a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.blog-pagination li a.active a,
.blog-pagination li a:hover a {
  color: var(--contrast-color);
}

/*--------------------------------------------------------------
# Blog Details Section
--------------------------------------------------------------*/
.blog-details {
  padding-bottom: 30px;
}

.blog-details .article {
  background-color: var(--surface-color);
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog-details .post-img {
  margin: -30px -30px 20px -30px;
  overflow: hidden;
}

.blog-details .title {
  color: var(--heading-color);
  font-size: 28px;
  font-weight: 700;
  padding: 0;
  margin: 30px 0;
}

.blog-details .content {
  margin-top: 20px;
}

.blog-details .content h3 {
  font-size: 22px;
  margin-top: 30px;
  font-weight: bold;
}

.blog-details .content blockquote {
  overflow: hidden;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  padding: 60px;
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.blog-details .content blockquote p {
  color: var(--default-color);
  line-height: 1.6;
  margin-bottom: 0;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
}

.blog-details .content blockquote:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--accent-color);
  margin-top: 20px;
  margin-bottom: 20px;
}

.blog-details .meta-top {
  margin-top: 20px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
}

.blog-details .meta-top ul li+li {
  padding-left: 20px;
}

.blog-details .meta-top i {
  font-size: 16px;
  margin-right: 8px;
  line-height: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 14px;
  display: inline-block;
  line-height: 1;
}

.blog-details .meta-bottom {
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.blog-details .meta-bottom i {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  display: inline;
}

.blog-details .meta-bottom a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  transition: 0.3s;
}

.blog-details .meta-bottom a:hover {
  color: var(--accent-color);
}

.blog-details .meta-bottom .cats {
  list-style: none;
  display: inline;
  padding: 0 20px 0 0;
  font-size: 14px;
}

.blog-details .meta-bottom .cats li {
  display: inline-block;
}

.blog-details .meta-bottom .tags {
  list-style: none;
  display: inline;
  padding: 0;
  font-size: 14px;
}

.blog-details .meta-bottom .tags li {
  display: inline-block;
}

.blog-details .meta-bottom .tags li+li::before {
  padding-right: 6px;
  color: var(--default-color);
  content: ",";
}

.blog-details .meta-bottom .share {
  font-size: 16px;
}

.blog-details .meta-bottom .share i {
  padding-left: 5px;
}

/*--------------------------------------------------------------
# Blog Comments Section
--------------------------------------------------------------*/
.blog-comments {
  padding: 10px 0;
}

.blog-comments .comments-count {
  font-weight: bold;
}

.blog-comments .comment {
  margin-top: 30px;
  position: relative;
}

.blog-comments .comment .comment-img {
  margin-right: 14px;
}

.blog-comments .comment .comment-img img {
  width: 60px;
}

.blog-comments .comment h5 {
  font-size: 16px;
  margin-bottom: 2px;
}

.blog-comments .comment h5 a {
  font-weight: bold;
  color: var(--default-color);
  transition: 0.3s;
}

.blog-comments .comment h5 a:hover {
  color: var(--accent-color);
}

.blog-comments .comment h5 .reply {
  padding-left: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.blog-comments .comment h5 .reply i {
  font-size: 20px;
}

.blog-comments .comment time {
  display: block;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 5px;
}

.blog-comments .comment.comment-reply {
  padding-left: 40px;
}

/*--------------------------------------------------------------
# Comment Form Section
--------------------------------------------------------------*/
.comment-form {
  padding-top: 10px;
}

.comment-form form {
  background-color: var(--surface-color);
  margin-top: 30px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.comment-form form h4 {
  font-weight: bold;
  font-size: 22px;
}

.comment-form form p {
  font-size: 14px;
}

.comment-form form input {
  background-color: var(--surface-color);
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  font-size: 14px;
  border-radius: 4px;
  padding: 10px 10px;
}

.comment-form form input:focus {
  color: var(--default-color);
  background-color: var(--surface-color);
  box-shadow: none;
  border-color: var(--accent-color);
}

.comment-form form input::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.comment-form form textarea {
  background-color: var(--surface-color);
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  border-radius: 4px;
  padding: 10px 10px;
  font-size: 14px;
  height: 120px;
}

.comment-form form textarea:focus {
  color: var(--default-color);
  box-shadow: none;
  border-color: var(--accent-color);
  background-color: var(--surface-color);
}

.comment-form form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.comment-form form .form-group {
  margin-bottom: 25px;
}

.comment-form form .btn-primary {
  border-radius: 4px;
  padding: 10px 20px;
  border: 0;
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.comment-form form .btn-primary:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact {
  padding-top: 10px;
}

.contact .info {
  background-color: var(--surface-color);
  padding: 40px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contact .info h3 {
  font-weight: 600;
  font-size: 24px;
}

.contact .info p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 30px;
  font-size: 15px;
}

.contact .info-item+.info-item {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.contact .info-item i {
  font-size: 24px;
  color: var(--accent-color);
  transition: all 0.3s ease-in-out;
  margin-right: 20px;
}

.contact .info-item h4 {
  padding: 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.contact .php-email-form {
  width: 100%;
}

.contact .php-email-form .form-group {
  padding-bottom: 8px;
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  color: var(--default-color);
  background-color: var(--surface-color);
  border-radius: 0px;
  box-shadow: none;
  font-size: 14px;
  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 input[type=text],
.contact .php-email-form input[type=email] {
  height: 48px;
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 10px 12px;
  height: 290px;
}

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

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

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widgets-container {
  margin: 60px 0 30px 0;
}

.widget-title {
  color: var(--heading-color);
  font-size: 20px;
  font-weight: 600;
  padding: 0 0 10px 0;
  margin: 0 0 20px 0;
  position: relative;
}

.widget-title:before {
  content: "";
  position: absolute;
  display: block;
  height: 2px;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  left: 0;
  right: 0;
  bottom: 1px;
}

.widget-title:after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
  left: 0;
  bottom: 1px;
}

.widget-item {
  margin-bottom: 40px;
}

.widget-item:last-child {
  margin-bottom: 0;
}

.recent-posts-widget .post-item {
  display: flex;
  margin-bottom: 15px;
}

.recent-posts-widget .post-item:last-child {
  margin-bottom: 0;
}

.recent-posts-widget .post-item img {
  width: 80px;
  margin-right: 15px;
}

.recent-posts-widget .post-item h4 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 5px;
}

.recent-posts-widget .post-item h4 a {
  color: var(--default-color);
  transition: 0.3s;
}

.recent-posts-widget .post-item h4 a:hover {
  color: var(--accent-color);
}

.recent-posts-widget .post-item time {
  display: block;
  font-style: italic;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.categories-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-widget ul li {
  padding-bottom: 10px;
}

.categories-widget ul li:last-child {
  padding-bottom: 0;
}

.categories-widget ul a {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.categories-widget ul a:hover {
  color: var(--accent-color);
}

.categories-widget ul a span {
  padding-left: 5px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 14px;
}

.blog-author-widget img {
  max-width: 120px;
  margin-right: 20px;
}

.blog-author-widget h4 {
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 0px;
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.blog-author-widget .social-links {
  margin: 5px 0;
}

.blog-author-widget .social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  margin-right: 5px;
  font-size: 18px;
}

.blog-author-widget .social-links a:hover {
  color: var(--accent-color);
}

.blog-author-widget p {
  font-style: italic;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 10px 0 0 0;
}

.search-widget form {
  background: var(--background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  padding: 3px 10px;
  position: relative;
  transition: 0.3s;
}

.search-widget form input[type=text] {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  width: calc(100% - 40px);
  background-color: var(--background-color);
  color: var(--default-color);
}

.search-widget form input[type=text]:focus {
  outline: none;
}

.search-widget form button {
  background: var(--accent-color);
  color: var(--contrast-color);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  font-size: 16px;
  padding: 0 15px;
  margin: -1px;
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
  line-height: 0;
}

.search-widget form button i {
  line-height: 0;
}

.search-widget form button:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.search-widget form:is(:focus-within) {
  border-color: var(--accent-color);
}

.recent-posts-widget-2 .post-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.recent-posts-widget-2 .post-item:last-child {
  margin-bottom: 0;
}

.recent-posts-widget-2 .post-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.recent-posts-widget-2 .post-item h4 a {
  color: var(--default-color);
  transition: 0.3s;
}

.recent-posts-widget-2 .post-item h4 a:hover {
  color: var(--accent-color);
}

.recent-posts-widget-2 .post-item time {
  display: block;
  font-style: italic;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.tags-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags-widget ul li {
  display: inline-block;
}

.tags-widget ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 14px;
  padding: 6px 14px;
  margin: 0 6px 8px 0;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 60%);
  display: inline-block;
  transition: 0.3s;
}

.tags-widget ul a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  border: 1px solid var(--accent-color);
}

.tags-widget ul a span {
  padding-left: 5px;
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  font-size: 14px;
}
/* Distribute footer columns evenly across the width */
.footer .footer-top .row {
  justify-content: space-between;
}
/*--------------------------------------------------------------
# Gallery Section
--------------------------------------------------------------*/
/* 1. Filters Styling */
.gallery .gallery-filters {
  padding: 0;
  margin: 0 0 40px 0;
  list-style: none;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  border-radius: 50px;
  background: var(--surface-color);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  padding: 5px 10px;
}

.gallery .gallery-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px 25px;
  font-size: 14px;
  font-weight: 500;
  margin: 0 5px;
  line-height: 1;
  color: var(--default-color);
  transition: all 0.3s ease-in-out;
  border-radius: 50px;
}

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

/* 2. Gallery Item Card */
.gallery .gallery-content {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-color);
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer; /* Indicates it is clickable */
}

.gallery .gallery-content img {
  transition: 0.3s;
  width: 100%;
  height: auto;
  display: block;
}

/* 3. Overlay & Hover Effects */
.gallery .gallery-content .gallery-info {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

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

.gallery .gallery-content:hover img {
  transform: scale(1.1); /* Zoom effect on image */
}

/* 4. Centered Zoom Icon */
.gallery .gallery-content .gallery-info .preview-link {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: 32px;
  color: rgba(255, 255, 255, 0.9);
  transition: 0.3s;
  line-height: 0;
}

.gallery .gallery-content .gallery-info .preview-link:hover {
  color: var(--accent-color);
  transform: translate(-50%, -50%) scale(1.2);
}

/* 5. Title at Bottom */
.gallery .gallery-content .gallery-info h4 {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 18px;
  color: #fff;
  font-weight: 700;
  margin: 0;
  padding: 0 15px;
}

/*--------------------------------------------------------------
# GLightbox Customization (Fuller View)
--------------------------------------------------------------*/
/* Move Navigation Arrows to Bottom Right */
.glightbox-clean .gprev,
.glightbox-clean .gnext {
  top: auto !important;
  bottom: 15px !important;
  transform: none !important;
  margin-top: 0 !important;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  width: 40px;
  height: 40px;
}

.glightbox-clean .gnext {
  right: 10px !important;
  left: auto !important;
}

.glightbox-clean .gprev {
  right: 60px !important;
  left: auto !important;
}

/* Align Description to Left */
.gslide-desc {
  text-align: left !important;
  margin-bottom: 0 !important;
  padding-bottom: 5px;
}
/* Force Mobile Toggle Bars to be Blue in ALL states */
.mobile-nav-toggle span,
.mobile-nav-toggle.toggled span,
.scrolled .mobile-nav-toggle span,
.mobile-nav-active .mobile-nav-toggle span {
  background-color: #0f75bc !important;
}

/* Force the container color (just in case) */
.mobile-nav-toggle {
  color: #0f75bc !important;
}
/*--------------------------------------------------------------No-show class----------------------------------------------*/
/* Tablets in portrait mode (e.g., iPad portrait) */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .no-show {
  display: none !important;}

}

/* Tablets in landscape mode (e.g., iPad landscape) */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .no-show {
  display: none !important;}

}
/* Small mobile devices (e.g., iPhone SE, older Android phones) */
@media only screen and (max-width: 480px) {
    .no-show {
  display: none !important;}
}

/* Larger mobile devices and low-resolution tablets in portrait or landscape */
@media only screen and (min-width: 481px) and (max-width: 767px) {
  .no-show {
  display: none !important;}
}
/*------------------------------------------------------------End Of No-show class----------------------------------------------*/

/* Search Pill Styling */
.search-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 4px 12px;
  margin: 0 10px; /* Space between logo and nav */
  transition: 0.3s;
  flex: 1; /* Allows it to sit in the middle */
  max-width: 450px; /* Prevents it from getting too wide */
  height: 34px;
}

/* Scrolled state: Header becomes white */
.scrolled .search-pill {
  background: #f4f4f4;
  border-color: #ddd;
}

.search-pill form {
  width: 100%;
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff; /* White text for dark/transparent header */
  width: 100%;
  font-size: 14px;
}

.scrolled .search-input {
  color: var(--default-color); /* Dark text when scrolled */
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.scrolled .search-input::placeholder {
  color: #888;
}

.search-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.scrolled .search-btn {
  color: var(--accent-color);
}

.search-pill:focus-within {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.25);
}

/* Responsive adjustments for very small screens */
@media (max-width: 480px) {
  .search-pill {
    max-width: 140px; /* Reduced from 180px */
    margin: 0 5px;
    padding: 0px 8px; /* Reduced from 10px */
    height: 30px; /* Reduced from 34px */
  }
  
  .search-input {
    font-size: 11px; /* Reduced from 12px */
  }
}

/* Tablet screens - Additional responsive adjustments */
@media (min-width: 481px) and (max-width: 1199px) {
  .search-pill {
    max-width: 200px; /* Reduced for tablets */
    margin: 0 8px;
    padding: 2px 10px;
    height: 32px;
  }
  
  .search-input {
    font-size: 12px;
  }
}
  
  .header .logo img {
    max-height: 33px; /* Shrink logo slightly to fit pill better */
  }
}

/* Cart Button Styling (Desktop Only) */
.cart-btn {
  color: #ffffff; /* White icon for transparent header */
  font-size: 24px;
  margin-left: 20px;
  position: relative;
  transition: 0.3s;
  text-decoration: none;
  display: flex; /* ADD: Ensure proper flex layout */
  align-items: center; /* ADD: Vertically center items */
  gap: 5px; /* ADD: Space between icon and count */
}

/* Scrolled state: Header becomes white, icon becomes dark */
.scrolled .cart-btn {
  color: var(--nav-color);
}

.cart-btn:hover {
  color: var(--accent-color);
}

/* Cart Badge/Count - FIXED positioning */
.cart-count {
  position: relative; /* CHANGED: from absolute to relative */
  background-color: var(--accent-color);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 50px;
  font-weight: 700;
  line-height: 1;
  min-width: 18px; /* ADD: Ensure consistent width */
  text-align: center; /* ADD: Center the number */
}

/* Ensure the button stays white on top of dark hero background */
.index-page:not(.scrolled) .cart-btn {
  color: #ffffff;
}

/* Mega Menu for Desktop Only */
@media (min-width: 1200px) {
  .navmenu .mega-menu {
    position: static; /* Required for the dropdown to span full width */
  }

  .navmenu .mega-menu ul {
    margin: 0;
    padding: 20px;
    display: grid !important; /* Force grid layout */
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 10px 20px;
    width: 800px; /* Width of the dropdown */
    left: 50% !important;
    transform: translateX(-50%) translateY(30px) !important;
    border-radius: 0px 0px 20px 20px;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
    margin-top: -1%;
  }

  .navmenu .mega-menu ul li:hover .category-img {
    transform: scale(1.05);
    transition: 0.3s;
  }


  /* Adjust individual links inside the grid */
  .navmenu .mega-menu ul li {
    padding: 0;
  }

  .navmenu .mega-menu ul li a {
    padding: 8px 15px;
    font-size:14px;
    color: var(--default-color);
  }

  .navmenu .mega-menu ul li a:hover {
    color: var(--accent-color);
    background: rgba(15, 117, 188, 0.05);
    border-radius: 5px;
  }
}

/* Tablet & Mobile: Revert to standard vertical list (No changes needed) */

/* Styling for images inside the Categories dropdown */
.navmenu .mega-menu ul li {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers the text and image */
  padding: 0px;
}

.category-img {
  width: 100%;        /* Adjust based on your needs */
  max-width: 150px;   /* Prevents the image from being too large */
  height: auto;
  margin-top: 0px;    /* Space between the link text and the image */
  border-radius: 4px; /* Optional: rounds the corners of the images */
  display: block;
}

/* Ensure the link text looks good above the image */
.navmenu .mega-menu ul li a {
  padding: 0;
  margin-bottom: 5px;
  font-weight: 600;
}

/* 1. Mobile & Tablet Styles (Standard Left Alignment) */
.navmenu .mega-menu ul li {
  display: block; /* Standard block layout for vertical stacking */
  padding: 10px 20px;
  text-align: left; /* Force left alignment */
}

.navmenu .mega-menu ul li a {
  display: block;
  text-align: left;
  padding: 0;
}

/* Hide images on mobile/tab */
.category-img {
  display: none;
}

/* 2. Desktop Styles (Centered with Images) */
@media (min-width: 1200px) {
  .navmenu .mega-menu ul li {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers text and image on desktop */
    text-align: center;
    padding: 15px;
  }

  .navmenu .mega-menu ul li a {
    text-align: center;
    margin-bottom: 8px;
    font-weight: 700;
  }

  .category-img {
    display: block; /* Show images only on desktop */
    width: 100%;
    max-width: 180px;
    height: auto;
    margin-top: 10px;
    border-radius: 8px;
  }
}

@media (min-width: 1200px) {
  .navmenu .shop-mega-menu .shop-dropdown-container {
    width: 900px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(20px) !important;
    display: block !important;
    padding: 0 !important;
    background: #fff;
    border-radius:0px 0px 20px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  /* Top Tabs Styling */
  .shop-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    gap: 40px;
  }

  .tab-link {
    font-weight: 700;
    color: var(--nav-color);
    cursor: pointer;
    padding: 5px 0;
    position: relative;
    transition: 0.3s;
  }

  /* The Underline feedback */
  .tab-link::after {
    content: "";
    position: absolute;
    bottom: -11px; /* Align exactly with the border-bottom */
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: 0.3s;
  }

  .tab-link:hover::after, 
  .tab-link.active-tab::after {
    width: 100%;
  }

  /* Content area */
  .shop-content {
    padding: 25px;
  }

  .product-grid-wrapper {
    display: none; /* Hide all grids */
  }

  /* Default Grid (All) */
  .product-grid-wrapper.show-grid {
    display: block;
  }

  /* Show grids when hovering over the entire shop dropdown container */
.shop-mega-menu:hover .product-grid-wrapper.show-grid,
.shop-mega-menu:hover .product-grid-wrapper.active-grid {
  display: block;
}

  /* Row & Card Styling */
  .product-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .product-card {
    text-align: center;
    transition: 0.3s;
  }

  .product-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
  }

  .product-card h4 {
    font-size: 14px;
    margin-bottom: 5px;
  }

  .product-card .price {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 14px;
    margin-bottom: 10px;
  }

  .view-btn {
    display: inline-block;
    padding: 5px 50px !important;
    background: var(--accent-color);
    color: #fff !important;
    font-size: 12px;
    border-radius: 50px;
    font-weight: 600;
  }
}

/* Hide extra shop content on mobile */
@media (max-width: 1199px) {
  .shop-tabs, .shop-content { display: none; }
}

@media (min-width: 1200px) {
  /* Tab Navigation */
  .shop-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    gap: 40px;
  }

  .tab-link {
    font-weight: 700;
    color: var(--nav-color) !important;
    text-decoration: none !important;
    padding: 5px 0;
    position: relative;
    transition: 0.3s;
  }

  .tab-link::after {
    content: "";
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: 0.3s;
  }

  .tab-link:hover::after, 
  .tab-link.active-tab::after {
    width: 100%;
  }

  /* Product Card Effects */
  .product-card {
    text-align: center;
    padding: 15px;
    transition: all 0.3s ease;
  }

  .product-card .img-wrapper {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
  }

  .product-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .product-card:hover img {
    transform: scale(1.1);
  }

  .product-card:hover {
    transform: translateY(-5px);
  }

  /* View Button Feedback */
  .view-btn {
    display: inline-block;
    padding: 6px 20px;
    background: var(--accent-color);
    color: #fff !important;
    font-size: 12px;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--accent-color);
    transition: 0.3s;
  }

  .product-card:hover .view-btn {
    background: transparent;
    color: var(--accent-color) !important;
  }
}

/* ============================Maybe an Issue============================= */
@media (max-width: 1199px) {
  .navmenu .d-none.d-xl-block {
    display: none !important;
  }
}

/* =============================================Bottom navigation bar (Mobile Only)====================== */

/* Mobile Bottom Nav Styles */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  z-index: 9999;
  border-top: 1px solid #eee;
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #666; /* Default gray color */
  transition: 0.3s;
}

.mobile-bottom-nav .nav-item i {
  font-size: 18px;
  margin-bottom: -6px;
}

.mobile-bottom-nav .nav-item span {
  font-size: 10px;
  font-weight: 600;
}

/* Active/Hover State */
.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
  color: var(--accent-color);
}

/* Cart Badge for Mobile */
.cart-badge {
  position: absolute;
  top: -6px;
  right: 8%;
  background: var(--accent-color);
  color: white;
  font-size: 8px;
  padding: 2px 4px;
  border-radius: 50%;
  min-width: 10px;
  line-height: 1;
}

/* Adjust Body Padding so content isn't hidden behind the bar */
@media (max-width: 1199px) {
  body {
    padding-bottom: 70px; /* Adjust based on height of your bottom nav */
  }
}

/* Base styling for nav items */
.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #666;
  text-decoration: none;
  transition: 0.3s;
  position: relative;
}

/* Hide filled icons by default */
.mobile-bottom-nav .icon-fill {
  display: none;
}

/* ACTIVE STATE FEEDBACK */
.mobile-bottom-nav .nav-item.active {
  color: var(--accent-color);
}

/* When active: hide regular, show filled */
.mobile-bottom-nav .nav-item.active .icon-regular {
  display: none;
}

.mobile-bottom-nav .nav-item.active .icon-fill {
  display: inline-block;
  color: var(--accent-color);
}

@media (min-width: 1200px) {
  /* Container for the icons */
  .cart-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 5px;
  }

  /* Default state: show regular, hide fill */
  .cart-btn .icon-fill {
    display: none;
  }

  .cart-btn .icon-regular {
    display: inline-block;
  }

  /* Hover state: hide regular, show fill */
  .cart-btn:hover .icon-regular {
    display: none;
  }

  .cart-btn:hover .icon-fill {
    display: inline-block;
    color: var(--accent-color); /* Matches your theme color */
  }
}

/* Mobile Categories Slide-up Panel */
@media (max-width: 991px) {
  .mobile-categories-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    max-height: 70vh;
    overflow-y: auto;
  }
  
  .mobile-categories-panel.active {
    transform: translateY(0);
  }
  
  .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
  }
  
  .panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
  }
  
  .close-panel {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    color: #333;
  }
  
  .categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
  }
  
  .category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
  }
  
  .category-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 8px;
  }
  
  .category-item span {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
  }
  
  .category-item:active {
    transform: scale(0.95);
  }
  
  /* Overlay backdrop */
  .mobile-categories-panel::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: -1;
  }
  
  .mobile-categories-panel.active::before {
    opacity: 1;
    visibility: visible;
  }
}

/* Tablet: 2 columns */
@media (min-width: 576px) and (max-width: 991px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 25px;
  }
  
  .category-item span {
    font-size: 13px;
  }
}

#scroll-top {
  display: none !important;
}

/* Service Card Structure */
.service-card-v2 {
  background: var(--surface-color);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column; /* Vertical stack: Text on top, Image at bottom */
  justify-content: space-between;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.service-card-v2:hover {
  transform: translateY(-7px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-info .service-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0px;
}

.service-info p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 0px;
}

/* Shop Now Button */
.btn-shop {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 25px;
}

.btn-shop i {
  margin-left: 8px;
  font-size: 1.1rem;
  transition: 0.3s;
}

.btn-shop:hover i {
  transform: translateX(5px);
}

/* Image Styling */
.service-image {
  width: 100%;
  margin-top: auto; /* Pushes image to the very bottom of the card */
}

.service-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
}

/* Responsive adjustment for Desktop (xl) */
@media (min-width: 1200px) {
  .service-card-v2 {
    padding: 40px;
  }
  
  .service-info .service-heading {
    font-size: 1.5rem;
  }
}


/* =====================================Best Sellers Section==================================== */
/* Best Sellers Section Styles */
.best-sellers {
  padding: 60px 0;
}

.best-card {
  background: var(--surface-color);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column; /* Vertical stack: Content on top, Image at bottom */
  transition: all 0.3s ease;
}

.best-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.best-card-info {
  padding: 5px;
  flex-grow: 1; /* This pushes the image to the very bottom */
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 8px;
}

.product-snippet {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
}

.price-wrap {
  margin-top: auto; /* Aligns price/button even if text length varies */
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.curr-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-color);
}

.shop-link {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--default-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.shop-link i {
  margin-left: 5px;
  transition: 0.3s;
}

.shop-link:hover i {
  transform: translateX(4px);
}

.best-card-img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  overflow: hidden;
}

.best-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures images don't stretch */
}

/*--------------------------------------------------------------
# Unified Slide-up/Down Panels
--------------------------------------------------------------*/
/* NOTE: Main slide-up-panel styles are defined later in the file 
   to avoid conflicts and ensure smooth animations */

.panel-header {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.panel-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--heading-color);
}

.panel-header i {
  font-size: 28px;
  cursor: pointer;
  color: #333;
}

.panel-body {
  padding: 20px 15px;
}

/* 3-Column Fit Without Scrolling */
.category-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 15px;
  text-align: center;
}

.category-item {
  text-decoration: none !important;
  color: inherit;
}

.category-item img {
  width: 100%;
  max-width: 80px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 8px;
  border: 1px solid #eee;
}

.category-item span {
  font-size: 11px;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

/* Backdrop Overlay */
body.panel-open::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/*--------------------------------------------------------------
# Slide-Up/Down Animation - ENHANCED & CONSOLIDATED
--------------------------------------------------------------*/
.slide-up-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%; /* Start off-screen */
  width: 100%;
  background: #ffffff;
  z-index: 10001;
  /* SMOOTH transition for both directions */
  transition: bottom 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0s linear 0.5s;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  max-height: 50vh;
  visibility: hidden; /* Hidden when off-screen */
  display: block !important; /* Prevents d-none conflicts */
}

/* Active state - Panel is visible and slid up */
.slide-up-panel.active {
  bottom: 0 !important;
  visibility: visible !important;
  transition: bottom 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0s linear 0s;
}

/* Ensure the X button is always clickable */
.panel-header i {
  cursor: pointer;
  z-index: 10005;
  padding: 10px;
}

/* ===================================================================Cart Settings Panel===================================================== */
/* Full-Screen Cart Specifics */
.full-screen-panel {
  max-height: 100vh !important; /* Covers whole screen */
  height: 100vh;
  border-radius: 0 !important; /* No rounded corners for full screen */
  display: flex;
  flex-direction: column;
}

.full-screen-panel .panel-body {
  flex-grow: 1;
  overflow-y: auto; /* Scrollable content */
  padding: 20px;
  -webkit-overflow-scrolling: touch; /* Smooth scroll for iOS */
}

/* Full-screen panel animation */
.slide-up-panel.full-screen-panel {
  bottom: -100%;
}

.slide-up-panel.full-screen-panel.active {
  bottom: 0 !important;
}

/* Fonts */
:root {
  --default-font: "Poppins", sans-serif;
  --heading-font: "Poppins", sans-serif;
  --nav-font: "Poppins", sans-serif;
}

body {
  font-family: var(--default-font);
}

/* ===================================================================
   RESPONSIVE MAIN CONTENT (Tablets & Phones)
   =================================================================== */

/* Desktop Base (Default) */
.shop-hero {
  padding: 160px 0 100px;
}

.shop-hero h1 {
  font-size: 4rem;
  font-weight: 800;
}

.products-grid {
  padding: 80px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns Desktop */
  gap: 32px;
}

/* Tablet Screens (max-width: 992px) */
@media (max-width: 992px) {
  .shop-hero {
    padding: 120px 0 20px;
  }

  .shop-hero h1 {
    font-size: 1rem;
  }

  .shop-hero p {
    font-size: 1.1rem;
    padding: 0 20px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns Tablet */
    gap: 20px;
    padding: 0 15px;
  }

  .filters-bar {
    padding: 10px 0;
  }

  .filter-pills {
    gap: 4px;
  }

  .filter-pill {
    padding: 5px 10px;
    font-size: 1px;
  }
}

/* Phone Screens (max-width: 576px) */
@media (max-width: 576px) {
  .shop-hero {
    padding: 100px 0 60px;
  }

  .shop-hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .shop-hero p {
    font-size: 1rem;
    margin-top: 15px;
  }

  .products-grid {
    padding: 40px 0;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns Phone */
    gap: 12px; /* Tighter gap for small screens */
    padding: 0 10px;
  }

  /* Adjust product box internal padding for small screens */
  .product-content {
    padding: 15px;
  }

  .product-name {
    font-size: 1rem;
    min-height: auto;
    margin-bottom: 8px;
  }

  .price-box .current {
    font-size: 1.4rem;
  }

  .add-btn {
    padding: 8px 15px;
    font-size: 12px;
  }

  /* Horizontal scroll for filters on very small phones if they overflow */
  .filter-pills {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    padding: 10px 15px;
    -webkit-overflow-scrolling: touch;
  }
  
  .filter-pill {
    flex: 0 0 auto;
  }

  .pagination-wrap {
    margin-top: 30px;
  }

  .page-item .page-link {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}

/* Footer Centering for Mobile & Tablet */
    @media (max-width: 992px) {
      #footer .footer-top .row {
        justify-content: center;
        text-align: center;
      }

      /* Centers the logo and contact info */
      #footer .footer-about {
        display: flex;
        flex-direction: column;
        align-items: center;
      }

      /* Centers the link lists and removes the left padding/bullets */
      #footer .footer-links ul {
        padding: 0;
        list-style: none;
      }

      /* Ensures social links are centered in their row */
      #footer .copyright {
        text-align: center !important;
      }
      
      #footer .social-links {
        justify-content: center;
        display: flex;
        width: 100%;
      }

      /* Adjusts footer contact info to center the text */
      #footer .footer-contact p {
        margin-left: auto;
        margin-right: auto;
      }
    }

    /* Fix for Footer Contact Section Centering */
    @media (max-width: 992px) {
      /* Targets the specific column to ensure it takes full width and centers text */
      #footer .footer-links.col-lg-2.col-md-3 {
        width: 100% !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 30px; /* Adds spacing between columns on mobile */
      }

      /* Removes default padding from the list to allow true centering */
      #footer .footer-links ul {
        padding: 0 !important;
        margin: 0;
        list-style: none;
      }

      /* Ensures the individual list items are centered */
      #footer .footer-links ul li {
        display: block;
        width: 100%;
      }
      
      /* Optional: Increases tap target size for mobile contact links */
      #footer .footer-links ul li a {
        display: inline-block;
        padding: 5px 0;
      }
    }

    /* --- Mobile Cart Panel Styling (Desktop Look-alike) --- */

/* Panel Layout */
.mobile-cart-panel .panel-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cart-items-container {
  padding: 20px;
  padding-bottom: 200px; /* Space for fixed summary */
  overflow-y: auto;
}

/* Individual Item Card (Desktop Style adapted for Mobile) */
.mobile-cart-item {
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: flex;
  gap: 15px;
  align-items: flex-start;
  border: 1px solid #eee;
}

.mobile-cart-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  background: #f8f9fa;
  flex-shrink: 0;
}

.mobile-cart-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.mobile-cart-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #2d465e;
  margin-bottom: 5px;
  line-height: 1.2;
}

.mobile-cart-specs {
  font-size: 11px;
  color: #6c757d;
  margin-bottom: 10px;
}

/* Controls Row: Qty + Price */
.mobile-cart-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

/* Desktop-style Quantity Buttons */
.mobile-qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 50px;
  padding: 4px 8px;
}

.mobile-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #2d465e;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  cursor: pointer;
}

.mobile-qty-val {
  font-size: 13px;
  font-weight: 700;
  min-width: 15px;
  text-align: center;
}

.mobile-cart-price {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #2d465e;
}

.mobile-remove-btn {
  color: #dc3545;
  background: none;
  border: none;
  font-size: 18px;
  padding: 0 0 0 10px;
}

/* Fixed Bottom Summary Section */
.mobile-cart-summary {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 20px;
  border-top: 1px solid #eee;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
  z-index: 10;
}

.mobile-cart-summary .summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}

.mobile-cart-summary .summary-total {
  display: flex;
  justify-content: space-between;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #2d465e;
}

.checkout-btn-mobile {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #0f75bc, #065a8f);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  transition: 0.3s;
}

.checkout-btn-mobile:hover {
  background: linear-gradient(135deg, #065a8f, #0f75bc);
  color: #fff;
}

/* --- Desktop Cart Dropdown Styles --- */
.desktop-cart-wrapper {
  position: relative;
  margin-left: 20px;
}

/* Hover/Active State to show dropdown */
.desktop-cart-wrapper:hover .desktop-cart-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.desktop-cart-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  border: 1px solid #f0f0f0;
  padding: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1000;
  margin-top: 15px; /* Offset from header */
}

/* Arrow pointer for the dropdown */
.desktop-cart-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  border-top: 1px solid #f0f0f0;
  border-left: 1px solid #f0f0f0;
}

/* Scrollable Area for Items */
.desktop-items-scroll {
  max-height: 300px;
  overflow-y: auto;
  margin-right: -5px; /* Adjust for scrollbar */
  padding-right: 5px;
}

/* Individual Item in Dropdown */
.desktop-cart-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f8f9fa;
}

.desktop-cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 12px;
}

.desktop-item-info h6 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 2px;
  color: #2d465e;
  line-height: 1.2;
}

.desktop-item-info span {
  font-size: 12px;
  color: #666;
}

.desktop-remove-btn {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 14px;
  padding: 5px;
  margin-left: auto;
  cursor: pointer;
  transition: 0.2s;
}

.desktop-remove-btn:hover {
  transform: scale(1.2);
}

.desktop-cart-footer {
  padding-top: 15px;
  border-top: 2px solid #f0f0f0;
  margin-top: 10px;
}

/* Mobile Cart Panel Scroll & Padding Fixes */
.mobile-cart-panel.full-screen-panel {
  display: flex !important;
  flex-direction: column;
  height: 100vh;        /* Fallback */
  height: 100dvh;       /* Dynamic Viewport Height (fixes mobile browser bar issues) */
  max-height: 100dvh !important;
  bottom: -100dvh;      /* Ensure it hides completely off-screen */
}

.mobile-cart-panel .panel-header {
  flex-shrink: 0;       /* Prevents header from collapsing */
  z-index: 1050;        /* Keeps header above content */
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.mobile-cart-panel .panel-body {
  flex-grow: 1;         /* Fills remaining space */
  overflow-y: auto;     /* Enables vertical scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
  
  /* PADDING ADJUSTMENT: 
     Top: 20px, Right: 25px, Bottom: 120px (extra space for last item), Left: 25px */
  padding: 20px 25px 120px 25px !important; 
}

/* Ensure the cart list container takes full width */
#cart-items-list {
  width: 100%;
  display: block;
}



    