/* ================= OUR STORY SECTION STYLES ================= */

.our-story-section {
  background-color: #f4f3f0; 
  font-family: var(--brand-family);
}

/* --- Image Styling --- */
.story-img {
  border-radius: 0;
  height: 500px;
  object-fit: cover;
  object-position: center;
}

/* --- Typography --- */
.story-tagline {
  color: var(--brand-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.story-title {
  font-size: 3.2rem;
  font-weight: 600;
  color: #111111;
  letter-spacing: -0.5px;
}

/* --- Custom List with Checkmarks --- */
.story-list {
  margin: 0;
  padding: 0;
}

.story-list li {
  display: flex;
  align-items: flex-start; /* Ensures checkmark stays at the top line of long text */
  margin-bottom: 25px;
}

.story-list-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--brand-primary);
  margin-right: 15px;
  margin-top: 3px; /* Optically aligns the checkmark with the center of the first line of text */
}

.story-list-icon svg {
  width: 100%;
  height: 100%;
}

.story-list-text {
  font-size: 1.05rem;
  color: #444444;
  line-height: 1.7;
  margin: 0;
}

/* --- Custom Purple Button --- */
.btn-purple {
  background-color: var(--brand-primary); /* Exact purple from the screenshot */
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0;
  border: 1px solid var(--brand-primary);
  transition: all 0.3s ease;
}

.btn-purple:hover {
  background-color: transparent;
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
}

/* ================= RESPONSIVENESS ================= */

@media (max-width: 1199.98px) {
  .story-title {
    font-size: 2.8rem;
  }
  .story-img {
    height: 450px;
  }
}

@media (max-width: 991.98px) {
  .story-title {
    font-size: 2.5rem;
  }
  .story-img {
    height: 400px;
  }
}

@media (max-width: 767.98px) {
  .story-title {
    font-size: 2.2rem;
  }
  .story-img {
    height: 300px;
  }
  .story-list-text {
    font-size: 0.95rem;
  }
  .btn-purple {
    width: 100%;
    text-align: center;
  }
}

/* ================= GROWTH STORY TIMELINE STYLES ================= */

.growth-timeline-section {
  background-color: #f8f6fc;
  font-family: var(--brand-family);
  overflow: hidden;
}

.growth-main-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #111111;
  letter-spacing: -1px;
}

/* --- Timeline Architecture --- */

.timeline-container {
  position: relative;
  max-width: 900px;
  padding: 20px 0; /* Creates the overlap space for the line above and below the circles */
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px; /* Super thin, sharp center line */
  background-color: #222222;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 30px 50px;
  z-index: 2;
}

/* Item Alignments */
.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* Constrains the text so it doesn't stretch awkwardly */
.timeline-content {
  max-width: 320px;
}

.timeline-item.left .timeline-content {
  margin-left: auto; /* Pushes content strictly to the right edge (near the line) */
  margin-right: 0;
}

.timeline-item.right .timeline-content {
  margin-left: 0; /* Pushes content strictly to the left edge (near the line) */
  margin-right: auto;
}

/* --- Orange Circles --- */

.timeline-circle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--brand-primary); /* #D04713 */
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  z-index: 3;
  transition: transform 0.3s ease;
  cursor: default;
}

.timeline-item:hover .timeline-circle {
  transform: translateY(-50%) scale(1.1); /* Subtle pop on hover */
}

/* Circle positioning based on left/right side */
.timeline-item.left .timeline-circle {
  right: -30px; /* -30px precisely centers the 60px circle over the line */
}

.timeline-item.right .timeline-circle {
  left: -30px;
}

/* --- Typography --- */

.timeline-year-text {
  display: block;
  color: var(--brand-primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 5px;
}

.timeline-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.6;
  margin: 0;
}

/* ================= RESPONSIVENESS ================= */

@media (max-width: 991.98px) {
  .growth-main-title {
    font-size: 3rem;
  }
  .timeline-item {
    padding: 20px 40px;
  }
  .timeline-circle {
    width: 50px;
    height: 50px;
    font-size: 0.9rem;
  }
  .timeline-item.left .timeline-circle {
    right: -25px;
  }
  .timeline-item.right .timeline-circle {
    left: -25px;
  }
}

/* 
   MOBILE LAYOUT FIX: 
   Swaps the center timeline to the left edge so text remains readable!
*/
@media (max-width: 767.98px) {
  .growth-main-title {
    font-size: 2.5rem;
  }

  .timeline-line {
    left: 30px; /* Pushes line to the left side */
    transform: none; /* Removes center offset */
  }

  .timeline-item {
    width: 100%; /* Take full width */
    left: 0 !important; /* Cancel the 50% offset for right items */
    padding: 30px 0 30px 80px; /* Make room for the line and circle on the left */
    text-align: left !important; /* Force all text to align left */
  }

  .timeline-content {
    max-width: 100%;
  }

  .timeline-circle {
    /* Lock all circles to the line on the left side */
    left: 30px !important;
    right: auto !important;
    /* -50% pulls it perfectly over the center of the line */
    transform: translate(-50%, -50%) !important;
  }

  .timeline-item:hover .timeline-circle {
    transform: translate(-50%, -50%) scale(1.1) !important;
  }
}

/* ================= OUR VALUES STYLES ================= */

.our-values-section {
  background-color: #fcfbfe;
  font-family: var(--brand-family);
  overflow-x: hidden;
}

/* --- Header Typography --- */
.val-tagline {
  color: var(--brand-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.val-main-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.15;
  letter-spacing: -1px;
}

/* --- Navigation Buttons --- */
.btn-val-nav {
  background-color: var(--brand-primary);
  color: #ffffff;
  border: none;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
  cursor: pointer;
}

.btn-val-nav:hover {
  background-color: #111111;
  transform: scale(1.05);
}

.btn-val-nav:active {
  transform: scale(0.95);
}

/* --- Slider Track Mechanics --- */
.val-slider-wrapper {
  width: 100%;
  /* CRITICAL: Allows the circles to bleed out of the container and touch the right wall! */
  overflow: visible;
  padding: 10px 0;
}

.val-slider-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

/* --- Dashed Circles --- */
.val-circle {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 2px dashed var(--brand-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  margin-right: 30px;
  flex-shrink: 0;
  background-color: transparent;
  transition:
    background-color 0.4s ease,
    box-shadow 0.4s ease;
  cursor: default;
}

.val-circle:hover {
  background-color: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

/* --- Inner Typography --- */
.val-content {
  width: 100%;
}

.val-title-line {
  display: inline-block;
  width: 20px;
  height: 2px;
  background-color: #111111;
  margin-right: 12px;
}

.val-card-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.val-card-desc {
  font-size: 0.9rem;
  color: #444444;
  line-height: 1.6;
  margin: 0;
}

/* ================= RESPONSIVENESS ================= */

@media (max-width: 991.98px) {
  .val-main-title {
    font-size: 2.8rem;
  }
  .val-circle {
    width: 280px;
    height: 280px;
    padding: 30px;
  }
  .val-card-title {
    font-size: 1.15rem;
  }
}

@media (max-width: 767.98px) {
  .val-main-title {
    font-size: 2.4rem;
  }
  .btn-val-nav {
    width: 45px;
    height: 45px;
  }
}

/* ================= NEW GALLERY SECTION STYLES Starts ================= */

.gallery-section {
    font-family: var(--brand-family);
}

.custom-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 170px; 
    gap: 16px;
    grid-auto-flow: dense; 
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: 2px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.span-col-2 {
    grid-column: span 2;
}

.span-row-2 {
    grid-row: span 2;
}

.gallery-ad-block {
    background-color: #dedede;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: none;
}

.gallery-ad-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #333333;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 991.98px) {
    .custom-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    
    .span-col-2 {
        grid-column: span 2;
    }
}

@media (max-width: 767.98px) {
    .custom-gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
        gap: 12px;
    }
    
    .span-col-2, 
    .span-row-2 {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-ad-block {
        grid-row: span 1; 
    }
}

/* ================= NEW GALLERY SECTION STYLES Ends ================= */
