/* =====================================
   SLIDE 4 — SERVICES (DESKTOP)
===================================== */

#slide-4 {
  width: 100vw;
  height: 100vh;
  display: flex;
  overflow: hidden;
  /* background: #8b0f12;  */
}

/* ---------- LEFT: FULL IMAGE ---------- */

.services-image-side {
  width: 50%;
  height: 100vh;
  position: relative;
}

.services-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- RIGHT: RED CONTAINER ---------- */

.services-content-side {
  width: 50%;
  height: 100vh;
  background: #9e1010;
  display: flex;
  align-items: center;
  padding: 40px;
  box-sizing: border-box;
}

/* INNER GRID */
.services-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  width: 100%;
  height: 100%;
  align-items: center;
}

/* =====================================
   LEFT INNER COLUMN
===================================== */

.services-main-column {
  display: flex;
  flex-direction: column;
  /* gap: 5px; */
   margin-top: -3rem;
}

/* Header */
.services-header h2 {
  font-size: 54px;
  font-weight: 700;
 font-family: 'Libre Caslon Text', Georgia, serif;
  color: #fff;
  margin: 0;
  line-height: 1;
 
}

.services-subtitle {
  font-size: 28px;
  color: rgba(255,255,255,0.85);
 font-family: 'Libre Caslon Text', Georgia, serif;
  margin-top: 6px;
}

/* Description */
.services-description {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
   font-family: 'Aventa','Montserrat', serif;
}

/* Featured Card */
.service-featured-card {
  /* margin-top: 10px; */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.featured-image img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 18px;
}

/* Featured title */
.featured-title {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  margin: 0;
 font-family: 'Libre Caslon Text', Georgia, serif;
  text-transform: capitalize;
}

/* Featured excerpt */
.featured-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
   font-family: 'Aventa','Montserrat',sans-serif;
   flex: 1;
}

/* =====================================
   RIGHT INNER COLUMN
===================================== */
/* =====================================
   FIX: THUMBNAIL SIZE + ALIGNMENT
===================================== */

/* Limit thumbnail column width */
.services-side-column {
  max-width: 260px;        
  align-self: center;      
  margin-top: 2rem;
  
  
}

/* Stack thumbnails neatly */
.services-thumbnails {
  /* align-items: center;      */
  display: flex; 
  flex-direction: column; 
  gap: 10px;
}

/* Thumbnail wrapper */
.service-thumb {
  width: 100%;
  max-width: 220px;
}

/* Thumbnail image */
.service-thumb img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


.service-thumb img:hover {
  transform: scale(1.04);
  opacity: 0.9;
}

/* CTA */
.services-cta {
  display: inline-block;
  margin-top: 15px;
  /* padding: 14px 28px; */
  padding: 6px 3px 6px 3px;
  background: #fff;
  color: #9e1010;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  text-align: center;
  align-self: flex-start;
  width: 100%;
  max-width: 180px;
}

#slide-4 {
  pointer-events: auto;
}

#slide-4 * {
  pointer-events: auto;
}

#slide-4 .services-content-side,
#slide-4 .service-featured-card,
#slide-4 .see-more-btn {
  position: relative;
  z-index: 5;
}


.see-more-btn{
  border: none;
  color: #fff !important;
  /* background: transparent; */
  /* background-color: black; */
  /* margin-top: -2rem; */
  cursor: pointer;
   padding: 0 0 2px 0;      
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.see-more-btn:hover{
  color: #fff !important;
  background: transparent !important;
  transform: scale(1.05)
  
}



.more {
  display: flex;
  align-items: flex-end; 
  gap: 3px;
}
.service-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

.service-modal.open {
  display: flex;
   touch-action: none;
}

.modal-content {
  background: #fff;
  max-width: 600px;
  padding: 30px;
  border-radius: 12px;
  position: relative;
  overflow-y: auto;
  max-height: 60vh;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

.read-more-dots {
  cursor: pointer;
  color: inherit;
  font-weight: bold;
  transition: opacity 0.2s;
}

.read-more-dots:hover {
  opacity: 0.7;
}
/* ===============================
   TABLET — SERVICES SLIDE
   769px – 1024px
================================ */
@media (max-width: 1024px) {

  #slide-4 {
    height: auto;
    min-height: 100vh;
  }

  .services-section {
    display: flex;
    flex-direction: column;
  }

  /* ---------- HERO IMAGE (TOP) ---------- */
  .services-image-side {
    width: 100%;
    height: 50vh;
    min-height: 420px;
  }

  .services-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* ---------- RED CONTENT (BOTTOM) ---------- */
  .services-content-side {
    width: 100%;
    height: auto;
    padding: 60px 50px;
    display: block;
  }

  .services-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
  }

  /* ---------- LEFT COLUMN ---------- */
  .services-main-column {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .service-featured-card {
    max-width: 100%;
  }

  .featured-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
  }

  /* ---------- RIGHT COLUMN ---------- */
  .services-side-column {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .services-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .service-thumb img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .services-cta {
    margin-top: 12px;
    align-self: flex-start;
  }
}


/* ===============================
   MOBILE — SERVICES SLIDE
   ≤ 768px
================================ */
@media (max-width: 768px) {

  #slide-4 {
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  /* ---------- HERO IMAGE (TOP LEFT) ---------- */
  .services-image-side {
    width: 100%;
    height: 45vh;
    min-height: 300px;
    order: 1;
  }

  .services-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* ---------- RED CONTENT (BELOW IMAGE) ---------- */
  .services-content-side {
    width: 100%;
    padding: 40px 10px 50px;
    order: 2;
  }

  .services-inner {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
  }

  /* ---------- LEFT COLUMN (Featured content) ---------- */
  .services-main-column {
    /* flex: 1; */
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 0;
  }

  .services-header h2 {
    font-size: 40px;
    width: 140%;
    max-width: 120%;
    margin-bottom: 5px;
  }

  .services-subtitle {
    font-size: 1.2rem;
  }

  .services-description {
    font-size: 0.95rem;
    line-height: 1.6;
    width: 160%;
    max-width: 120%;
  }

  /* ---------- FEATURED CARD ---------- */
  .service-featured-card {
    width: 100%;
  }

  .featured-image img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    border-radius: 16px;
  }

  .featured-title {
    font-size: 1.3rem;
    margin-top: 10px;
    margin-bottom: 6px;
  }

  .featured-excerpt {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .more {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .see-more-btn {
    margin-top: 0;
    padding: 0;
    font-size: 0.85rem;
  }

  
  /*.see-more-btn {
    margin-top: 0;
    padding: 8px 16px;
  } */

  /* ---------- RIGHT COLUMN (Thumbnails) ---------- */
  .services-side-column {
    flex: 0 0 180px;
    /* flex:0 0 calc(50% - 10px); */
    display: flex;
   
    flex-direction: column;
    gap: 10px;
    max-width: 180px;
    position: relative;
  }

  /* Scrollable container */
  .services-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 336px;
    overflow-y: auto;
    overflow-x: hidden;
     margin-top: 5rem;
    padding-right: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.5) rgba(255,255,255,0.1);
  }

  /* Custom scrollbar for webkit browsers */
  .services-thumbnails::-webkit-scrollbar {
    width: 5px;
  }

  .services-thumbnails::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
  }

  .services-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
  }

  .services-thumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.7);
  }

  /* Scroll indicator */
  .services-side-column::after {
    content: "↓ Scroll for more";
    display: block;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.7rem;
    margin-top: 8px;
    font-style: italic;
  }

  .service-thumb {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .service-thumb img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
  }

  /* Active thumbnail highlight */
  .service-thumb.active img {
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }

  /* ---------- CTA ---------- */
  .services-cta {
    /*width: fit-content;*/
    margin-top: 15px;
    align-self: flex-start;
    /*max-width: 200px;*/
  }
   /* ---------- MODAL ---------- */
  .modal-content {
    max-width: 90%;
    padding: 25px 20px;
    max-height: 70vh;
  }

  .modal-close {
    top: 8px;
    right: 12px;
    font-size: 20px;
  }
}



/* =========================================================
   LARGE SCREENS (1600px) — 16-inch laptops
========================================================= */
@media (min-width: 1600px) {
/* 
  .services-image-side {
    height: 100vh;
    min-height: 420px;
  } */

  /* RIGHT CONTENT SIDE */
  .services-content-side {
    padding: 60px 60px;
  }

  /* INNER GRID — give thumbnails more room */
  .services-inner {
    grid-template-columns: 1.4fr 0.6fr;
    gap: 50px;
    align-items: center;
  }

  /* HEADER */
  .services-header h2 {
    font-size: 68px;
  }

  .services-subtitle {
    font-size: 32px;
  }

  /* DESCRIPTION */
  .services-description {
    font-size: 17px;
    max-width: 100%;
  }

  /* FEATURED IMAGE */
  .featured-image img {
    max-height: 280px;
  }

  /* FEATURED TITLE */
  .featured-title {
    font-size: 32px;
  }

  /* FEATURED EXCERPT */
  .featured-excerpt {
    font-size: 15px;
  }

  /* THUMBNAIL COLUMN */
  .services-side-column {
    max-width: 100%;
    width: 100%;
  }

  /* THUMBNAIL IMAGES */
  .service-thumb {
    max-width: 100%;
    width: 100%;
  }

  .service-thumb img {
    height: 110px;
    border-radius: 16px;
  }

  /* CTA BUTTON */
  .services-cta {
    max-width: 220px;
    padding: 10px 20px;
    font-size: 15px;
    margin-top: 30px;
  }
}

/* =========================================================
   EXTRA LARGE SCREENS (1728px+) — large monitors
========================================================= */
@media (min-width: 1800px) {

  .services-content-side {
    padding: 80px 80px;
  }

  .services-inner {
    grid-template-columns: 1.5fr 0.5fr;
    gap: 60px;
  }

  .services-header h2 {
    font-size: 80px;
  }

  .services-subtitle {
    font-size: 36px;
  }

  .services-description {
    font-size: 18px;
  }

  .featured-image img {
    max-height: 320px;
  }

  .featured-title {
    font-size: 36px;
  }

  .featured-excerpt {
    font-size: 16px;
  }

  .service-thumb img {
    height: 130px;
  }

  .services-cta {
    max-width: 240px;
    font-size: 16px;
  }
}

/* =========================================================
   27-INCH / 2K SCREENS (2560px+)
========================================================= */
@media (min-width: 2560px) {

  .services-content-side {
    padding: 100px 100px;
  }

  .services-inner {
    grid-template-columns: 1.5fr 0.5fr;
    gap: 80px;
  }

  .services-header h2 {
    font-size: 110px;
  }

  .services-subtitle {
    font-size: 48px;
  }

  .services-description {
    font-size: 22px;
    max-width: 100%;
  }

  .featured-image img {
    max-height: 420px;
    border-radius: 24px;
  }

  .featured-title {
    font-size: 48px;
  }

  .featured-excerpt {
    font-size: 20px;
  }

  .service-thumb img {
    height: 170px;
    border-radius: 20px;
  }
  
  .services-image-side {
  width: 50%;
  height: 100vh;
  position: relative;
}

.services-image-side img{
  /*width: 50%;*/
  height: 100%;
  /*position: relative;*/
}

  .services-cta {
    max-width: 300px;
    padding: 14px 28px;
    font-size: 20px;
    margin-top: 40px;
  }
}

/* =========================================================
   4K SCREENS (3840px+)
========================================================= */
@media (min-width: 3840px) {

  .services-content-side {
    padding: 140px 140px;
  }

  .services-inner {
    grid-template-columns: 1.5fr 0.5fr;
    gap: 120px;
  }

  .services-header h2 {
    font-size: 160px;
  }

  .services-subtitle {
    font-size: 68px;
  }

  .services-description {
    font-size: 30px;
  }

  .featured-image img {
    max-height: 600px;
    border-radius: 32px;
  }

  .featured-title {
    font-size: 68px;
  }

  .featured-excerpt {
    font-size: 28px;
  }

  .service-thumb img {
    height: 240px;
    border-radius: 28px;
  }

  .services-cta {
    max-width: 420px;
    padding: 20px 40px;
    font-size: 28px;
    margin-top: 60px;
  }
}