/* ============================================================
   APEC 2026 — Home Component Stylesheet (home.css)
   ============================================================ */

#home-hero {
  min-height: 100vh;
  background:
    url('https://www.apec2026.in/wp-content/uploads/2026/02/city-banner.png') no-repeat bottom center / contain,
    linear-gradient(135deg, #0084ff 0%, #1a4fff 50%, #3024ff 100%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 180px 8% 140px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-title-main {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(3.5rem, 8vw, 6.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin: 0;
}

.hero-divider-line {
  width: 100%;
  max-width: 680px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.7);
  margin: 14px 0 20px;
}

.hero-title-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title-year {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 800;
  color: #ffd54f;
  line-height: 1;
  margin-bottom: 40px;
}

.hero-info-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 44px;
}

.hero-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--white);
}

.hero-info-item h4 {
  color: #ffd54f;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.hero-info-item p {
  font-size: 1.2rem;
  font-weight: 500;
}

.hero-arrow-btn {
  position: absolute;
  right: 8%;
  top: 35%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd54f;
  font-size: 3.5rem;
  z-index: 3;
  cursor: pointer;
}

.countdown-banner {
  position: absolute;
  bottom: 20px;
  left: 5%;
  right: 5%;
  background: #00aef0;
  border-radius: 16px;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.count-left {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
}

.count-center {
  display: flex;
  gap: 14px;
}

.count-box {
  background: var(--white);
  width: 100px;
  height: 90px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.count-box h2 {
  font-size: 2.2rem;
  color: #0f172a;
  font-weight: 800;
  line-height: 1;
}

.count-box span {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 4px;
}

.count-right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.count-right h4 {
  font-size: 1rem;
  font-weight: 700;
}

.count-right p {
  font-size: 1.1rem;
  font-weight: 600;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
  pointer-events: none;
}

.hero-circle:nth-child(1) {
  width: 420px;
  height: 420px;
  bottom: -100px;
  left: -100px;
}

.hero-circle:nth-child(2) {
  width: 300px;
  height: 300px;
  top: -50px;
  right: -50px;
}

.hero-circle:nth-child(3) {
  width: 700px;
  height: 700px;
  top: -200px;
  right: -200px;
}

/* ── Section 1: Two Column Overview style rules ── */
#home-about {
  background-color: var(--white);
  padding: 100px 5%;
}

.about-grid-custom {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.main-blue-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #1e2e5d;
  line-height: 1.15;
  margin-bottom: 24px;
}

.main-body-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #3c4d6d;
  line-height: 1.65;
}

.image-block-right img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* ── Section 2: Asymmetric Mosaic About Grid ── */
#home-mosaic-about {
  background-color: var(--white);
  padding: 60px 5% 100px;
}

.mosaic-grid-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.mosaic-images-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.mosaic-col-left,
.mosaic-col-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mosaic-images-wrapper img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.m-img-1 {
  height: 180px;
}

.m-img-2 {
  height: 260px;
}

.m-img-3 {
  height: 250px;
}

.m-img-4 {
  height: 190px;
}

.mosaic-text-wrapper {
  text-align: left;
}

.mosaic-section-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: #1e2e5d;
  margin-bottom: 24px;
}

.mosaic-section-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  color: #4a5568;
  line-height: 1.7;
}

/* ── Section 3: Center Gathering Callout ── */
#home-gathering-callout {
  background-color: var(--white);
  padding: 80px 5%;
  text-align: center;
}

.text-center-wrapper {
  max-width: 950px;
  margin: 0 auto;
}

.gathering-headline {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: #1e2e5d;
  margin-bottom: 24px;
}

.gathering-paragraph {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  color: #4a5568;
  line-height: 1.7;
  max-width: 850px;
  margin: 0 auto 50px;
}

.join-us-block {
  text-align: center;
  margin-top: 40px;
}

.join-headline-huge {
  font-family: 'DM Sans', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: #1e2e5d;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.join-subline-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #475569;
}

/* ── Section 4: Three Procedural Cards ── */
#home-procedural-features {
  background-color: var(--white);
  padding: 40px 5% 80px;
}

.features-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-profile-card {
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.card-img-holder {
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 24px;
}

.card-img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-profile-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e2e5d;
  margin-bottom: 12px;
}

.feature-profile-card p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.96rem;
  color: #64748b;
  line-height: 1.65;
}

/* ── Section 5: Policy Details ── */
#home-policy-details-lists {
  background-color: var(--white);
  padding: 40px 5% 100px;
}

.policy-lists-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.accent-bullet-track {
  list-style: none;
}

.accent-bullet-track li {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
}

.accent-bullet-track li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #64748b;
  font-size: 1.4rem;
  line-height: 1;
}

.advancing-title-headline {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #1e2e5d;
  margin-bottom: 16px;
  text-align: center;
}

.advancing-paragraph-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.65;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* ── Responsive breakpoints overrides ── */
/* ============================================================
   APEC 2026 — Home Page Adaptive Responsive Engine (home.css)
   ============================================================ */

/* ── LAPTOPS & LARGE TABLETS (MAX-WIDTH: 1150px) ── */
@media (max-width: 1150px) {
  #home-hero {
    min-height: auto;
    padding: 160px 5% 240px;
    /* Leaves breathing room for the absolute banner below */
  }

  .hero-inner {
    margin-left: 0;
    max-width: 100%;
  }

  .hero-arrow-btn {
    top: 160px;
    right: 5%;
    width: 90px;
    height: 90px;
    font-size: 2.2rem;
  }

  .countdown-banner {
    width: 90%;
    padding: 30px;
  }

  .count-left {
    font-size: 2.2rem;
  }

  .count-box {
    width: 110px;
    height: 100px;
  }

  .count-box h2 {
    font-size: 2.6rem;
  }
}

/* ── SMALL TABLETS & PORTRAIT INTERFACES (MAX-WIDTH: 960px) ── */
/* ── SMARTPHONES & SMALL MOBILE VIEWPORTS (MAX-WIDTH: 640px) ── */
/* ── SMARTPHONES & SMALL MOBILE VIEWPORTS (MAX-WIDTH: 640px) ── */
/* ── SMARTPHONES & SMALL MOBILE VIEWPORTS (MAX-WIDTH: 640px) ── */
@media (max-width: 640px) {

  /* Reset document constraints to restore scrollbars */
  html,
  body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
  }

  #home-hero {
    min-height: auto !important;
    height: auto !important;
    padding-top: 140px !important;
    padding-bottom: 30px !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    background-size: cover !important;
    overflow: visible !important;
  }

  .hero-inner {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 24px !important;
    z-index: 2 !important;
  }

  .hero-title-main {
    font-size: 2.8rem !important;
    line-height: 1.1 !important;
  }

  .hero-title-sub {
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
    margin-top: 12px !important;
    margin-bottom: 12px !important;
  }

  .hero-title-year {
    font-size: 2.4rem !important;
    margin-top: 8px !important;
    margin-bottom: 20px !important;
  }

  .hero-info-block {
    gap: 12px !important;
    margin-bottom: 10px !important;
  }

  .hero-info-item p {
    font-size: 1rem !important;
  }

  /* Structural linear blocks template forcing content below each other sequentially */
  .countdown-banner {
    position: relative !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 30px 0 0 0 !important;
    padding: 24px 16px !important;
    flex-direction: column !important;
    gap: 20px !important;
    text-align: center !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    z-index: 5 !important;
    display: flex !important;
    border-radius: 14px !important;
  }

  .count-left {
    font-size: 1.6rem !important;
  }

  .count-center {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .count-box {
    width: 100% !important;
    height: 80px !important;
  }

  .count-box h2 {
    font-size: 1.9rem !important;
  }

  .count-right {
    justify-content: center !important;
    width: 100% !important;
    margin-top: 5px !important;
  }

  /* ── FIXES OVERLAPPING SIDEBAR ISSUES BY BREAKING ROWS APART ── */
  .about-grid-custom,
  .mosaic-grid-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    width: 100% !important;
  }

  .mosaic-images-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    /* Re-aligns mosaic cards into a clean 2x2 grid tracking view */
    gap: 12px !important;
    width: 100% !important;
    order: 2 !important;
    /* Drops imagery collection down neatly underneath paragraphs */
  }

  .mosaic-col-left,
  .mosaic-col-right {
    display: contents !important;
    /* Safely flat-tracks grid alignment layers on mobile viewports */
  }

  .m-img-1,
  .m-img-2,
  .m-img-3,
  .m-img-4 {
    height: 160px !important;
    width: 100% !important;
  }

  .mosaic-text-wrapper {
    width: 100% !important;
    order: 1 !important;
    text-align: left !important;
  }

  .mosaic-section-heading {
    font-size: 2rem !important;
    margin-bottom: 14px !important;
  }

  /* ── FEATURE TRACK CARDS & POLICIES COLUMN UNIFICATION ── */
  .features-cards-grid,
  .policy-lists-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    width: 100% !important;
  }

  .card-img-holder {
    height: 190px !important;
  }

  .join-headline-huge {
    font-size: 2.2rem !important;
  }

  /* Hides the floating arrow button entirely on mobile viewports */
  .hero-arrow-btn {
    display: none !important;
  }
}