/* css/styles.css */

/* ===== RESET & BASE ===== */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:'Poppins',sans-serif;
  color:#1d3c6a;
  background:#fbfdff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  scroll-behavior:smooth;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
main{overflow-x:hidden}

/* ===== NAVBAR ===== */
nav{
  position:fixed;top:0;left:0;width:100%;
  display:flex;justify-content:space-between;align-items:center;
  padding:12px 20px;background:rgba(29,60,106,0.95);
  color:#fff;z-index:1200;box-shadow:0 6px 18px rgba(13,31,62,0.25);
  backdrop-filter: blur(6px);
}
.nav-left{display:flex;align-items:center;gap:12px}
.logo-small{
  width:48px;height:48px;border-radius:50%;object-fit:cover;background:#fff;
  border:2px solid rgba(255,215,0,0.06);
  /* glow always + subtle shadow */
  box-shadow: 0 12px 34px rgba(255,200,80,0.09), 0 0 28px rgba(255,215,0,0.06);
  filter: drop-shadow(0 10px 26px rgba(255,200,60,0.04));
}
.brand{font-weight:700;font-family:'Merriweather',serif;font-size:1rem}
.nav-links{list-style:none;display:flex;gap:18px;align-items:center}
.nav-links li a{color:#fff;font-weight:600;opacity:0.95;transition:color .22s, transform .22s}
.nav-links li a:hover{color:#ffd700;transform:translateY(-2px)}
.burger{display:none;background:transparent;border:0;color:#fff;font-size:1.2rem;cursor:pointer}

/* ===== SPLASH INTRO ===== */
#splash{
  position:fixed;inset:0;background:linear-gradient(180deg,#07131f 0%, #0f274a 70%, #07131f 100%);
  display:flex;align-items:center;justify-content:center;flex-direction:column;
  z-index:2000;color:#fff;transition:opacity .45s,visibility .45s;
}
#splash.hidden{opacity:0;visibility:hidden}
#splash .logo{
  width:220px;height:220px;border-radius:50%;overflow:hidden;border:6px solid rgba(255,215,0,0.06);
  display:flex;align-items:center;justify-content:center;background:#fff;
  /* always glow + breathing (pulse) */
  box-shadow: 0 20px 70px rgba(255,200,80,0.14), 0 0 90px rgba(255,215,0,0.09);
  transform:scale(.95);animation:logoIn .9s ease forwards, pulseGlow 3.6s ease-in-out infinite;
}
@keyframes logoIn{from{opacity:0;transform:scale(.7) rotate(-6deg)}to{opacity:1;transform:scale(1) rotate(0)}}
@keyframes pulseGlow{
  0%{filter: drop-shadow(0 10px 26px rgba(255,200,60,0.05))}
  50%{filter: drop-shadow(0 20px 60px rgba(255,200,60,0.14))}
  100%{filter: drop-shadow(0 10px 26px rgba(255,200,60,0.05))}
}
#splash h1{margin-top:18px;font-family:'Merriweather',serif;font-size:1.6rem;letter-spacing:.6px}
#splash small{margin-top:8px;color:rgba(255,215,0,0.95)}
#splash .skip{margin-top:18px;background:transparent;border:1px solid rgba(255,255,255,0.12);
  color:#fff;padding:8px 12px;border-radius:999px;cursor:pointer;font-weight:600}

/* ===== HERO ===== */
header.hero{
  min-height:100vh;padding-top:74px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
  color:#fff;
  position: relative;
  overflow: hidden;
}

/* Cinematic 4-slide background (crossfade + Ken Burns) */
.hero-slides{
  position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden;
}
.hero-slides .slide{
  position:absolute;inset:0;background-position:center;background-size:cover;
  opacity:0;transform-origin:center center;will-change:opacity,transform;
  animation: slideFade 32s infinite ease-in-out;
}
.hero-slides .slide:nth-child(1){
  background-image: linear-gradient(rgba(29,60,106,0.75), rgba(29,60,106,0.82)),url('../img/background/bg1.jpg');
  animation-delay: 0s;
}
.hero-slides .slide:nth-child(2){
  background-image: linear-gradient(rgba(29,60,106,0.75), rgba(29,60,106,0.82)),url('../img/background/bg2.jpg');
  animation-delay: 8s;
}
.hero-slides .slide:nth-child(3){
  background-image: linear-gradient(rgba(29,60,106,0.75), rgba(29,60,106,0.82)),url('../img/background/bg3.jpg');
  animation-delay: 16s;
}
.hero-slides .slide:nth-child(4){
  background-image: linear-gradient(rgba(29,60,106,0.75), rgba(29,60,106,0.82)),url('../img/background/bg4.jpg');
  animation-delay: 24s;
}

@keyframes slideFade{
  0%{opacity:0;transform:scale(1)}
  4%{opacity:1}
  28%{opacity:1;transform:scale(1.06)}
  32%{opacity:0}
  100%{opacity:0}
}
.hero-logo{
  width:180px;height:180px;border-radius:50%;border:4px solid rgba(255,215,0,0.06);
  overflow:hidden;background:#fff;display:flex;align-items:center;justify-content:center;
  /* gold glow always + subtle pulse animation */
  box-shadow: 0 18px 60px rgba(255,200,80,0.12), 0 0 40px rgba(255,215,0,0.06);
  animation:heroPulse 4.2s ease-in-out infinite;
}
@keyframes heroPulse{
  0%{transform:translateY(6px) scale(0.995)}
  50%{transform:translateY(2px) scale(1.01)}
  100%{transform:translateY(6px) scale(0.995)}
}
header.hero h1{font-family:'Merriweather',serif;font-size:2.6rem;margin-top:18px;color:#fff;text-shadow:0 8px 28px rgba(0,0,0,0.45)}
header.hero p{margin-top:10px;color:#ffd700;font-size:1.05rem;font-weight:600}

/* ===== SECTION & CONTAINER ===== */
section{padding:70px 6%}
.container{max-width:1180px;margin:0 auto}
h2{font-family:'Merriweather',serif;font-size:1.8rem;color:#1d3c6a;margin-bottom:10px}
.accent{display:block;width:86px;height:4px;background:#ffd700;margin:10px 0;border-radius:4px}

/* ===== STUDENTS GRID ===== */
.students-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:22px;
  margin-top:60px;
  padding:0 6px;
  justify-items:center; /* center cards inside the grid */
}

/* Add margin above students grid to prevent overlap with search on mobile */
#students > div:first-of-type{margin-bottom:50px !important}

@media(min-width:721px){
  #students > div:first-of-type{margin-bottom:20px !important}
}

.student{
  background:#fff;
  border-radius:14px;
  padding-top:70px; /* space for avatar overlap */
  box-shadow:0 10px 26px rgba(13,31,62,0.06);
  text-align:center;
  position:relative;
  overflow:visible;
  transition:transform .28s,box-shadow .28s;
  max-width:320px; /* prevent cards from stretching too wide */
  width:100%;
  margin:0 auto;
}

.student:focus-within,
.student:hover{transform:translateY(-6px);box-shadow:0 20px 50px rgba(13,31,62,0.08)}

.student .photo{
  width:140px;
  height:140px;
  border-radius:50%;
  object-fit:cover;
  display:block;
  margin:0 auto;
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:-70px;
  border:6px solid #fff;
  box-shadow:0 12px 34px rgba(29,60,106,0.12);
  filter:grayscale(100%);
  transition:transform .28s,filter .28s,box-shadow .28s,border-color .28s;
}

.student:hover .photo{
  transform:translateX(-50%) scale(1.04);
  filter:none;
  border-color:#ffd700;
  box-shadow:0 18px 40px rgba(255,200,80,0.16);
}

.student .content{padding:14px 18px 22px;color:#1d3c6a}
.student h3{margin-top:6px;margin-bottom:6px;font-size:1.05rem}
.student p.quote{font-size:0.95rem;color:#4b5b6e;margin-bottom:10px;min-height:44px}
.student .socials{display:flex;gap:10px;justify-content:center}
.student .socials a{width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:1px solid #eef3f8;color:#1d3c6a;background:transparent;transition:transform .18s}
.student .socials a:hover{transform:translateY(-4px);background:#ffd700;color:#072042;border-color:#ffd700}

@media(max-width:720px){
  .students-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}
  .student{padding-top:56px}
  .student .photo{width:96px;height:96px;top:-48px}
}

/* Desktop: stacked card with avatar on top and a horizontal quote band below */
@media(min-width:721px){
  .students-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px}
  .student{display:flex;align-items:center;flex-direction:column;padding:18px;border-radius:12px}
  /* avatar stays circular and centered on top */
  .student .photo{position:static;transform:none;top:auto;left:auto;width:140px;height:140px;border-radius:50%;border:6px solid #fff;box-shadow:0 12px 34px rgba(29,60,106,0.12);margin:0 auto 12px}
  .student .content{display:flex;flex-direction:column;align-items:center;text-align:center;padding:6px 0}
  .student h3{margin:0 0 8px}
  /* make quote a rectangular band that spans the card horizontally */
  .student p.quote{display:block;background:linear-gradient(180deg,#fff,#f6f8fb);border-radius:10px;padding:12px 16px;box-shadow:inset 0 1px 0 rgba(255,255,255,0.6),0 6px 18px rgba(13,31,62,0.04);min-height:64px;margin:0 auto 8px;max-width:100%;color:#4b5b6e}
  .student .socials{justify-content:center;margin-top:6px}
  /* ensure view button remains hidden on desktop */
  .btn-view{display:none}
  /* prevent avatar shifting sideways on hover for desktop (only scale in place) */
  .student:hover .photo{transform:scale(1.04)}
}

/* ===== QUOTES ===== */
.quotes{background:linear-gradient(135deg,#1d3c6a,#0f274a);color:#fff;padding:44px;border-radius:12px;margin-top:8px}
.quote-box{max-width:820px;margin:0 auto;font-size:1.12rem;font-style:italic;line-height:1.6;position:relative}
.quote-box {
  position: relative;
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 400;
  color: #fff;
  text-align: center;
  padding: 40px 60px;
  line-height: 1.6;
}

.quote-box::before,
.quote-box::after {
  position: absolute;
  font-size: 64px;
  color: rgba(255, 215, 0, 0.85);
  font-family: serif;
}

.quote-box::before {
  content: "“";
  left: 15px;
  top: -10px;
}

.quote-box::after {
  content: "”";
  right: 15px;
  bottom: -30px;
}

.container.quotes {text-align: center;}


/* ===== GALLERY ===== */
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-top:12px}
/* gallery images and videos start hidden and slide up when revealed */
.gallery-grid img, .gallery-grid video{
  width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:10px;cursor:pointer;
  transition:transform .45s cubic-bezier(.2,.9,.3,1),box-shadow .3s ease,opacity .45s ease;
  opacity:0;transform:translateY(18px) scale(1);
}
.gallery-grid img.revealed, .gallery-grid video.revealed{opacity:1;transform:translateY(0) scale(1)}
.gallery-grid img:hover, .gallery-grid video:hover{transform:translateY(0) scale(1.03);box-shadow:0 14px 40px rgba(13,31,62,0.18)}

/* Hide extra gallery items on mobile */
.gallery-item-hide{display:none !important}

/* Gallery Toggle Button */
#galleryToggle{
  background:#1d3c6a;color:#fff;border:2px solid #1d3c6a;padding:12px 24px;border-radius:8px;
  font-weight:600;cursor:pointer;transition:all .3s ease;font-size:0.95rem;
}
#galleryToggle:hover{background:#fff;color:#1d3c6a;transform:translateY(-3px)}
#galleryToggle:focus{outline:3px solid rgba(29,60,106,0.35);outline-offset:4px}

#galleryViewAll{
  background:#1d3c6a;color:#fff;border:2px solid #1d3c6a;padding:12px 24px;border-radius:8px;
  font-weight:600;cursor:pointer;transition:all .3s ease;font-size:0.95rem;display:none
}
#galleryViewAll:hover{background:#fff;color:#1d3c6a;transform:translateY(-3px)}
#galleryViewAll:focus{outline:3px solid rgba(29,60,106,0.35);outline-offset:4px}

/* ===== VIDEO OPTIMIZATION ===== */
video.gallery-item{
  background-color:#1a1a1a;
  background-image:linear-gradient(45deg,#2a2a2a 25%,transparent 25%,transparent 75%,#2a2a2a 75%,#2a2a2a),
                   linear-gradient(45deg,#2a2a2a 25%,transparent 25%,transparent 75%,#2a2a2a 75%,#2a2a2a);
  background-size:40px 40px;
  background-position:0 0,20px 20px;
  background-repeat:repeat;
}

/* Show all on desktop */
@media(min-width:901px){
  .gallery-item-hide{display:block !important}
  #galleryViewAll{display:none !important}
}

/* ===== EVENTS (NEW) ===== */
.events-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;margin-top:18px}
.event-card{background:#fff;border-radius:12px;overflow:hidden;border:1px solid #eef3f8;box-shadow:0 8px 26px rgba(13,31,62,0.06);transition:transform .25s,box-shadow .25s;cursor:pointer}
.event-card:hover{transform:translateY(-6px);box-shadow:0 18px 46px rgba(13,31,62,0.09)}
.event-card img{width:100%;height:160px;object-fit:cover}
.event-info{padding:14px}
.event-info h3{color:#1d3c6a;font-size:1.05rem;margin-bottom:6px}
.event-info .date{color:#ffd700;font-weight:700;font-size:0.95rem;margin-bottom:8px}
.event-info .meta{font-size:0.92rem;color:#4b5b6e;margin-bottom:8px}
.event-info .desc{font-size:0.95rem;color:#4b5b6e;line-height:1.5}
.event-actions{display:flex;gap:8px;margin-top:10px}
.btn-ghost{padding:8px 10px;border-radius:8px;border:1px solid #e6eef6;background:#fff;color:#1d3c6a;font-weight:600;font-size:0.92rem}

/* ===== GALLERY BUTTON (custom) ===== */
.btn-gallery{
  display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border-radius:12px;background:linear-gradient(180deg,#1d3c6a,#1d4d6a);color:#ffffff;font-weight:800;border:0;box-shadow:0 12px 36px rgba(255,180,60,0.12);transition:transform .22s ease,box-shadow .22s ease,opacity .22s ease;
}
.btn-gallery::after{
  content:'\f06e'; /* FontAwesome image icon */
  font-family: 'Font Awesome 6 Free';font-weight:900;font-style:normal;margin-left:6px;display:inline-block;/* icon fixed - no lateral movement */
}
.btn-gallery:hover{transform:translateY(-4px);box-shadow:0 20px 60px rgba(255,180,60,0.18)}
.btn-gallery:focus{outline:3px solid rgba(255,215,0,0.35);outline-offset:4px}

@media(max-width:900px){
  .btn-gallery{padding:9px 12px;border-radius:999px;font-size:0.95rem}
  .btn-gallery::after{display:none}
}

/* small view profile button used inside student cards */
.btn-view{
  display:none;padding:8px 12px;border-radius:999px;background:#1d3c6a;color:#fff;font-weight:700;border:0;font-size:0.92rem;cursor:pointer;
  box-shadow:0 8px 24px rgba(13,31,62,0.08);transition:transform .18s,box-shadow .18s,background .18s;margin-top:8px
}
.btn-view:hover{transform:translateY(-3px);background:#153152}

/* ===== BUTTON PRIMARY ===== */
.btn-primary{display:inline-block;padding:10px 14px;border-radius:10px;background:linear-gradient(180deg,#ffd700,#f6c400);color:#072042;font-weight:700;border:0;box-shadow:0 10px 30px rgba(255,200,80,0.12)}

/* ===== ABOUT GRID ===== */
.about-grid{display:grid;grid-template-columns:1fr 420px;gap:20px;align-items:center;margin-top:12px}
.about-text p{color:#4b5b6e;line-height:1.7}
.about-media img{width:100%;height:auto;border-radius:12px;object-fit:cover}

/* ===== STUDENT MODAL ===== */
.student-modal{
  position:fixed;inset:0;display:flex;align-items:center;justify-content:center;visibility:hidden;opacity:0;transition:opacity .28s ease,visibility .28s ease;z-index:1800;padding:18px;
  background:rgba(2,6,16,0.45);
  backdrop-filter: blur(6px) saturate(120%);
}
.student-modal.visible{visibility:visible;opacity:1}
.student-modal .student-frame{
  background:linear-gradient(180deg,#ffffff,#f7f9ff);max-width:820px;width:100%;border-radius:14px;padding:18px;box-shadow:0 30px 90px rgba(2,6,16,0.6);display:flex;gap:18px;align-items:center;position:relative;transform:translateY(18px) scale(.98);opacity:0;transition:transform .36s cubic-bezier(.2,.9,.25,1),opacity .28s ease;
}
.student-modal.visible .student-frame{transform:none;opacity:1}
.student-modal.hiding .student-frame{transform:translateY(18px) scale(.98);opacity:0}
.student-frame img{width:200px;height:200px;object-fit:cover;border-radius:50%;border:6px solid #fff;box-shadow:0 18px 50px rgba(13,31,62,0.12)}
.student-frame .body{flex:1;padding:8px 6px}
.student-frame .close{position:absolute;top:12px;right:12px;background:#fff;border:0;color:#1d3c6a;padding:8px;border-radius:999px;cursor:pointer;box-shadow:0 8px 26px rgba(13,31,62,0.08)}
.student-frame .close i{color:#1d3c6a}
.student-frame h3{font-size:1.5rem;color:#072042;margin-bottom:6px}
.student-frame .meta{color:#4b5b6e;margin-bottom:8px}
.student-frame p{color:#334155;line-height:1.6}

/* ===== SCROLL TOP ===== */
.scroll-top{position:fixed;right:16px;bottom:88px;width:44px;height:44px;border-radius:50%;background:#1d3c6a;color:#fff;border:0;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 30px rgba(13,31,62,0.18);z-index:1550;cursor:pointer;opacity:0;transform:translateY(10px);transition:opacity .25s,transform .25s}
.scroll-top.show{opacity:1;transform:none}

/* small screens tweaks */
@media(max-width:900px){
  .about-grid{grid-template-columns:1fr}
  .student-frame{flex-direction:column}
  .student-frame img{width:100%;height:auto}
  /* show profile button on small screens only */
  .btn-view{display:inline-block}
  .btn-view{box-shadow:0 10px 30px rgba(29,60,106,0.12), 0 0 18px rgba(255,200,80,0.06)}
}

/* event modal */
.event-modal{position:fixed;inset:0;background:rgba(2,6,16,0.85);display:flex;align-items:center;justify-content:center;visibility:hidden;opacity:0;transition:opacity .2s,visibility .2s;z-index:1700;padding:18px}
.event-modal.visible{visibility:visible;opacity:1}
.event-frame{background:linear-gradient(180deg,#fff,#f7f9ff);max-width:920px;width:100%;border-radius:12px;padding:14px;box-shadow:0 20px 70px rgba(2,6,16,0.6);display:flex;gap:12px;align-items:flex-start}
.event-frame img{width:46%;height:360px;object-fit:cover;border-radius:8px;border:3px solid rgba(255,215,0,0.06)}
.event-frame .body{flex:1}
.event-frame h3{margin-top:6px;color:#1d3c6a}
.event-frame .date{color:#ffd700;font-weight:700;margin:6px 0}
.event-frame .desc{color:#4b5b6e;line-height:1.6}
.event-frame .close{position:absolute;top:18px;right:18px;background:rgba(255,255,255,0.06);border:0;color:#fff;padding:8px;border-radius:999px;cursor:pointer}

/* ===== LIGHTBOX (ALBUM) ===== */
.lightbox{position:fixed;inset:0;background:rgba(2,6,16,0.9);display:flex;align-items:center;justify-content:center;visibility:hidden;opacity:0;transition:opacity .22s,visibility .22s;z-index:1600;padding:18px}
.lightbox.visible{visibility:visible;opacity:1}
.frame{position:relative;max-width:1100px;width:100%;max-height:90vh;display:flex;align-items:center;justify-content:center}
.frame img{max-width:100%;max-height:88vh;border-radius:10px;box-shadow:0 18px 60px rgba(0,0,0,0.6);border:4px solid rgba(255,215,0,0.06)}
.lightbox .close,.lightbox .prev,.lightbox .next{position:absolute;background:rgba(255,255,255,0.06);color:#fff;border:0;padding:10px;border-radius:999px;cursor:pointer;backdrop-filter:blur(4px)}
.lightbox .close{top:14px;right:14px}
.lightbox .prev{left:8px}
.lightbox .next{right:8px}
.lightbox .caption{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);color:#fff;font-size:0.95rem;padding:6px 12px;background:rgba(0,0,0,0.35);border-radius:8px}

/* ===== AUDIO MINIMIZED (FAB) ===== */
.audio-fab{
  position:fixed;right:16px;bottom:16px;width:52px;height:52px;border-radius:50%;
  background:linear-gradient(180deg,#fff,#f7f9ff);display:flex;align-items:center;justify-content:center;
  box-shadow:0 12px 36px rgba(13,31,62,0.12);z-index:1500;border:1px solid #e6eef6;cursor:pointer;
  transition:transform .18s, opacity .25s;
}
.audio-fab.hidden{opacity:0;transform:scale(.82);pointer-events:none}
.audio-panel{
  position:fixed;right:16px;bottom:78px;width:230px;border-radius:12px;padding:10px;background:linear-gradient(180deg,#fff,#f7f9ff);
  box-shadow:0 18px 50px rgba(13,31,62,0.12);z-index:1501;border:1px solid #e6eef6;display:none;flex-direction:column;gap:8px;
}
.audio-panel.show{display:flex}
.audio-panel .controls{display:flex;align-items:center;gap:8px;justify-content:space-between}
.audio-panel button{background:transparent;border:0;cursor:pointer;font-size:1.05rem;color:#1d3c6a}
.audio-panel input[type="range"]{width:100%}

/* ===== FOOTER ===== */
footer{padding:24px;text-align:center;background:#0f274a;color:#fff;margin-top:28px}

/* ===== DISCUSSION THREAD ===== */
#discussionThread{scrollbar-width:thin;scrollbar-color:#ddd #f8f9fa}
#discussionThread::-webkit-scrollbar{width:6px}
#discussionThread::-webkit-scrollbar-track{background:#f8f9fa}
#discussionThread::-webkit-scrollbar-thumb{background:#ddd;border-radius:3px}
#discussionThread::-webkit-scrollbar-thumb:hover{background:#ccc}

#diskusiNama, #diskusiPesan{
  transition:all .3s ease;
}
#diskusiNama:focus, #diskusiPesan:focus{
  outline:none;
  border-color:#1d3c6a;
  box-shadow:0 0 0 3px rgba(29,60,106,0.1);
}

/* ===== ORGANIZATION CHART ===== */
.org-chart{margin:24px 0;position:relative;}
.org-chart > div{animation:fadeInUp .6s ease-out}
.org-chart div[style*="background:linear-gradient"]{
  transition:all .3s cubic-bezier(.2,.9,.3,1);
  cursor:pointer;
}
.org-chart div[style*="background:linear-gradient"]:hover{
  transform:translateY(-6px);
  filter:brightness(1.1);
  box-shadow:0 16px 48px rgba(0,0,0,0.2) !important;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}
.testimonial-card{transition:all .3s ease;animation:fadeInUp .5s ease-out}
.testimonial-card:hover{transform:translateY(-6px);box-shadow:0 8px 24px rgba(13,31,62,0.12) !important}

/* ===== SEARCH INPUT STYLING ===== */
#studentSearch{transition:all .3s ease}
#studentSearch:focus{outline:none;border-color:#1d3c6a;box-shadow:0 0 0 3px rgba(29,60,106,0.1)}

/* ===== REVEAL ON SCROLL ===== */
.reveal{opacity:0;transform:translateY(24px);transition:all .7s cubic-bezier(.2,.9,.3,1)}
.reveal.show{opacity:1;transform:none}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
  .nav-links{display:none}
  .burger{display:inline-block}
  .hero-logo{width:140px;height:140px}
  .student .photo{height:180px}
  .gallery-grid img, .gallery-grid video{height:120px}
  .frame img{max-height:76vh}
  .audio-panel{right:12px;left:auto;width:190px;bottom:70px}
  .event-frame{flex-direction:column}
  .event-frame img{width:100%;height:260px}
  
  /* Show toggle button on mobile */
  #galleryToggle{display:inline-block !important}
  .gallery-item-hide{display:none !important}
}

/* Hide button on desktop, show items */
@media(min-width:901px){
  #galleryToggle{display:none !important}
  .gallery-item-hide{display:block !important}
}
@media(max-width:480px){
  header.hero h1{font-size:1.6rem}
  .audio-fab{width:46px;height:46px}
  .audio-panel{width:170px;bottom:66px}
  .student .photo{height:150px}
}

/* ===== ANDROID & MOBILE OPTIMIZATION ===== */
/* 1 card per row on mobile/tablet with Android viewport */
@media(max-width:768px) and (hover:none) and (pointer:coarse){
  .students-grid{
    grid-template-columns:1fr;
    gap:40px;
    max-width:100%;
    padding:0;
  }
  .student{
    max-width:100%;
    width:100%;
    margin:0;
    padding-top:90px;
    padding-bottom:20px;
  }
  .student .photo{
    width:120px;
    height:120px;
    top:-60px;
  }
}

/* For very small screens (portrait mobile) */
@media(max-width:480px){
  .students-grid{
    grid-template-columns:1fr;
    gap:50px;
    padding:0;
  }
  .student{
    max-width:100%;
    width:100%;
    padding-top:80px;
    padding-bottom:20px;
  }
  .student .photo{
    width:100px;
    height:100px;
    top:-50px;
  }
}

/* ===== STUDENT LIST ===== */
.student-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.student-card {
  background: #f8f9fa;
  border-left: 4px solid #1d3c6a;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(13, 31, 62, 0.05);
  transition: all 0.3s ease;
}

.student-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(13, 31, 62, 0.12);
}

.student-card--officer {
  background: #f0f4f8;
  border: 2px solid #ddd;
  border-left: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.student-card--officer:hover {
  border-color: #1d3c6a;
  background: #e8eef7;
}

.student-info {
  flex: 1;
}

.student-name {
  font-weight: 700;
  font-size: 1rem;
  color: #1d3c6a;
  margin-bottom: 4px;
}

.student-role {
  font-size: 0.8rem;
  color: #999;
  opacity: 0.9;
}

.student-card--officer .student-role {
  color: #1d3c6a;
  opacity: 0.8;
}

.student-badge {
  background: #1d3c6a;
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .student-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
  }
  
  .student-card {
    padding: 14px;
  }
  
  .student-name {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .student-list {
    grid-template-columns: 1fr;
  }
}

