@charset "UTF-8";

/* =========================================================
   Intro (hero) layout
   - Container: max 1445px
   - Two columns: left copy / right image carousel
   - Right card aligns to the right edge
   ========================================================= */

.intro_wrap {
  max-width: 1445px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 740px 1fr; /* left fixed, right flexible */
  align-items: center;
  gap: 60px;
  padding: 120px 24px;
  min-height: calc(100vh - 72px - 80px); /* header + footer allowance */
}

/* ---------------- Left copy ---------------- */

.intro_text  {
 max-width: 740px; 
}

.intro_text .intro_heading {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
}

.intro_text .intro_desc {
  margin-top: 20px;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-G6);
}


.cta_btn {
display: inline-block;
margin-top: 32px;
padding-top: 10px;
padding-right: 55px;
padding-bottom: 10px;
padding-left: 55px;
gap: 10px;
border-radius: 8px;
background: var(--color-A1);
font-weight: 800;
font-size: 20px;
text-align: center;
color: var(--color-A5);    
}
.cta_btn:active { transform: translateY(1px); }
.cta_btn:hover { color: var(--color-A5); }


/* ---------------- Right: Recent news (image-only carousel) ---------------- */
/* Minimal styles on the card itself (UI is embedded within image) */

.recent_card {
  justify-self: end;   /* right-align within grid cell */
  margin: 0;           /* avoid conflict with any centering rules */
  overflow: visible;   /* prevent bottom dot-nav from being clipped */
}

/* Carousel skeleton */

.carousel {
  position: relative;
  padding-bottom: 24px;   /* space for bottom dot navigation */
}

.carousel__viewport {
  width: 505px;           /* fixed width */
  height: 487px;          /* fixed height */
  margin-left: auto;      /* right-align */
  overflow: hidden;
  border-radius: 12px;
}

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0;                 /* no gap between images */
  transition: transform 0.45s ease;
  will-change: transform;
}

.carousel__slide { min-width: 0; }
.carousel__slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;    /* maintain ratio within 505x487 area */
  border: 0;
  border-radius: 0;
}

/* Dots (… pagination) */

.carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.carousel__dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--color-G4);
  background: var(--color-G4);
  cursor: pointer;
  flex-shrink: 0; 
  padding:0px;   
}
.carousel__dots .dot.is-active { background: #FF6929; border: 1px solid #FF6929; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1200px) {
  .intro_wrap { gap: 48px; padding: 100px 24px; }
}

@media (max-width: 1024px) {
  .intro_wrap {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 80px 24px;
  }

  .recent_card {
    justify-self: center;          /* center on mobile */
  }

  .carousel__viewport {
    width: 100%;
    height: auto;
    aspect-ratio: 505 / 487;       /* scale down with same ratio */
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .intro_text .intro_heading { font-size: clamp(28px, 6vw, 40px); }
  .intro_text .intro_desc    { font-size: 16px; }
}

@media (max-width: 480px) {
  .intro_wrap { padding: 56px 16px; gap: 40px; }
  .carousel__dots .dot { width: 8px; height: 8px; }
}
