/* =========================================================
   site.css — CLEAN MASTER (Home + Programs fixed)
   Copy/paste this as the ENTIRE file.
========================================================= */

/* -----------------------------
   Base
----------------------------- */
* { box-sizing: border-box; }

:root{
  --text: #111;
  --muted: #666;
  --border: #eee;

  --bg: #fff;
  --bg-alt: #fafafa;

  --dark: #111;
  --white: #fff;

  --hero-img: url("/static/images/bali-sunrise-hero.jpg");

  /* overlay strength */
  --overlay-top: rgba(0,0,0,0.30);
  --overlay-bot: rgba(0,0,0,0.14);
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

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

h1,h2,h3,h4{ margin-top: 0; font-weight: 600; }
p{ margin: 0 0 1em; }

/* -----------------------------
   Layout
----------------------------- */
.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section{ padding: 70px 0; }
.section.alt{ background: var(--bg-alt); }

/* -----------------------------
   Header & Navigation
----------------------------- */
.site-header{
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 18px;
}

.brand{
  display: flex;
  align-items: center;
  font-weight: 600;
  white-space: nowrap;
}

/* The little black square next to “InternshipsInBali”
   This IS intentionally a logo mark. You can hide it by setting display:none. */
.brand-mark{
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #111;
  margin-right: 8px;
  border-radius: 2px;
}

.brand-text{ letter-spacing: 0.1px; }

.nav{
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a{
  font-size: 14px;
  padding: 6px 0;
  opacity: 0.9;
}

.nav a:hover{ opacity: 1; }

.nav a.active{
  border-bottom: 2px solid #111;
  opacity: 1;
}

.nav-cta{
  margin-left: 10px;
  white-space: nowrap;
}

/* -----------------------------
   Buttons (global)
----------------------------- */
.btn{
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-primary{
  background: #111;
  color: #fff;
  border: none;
}

.btn-primary:hover{ filter: brightness(1.05); }

.btn-ghost{
  border: 1px solid #111;
  background: transparent;
  color: #111;
}

.btn-ghost:hover{ background: rgba(0,0,0,0.04); }

/* Header CTA button (top right) */
.nav-cta .btn-primary{
  border-radius: 10px;
  padding: 10px 16px;
}

/* -----------------------------
   HERO — Home Page
----------------------------- */
.hero{
  position: relative;
  min-height: 64vh;
  background-image: var(--hero-img);
  background-size: cover;
  background-repeat: no-repeat;

  /* better crop: show sky + palms, not only rice */
  background-position: center 30%;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--overlay-top), var(--overlay-bot));
}

.hero-content{
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 900px;
  padding: 0 20px;

  text-align: center;
  color: #fff;
}

.hero h1{
  margin: 0 0 12px;
  font-size: clamp(36px, 4.5vw, 56px);
  color: #fff;
  text-shadow: 0 3px 14px rgba(0,0,0,0.45);
  letter-spacing: -0.02em;
}

.hero .lead,
.hero p{
  font-size: clamp(16px, 2vw, 20px);
  max-width: 760px;
  margin: 0 auto 26px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* hero buttons: always centered */
.hero-actions{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 6px;
}

/* hero button styling (white primary + glass secondary) */
.hero .btn-primary{
  background: rgba(255,255,255,0.95);
  color: #111;
  border: none;
}

.hero .btn-primary:hover{ background: #fff; }

.hero .btn-ghost,
.hero .btn-secondary{
  background: rgba(0,0,0,0.25);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.7);
}

.hero .btn-ghost:hover,
.hero .btn-secondary:hover{
  background: rgba(0,0,0,0.40);
}

/* Optional: If you want NO “Apply” button inside the HOME hero, keep this.
   It only hides Apply inside the hero area, not site-wide. */
.hero .hero-actions a[href*="apply"]{
  display: none !important;
}

/* -----------------------------
   Programs “Hero” (page-head)
   Use page-head as a consistent header band
----------------------------- */
.page-head{
  position: relative;
  padding: 90px 0 70px;
  background: #f7f7f7;
  color: var(--text);
}

/* If you want Programs page to use the image hero style,
   keep this block enabled. It’s safe for other pages too. */
.page-head.is-hero{
  background-image: var(--hero-img);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 35%;
  color: #fff;
  text-align: center;
}

.page-head.is-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--overlay-top), var(--overlay-bot));
}

.page-head.is-hero .container{
  position: relative;
  z-index: 1;
}

.page-head.is-hero h1{
  margin: 0 0 12px;
  font-size: clamp(34px, 4.2vw, 52px);
  letter-spacing: -0.02em;
  text-shadow: 0 3px 14px rgba(0,0,0,0.45);
}

.page-head.is-hero p,
.page-head.is-hero .lead{
  margin: 0 auto;
  max-width: 820px;
  font-size: 18px;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* HARD “ghost title” killer:
   If Programs page has any huge left-floating title effect, this neutralizes it. */
.page-head h1::before,
.page-head h1::after{
  content: none !important;
}

.page-head h1{
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  opacity: 1 !important;
  width: auto !important;
}

/* If your Programs page does NOT use .page-head but uses a hero section,
   this still fixes it. */
.page-hero,
.programs-hero{
  text-align: center !important;
}
.page-hero h1,
.programs-hero h1{
  position: static !important;
  transform: none !important;
  opacity: 1 !important;
}
.page-hero h1::before,
.page-hero h1::after,
.programs-hero h1::before,
.programs-hero h1::after{
  content: none !important;
}

/* -----------------------------
   Cards & Grids
----------------------------- */
.cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card{
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.grid2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* -----------------------------
   Lists & Steps
----------------------------- */
.bullets{ padding-left: 20px; }
.steps{ padding-left: 20px; }
.steps li{ margin-bottom: 10px; }

/* -----------------------------
   Forms
----------------------------- */
.form{ max-width: 520px; }
.form-wide{ max-width: 700px; }
.form-row{ margin-bottom: 15px; }

.form input,
.form select,
.form textarea{
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.form textarea{ resize: vertical; }

.form-inline{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-inline input,
.form-inline select{ flex: 1; }

.fineprint{
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

/* -----------------------------
   Callouts
----------------------------- */
.callout{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 10px;
  gap: 20px;
  background: #fff;
}

/* -----------------------------
   Footer
----------------------------- */
.site-footer{
  background: #111;
  color: #fff;
  padding: 60px 0;
}

.footer-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-bottom{
  margin-top: 30px;
  border-top: 1px solid #333;
  padding-top: 20px;
}

.site-footer a{ color: #fff; }

/* -----------------------------
   Responsive
----------------------------- */
@media (max-width: 900px){
  .header-inner{
    height: auto;
    padding: 14px 0;
    align-items: flex-start;
  }
  .nav{
    gap: 14px;
    justify-content: flex-end;
  }
}

@media (max-width: 768px){
  .grid2{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }

  .hero{
    min-height: 72vh;
    background-position: center 40%;
  }

  .nav{
    justify-content: flex-start;
  }
}

/* =============================
   PROGRAMS HERO IMAGE
   ============================= */

.hero-programs {
  background-image: url("/static/images/bali-programs-hero.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 40%;
}
/* =============================
   UNIVERSITIES HERO IMAGE
   ============================= */

.hero-universities{
  background-image: url("/static/images/universities-hero.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 40%;
}
/* ============================
   UNIVERSITIES HERO OVERRIDE
   ============================ */

/* Make sure the hero has height */
body.universities .hero{
  min-height: 64vh;            /* or 70vh if you want bigger */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  background-image: url("/static/images/universities-hero.jpg") !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center 35% !important;
}

/* Keep overlay consistent (if your .hero::before exists) */
body.universities .hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.18));
}

/* Keep text above overlay */
body.universities .hero > *{
  position: relative;
  z-index: 1;
}
/* APPLY PAGE HERO */
.apply-hero {
  background-image: url("/static/images/apply-hero.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 45%;
  color: #fff;
  position: relative;
}

.apply-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,0.45),
    rgba(0,0,0,0.20)
  );
}

.apply-hero .container {
  position: relative;
  z-index: 1;
}
/* =========================
   APPLY PAGE HERO OVERRIDE
   ========================= */

.page-head.apply-hero{
  background-image: url("/static/images/apply-hero.jpg") !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center 45% !important;
  color: #fff;
  position: relative;
}

/* overlay for readability */
.page-head.apply-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    rgba(0,0,0,0.45),
    rgba(0,0,0,0.18)
  );
}

.page-head.apply-hero .container{
  position:relative;
  z-index:1;
}
/* APPLY HERO IMAGE */
.apply-hero{
  background-image: url("/static/images/apply-hero.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 45%;
}
