/* =========================================================
   0) Theme Variables
   ========================================================= */
:root{
  --bg: #070708;
  --panel: rgba(255,255,255,0.04);
  --panel-strong: rgba(255,255,255,0.06);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --gold: #d6c28a;
  --gold-2: #b99a4a;
  --border: rgba(214,194,138,0.22);
  --shadow: 0 14px 40px rgba(0,0,0,0.55);
  --footer-h: 74px;
}


/* =========================================================
   1) Reset / Globals
   ========================================================= */
*{ box-sizing:border-box; }

html,body{ height:100%; }


/* =========================================================
   2) Base Page Styling
   ========================================================= */
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  position: relative; z-index: 0;
}

html { scrollbar-gutter: stable; }

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(1200px 700px at 40% -10%, rgba(214,194,138,0.10), transparent 60%),
    radial-gradient(900px 500px at 85% 0%, rgba(185,154,74,0.08), transparent 55%),
    var(--bg);

  /* background-attachment: fixed;  (can stutter in Firefox) */
}

body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;

  background:
    repeating-linear-gradient(
      to right,
      rgba(255,255,255,0.06) 0,
      rgba(255,255,255,0.06) 1px,
      transparent 1px,
      transparent 140px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.06) 0,
      rgba(255,255,255,0.06) 1px,
      transparent 1px,
      transparent 140px
    );
}

a{ color: inherit; text-decoration: none; }


/* =========================================================
   3) Layout Helpers
   ========================================================= */
.container{
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

@media (min-width: 1400px){
  .container{ width: min(1240px, calc(100% - 64px)); }
}

@media (min-width: 1700px){
  .container{ width: min(1400px, calc(100% - 80px)); }
}


/* =========================================================
   4) Hero Section
   ========================================================= */
.hero{
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hero__banner{
  height: clamp(260px, 22vw, 420px);
  background: url("assets/mainpage/banner.png") center / cover no-repeat;
}

.hero__banner img{
  display: none;
}



.hero__overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 420px at 30% 20%, rgba(214,194,138,0.18), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,0.20), rgba(0,0,0,0.65));
}

.hero__content{
  position: relative;
  margin-top: -86px;
  padding: 0 16px 26px;
  width: min(1080px, calc(100% - 32px));
  margin-left:auto;
  margin-right:auto;
}

.eyebrow{
  margin: 0 0 10px;
  letter-spacing: 0.22em;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}

h1{
  margin: 0;
  font-size: clamp(34px, 4.2vw, 54px);
  letter-spacing: 0.02em;
  text-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.subhead{
  margin: 10px 0 18px;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.5;
}

.cta-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.btn{
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.05);
  border-color: rgba(214,194,138,0.35);
}

.btn.primary{
  border-color: rgba(214,194,138,0.45);
  background: linear-gradient(180deg, rgba(214,194,138,0.15), rgba(214,194,138,0.06));
}

.statusbar{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill{
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(214,194,138,0.22);
  background: rgba(0,0,0,0.22);
  padding: 8px 10px;
  border-radius: 999px;
}


/* =========================================================
   5) Main Content / Cards
   ========================================================= */
main{
  padding: 26px 0 calc(var(--footer-h) + 45px);
}

.card{
  background: rgba(12,12,13,0.82);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.content-panel{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 26px;
  padding: 18px; /* was -5px (invalid). Set to a sane default */
  box-shadow: var(--shadow);
}

@media (max-width: 820px){
  .content-panel{ padding: 16px; }
}


.card h2{
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.stack{
  display: flex;
  flex-direction: column;
  gap: 18px;
}


.grid{
  margin-top: 0;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.apply-section { margin-top: 0; }


@media (max-width: 820px){
  .hero__content{ margin-top: -66px; }
  .grid{ grid-template-columns: 1fr; }
}

.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.linklist{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.link{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.link:hover{
  transform: translateY(-1px);
  border-color: rgba(214,194,138,0.35);
  background: rgba(255,255,255,0.04);
}

.arrow{ color: var(--gold); }

.note{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(214,194,138,0.20);
  background: linear-gradient(180deg, rgba(214,194,138,0.08), rgba(255,255,255,0.02));
  color: rgba(255,255,255,0.78);
}

.footer{
  height: var(--footer-h);
  display:flex;
  align-items:center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}


/* =========================================================
   8) Utilities
   ========================================================= */
.muted{ color: var(--muted); }


/* =========================================================
   6) Sticky Navigation
   ========================================================= */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(
    to bottom,
    rgba(7,7,8,0.85),
    rgba(7,7,8,0.65)
  );
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav__inner{
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.nav__brand{
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.nav__links{
  display: flex;
  gap: 18px;
}

.nav__links a{
  font-size: 13px;
  color: var(--muted);
  transition: color 160ms ease;
}

.nav__links a:hover{
  color: var(--text);
}


/* =========================================================
   7) Gallery / Slideshow
   ========================================================= */
.slideshow{
  margin-top: 16px;
  width: 100%;
  display: block; /* or grid with 1 column */
}

.slide-frame{
  position: relative;
  width: 100%;
  max-width: 2000px;     
  margin: 0 auto;

  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
}

.slide-frame img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.slide-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.45);
  color: white;

  opacity: 0;
  pointer-events: none;

  transition: opacity 200ms ease, transform 200ms ease;
}

.slide-btn.prev{ left: 14px; }
.slide-btn.next{ right: 14px; }

.slide-frame:hover .slide-btn{
  opacity: 1;
  pointer-events: auto;
}
.slide-btn:hover{
  background: rgba(0,0,0,0.55);
  border-color: rgba(214,194,138,0.35);
  transform: translateY(-50%) scale(1.03);
}

.slide-dots{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 35px;
}

.slide-dot{
  width: 1px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
}
.slide-dot.active{
  background: rgba(214,194,138,0.85);
  border-color: rgba(214,194,138,0.45);
}
.slideshow-bubble{
  max-width: 1800px;
  margin: 0 auto 48px;
  margin-top: 18px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 35px;
  box-shadow: var(--shadow);
  transition: box-shadow 250ms ease, border-color 250ms ease;
}

.slideshow-bubble:hover{
  box-shadow:
    0 0 0 1px rgba(214,194,138,0.25),
    0 20px 60px rgba(0,0,0,0.65);
}

.gallery-title{
  margin: 20px 0 50px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 50px;
}


@media (max-width: 700px){
  .slideshow-bubble{
    padding: 10px;
    border-radius: 22px;
  }
}

@media (max-width: 700px){
  .slideshow{
    grid-template-columns: 44px 1fr 44px;
  }

  .slide-btn{
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

}

/* =========================================================
   9) Firefox Performance Fallback
   - Firefox can stutter with backdrop-filter while scrolling.
   - This keeps the look but disables blur only in Firefox.
   ========================================================= */
@-moz-document url-prefix() {
  .nav,
  .card{
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(12,12,13,0.90);
  }
}
