/* Styles/aboutus.css (ABOUT US ONLY) — RESPONSIVE UPGRADE (same design)
   Works on phones (small/large), tablets, laptops, desktops.
   Fixes: hero scaling, timeline spacing, eagle section height, shallbe card padding,
          text wrapping, safe gutters. Does NOT change your HTML.
*/


:root{
  --blue-dark:#0a2e5d;
  --blue-mid:#1a3e6f;
  --blue-soft:#e6f0ff;


  --bg:#f0f4f8;
  --text:#222;


  --shadow:0 10px 28px rgba(0,0,0,.10);
  --shadow2:0 18px 45px rgba(0,0,0,.14);


  --radius:14px;


  /* responsive tokens */
  --navH:70px;
  --wrap:1100px;
  --gutter:20px;
}


*{ box-sizing:border-box; }
html, body{ height:100%; }


@font-face{
  font-family:'Brush Script MT';
  src:url('../fonts/BrushScriptStd.otf') format('opentype');
  font-weight:normal;
  font-style:normal;
}


body{
  margin:0;
  padding-top:var(--navH);
  font-family:"Inter", sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
}


img, video, iframe{ max-width:100%; height:auto; display:block; }


h1,h2,h3,h4,h5,h6{
  font-family:"Merriweather", serif;
  margin:0;
  font-weight:700;
}


/* =========================
   HERO
========================= */
.history-hero{
  position: relative;
  height: 350px;
  background-image: url("/static/about_us.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  z-index: 5;
}


.history-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}


.history-hero h1{
  position: relative;
  z-index: 1;
  font-size: 52px;
  font-weight: 900;
  text-align: center;
  padding: 0 18px;


  /* responsive safety */
  max-width: var(--wrap);
  word-break: break-word;
  line-height: 1.08;
}


/* =========================
   TIMELINE
========================= */
.timeline{
  width:100%;
  max-width:none;
  margin:0;
  padding-top:1px;
  position:relative;
  background:transparent;
  border-radius:0;
  margin-bottom:0;
  padding-bottom:200px;
  isolation:isolate;
  overflow:hidden;
}


.timeline::after{
  content:"";
  position:absolute;
  inset:0;
  left:50%;
  width:100vw;
  transform:translateX(-50%);
  z-index:0;
  pointer-events:none;
  background: linear-gradient(
    180deg,
    #f8faff 0%,
    #7a8aad 50%,
    #5d667c 100%
  );
}


.timeline::before{ display:none; }


.timeline-inner{
  max-width:1000px;
  margin:0 auto;
  padding: 120px var(--gutter) 0;
  position:relative;
  z-index:3;
}


.timeline-event{
  width:50%;
  padding:20px 40px;
  position:relative;
  margin-bottom:55px;
  z-index:3;
}


.timeline-event::after{
  content:"";
  position:absolute;
  width:4px;
  background:var(--blue-mid);
  border-radius:2px;
  z-index:2;
  top:-40px;
  bottom:-40px;
}


.timeline-inner .timeline-event:first-child::after{ top:20px; }
.timeline-inner .timeline-event:last-child::after{ bottom:20px; }


.timeline-event:nth-child(odd)::after{ right:-2px; }
.timeline-event:nth-child(even)::after{ left:-2px; }


.timeline-event:nth-child(odd){ left:0; text-align:right; }
.timeline-event:nth-child(even){ left:50%; text-align:left; }


.timeline-event::before{
  content:"";
  position:absolute;
  top:28px;
  width:18px;
  height:18px;
  background:#fff;
  border:4px solid var(--blue-dark);
  border-radius:50%;
  z-index:4;
}


.timeline-event:nth-child(odd)::before{ right:-10px; }
.timeline-event:nth-child(even)::before{ left:-10px; }


.timeline-card{
  background:var(--blue-soft);
  padding:22px 26px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  transition:transform .25s ease, box-shadow .25s ease;
  position:relative;
  z-index:3;


  /* prevent overflow on narrow */
  max-width:100%;
}


.timeline-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow2); }


.timeline-card h3{
  font-size:21px;
  color:var(--blue-dark);
  margin-bottom:8px;
  font-weight:900;
  word-break:break-word;
}


.timeline-card p{
  margin:0;
  font-size:15.5px;
  line-height:1.7;
  color:var(--blue-mid);
}


/* =========================
   PILLARS + EAGLEISM
========================= */
.pillars{ padding:80px var(--gutter); background:#e3ecff; }
.pillars:not(.eagles-shall-be){ padding:0 !important; margin:0 !important; background:transparent; }
.pillars:not(.eagles-shall-be) .eagles-side-image{ margin:0 !important; }


.eagles-side-image{
  position: relative;
  overflow: hidden;
  height: 550px;
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  transform: none !important;
  border-radius: 0 !important;
}


#eaglesImg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  z-index:1;


  opacity:0;
  transform:translate3d(0, 0, 0) scale(1.28);
  filter:blur(7px);
  transition:
    opacity 1.0s ease,
    transform 1.35s cubic-bezier(.2,.9,.2,1),
    filter 1.35s ease;
  will-change:transform, opacity, filter;
  transform-origin:center;
}


.eagles-side-image .overlay{
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  opacity:0;
  background:rgba(0,0,0,.52);
  transition:opacity 900ms ease;
}


.eagles-overlay-content{
  position:absolute;
  inset:0;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px var(--gutter);
  text-shadow:0 10px 26px rgba(0,0,0,.55);
  opacity:0;
  transition:opacity 700ms ease;
}


.eagles-side-image.revealed #eaglesImg{ opacity:1; filter:blur(0); }
.eagles-side-image.revealed .overlay{ opacity:1; }
.eagles-side-image.revealed .eagles-overlay-content{ opacity:1; }


.eagles-side-image.is-hidden #eaglesImg,
.eagles-side-image.is-hidden .overlay,
.eagles-side-image.is-hidden .eagles-overlay-content{ opacity:0 !important; }


.eagles-overlay-content .pillars-container{
  max-width:var(--wrap);
  width:100%;
  margin:0 auto;
  background:transparent;
  padding:0;
}


.pillars-container.eagleism{ display:flex; justify-content:center; text-align:center; }


.eagleism-box{
  max-width:900px;
  margin:0 auto;
  padding:0 6px;
}


.eagleism-title{
  font-size:56px;
  font-weight:900;
  color:#fff;
  letter-spacing:1px;
  text-align:center;
  line-height:1.05;
  word-break:break-word;
}


.eagleism-lead{
  margin:14px auto 0;
  font-size:18px;
  line-height:1.85;
  color:rgba(255,255,255,.92);
  max-width:860px;
  text-align:center;
}


/* slide animations */
.slide-left,
.slide-right{
  opacity:0;
  filter:blur(2px);
  transition:
    transform 900ms cubic-bezier(.2,.9,.2,1),
    opacity 900ms ease,
    filter 900ms ease;
}
.slide-left{ transform:translate3d(-46px,0,0); }
.slide-right{ transform:translate3d(46px,0,0); }
.slide-left.in,
.slide-right.in{
  opacity:1;
  transform:translate3d(0,0,0);
  filter:blur(0);
}


/* =========================
   EAGLES SHALL BE
========================= */
.eagles-shall-be{ background:#f0f4ff; padding:90px var(--gutter); }
.shallbe-wrap{ max-width:var(--wrap); margin:0 auto; }


.shallbe-card{
  background:#fff;
  border-radius:18px;
  padding:60px 60px;
  box-shadow:0 20px 60px rgba(15,23,42,.12);
  border:1px solid rgba(15,23,42,.08);
}


.shallbe-layout{ display:flex; gap:60px; align-items:flex-start; }
.shallbe-card .pillars-left{ flex:1; }
.shallbe-card .pillars-right{ flex:1.25; }


.eagles-title{
  font-size:42px;
  font-weight:900;
  color:var(--blue-dark);
  line-height:1.1;
  word-break:break-word;
}


.eagles-sub{
  margin-top:12px;
  font-size:18px;
  color:var(--blue-mid);
  font-weight:700;
}


.eagles-acronym p{
  display:grid;
  grid-template-columns:34px 1fr;
  column-gap:14px;
  margin:14px 0;
  font-size:18px;
  line-height:1.75;
  color:#1b2433;
}


.eagles-acronym p strong{
  font-size:26px;
  font-weight:900;
  font-family:'Brush Script MT', cursive;
  color:var(--blue-mid);
  line-height:1;
}


/* =========================
   Reduced motion
========================= */
@media (prefers-reduced-motion: reduce){
  #eaglesImg,
  .eagles-side-image .overlay,
  .eagles-overlay-content{
    transition:none !important;
    transform:none !important;
    filter:none !important;
    opacity:1 !important;
  }
  .slide-left,
  .slide-right{
    transition:none !important;
    transform:none !important;
    opacity:1 !important;
    filter:none !important;
  }
}


/* =========================
   RESPONSIVE BREAKPOINTS
========================= */


/* large tablets / small laptops */
@media (max-width: 1024px){
  :root{ --gutter:18px; }
  .history-hero{ height:320px; }
  .history-hero h1{ font-size:44px; }


  .timeline-inner{ padding-top:100px; }
  .timeline-event{ padding:18px 34px; }


  .eagles-side-image{ height:520px; }


  .eagleism-title{ font-size:46px; }
  .eagleism-lead{ font-size:17px; }


  .shallbe-card{ padding:50px 44px; }
  .shallbe-layout{ gap:44px; }
}


/* tablets + big phones */
@media (max-width: 768px){
  .history-hero{ height:280px; }
  .history-hero h1{ font-size:38px; }


  .timeline-inner{ padding: 90px 16px 0; }


  .timeline-event{
    width:100%;
    left:0 !important;
    text-align:left;
    padding:16px 12px 16px 40px;
    margin-bottom:26px;
  }


  .timeline-event::after{
    left:14px !important;
    right:auto !important;
    top:-18px;
    bottom:-18px;
  }


  .timeline-event::before{
    left:6px !important;
    right:auto !important;
    top:26px;
  }


  .timeline-card{ padding:20px 20px; }


  .eagles-side-image{ height:560px; margin-top:55px; }


  .eagleism-title{ font-size:38px; }
  .eagleism-lead{ font-size:16px; line-height:1.8; }


  .shallbe-layout{ flex-direction:column; gap:26px; }
  .shallbe-card{ padding:36px 26px; }
}


/* phones */
@media (max-width: 520px){
  :root{ --gutter:16px; }


  .history-hero{ height:250px; }
  .history-hero h1{ font-size:32px; }


  .timeline{ padding-bottom:160px; }
  .timeline-inner{ padding-top:78px; }


  .timeline-card h3{ font-size:19px; }
  .timeline-card p{ font-size:15px; }


  .eagles-side-image{ height:520px; }


  .eagleism-title{ font-size:32px; }
  .eagleism-lead{ font-size:15.5px; }


  .shallbe-card{ padding:32px 22px; }
  .eagles-title{ font-size:30px; }


  .eagles-acronym p{
    font-size:16px;
    grid-template-columns:28px 1fr;
  }
  .eagles-acronym p strong{ font-size:24px; }
}


/* extra-small phones safety */
@media (max-width: 380px){
  .history-hero h1{ font-size:28px; }
  .eagleism-title{ font-size:28px; }
  .eagles-title{ font-size:26px; }
  .timeline-event{ padding-left:38px; }
}



