:root {
  --hero-maroon: #580000;
  /* Dark Red/Maroon */
  --hero-gold: #c49a18;
  /* Button Gold */
  --hero-text: #222222;
  /* Dark Text */
  --hero-height: 100vh;
  /* Takes up 85% of the screen height */
}

.hero-section {
  position: relative;
  width: 100%;
  height: var(--hero-height);
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Ensure video/overlay stack predictably across browsers */
  isolation: isolate;
  background: #000;
  /* fallback while video loads */
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}

/* --- Gradient Overlay --- */
/* This creates the white fade effect so text is readable */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Simple left-to-right white to transparent gradient for best video visibility */
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.842) 0%,
      rgba(255, 255, 255, 0.0) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* --- Content Styling --- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.text-wrapper {
  max-width: 700px;
  /* Limits text width so it doesn't overlap the video too much */
}

/* Typography */
.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  color: var(--hero-text);
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-content h1 .highlight {
  color: var(--hero-maroon);
  font-weight: 700;
  display: block;
  /* Puts 'With Confidence' on a new line */
  font-size: 3.5rem;
}

.hero-description {
  /* font-family: sans-serif; */
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 30px;
  max-width: 500px;
}

/* --- Button Styling --- */
.btn-explore {
  display: inline-block;
  background-color: var(--hero-gold);
  color: #fff;
  padding: 12px 30px;
  text-decoration: none;
  /* font-family: sans-serif; */
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.3s ease;
  margin-bottom: 40px;
}

.btn-explore:hover {
  background-color: #a88310;
}

/* --- Logos Section --- */
.hero-logos {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.logo-card {
  background: #ffffffce;
  border: 1px solid #b4b4b4ec;
  border-radius: 8px;
  padding: 10px;
  width: 80px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
  /* Remove .hero-overlay override so desktop gradient is used on all screens */

  .hero-content h1 {
    font-size: 1.8rem;
    margin: 25px;
  }

  .hero-content h1 .highlight {
    font-size: 2.3rem;
    margin: 25px;
  }
}

/* --- About Us Section --- */
.about-section {
  padding: 40px 8%;
  /* background-color: #ffffff; */
}

/* .about-card {
    background-color: #eddcd9; 
    background-image: linear-gradient(135deg, rgba(0,0,0,0.02) 25%, transparent 25%, transparent 50%, rgba(0,0,0,0.02) 50%, rgba(0,0,0,0.02) 75%, transparent 75%, transparent),
                      linear-gradient(225deg, rgba(0,0,0,0.02) 25%, transparent 25%, transparent 50%, rgba(0,0,0,0.02) 50%, rgba(0,0,0,0.02) 75%, transparent 75%, transparent);
    background-size: 40px 40px; 
    border-radius: 15px; 
    padding: 60px 80px; 
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
} */

.about-card {
  background-color: #eddcd9;
  /* Pattern eka ain kala, dan me color eka witharai */
  border-radius: 15px;
  padding: 50px 80px;
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Typography */
/* .about-card .subtitle {
    display: block;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 500;
} */

.about-card h2 {
  color: var(--hero-maroon);
  /* Reusing the Maroon variable from Hero section */
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.3;
}

.about-card p {
  color: #444;
  font-size: 16px;
  line-height: 1.6;
  max-width: 900px;
  /* Prevent text from being too wide */
  margin: 0 auto;
  /* Center the paragraph */
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
  .about-card {
    padding: 40px 20px;
  }

  .about-card h2 {
    font-size: 24px;
  }

  .about-card p {
    font-size: 14px;
  }
}

/* --- Services Section --- */
.services-section {
  padding: 40px 8%;
  /* background-color: #ffffff; */
}

.section-title {
  color: var(--hero-maroon);
  /* Using the Maroon color variable */
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: left;
  /* Align header to left as per image */
}

/* Grid Layout for 4 Columns */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 4 Equal columns */
  gap: 30px;
  /* Space between cards */
}

/* Service Card Styling */
.service-card {
  background: #ffffffd0;
  border: 1px solid #fff;
  text-align: left;
  display: flex;
  padding: 20px;
  border-radius: 12px;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(32, 29, 22, 0.212);
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.service-card:hover {
  background: #f3ede4;
  border-color: #410d078f;
  box-shadow: 0 4px 16px rgba(117, 22, 5, 0.13);
}

.service-card img {
  width: 100%;
  height: 200px;
  /* Fixed height for uniform look */
  object-fit: cover;
  /* Crop image to fit without distortion */
  border-radius: 12px;
  /* Rounded corners for images */
  margin-bottom: 20px;
}

.service-card h3 {
  color: #1a1a3d;
  /* Dark Blue/Black color for titles */
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
}

.service-card p {
  color: #666;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
  /* Pushes the button to the bottom if text varies */
}

/* Read More Button */
.btn-read-more {
  display: inline-block;
  background-color: #580000;
  /* Dark Red color */
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
  /* Only takes necessary width */
  transition: background-color 0.3s ease;
}

.btn-read-more:hover {
  background-color: #3e0000;
  /* Darker red on hover */
}

/* --- Responsive (Tablets & Mobile) --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on tablets */
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    /* 1 column on mobile */
  }

  .section-title {
    font-size: 28px;
    text-align: center;
    /* Center title on mobile */
  }
}

/* --- Feature Section --- */
.feature-section {
  position: relative;
  padding: 80px 8%;
  overflow: hidden;
  min-height: 600px;
  /* Ensures section is tall enough */
  display: flex;
  align-items: center;
  /* Vertically center the text */
  margin-top: 0;
}

/* Background Image Positioning */
.feature-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/index1.png");
  /* Make sure to save your image as this name */
  background-size: cover;
  background-position: center right;
  /* Focus on the people on the right side */
  z-index: -2;
}

/* Gradient Overlay (Matches the white fade in your design) */
.feature-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Solid white on left (40%), fading to transparent on right */
  background: linear-gradient(90deg,
      rgba(110, 101, 101, 0.226) 10%,
      rgba(110, 101, 101, 0.199) 50%,
      rgba(31, 30, 30, 0.411) 100%);
  z-index: -1;
}

/* Content Styling */
.feature-content {
  max-width: 650px;
  /* Limits text width */
  position: relative;
  z-index: 1;
}

.feature-logo {
  height: 60px;
  /* Adjust size based on your logo file */
  width: auto;
  margin-bottom: 25px;
  display: block;
}

.feature-content h2 {
  font-size: 42px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
  margin-bottom: 25px;
  /* font-family: 'Segoe UI', sans-serif; */
}

.feature-content p {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  /* font-family: sans-serif; */
}

/* Pay Now Button */
.btn-pay-now {
  display: inline-block;
  background-color: #580000;
  /* Dark Maroon Color */
  color: #fff;
  padding: 14px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.btn-pay-now:hover {
  background-color: #3e0000;
}

/* --- Responsive Fixes --- */
@media (max-width: 992px) {
  .feature-overlay {
    /* On tablets/mobile, make background more solid so text is readable */
    background: linear-gradient(90deg,
        #ffffff 60%,
        rgba(255, 255, 255, 0.5) 100%);
  }
}

@media (max-width: 768px) {
  .feature-section {
    padding: 60px 0;
    min-height: auto;
  }

  .feature-bg-image {
    opacity: 0.3;
    /* Fade image more on mobile */
  }

  .feature-content h2 {
    font-size: 28px;
  }

  .feature-overlay {
    background: rgba(255, 255, 255, 0.9);
    /* Solid white overlay on mobile */
  }
}

/* =========================================
   RECENT NEWS SECTION
   ========================================= */
.news-section {
  padding: 30px 8%;
  /* background-color: #ffffff; */
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.news-content {
  background-color: var(--primary-color);
  color: #fff;
  padding: 20px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
}

.news-info {
  flex: 1;
  padding-right: 15px;
}

.news-date {
  font-size: 11px;
  opacity: 0.8;
  display: block;
  margin-bottom: 8px;
}

.news-content h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  color: #fff;
}

.news-content p {
  font-size: 11px;
  opacity: 0.7;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-arrow {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  padding-left: 10px;
}

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .feature-overlay {
    background: linear-gradient(90deg,
        #ffffff 60%,
        rgba(255, 255, 255, 0.5) 100%);
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 80vh;
    padding: 80px 0 40px 0;
    text-align: center;
  }

  .hero-video {
    opacity: 1;
    /* Showing video clearly on mobile */
  }

  .hero-overlay {
    background: rgba(255, 255, 255, 0.4);
    /* Making overlay more transparent */
  }

  .text-wrapper {
    margin: 0 auto;
  }

  .hero-logos {
    display: none;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h1 .highlight {
    font-size: 2.8rem;
  }

  .about-card {
    padding: 40px 20px;
  }

  .about-card h2 {
    font-size: 24px;
  }

  /* Remove side padding so service cards can use full width */
  .services-section {
    /* Leave space for the fixed left sidebar so cards don't get cut */
    padding-left: calc(35px + 16px);
    padding-right: 20px;
  }

  .services-section .container {
    max-width: 100%;
    padding: 0;
  }

  /* Services: show one card at a time with horizontal swipe */
  .services-grid {
    /* Use flex for a reliable "1 card per swipe" slider */
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Slider spacing on mobile */
    gap: 20px;
    padding: 0 0 20px 0;
    margin: 0;
  }

  .services-grid::-webkit-scrollbar {
    display: none;
  }

  .service-card {
    scroll-snap-align: start;
    /* Slightly smaller than news cards (more side "peek") */
    flex: 0 0 calc(100% - 40px);
    max-width: calc(100% - 40px);
    text-align: center;
    align-items: center;
    box-sizing: border-box;
  }

  .service-card {
    padding: 16px;
  }

  .service-card img {
    height: 180px;
  }

  .service-card h3 {
    /* Reserve space so all cards align even with different title lengths */
    min-height: 3.6em;
  }

  .service-card p {
    /* Reserve space so button stays aligned */
    min-height: 8.5em;
  }

  .section-title {
    text-align: center;
    font-size: 28px;
  }

  .feature-section {
    text-align: center;
    padding: 60px 0;
  }

  .feature-bg-image {
    opacity: 0.15;
  }

  .feature-overlay {
    background: rgba(255, 255, 255, 0.85);
  }

  .feature-content {
    margin: 0 auto;
  }

  .feature-logo {
    margin: 0 auto 20px auto;
  }

  .feature-content h2 {
    font-size: 28px;
  }

  .news-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(100% - 40px);
    /* Slider width */
    gap: 20px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 20px 20px 20px;
    margin: 0 -20px;
    max-width: none;
    /* Override previous max-width */
  }

  .news-grid::-webkit-scrollbar {
    display: none;
  }

  .news-card {
    scroll-snap-align: start;
    width: 100%;
    margin: 0;
  }

  .news-image img {
    height: 200px;
  }
}

/* --- Contact Section --- */
.contact-section {
  padding: 30px 8%;

  @media (max-width: 991px) {

    .about-section,
    .services-section {
      padding: 20px 5%;
    }

    .feature-section,
    .news-section,
    .contact-section {
      padding: 20px 5%;
    }
  }

  @media (max-width: 600px) {

    .about-section,
    .services-section {
      padding: 10px 4%;
    }

    .feature-section,
    .news-section,
    .contact-section {
      padding: 10px 4%;
    }
  }

  /* background-color: #ffffff; */
}

.contact-grid {
  display: flex;
  gap: 50px;
  /* Space between Form and Map */
  align-items: stretch;
  /* Both sides equal height */
}

/* Left Side: Form Styling */
.contact-form-wrapper {
  flex: 1;
  /* Takes 50% width */
}

.contact-intro {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 90%;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  /* Rounded corners */
  font-size: 14px;
  /* font-family: inherit; */
  outline: none;
  transition: border-color 0.3s;
  background-color: #fff;
}

.form-control:focus {
  border-color: var(--hero-maroon);
  /* Highlight color on focus */
}

.form-textarea {
  resize: none;
  /* Prevent manual resizing */
  margin-bottom: 20px;
}

/* Submit Button */
.btn-submit {
  background-color: #580000;
  /* Dark Maroon */
  color: #fff;
  padding: 12px 50px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.btn-submit:hover {
  background-color: #3e0000;
}

.form-footer-text {
  font-size: 12px;
  color: #888;
  margin-top: 25px;
  line-height: 1.5;
}

/* Right Side: Map Styling */
.contact-map-wrapper {
  flex: 1;
  /* Takes 50% width */
  min-height: 400px;
  /* Minimum height for map */
}

.contact-map-wrapper iframe {
  border-radius: 20px;
  /* Large rounded corners for the map */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Responsive Updates (Add inside your existing media query or here) --- */
@media (max-width: 992px) {
  .contact-grid {
    flex-direction: column;
    /* Stack vertically on tablet/mobile */
    gap: 40px;
  }

  .contact-map-wrapper {
    /* Remove desktop min-height so we don't get empty whitespace under the iframe */
    min-height: 0;
    height: auto;
  }

  /* Give the iframe a real height on mobile (prevents % height issues) */
  .contact-map-wrapper iframe {
    width: 100%;
    height: 260px;
    display: block;
  }
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    /* Stack inputs vertically on small mobile */
    gap: 15px;
  }

}

/* Tighten spacing between Map and Footer on mobile */
@media (max-width: 768px) {
  .contact-section {
    padding-bottom: 0;
  }

  .contact-grid {
    gap: 24px;
  }

  .contact-map-wrapper {
    margin-bottom: 15px;
  }
}

@media (max-width: 600px) {
  .contact-map-wrapper iframe {
    height: 220px;
  }
}