/* ==========================================================================
   SolarExpert — theme
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root {
  --primary: #0db02b;
  --primary-dark: #0a8a22;
  --secondary: #28a9e2;
  --dark-blue: #2c3e50;
  --body-color: #5b5b5b;
  --light-bg: #f7f7f7;
  --light-bg-2: #f0f0f0;
  --border-color: #e5e5e5;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(44, 62, 80, 0.08);
  --transition: all 0.3s ease;
}

/* ---- Base ---- */
* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--body-color);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: 89px;
}

@media (max-width: 991.98px) {
  body {
    padding-top: 73px;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  color: var(--dark-blue);
  font-weight: 500;
  margin-bottom: 0;
}
p {
     font-size: 15px;
    line-height: normal;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
}

section {
  padding: 90px 0;
}

@media (max-width: 767.98px) {
  section {
    padding: 60px 0;
  }
}

.bg-light-section {
  background-color: var(--light-bg);
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 18px;
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.6rem;
  }
}

.section-subtitle {
  color: var(--body-color);
  max-width: 700px;
}

.section-heading {
  margin-bottom: 50px;
}

/* ---- Buttons ---- */
.btn-solar-primary {
  background-color: var(--primary);
  border: 2px solid var(--primary);
  color: var(--white);
  font-weight: 400;
  padding: 5px 15px;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-solar-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.btn-solar-outline {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 400;
  padding: 12px 30px;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-solar-outline:hover {
  background-color: var(--white);
  color: var(--dark-blue);
}

.btn-solar-dark-outline {
  background-color: transparent;
  border: 2px solid var(--dark-blue);
  color: var(--dark-blue);
  font-weight: 400;
  padding: 12px 30px;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-solar-dark-outline:hover {
  background-color: var(--dark-blue);
  color: var(--white);
}

/* ---- Top bar ---- */
.topbar {
  background-color: var(--dark-blue);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 8px 0;
}

.topbar a {
  color: rgba(255, 255, 255, 0.85);
}

.topbar .topbar-item {
  margin-right: 24px;
}

.topbar .topbar-item i {
  color: var(--primary);
  margin-right: 6px;
}

.topbar .social-links a {
  color: rgba(255, 255, 255, 0.85);
  margin-left: 14px;
}

.topbar .social-links a:hover {
  color: var(--primary);
}

/* ---- Navbar ---- */
.navbar-solar {
  background-color: var(--white);
  padding: 10px 0;
  transition: var(--transition);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
}

.navbar-solar.scrolled {
  padding: 12px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 991.98px) {
  .navbar-solar .navbar-collapse {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
}

.navbar-brand-solar {
  font-size: 1.6rem;
  font-weight: 500;
  width: 100px;
  color: var(--dark-blue);
}

.navbar-brand-solar span {
  color: var(--primary);
}

.navbar-solar .nav-link {
  color: var(--dark-blue);
  font-weight: 400;
  margin: 0 10px;
      font-size: 14px;
  padding: 8px 0 !important;
  position: relative;
}

.navbar-solar .nav-link.active,
.navbar-solar .nav-link:hover {
  color: var(--primary);
}

.navbar-solar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

/* ---- Hero slider ---- */
.hero-slider .hero-slide {
  position: relative;
  height: 88vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-slider .hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 30, 40, 0.78) 0%, rgba(20, 30, 40, 0.45) 60%, rgba(20, 30, 40, 0.25) 100%);
}

.hero-slide .hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 680px;
}

.hero-slide .hero-tag {
  display: inline-block;
  background-color: rgba(13, 176, 43, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-slide h1 {
  color: var(--white);
  font-size: 3.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

@media (max-width: 767.98px) {
  .hero-slide h1 {
    font-size: 2rem;
  }
  .hero-slider .hero-slide {
    height: auto;
    padding: 140px 0 90px;
  }
  .navbar-solar{
    padding: 0 0;
  }
}

.hero-slide p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.hero-slider .slick-dots {
  bottom: 30px;
}

.hero-slider .slick-dots li button:before {
  color: var(--white);
  opacity: 0.6;
  font-size: 10px;
}

.hero-slider .slick-dots li.slick-active button:before {
  opacity: 1;
  color: var(--primary);
}

.hero-slider .slick-prev,
.hero-slider .slick-next {
  z-index: 3;
  width: 46px;
  height: 46px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.hero-slider .slick-prev {
  left: 30px;
}

.hero-slider .slick-next {
  right: 30px;
}

.hero-slider .slick-prev:before,
.hero-slider .slick-next:before {
  font-size: 20px;
}

/* ---- Stats counter ---- */
.stats-strip {
  background-color: var(--dark-blue);
  padding: 60px 0;
}

.stat-item {
  text-align: center;
  color: var(--white);
  padding: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item .stat-number {
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--white);
}

.stat-item .stat-number span {
  color: var(--primary);
}

.stat-item .stat-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin-top: 6px;
}

@media (max-width: 767.98px) {
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 20px;
    padding-bottom: 20px;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
}

/* ---- About summary ---- */
.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  border-radius: var(--radius);
}

.about-experience-badge {
  position: absolute;
  bottom: -30px;
  right: -20px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 22px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}

@media (max-width: 767.98px) {
  .about-experience-badge {
    right: 10px;
  }
}

.about-experience-badge .num {
  font-size: 2.2rem;
  font-weight: 600;
  display: block;
  line-height: 1;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.check-list li {
  margin-bottom: 12px;
  padding-left: 30px;
  position: relative;
}

.check-list li::before {
  content: "\f26a";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ---- Service cards ---- */
.service-card {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 40px 30px;
  height: 100%;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.service-card .service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(13, 176, 43, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--primary);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.service-card .service-link {
  color: var(--dark-blue);
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 18px;
}

.service-card .service-link:hover {
  color: var(--primary);
}

/* ---- Why choose us ---- */
.feature-item {
  text-align: center;
  padding: 20px;
}

.feature-item .feature-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 2px dashed var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  color: var(--primary);
}

.feature-item h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

/* ---- Project cards / carousel ---- */
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  margin: 0 12px;
}

.project-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.project-card .project-info {
  background-color: var(--white);
  padding: 24px;
}

.project-card .project-info small {
  color: var(--primary);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.project-card .project-info h3 {
  font-size: 1.1rem;
  margin-top: 8px;
}

.slick-slide {
  outline: none;
}

/* ---- Testimonials ---- */
.testimonial-card {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  margin: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}

.testimonial-card .quote-icon {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 16px;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 22px;
}

.testimonial-card .client-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
}

.testimonial-card h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.testimonial-card span {
  font-size: 0.85rem;
  color: var(--body-color);
}

/* ---- Blog cards ---- */
.blog-card {
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  height: 100%;
  transition: var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.blog-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.blog-card .blog-body {
  padding: 26px;
}

.blog-card .blog-meta {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.blog-card .read-more {
  color: var(--dark-blue);
  font-weight: 500;
  font-size: 0.9rem;
}

.blog-card .read-more:hover {
  color: var(--primary);
}

/* ---- CTA banner ---- */
.cta-banner {
  background-color: var(--primary);
  background-image: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 60px;
  color: var(--white);
}

@media (max-width: 767.98px) {
  .cta-banner {
    padding: 40px 25px;
    text-align: center;
  }
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 10px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

/* ---- Page banner (inner pages) ---- */
.page-banner {
  position: relative;
  padding: 160px 0 80px;
  background-size: cover;
  background-position: center;
  text-align: center;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(21, 32, 43, 0.75);
}

.page-banner .banner-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.page-banner h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 12px;
}

.page-banner .breadcrumb {
  justify-content: center;
  margin-bottom: 0;
  background: transparent;
}

.page-banner .breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}

.page-banner .breadcrumb .active {
  color: var(--primary);
}

/* ---- Vision / Mission / Values ---- */
.value-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  height: 100%;
  transition: var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.value-card .value-icon {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 18px;
}

/* ---- Team ---- */
.team-card {
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  text-align: center;
}

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-card .team-body {
  padding: 22px;
}

.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.team-card span {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
}

.team-card .team-social {
  margin-top: 14px;
}

.team-card .team-social a {
  color: var(--body-color);
  margin: 0 6px;
}

.team-card .team-social a:hover {
  color: var(--primary);
}

/* ---- Services detail (zig-zag) ---- */
.service-detail-row {
  margin-bottom: 100px;
}

.service-detail-row:last-child {
  margin-bottom: 0;
}

.service-detail-row img {
  border-radius: var(--radius);
}

.service-detail-row .feature-bullets {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}

.service-detail-row .feature-bullets li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 12px;
}

.service-detail-row .feature-bullets li::before {
  content: "\f26a";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ---- Process steps ---- */
.process-step {
  text-align: center;
  position: relative;
}

.process-step .step-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--dark-blue);
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}

.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* ---- Contact page ---- */
.contact-info-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  height: 100%;
  transition: var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.contact-info-card .contact-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 18px;
}

.contact-form-wrap {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
}

@media (max-width: 767.98px) {
  .contact-form-wrap {
    padding: 30px 20px;
  }
}

.contact-form-wrap .form-control,
.contact-form-wrap .form-select {
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.contact-form-wrap .form-control:focus,
.contact-form-wrap .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 176, 43, 0.15);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
  display: block;
}

#formSuccessMsg {
  display: none;
}

/* ---- Footer ---- */
.footer-solar {
  background-color: var(--dark-blue);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer-solar h5 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 26px;
}

.footer-solar p {
  color: rgba(255, 255, 255, 0.65);
      font-size: 14px;
}

.footer-solar .footer-brand {
  
  font-weight: 400;
      font-size: 14px;
  color: var(--white);
}

.footer-solar .footer-brand span {
  color: var(--primary);
}

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

.footer-solar .footer-links li {
  margin-bottom: 7px;
}

.footer-solar .footer-links a {
  color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
}

.footer-solar .footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-solar .footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  margin-top: 20px;
}

.footer-solar .footer-social a:hover {
  background-color: var(--primary);
}

.footer-solar .footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
    font-size: 14px;
}

.footer-solar .footer-contact-item i {
  color: var(--primary);
  margin-right: 12px;
  font-size: 1.1rem;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 50px;
  padding: 22px 0;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
  margin-left: 20px;
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* ---- Mega menu dropdowns ---- */
.navbar-solar .dropdown-menu {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 0;

}

.navbar-solar .dropdown-menu.dropdown-menu-columns {
  columns: 1;
  column-gap: 0;
  padding: 14px 24px;
 min-width: 320px;
}

.navbar-solar .dropdown-menu.dropdown-menu-columns-3 {
  padding: 20px 8px;
  min-width: 680px;
}

.navbar-solar .dropdown-menu-column {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 16px;
  border-left: 1px solid var(--border-color);
}

.navbar-solar .dropdown-menu-column:first-child {
  border-left: none;
}

/* Explicitly override the generic hover/.show display:block rules below so the
   3-column menu opens as a row of columns instead of collapsing to one stack. */
.navbar-solar .dropdown-menu.dropdown-menu-columns-3.show {
  display: flex;
  align-items: flex-start;
}

@media (min-width: 992px) {
  .navbar-solar .nav-item.dropdown:hover > .dropdown-menu.dropdown-menu-columns-3 {
    display: flex;
    align-items: flex-start;
  }
}

@media (max-width: 991.98px) {
  .navbar-solar .dropdown-menu.dropdown-menu-columns-3 {
    flex-direction: column;
    min-width: 100%;
    padding: 6px 0;
  }
  .navbar-solar .dropdown-menu-column {
    border-left: none;
    padding: 6px 16px;
  }
}

.navbar-solar .dropdown-item {
  color: var(--body-color);
  font-weight: 300;
  padding: 8px 24px;
  break-inside: avoid;
  font-size: 14px;
}

.navbar-solar .dropdown-menu-columns .dropdown-item {
  padding: 8px 0;
}

.navbar-solar .dropdown-menu-column .dropdown-item {
  padding: 5px 8px;
  white-space: nowrap;
}

.navbar-solar .dropdown-menu-column .dropdown-item:hover,
.navbar-solar .dropdown-menu-column .dropdown-item:focus {
  padding-left: 12px;
}

.navbar-solar .dropdown-item:hover,
.navbar-solar .dropdown-item:focus {
  background-color: transparent;
  color: var(--primary);
  padding-left: 28px;
}

.navbar-solar .dropdown-item.dropdown-header-link {
  font-weight: 500;
  color: var(--dark-blue);
}

.navbar-solar .dropdown-divider {
  margin: 8px 24px;
  width: calc(100% - 48px);
}

@media (min-width: 992px) {
  .navbar-solar .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
  }
  .navbar-solar .dropdown-toggle::after {
    vertical-align: 2px;
  }
}

@media (max-width: 991.98px) {
  .navbar-solar .dropdown-menu.dropdown-menu-columns {
    columns: 1;
    min-width: 100%;
    box-shadow: none;
    padding: 6px 0 6px 16px;
  }
}

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

/* ---- Story slider (basics / brands peek-carousel) ---- */
.story-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.story-label {
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--dark-blue);
}

.story-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.story-counter {
  font-weight: 500;
  color: var(--body-color);
  font-size: 0.95rem;
}

.story-counter .story-current {
  color: var(--dark-blue);
}

.story-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  color: var(--dark-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.story-arrow:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.story-arrow:disabled {
  opacity: 0.4;
  cursor: default;
  background-color: var(--white);
  border-color: var(--border-color);
  color: var(--dark-blue);
}

.story-slider-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.story-slider-viewport::-webkit-scrollbar {
  display: none;
}

.story-track {
  display: flex;
  gap: 24px;
}

.story-slide {
  flex: 0 0 84%;
  scroll-snap-align: start;
}

@media (max-width: 767.98px) {
  .story-slide {
    flex: 0 0 92%;
  }
}

.story-card {
  display: flex;
  align-items: stretch;
  background-color: var(--light-bg);
  border-radius: var(--radius);
  border: 1px solid #f7f7f7;
  overflow: hidden;
  min-height: 340px;
}

@media (max-width: 767.98px) {
  .story-card {
    flex-direction: column;
    min-height: 0;
  }
}

.story-card-image {
  flex: 0 0 42%;
  background-size: cover;
  background-position: center;
  position: relative;
}

@media (max-width: 767.98px) {
  .story-card-image {
    flex: none;
    height: 220px;
  }
}

.story-card-image.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.brand-tile-name {
  color: var(--white);
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  padding: 0 20px;
}

.story-card-body {
  flex: 1;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 767.98px) {
  .story-card-body {
    padding: 28px;
  }
}

.story-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.story-card-body p {
  margin-bottom: 22px;
}

.story-readmore {
  color: var(--dark-blue);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.story-readmore:hover {
  color: var(--primary);
}

/* ---- Price tables (product detail pages) ---- */
.price-table-card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 40px;
}

.price-table-card:last-child {
  margin-bottom: 0;
}

.price-table-header {
  padding: 20px 28px;
  background-color: var(--dark-blue);
  color: var(--white);
}

.price-table-header h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0;
}

.price-table-card .table {
  margin-bottom: 0;
}

.price-table-card .table thead th {
  background-color: var(--light-bg);
  color: var(--dark-blue);
  font-weight: 500;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.price-table-card .table td,
.price-table-card .table th {
  padding: 14px 28px;
  vertical-align: middle;
}

.price-note {
  font-size: 0.85rem;
  color: var(--body-color);
  font-style: italic;
}

/* ---- Brand partners grid ---- */
.partners-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-blue);
  line-height: 1.25;
}

.partners-subtitle {
  color: var(--body-color);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 320px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.partner-tile {
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  min-height: 120px;
  background-color: var(--white);
}

/* Internal divider lines only — no outer frame (3-col layout) */
.partners-grid .partner-tile:nth-child(3n) {
  border-right: none;
}

.partners-grid .partner-tile:nth-last-child(-n+3) {
  border-bottom: none;
}

.partner-tile img {
  max-height: 56px;
  max-width: 75%;
  object-fit: contain;
  transition: var(--transition);
}

.partner-tile:hover img {
  transform: scale(1.06);
}

@media (max-width: 575.98px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Recompute divider removal for the 2-col layout */
  .partners-grid .partner-tile:nth-child(3n) {
    border-right: 1px solid var(--border-color);
  }
  .partners-grid .partner-tile:nth-child(2n) {
    border-right: none;
  }
  .partners-grid .partner-tile:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--border-color);
  }
  .partners-grid .partner-tile:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (max-width: 767.98px) {
  .partners-title {
    font-size: 1.6rem;
  }
  .partner-tile {
    padding: 20px;
    min-height: 90px;
  }
  .partner-tile img {
    max-height: 42px;
  }
}
