:root {
  --primary: #FF6B9D;
  --accent: #FFB84D;
  --secondary: #4ECDC4;
  --tertiary: #95E1D3;
  --black: #2D3436;
  --gray: #636e72;
  --light: #FFF5F7;
  --card: #FFFFFF;
  --shadow-sm: 0 2px 4px 0 rgba(255, 107, 157, 0.1);
  --shadow: 0 6px 12px -2px rgba(255, 107, 157, 0.2), 0 4px 8px -4px rgba(255, 184, 77, 0.2);
  --shadow-lg: 0 12px 24px -4px rgba(255, 107, 157, 0.3), 0 8px 16px -8px rgba(255, 184, 77, 0.3);
  --radius: 30px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #FFF5F7 0%, #E8F5E9 50%, #E3F2FD 100%);
  background-attachment: fixed;
  color: var(--black);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 184, 77, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--black);
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 140px;
  width: 100%;
  position: relative;
  z-index: 1;
}

@media(min-width: 768px) {
  .container {
    padding: 30px 30px 100px;
  }
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
  padding: 30px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-5px);
  }
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 30%);
  pointer-events: none;
  animation: sparkle 4s ease-in-out infinite;
}

@keyframes sparkle {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

header::after {
  content: '✨';
  position: absolute;
  font-size: 2rem;
  animation: twinkle 2s ease-in-out infinite;
  top: 10px;
  right: 20px;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

header p {
  font-size: 0.95rem;
  opacity: 0.95;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

header .moto {
  font-size: 0.85rem;
  margin-top: 8px;
  font-style: italic;
  color: var(--black);
  font-weight: 700;
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Sections & Animations */
section {
  display: none;
  animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

section.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-4px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(4px);
  }
}

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 3px solid rgba(255, 107, 157, 0.2);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 157, 0.4);
}

.card-title {
  margin-bottom: 16px;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title::before {
  content: '🎨';
  display: inline-block;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  font-size: 16px;
  line-height: 32px;
  text-align: center;
  margin-right: 8px;
  box-shadow: 0 4px 8px rgba(255, 107, 157, 0.3);
  animation: bounce 2s ease-in-out infinite;
}

/* Profile Section */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.avatar {
  width: 140px;
  height: 220px;
  /* Kept aspect ratio */
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid rgba(255, 255, 255, 0.8);
  padding: 4px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.avatar::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary), var(--accent), var(--secondary), var(--tertiary));
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.avatar:hover::before {
  opacity: 1;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar:hover {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 12px 30px rgba(255, 107, 157, 0.4);
}

.avatar:hover img {
  transform: scale(1.05);
}

.profile h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.profile p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* Link Lists */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.links a,
.profile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 184, 77, 0.1));
  text-decoration: none;
  color: var(--black);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 2px solid rgba(255, 107, 157, 0.2);
  position: relative;
  overflow: hidden;
}

.links a::before,
.profile-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.links a:hover::before,
.profile-link:hover::before {
  left: 100%;
}

.links a:hover,
.profile-link:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: var(--primary);
  color: #fff;
  transform: translateX(4px) scale(1.02);
  box-shadow: var(--shadow-lg);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive Images */
img.responsive {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 12px;
  box-shadow: var(--shadow-sm);
}

img.responsive-fit {
  width: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  margin-top: 12px;
  display: block;
  background: #fff;
}

/* Image Rotator */
.image-rotator {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  margin-top: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/9;
  /* Enforce consistent ratio */
  background: #000;
}

.image-rotator img,
.image-rotator video,
.image-rotator iframe {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  display: none;
  animation: fadeIn 0.5s ease-in;
  object-fit: cover;
  /* Cover by default for neatness */
}

/* Specific adjustment for contained images if needed */
.image-rotator img.contain-fit {
  object-fit: contain;
}

.image-rotator img.active,
.image-rotator video.active,
.image-rotator iframe.active {
  display: block;
}

.rotator-controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.rotator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.rotator-dot.active {
  background: #fff;
  transform: scale(1.2);
}

.rotator-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--black);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
}

.image-rotator:hover .rotator-nav {
  opacity: 1;
}

.rotator-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.rotator-nav.prev {
  left: 16px;
}

.rotator-nav.next {
  right: 16px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  border: none;
  margin-top: 16px;
  box-shadow: var(--shadow);
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 245, 247, 0.98) 100%);
  backdrop-filter: blur(20px);
  border-top: 3px solid rgba(255, 107, 157, 0.3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 8px 6px;
  z-index: 100;
  box-shadow: 0 -8px 30px rgba(255, 107, 157, 0.2);
}

.bottom-nav button {
  background: none;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  color: var(--gray);
  padding: 6px 4px;
  width: 20%;
  /* 5 icons per row approx */
  min-width: 60px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 16px;
  position: relative;
}

.bottom-nav button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 184, 77, 0.1));
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}

.bottom-nav button:hover::before {
  opacity: 1;
}

/* Desktop layout adjustment for nav buttons */
@media (min-width: 500px) {
  .bottom-nav button {
    width: auto;
    padding: 8px 16px;
  }
}

.bottom-nav button.active {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(255, 184, 77, 0.2));
  font-weight: 700;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.bottom-nav button:hover {
  transform: scale(1.15);
  color: var(--primary);
}

.bottom-nav button span:first-child {
  transition: transform 0.3s;
}

.bottom-nav button:hover span:first-child {
  transform: scale(1.3) rotate(10deg);
}

.bottom-nav button span:first-child {
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 2px;
}

.bottom-nav button span:last-child {
  font-size: 0.7rem;
  line-height: 1.2;
  text-align: center;
}

@media(min-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  .bottom-nav {
    top: auto;
    bottom: 0;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  }

  .container {
    margin-top: 0;
    padding-bottom: 100px;
    /* Space for fixed bottom nav */
  }

  .bottom-nav button {
    width: auto;
    font-size: 0.9rem;
    padding: 8px 16px;
    flex-direction: row;
    gap: 8px;
  }

  .bottom-nav button span:first-child {
    font-size: 1.2rem;
    margin-bottom: 0;
  }
}

/* Pentadbiran Grid */
.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

@media (min-width: 640px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

#pentadbiran .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#pentadbiran .card:first-child {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: left;
}

#pentadbiran .card:first-child .avatar {
  margin-right: 24px;
}

@media (max-width: 640px) {
  #pentadbiran .card:first-child {
    flex-direction: column;
    text-align: center;
  }

  #pentadbiran .card:first-child .avatar {
    margin-right: 0;
    margin-bottom: 16px;
  }
}

#pentadbiran .card,
.avatar img,
img.responsive,
img.responsive-fit,
.image-rotator img {
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#pentadbiran .card:hover,
.avatar img:hover,
img.responsive:hover,
img.responsive-fit:hover,
.image-rotator img:hover {
  transform: scale(1.02);
}

/* Modals & Overlays */
.image-modal-overlay,
.password-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: all 0.3s;
}

.image-modal-overlay.show,
.password-overlay.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.image-modal-content {
  max-width: 95%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.image-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Modal Gallery Navigation */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 3rem;
  padding: 1rem;
  cursor: pointer;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  z-index: 2001;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.modal-nav.prev {
  left: 20px;
}

.modal-nav.next {
  right: 20px;
}

.modal-counter {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 16px;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  z-index: 2001;
}

@media (max-width: 768px) {
  .modal-nav {
    width: 45px;
    height: 45px;
    font-size: 2rem;
  }

  .modal-nav.prev {
    left: 10px;
  }

  .modal-nav.next {
    right: 10px;
  }
}

/* Login specific */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('images/white-house.webp') center/cover no-repeat;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: all 0.3s;
}

.login-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(184, 171, 53, 0.9), rgba(229, 203, 18, 0.8));
}

.login-overlay.hidden {
  display: none;
}

.login-card,
.password-modal {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 247, 0.95));
  border-radius: 30px;
  padding: 40px 30px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(255, 107, 157, 0.3);
  position: relative;
  z-index: 10;
  animation: fadeUp 0.4s ease;
  border: 4px solid rgba(255, 107, 157, 0.2);
  backdrop-filter: blur(10px);
}

.login-card::before,
.password-modal::before {
  content: '🎈';
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 3rem;
  animation: float 3s ease-in-out infinite;
  z-index: -1;
}

.login-card h2 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 1.5rem;
  font-weight: 700;
}

.login-card p {
  text-align: center;
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 16px;
  /* Ensure space for username/password */
}

.login-form,
.password-form {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  gap: 8px;
  /* Increased gap for "suitable space" */
  width: 100%;
}

.btn-cancel {
  background: #FFFFFF;
  color: #64748b;
  border: 2px solid #e2e8f0;
  padding: 14px;
  border-radius: 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
  width: 100%;
}

.btn-cancel:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 16px 20px;
  border: 3px solid rgba(255, 107, 157, 0.2);
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: linear-gradient(135deg, rgba(255, 245, 247, 0.8), rgba(255, 255, 255, 0.8));
}

input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 107, 157, 0.15), 0 4px 12px rgba(255, 107, 157, 0.2);
  transform: scale(1.02);
}

button[type="submit"],
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-top: 10px;
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.3);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

button[type="submit"]::before,
.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button[type="submit"]:hover::before,
.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(255, 107, 157, 0.5);
}

button[type="submit"]:active:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error-message {
  color: #dc2626;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 8px;
  display: none;
  background: #fef2f2;
  padding: 8px;
  border-radius: 8px;
}

.error-message.show {
  display: block;
}

/* Logout Button */
.logout-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 3px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  display: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  align-items: center;
  gap: 8px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.logout-btn:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5);
  color: #fff;
}

.logout-btn.show {
  display: flex;
}

.main-content {
  display: none;
}

.main-content.authenticated {
  display: block;
}

/* Bidang / GKMP Section Layout */
.bidang-container {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.panitia-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 150px;
}

@media (max-width: 768px) {
  .bidang-container {
    flex-direction: column;
    align-items: stretch;
  }

  .bidang-container .avatar {
    order: -1;
    margin-bottom: 20px;
    align-self: center;
  }

  .panitia-list {
    width: 100%;
    min-width: auto;
  }
}