@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --cream:        #FDF6F0;
  --seashell:     #F5EDE6;
  --orange:       #E8621A;
  --orange-lt:    #F28050;
  --orange-dim:   #FCDDC8;
  --burnt:        #C85A3A;
  --green:        #3A7D5A;
  --green-lt:     #52A878;
  --ivory-t:      rgba(255,255,230,0.55);
  --warm-brown:   #5C3320;
  --text:         #3D2014;
  --text-muted:   #7A6055;
  --border:       #E5D0C4;
  --white:        #FFFFFF;
  --amber:        #FFF8E7;
  --amber-border: #D4A853;
  --amber-text:   #7A5020;
  --ease:         cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--seashell); }
::-webkit-scrollbar-thumb { background: var(--amber-border); border-radius: 99px; }

/* ── NAVBAR ── */
.navbar {
  background: var(--seashell);
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  height: 64px;
  gap: 1.2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo { height: 46px; width: auto; border-radius: 8px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-logo:hover { transform: scale(1.04); opacity: .88; }
.nav-links { display: flex; gap: .2rem; flex: 1; list-style: none; }
.nav-links a { padding: .38rem .9rem; border-radius: 7px; color: var(--text-muted); text-decoration: none; font-size: .84rem; font-weight: 500; transition: background .22s var(--ease), color .22s var(--ease); }
.nav-links a:hover { background: var(--border); color: var(--text); }
.nav-links a.active { background: var(--orange); color: #fff; }
.nav-badge { flex-shrink: 0; }
.sosro-badge { height: 42px; width: auto; border-radius: 50%; transition: transform .25s var(--ease); }
.sosro-badge:hover { transform: rotate(-5deg) scale(1.08); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: transform .22s var(--ease); }

/* ── HERO ── */
.hero {
  position: relative;
  padding: 5rem 2rem 5.5rem;
  text-align: center;
  overflow: hidden;
  background: #1a3d1a;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/wallpaper.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(.5) saturate(1.1);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,40,10,.72) 0%, rgba(30,50,15,.68) 40%, rgba(60,30,10,.75) 100%);
}
.hero-stripe {
  position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-lt) 35%, var(--green-lt) 65%, var(--green) 100%);
  z-index: 2;
}
.hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 48px;
  background: var(--cream); clip-path: ellipse(55% 100% at 50% 100%); z-index: 2;
}
.hero-inner { position: relative; z-index: 3; max-width: 640px; margin: 0 auto; }
.hero-logo {
  height: 90px; width: auto; display: block; margin: 0 auto 1.5rem;
  border-radius: 10px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,.55)) drop-shadow(0 2px 8px rgba(0,0,0,.4));
  animation: fadeDown .55s var(--ease) both;
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  letter-spacing: .05em; color: #fff;
  margin-bottom: .6rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
  animation: fadeDown .55s .1s var(--ease) both;
}
.hero p {
  font-size: .95rem; color: rgba(255,255,255,.88);
  max-width: 420px; margin: 0 auto 1.8rem; line-height: 1.65;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
  animation: fadeDown .55s .2s var(--ease) both;
}
.pills { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; animation: fadeDown .55s .3s var(--ease) both; }
.pill {
  background: var(--amber); border: 1.5px solid var(--amber-border);
  color: var(--amber-text); padding: .32rem .9rem; border-radius: 99px;
  font-size: .8rem; font-weight: 500; text-decoration: none;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.pill:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ── SECTION ── */
.section { padding: 2.5rem 2rem; max-width: 1120px; margin: 0 auto; width: 100%; }
.section + .section { padding-top: 0; }
.section-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.75rem;
  letter-spacing: .05em; color: var(--burnt);
  margin-bottom: 1.3rem; display: flex; align-items: center; gap: .7rem;
}
.section-title::after { content: ''; flex: 1; height: 1.5px; background: linear-gradient(to right, var(--border), transparent); border-radius: 2px; }

/* ── STATS ── */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 2rem; }
.stat { background: #FAFAE8; border: 1.5px solid #CECE9A; border-radius: 12px; padding: 1rem 1.1rem; }
.stat-label { font-size: .72rem; font-weight: 600; letter-spacing: .04em; margin-bottom: .3rem; text-transform: uppercase; color: #4A6B35; }
.stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: #2D5C3A; }

/* ── CARDS — all orange top accent ── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1rem; }
.card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 1.5rem 1.2rem; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: .5rem;
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(18px);
  animation: fadeUp .5s var(--ease) forwards;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card:nth-child(1) { animation-delay: .05s; }
.card:nth-child(2) { animation-delay: .13s; }
.card:nth-child(3) { animation-delay: .21s; }
.card:nth-child(4) { animation-delay: .29s; }
.card:nth-child(5) { animation-delay: .37s; }
.card:nth-child(6) { animation-delay: .45s; }
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-lt));
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(232,98,26,.12); border-color: var(--orange-lt); }
.card:hover::before { transform: scaleX(1); }
.card-icon { font-size: 1.9rem; transition: transform .25s var(--ease); }
.card:hover .card-icon { transform: scale(1.1); }
.card-title { font-weight: 600; font-size: .95rem; }
.card-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.card-tag { display: inline-block; padding: .2rem .65rem; border-radius: 99px; font-size: .7rem; font-weight: 600; width: fit-content; background: var(--ivory-t); border: 1px solid rgba(200,90,58,.2); color: var(--burnt); }

/* ── FILE LIST ── */
.file-list { display: flex; flex-direction: column; gap: .7rem; }
.file-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--white); border: 1.5px solid var(--border); border-radius: 12px;
  padding: 1rem 1.3rem; text-decoration: none; color: var(--text);
  font-weight: 500; font-size: .93rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.file-item:hover { border-color: var(--orange); box-shadow: 0 4px 16px rgba(232,98,26,.1); transform: translateX(5px); }
.file-icon { font-size: 1.5rem; flex-shrink: 0; }
.file-name { flex: 1; word-break: break-word; }
.file-size { font-size: .8rem; color: var(--text-muted); white-space: nowrap; }
.dl-btn {
  background: var(--orange); color: #fff; border: none; border-radius: 7px;
  padding: .38rem 1rem; font-size: .82rem; font-weight: 600; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background .22s var(--ease), transform .22s var(--ease);
  font-family: 'DM Sans', sans-serif;
}
.dl-btn:hover { background: var(--burnt); transform: scale(1.04); }

/* ── VIDEO GRID ── */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.25rem; }
.video-card { background: var(--white); border-radius: 14px; border: 1.5px solid var(--border); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.video-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.video-card video { width: 100%; display: block; background: var(--warm-brown); }
.video-info { padding: 1rem 1.1rem 1.1rem; }
.video-info h3 { font-size: .95rem; font-weight: 600; margin-bottom: .3rem; }
.video-info p { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }

/* ── PAGE HEADER ── */
.page-header { background: linear-gradient(120deg, var(--orange) 0%, var(--burnt) 100%); color: #fff; padding: 2.8rem 2rem 2.5rem; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--orange-lt), var(--green-lt)); }
.page-header::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 36px; background: var(--cream); clip-path: ellipse(55% 100% at 50% 100%); }
.page-header-inner { max-width: 1120px; margin: 0 auto; position: relative; }
.page-header h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2rem,5vw,3rem); letter-spacing: .05em; line-height: 1; animation: fadeDown .45s var(--ease) both; }
.page-header p { color: rgba(255,255,255,.78); margin-top: .5rem; font-size: .95rem; animation: fadeDown .45s .1s var(--ease) both; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 3rem 2rem; color: var(--text-muted); background: var(--white); border: 1.5px dashed var(--border); border-radius: 14px; }
.empty-icon { font-size: 2.5rem; margin-bottom: .75rem; opacity: .5; }

/* ── NOTE BAR ── */
.note-bar { background: var(--amber); border-top: 1.5px solid var(--amber-border); border-bottom: 1.5px solid var(--amber-border); padding: .7rem 1.5rem; font-size: .78rem; color: var(--amber-text); display: flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 500; }

/* ── TOAST ── */
#toast { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--warm-brown); color: #fff; padding: .75rem 1.3rem; border-radius: 8px; font-size: .88rem; font-weight: 500; box-shadow: 0 8px 28px rgba(0,0,0,.2); transform: translateY(80px); opacity: 0; transition: transform .3s var(--ease), opacity .3s var(--ease); z-index: 999; pointer-events: none; }
#toast.show { transform: translateY(0); opacity: 1; }

/* ── FOOTER ── */
.footer { margin-top: auto; background: var(--warm-brown); padding: 2.2rem 2rem; text-align: center; }
.footer-stripe { height: 4px; background: linear-gradient(90deg, var(--orange) 0%, var(--orange-lt) 35%, var(--green-lt) 65%, var(--green) 100%); margin-bottom: 1.5rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.footer-logo { height: 32px; width: auto; border-radius: 50%; opacity: .45; margin-bottom: .25rem; }
.footer-text { font-size: .85rem; color: rgba(255,255,255,.75); font-weight: 500; }
.footer-sub { font-size: .75rem; color: rgba(255,255,255,.4); }

/* ── ANIMATIONS ── */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(18px);  } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .navbar { padding: .6rem 1.1rem; height: auto; flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; flex-direction: column; width: 100%; padding-bottom: .5rem; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { padding: .55rem .8rem; font-size: .9rem; display: block; }
  .nav-more { width: 100%; position: static; }
  .nav-more-btn { width: 100%; text-align: left; padding: .55rem .8rem; font-size: .9rem; display: block; }
  .nav-more-drop { position: static !important; box-shadow: none !important; border: none !important; border-radius: 0 !important; padding: 0 0 0 1rem; background: transparent; }
  .nav-more-drop.open { display: block; }
  .nav-more-drop li a { padding: .45rem .8rem; font-size: .88rem; }
  .hero { padding: 3rem 1.25rem 4rem; }
  .hero h1 { font-size: 2.8rem; }
  .hero p { font-size: .9rem; }
  .hero-logo { height: 68px; }
  .section { padding: 1.5rem 1rem; }
  .stats { grid-template-columns: repeat(2,1fr); gap: .6rem; }
  .stat { padding: .9rem; }
  .stat-val { font-size: 1.8rem; }
  .cards { grid-template-columns: 1fr; gap: .8rem; }
  .card { padding: 1.1rem; }
  .section-title { font-size: 1rem; }
  .file-item { padding: .7rem .9rem; flex-wrap: wrap; gap: .4rem; }
  .file-size { display: none; }
  .file-name { font-size: .85rem; }
  .dl-btn { padding: .28rem .7rem; font-size: .75rem; }
  .breadcrumb { font-size: .78rem; flex-wrap: wrap; }
}
