/* Albert Guide — style.css (v63) */
:root{
  --navy:#0b1b3b;
  --muted:#1c2a52;
  --pink:#ec4899;
  --pink-dark:#be185d;
  --gold1:#ffef9f;
  --gold2:#f7c14a;
  --gold3:#f0a500;
  --panel-bg: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.76)), rgba(236,72,153,0.10);
  --panel-border: rgba(236,72,153,0.45);
  --panel-hover: rgba(236,72,153,0.58);
}

html { scroll-behavior: auto; } /* JS handles smooth scroll with offset */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--navy);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #0b1020 url('assets/lotus.jpg') center / cover no-repeat fixed;
  line-height: 1.35;
}

a{ text-decoration:none; color:inherit; }
a:hover{ text-decoration:none; }

.visually-hidden{
  position:absolute !important;
  height:1px; width:1px;
  overflow:hidden; clip:rect(1px,1px,1px,1px);
  white-space:nowrap; clip-path: inset(50%);
}

.pop{ text-shadow: 0 2px 6px rgba(0,0,0,0.35); }

h3{
  margin:0 0 10px;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight:900;
  color: var(--pink-dark);
}

.site-header{
  position: relative;
  top: 0;
  z-index: 5;
  background: transparent;
  border-bottom: none;
  padding: 18px clamp(16px, 5vw, 48px);
}
.brand{
  display:flex;
  justify-content:flex-start;
  align-items:flex-start;
}
.title-wrap{
  display:inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.title-image{
  display:block;
  width: clamp(210px, 32vw, 590px);
  height: auto;
}
.img-3d{
  filter:
    drop-shadow(0 1px 0 rgba(255,255,255,0.55))
    drop-shadow(0 2px 0 rgba(255,255,255,0.4))
    drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}

/* Fade-in after background loads */
.title-wrap .title-image,
.title-wrap .see-more{
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity .01s linear, transform .01s linear;
}
.title-wrap .title-image{ transform: translateY(0); }
.title-wrap .see-more{ transform: translateY(18px); }
body.bg-ready .title-wrap .title-image{
  opacity: 1;
  transform: none;
  transition: opacity 1.8s ease .1s, transform 1.8s ease .1s;
}
body.bg-ready .title-wrap .see-more{
  opacity: 1;
  transform: translateY(0);
  transition: opacity 2.4s ease .2s, transform 2.4s ease .2s;
}

/* See more: rich gold */
.see-more{
  appearance:none;
  border:none;
  cursor:pointer;
  padding: 14px 28px;
  font-weight:900;
  letter-spacing: .3px;
  font-size: clamp(16px, 1.8vw, 24px);
  border-radius: 9999px;
}
.see-more.gold{
  background: linear-gradient(135deg, var(--gold1), var(--gold2) 45%, var(--gold3));
  color: #3f2d00;
  box-shadow: 0 2px 0 rgba(255,255,255,0.6) inset,
              0 -2px 0 rgba(0,0,0,0.12) inset,
              0 10px 22px rgba(0,0,0,0.28);
}
.see-more.gold:hover{
  transform: translateY(-1px);
  box-shadow: 0 2px 0 rgba(255,255,255,0.7) inset,
              0 -2px 0 rgba(0,0,0,0.10) inset,
              0 14px 28px rgba(0,0,0,0.3);
}

/* GOLD ELLIPSES — restored */
.title-ellipse{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  margin: clamp(10px,1.2vw,14px) auto clamp(36px,4vw,60px);
  width: clamp(263px, 43.7vw, 656px);
  height: clamp(146px, 20.41vw, 306px);
  padding: clamp(12px, 2.5vw, 22px);
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 30%, var(--gold1), var(--gold2) 55%, var(--gold3));
  color: var(--navy);
  text-align:center;
  box-shadow: 0 2px 0 rgba(255,255,255,0.6) inset,
              0 -2px 0 rgba(0,0,0,0.12) inset,
              0 14px 28px rgba(0,0,0,0.30);
}

.section:nth-of-type(2){ margin-top: 168px; }
.section:nth-of-type(2) .title-ellipse{
  margin-top: calc(clamp(10px,1.2vw,14px) * 4);
}

.ellipse-title{
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  letter-spacing: .3px;
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1.15;
}

.ellipse-desc{
  margin-top: clamp(6px, 1.2vw, 12px);
  width: 82%;
  font-weight: 800;
  line-height: 1.35;
}
.ellipse-desc p{
  margin: 6px 0;
  font-size: clamp(14px, 1.5vw, 20px);
  color: var(--navy);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.5),
    0 2px 6px rgba(0,0,0,0.18);
}

/* layout & content */
.hero-space{ height: min(24vh, 285px); }

main{
  padding: 22px clamp(16px, 5vw, 48px) 60px;
  max-width: 1100px;
  margin: 0 auto;
}
.section{margin: 28px 0 8px;}

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height: 132px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  border:1.5px solid var(--panel-border);
  background: var(--panel-bg);
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: var(--panel-hover);
  box-shadow: 0 16px 36px rgba(0,0,0,0.30);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.84)), rgba(236,72,153,0.14);
}
.card p{
  color: var(--muted);
  font-weight:800;
  margin:0;
  font-size: clamp(15px, 1.3vw, 20px);
}

/* Equalize Albert Guides card sizes */
.gpt-232{
  display:flex;
  flex-direction:column;
  gap:28px; /* vertical gap between rows */
  max-width: 960px;
  margin: 0 auto;
}
.gpt-232 .row{
  display:grid;
  gap:28px;         /* horizontal gap between cards */
  grid-auto-rows: 1fr;
}
.gpt-232 .row.top,
.gpt-232 .row.bottom{ max-width: 700px; margin: 0 auto; }
.gpt-232 .row-2{grid-template-columns: repeat(2, minmax(0, 1fr));}
.gpt-232 .row-3{grid-template-columns: repeat(3, minmax(0, 1fr));}

.gpt-232 .card{ height: 100%; display: flex; flex-direction: column; }

.highlight{
  box-shadow: 0 0 0 2px rgba(219,39,119,0.25), 0 12px 28px rgba(0,0,0,0.26);
  border-color: var(--panel-hover);
}


/* v69: Make ALL Albert Guide cards identical size */
.gpt-232 .card{
  height: 240px;              /* identical height across all rows */
  min-height: 240px;
  overflow: hidden;
}

/* Keep text readable without stretching card height */
.gpt-232 .card h3{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;      /* at most 2 lines for titles */
  overflow: hidden;
}

.gpt-232 .card p{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;      /* at most 4 lines for descriptions */
  overflow: hidden;
}


/* v72: Tighten title-to-description spacing on Albert Guide cards (match Pillars look) */
.gpt-232 .card h3{
  margin-bottom: 6px;
}

.gpt-232 .card p{
  margin-top: 0;
}


/* v73: Mobile/tablet fixes for Albert Guide cards
   - Prevent huge vertical gaps (Android): avoid space-between in fixed-height guide cards
   - Make rows responsive: 1 column on phones (portrait), 2 columns on tablets, 2-3-2 on desktop
*/
.gpt-232 .card{
  justify-content: flex-start;  /* stop large gaps caused by space-between + fixed height */
}

/* Responsive layout for Guides */
@media (max-width: 600px){
  .gpt-232{ max-width: 560px; }
  .gpt-232 .row{ max-width: none; }
  .gpt-232 .row-2,
  .gpt-232 .row-3{ grid-template-columns: 1fr; }
  .gpt-232 .card{
    height: auto;         /* let content define height on phones */
    min-height: 0;
  }
  .gpt-232 .card h3{
    -webkit-line-clamp: 3;
  }
  .gpt-232 .card p{
    -webkit-line-clamp: 6;
  }
}

@media (min-width: 601px) and (max-width: 900px){
  .gpt-232{ max-width: 960px; }
  .gpt-232 .row{ max-width: none; }
  .gpt-232 .row-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gpt-232 .row-3{ grid-template-columns: repeat(2, minmax(0, 1fr)); } /* 3 -> 2 on tablets */
  .gpt-232 .card{
    height: 240px;   /* keep consistent size on tablets */
  }
}




/* Use auto margins to distribute any leftover height evenly above and below content */
.gpt-232 .card h3{
  margin-top: auto;
}

.gpt-232 .card p{
  margin-bottom: auto;
}


/* v75: Guide cards spacing like Pillar cards (no large top/bottom gaps) */
.gpt-232 .card{
  padding: 18px 18px 16px;  /* match Pillars */
  height: 220px;            /* still identical size, but less empty space */
  min-height: 220px;
  justify-content: flex-start;
}

.gpt-232 .card h3{
  margin: 0 0 4px;
}

.gpt-232 .card p{
  margin: 0;
}


/* v76: Smaller Guide card height + better 2-column flow on phones/tablets */

/* Make guide cards a bit shorter on desktop/tablet while keeping equal sizes */
.gpt-232 .card{
  height: 175px;
  min-height: 175px;
}

/* On phones (portrait), let cards grow naturally */
@media (max-width: 600px){
  .gpt-232 .card{
    height: auto;
    min-height: 0;
  }
}

/* On small tablets / phones in landscape, use one continuous 2-column grid
   so the 7 cards flow as: (1,2) (3,4) (5,6) (7) — i.e. card 7 sits alone, not card 5. */
@media (min-width: 601px) and (max-width: 900px){
  .gpt-232{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
  }

  .gpt-232 .row{
    display: contents; /* flatten row wrappers so cards flow in DOM order */
  }

  .gpt-232 .row-2,
  .gpt-232 .row-3{
    grid-template-columns: unset !important;
  }

  .gpt-232 .card{
    height: 175px;
    min-height: 175px;
  }
}


/* v79: Make Albert Guide cards behave like Pillar cards (same sizing rules) while keeping font sizes unchanged */
.gpt-232 .card{
  height: auto !important;
  min-height: 132px !important;          /* matches base .card min-height */
  padding: 18px 18px 16px !important;    /* matches Pillar card padding */
  justify-content: flex-start !important;
}

/* Remove truncation so Guides match Pillars (content can grow naturally) */
.gpt-232 .card h3,
.gpt-232 .card p{
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
}


/* v81: FORCE Guide cards to match Pillar cards (fix "big boxes" on some devices/hosts) */
.gpt-232 .card{
  height: auto !important;
  min-height: 132px !important;
  padding: 18px 18px 16px !important;
  justify-content: flex-start !important;
}

.gpt-232 .card h3{
  margin: 0 0 4px !important;
}

.gpt-232 .card p{
  margin: 0 !important;
}

/* Ensure no mobile/tablet media rules re-introduce fixed heights */
@media (min-width: 601px) and (max-width: 900px){
  .gpt-232 .card{
    height: auto !important;
    min-height: 132px !important;
  }
}

