/* ============================================
   Kelas D 2022 - Teknik Informatika UMPAR
   Main Stylesheet - Modern Blue Theme
   ============================================ */

:root {
  --blue-primary: #1565C0;
  --blue-dark: #0d3b7a;
  --blue-darker: #0a2d5e;
  --blue-light: #1976D2;
  --blue-lighter: #42A5F5;
  --blue-pale: #E3F2FD;
  --accent: #FFC107;
  --accent-green: #4CAF50;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f0f4ff;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.1);
  --shadow: 0 4px 20px rgba(21,101,192,.15);
  --shadow-lg: 0 10px 40px rgba(21,101,192,.2);
  --shadow-xl: 0 20px 60px rgba(21,101,192,.25);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all .3s cubic-bezier(.4,0,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: transparent;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(13,43,106,.95);
  backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: var(--shadow-lg);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
.nav-title-main {
  display: block;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}
.nav-title-sub {
  display: block;
  color: rgba(255,255,255,.75);
  font-size: .7rem;
  line-height: 1.2;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: .875rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,.15);
  color: var(--white);
}
.btn-admin {
  background: rgba(255,193,7,.2);
  color: var(--accent) !important;
  border: 1px solid rgba(255,193,7,.4);
}
.btn-admin:hover {
  background: var(--accent) !important;
  color: var(--gray-900) !important;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue-darker) 0%, var(--blue-primary) 50%, var(--blue-light) 100%);
  display: flex;
  align-items: center;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: .875rem;
  font-weight: 500;
  width: fit-content;
  backdrop-filter: blur(10px);
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #FFD54F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
}
.hero-subtitle strong { color: var(--white); }
.hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.stat-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 16px 28px;
  text-align: center;
  min-width: 100px;
}
.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
  margin-top: 4px;
  display: block;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-visual {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 0 30px rgba(255,255,255,.3));
  animation: floatLogo 4s ease-in-out infinite;
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  animation: ringPulse 3s ease-in-out infinite;
}
.ring1 { width: 200px; height: 200px; animation-delay: 0s; }
.ring2 { width: 240px; height: 240px; animation-delay: .5s; }
.ring3 { width: 280px; height: 280px; animation-delay: 1s; }
@keyframes ringPulse {
  0%, 100% { opacity: .5; transform: scale(1); }
  50% { opacity: .2; transform: scale(1.05); }
}
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-light), var(--blue-primary));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(21,101,192,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(21,101,192,.5);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}
.btn-sm {
  padding: 8px 16px;
  font-size: .8rem;
}
.w-full { width: 100%; justify-content: center; }

/* ---- SECTION HEADERS ---- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--blue-pale), #BBDEFB);
  border-radius: 50%;
  color: var(--blue-primary);
  font-size: 1.25rem;
  margin: 0 auto 16px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.section-desc {
  color: var(--gray-500);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- NEWS SECTION ---- */
.news-section {
  padding: 80px 0;
  background: var(--gray-100);
}
.news-slider-wrap {
  position: relative;
  margin-bottom: 48px;
}
.news-slider {
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.news-slide {
  display: none;
  animation: slideIn .5s ease;
}
.news-slide.active { display: block; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
.news-card-big {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 420px;
}
.news-card-img {
  position: relative;
  overflow: hidden;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.news-card-big:hover .news-card-img img { transform: scale(1.05); }
.news-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  gap: 12px;
}
.news-img-placeholder i { font-size: 3rem; }
.news-img-placeholder span { font-weight: 600; font-size: 1.1rem; color: rgba(255,255,255,.8); }
.news-category-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--blue-primary);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}
.news-card-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.news-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--gray-500);
  font-size: .8rem;
}
.news-meta span { display: flex; align-items: center; gap: 6px; }
.news-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
}
.news-card-excerpt {
  color: var(--gray-500);
  line-height: 1.7;
  font-size: .9rem;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  box-shadow: var(--shadow);
  transition: var(--transition);
  z-index: 10;
  font-size: 1rem;
}
.slider-btn:hover { background: var(--blue-primary); color: var(--white); transform: translateY(-50%) scale(1.1); }
.slider-btn.prev { left: -24px; }
.slider-btn.next { right: -24px; }
.slider-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--gray-300);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background: var(--blue-primary);
  width: 30px;
  border-radius: 5px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-mini-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.news-mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-mini-img { height: 160px; overflow: hidden; position: relative; }
.news-mini-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-mini-card:hover .news-mini-img img { transform: scale(1.08); }
.news-mini-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-lighter));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: 2rem;
}
.news-mini-body { padding: 16px; }
.news-mini-cat {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue-primary);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.news-mini-body h4 {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-mini-date { font-size: .75rem; color: var(--gray-500); }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; color: var(--gray-300); display: block; }

/* ---- ABOUT SECTION ---- */
.about-section {
  padding: 80px 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 420px;
}
.about-logo-card {
  position: relative;
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, var(--blue-pale), #BBDEFB);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
}
.about-logo-card img { width: 160px; object-fit: contain; }
.about-logo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(21,101,192,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.about-badge-float {
  position: absolute;
  background: var(--white);
  border-radius: 50px;
  padding: 10px 18px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue-primary);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.badge-1 { top: 30px; right: 10px; animation: floatBadge 3s ease-in-out infinite; }
.badge-2 { bottom: 60px; left: 0; animation: floatBadge 3.5s ease-in-out infinite .5s; }
.badge-3 { bottom: 30px; right: 20px; animation: floatBadge 4s ease-in-out infinite 1s; }
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.about-content { display: flex; flex-direction: column; gap: 24px; }
.about-content .section-badge { margin: 0; }
.about-content .section-title { text-align: left; }
.about-text {
  color: var(--gray-500);
  line-height: 1.8;
  font-size: .95rem;
}
.about-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--gray-200);
}
.info-card i { color: var(--blue-primary); font-size: 1.25rem; width: 24px; text-align: center; }
.info-card strong { display: block; font-size: .8rem; color: var(--gray-900); font-weight: 600; }
.info-card span { font-size: .75rem; color: var(--gray-500); }

/* ---- MEMBERS SECTION ---- */
.members-section {
  padding: 80px 0;
  background: var(--gray-100);
}
.search-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto 32px;
}
.search-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
}
.search-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: .875rem;
  outline: none;
  transition: var(--transition);
  background: var(--white);
}
.search-input:focus { border-color: var(--blue-primary); box-shadow: 0 0 0 4px rgba(21,101,192,.1); }

/* Table view (desktop) */
.table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.members-table {
  width: 100%;
  border-collapse: collapse;
}
.members-table thead {
  background: linear-gradient(135deg, var(--blue-darker), var(--blue-primary));
}
.members-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: .8rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.members-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  font-size: .875rem;
  vertical-align: middle;
}
.member-row:hover { background: var(--blue-pale); }
.member-row:last-child td { border-bottom: none; }
.member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--blue-light);
  flex-shrink: 0;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nim-cell { font-family: monospace; font-size: .85rem; color: var(--blue-primary); font-weight: 600; }
.name-cell { font-weight: 500; color: var(--gray-900); }
.empty-row { text-align: center; padding: 60px; color: var(--gray-500); }
.member-count {
  text-align: center;
  margin-top: 16px;
  font-size: .875rem;
  color: var(--gray-500);
}

/* Card grid view (mobile) */
.members-card-grid {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.member-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-lighter); }
.member-card .member-avatar {
  width: 64px;
  height: 64px;
  border-width: 3px;
}
.member-card .member-nim {
  font-family: monospace;
  font-size: .72rem;
  color: var(--blue-primary);
  font-weight: 600;
  background: var(--blue-pale);
  padding: 3px 10px;
  border-radius: 50px;
}
.member-card .member-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.35;
}
.member-card .member-no {
  font-size: .7rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ---- FOOTER ---- */
.footer { background: var(--blue-dark); color: var(--white); position: relative; }
.footer-wave { line-height: 0; }
.footer-wave svg { width: 100%; display: block; }
.footer-body { padding: 60px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand img { width: 60px; margin-bottom: 12px; }
.footer-brand h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.footer-brand p { font-size: .8rem; color: rgba(255,255,255,.65); line-height: 1.6; }
.footer-links h4, .footer-contact h4 {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: rgba(255,255,255,.9);
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .85rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-contact p {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: var(--white);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-top: 12px;
  transition: var(--transition);
}
.btn-wa:hover { background: #128C7E; transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.5); }

/* ---- IG FLOAT ---- */
.wa-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: var(--white);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(131,58,180,.4);
  z-index: 999;
  transition: var(--transition);
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(131,58,180,.5); }
.wa-float i { font-size: 1.25rem; }

/* IG button in footer */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: var(--white);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-top: 12px;
  transition: var(--transition);
}
.btn-wa:hover { opacity: .85; transform: translateY(-2px); }

/* ---- ADMIN MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 420px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: modalIn .3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  cursor: pointer;
  font-size: 1rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: #fee; color: #e53e3e; }
.modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-pale), #BBDEFB);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.75rem;
  color: var(--blue-primary);
}
.modal-box h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.modal-box p { color: var(--gray-500); font-size: .9rem; margin-bottom: 24px; }
.modal-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  outline: none;
  margin-bottom: 12px;
  transition: var(--transition);
  text-align: center;
  letter-spacing: 3px;
}
.modal-input:focus { border-color: var(--blue-primary); box-shadow: 0 0 0 4px rgba(21,101,192,.1); }
.pass-error {
  color: #e53e3e;
  font-size: .85rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

/* ---- NEWS DETAIL ---- */
.news-detail-hero {
  background: linear-gradient(135deg, var(--blue-darker), var(--blue-primary));
  padding: 120px 0 60px;
  color: var(--white);
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .875rem;
  margin-bottom: 20px;
  transition: var(--transition);
}
.back-btn:hover { color: var(--white); }
.news-detail-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  align-items: center;
}
.detail-category {
  background: var(--accent);
  color: var(--gray-900);
  padding: 4px 14px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .75rem;
}
.news-detail-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.3;
}
.news-detail-body { padding: 60px 0; }
.news-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.news-feature-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}
.news-feature-img img { width: 100%; max-height: 500px; object-fit: cover; }
.news-article-content {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--gray-700);
}
.news-article-footer { margin-top: 40px; }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}
.sidebar-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-card h4 i { color: var(--blue-primary); }
.related-item {
  display: flex;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.related-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.related-item:hover { transform: translateX(4px); }
.related-img { width: 72px; height: 64px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.related-img img { width: 100%; height: 100%; object-fit: cover; }
.related-placeholder {
  width: 100%; height: 100%;
  background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-primary); font-size: 1.25rem;
}
.related-info h5 {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-info span { font-size: .7rem; color: var(--gray-500); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-visual { right: 30px; }
  .hero-logo-wrap { width: 220px; height: 220px; }
  .hero-logo-img { width: 120px; height: 120px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .nav-menu.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: rgba(13,43,106,.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    gap: 4px;
  }
  .hero { flex-direction: column; padding: 100px 24px 60px; }
  .hero-visual { position: static; transform: none; margin-top: 40px; }
  .hero-logo-wrap { width: 180px; height: 180px; }
  .hero-logo-img { width: 100px; height: 100px; }
  .news-card-big { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .slider-btn.prev { left: 8px; }
  .slider-btn.next { right: 8px; }
  .about-info-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Members: switch to card grid on mobile */
  .table-wrap { display: none; }
  .members-card-grid { display: grid; }
}

@media (max-width: 480px) {
  .members-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .member-card {
    padding: 16px 12px;
  }
  .member-card .member-avatar {
    width: 56px;
    height: 56px;
  }
  .container { padding: 0 16px; }
  .hero { padding: 90px 16px 60px; }
  .hero-stats { gap: 10px; }
  .stat-card { padding: 12px 16px; min-width: 80px; }
  .stat-number { font-size: 1.4rem; }
}