/* ================== General ================== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: white; 
  color: #333;
  line-height: 1.6;
  padding-top: 140px;   /* space for fixed header */
}

* { box-sizing: border-box; }

/* ================== Header ================== */
header {
  background: white; 
  padding: 15px 0;
  text-align: center;
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 1000;
  border: 8px solid #418cce;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

header h1 {
  margin: 0;
  font-size: clamp(20px, 4vw, 35px);
  font-weight: bold;
  color: #1565c0;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

/* ================== Navigation ================== */
nav {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;     
  gap: 6px;
  padding: 0 5px;
}

nav a {
  flex: 1 1 auto;
  text-align: center;
  padding: 10px 12px;
  font-size: clamp(10px, 1.5vw, 14px);
  background: #1565c0;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 60px;
}

nav a:hover, nav a.active {
  background: #0d47a1;
  color: #ffeb3b;
  transform: scale(1.05);
}

/* ================== Hero Section ================== */
.hero {
  margin: 20px auto;
  width: 100%;
  max-width: 1200px;
  text-align: center;
}

.slider {
  width: 100%;
  aspect-ratio: 16/9; /* maintain ratio for all screens */
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}

.slider img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fade 12s infinite;
}

.slider img:nth-child(1) { animation-delay: 0s; }
.slider img:nth-child(2) { animation-delay: 4s; }
.slider img:nth-child(3) { animation-delay: 8s; }

@keyframes fade {
  0% { opacity: 0; }
  10%,30% { opacity: 1; }
  40%,100% { opacity: 0; }
}

/* ================== Videos ================== */
.video-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  justify-items: center;
}

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

iframe {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ================== Channel Button ================== */
.channel-btn-wrap {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: clamp(6px, 1.5vw, 12px) clamp(12px, 3vw, 24px);
  background: #fff;
  color: #ff0000;
  text-decoration: none;
  font-size: clamp(14px, 2vw, 18px);
  border-radius: 30px;
  font-weight: bold;
  border: 2px solid #ff0000;
  transition: all 0.3s ease;
}

.yt-btn:hover {
  background: #cc0000;
  color: #fff;
  border-color: #fff;
  transform: scale(1.05);
}

.yt-icon { width: 22px; height: 22px; }

/* ================== Donation Page ================== */
.content {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

.content h2 {
  color: #1565c0;
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 15px;
}

.content p {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  margin-bottom: 20px;
}

.donate {
  display: inline-block;
  padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 26px);
  background: linear-gradient(135deg, #ff4081, #ff1744);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.donate:hover {
  background: linear-gradient(135deg, #e91e63, #c2185b);
  transform: scale(1.05);
}

/* QR Section */
.qr {
  margin-top: 25px;
}

.qr img {
  width: clamp(130px, 12vw, 180px);
  height: auto;
  border: 4px solid #1565c0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ================== Footer ================== */
footer {
  margin-top: 30px;
  padding: 20px;
  text-align: center;
  background: #0d47a1;
  color: white;
  width: 100%;
}
footer p { margin: 5px 0; }

/* ================== Responsive Mobile Fixes ================== */
@media (max-width: 768px) {
  body { padding-top: 170px; }

  header h1 { font-size: clamp(20px, 5vw, 26px); }

  /* Auto-fit nav buttons, all visible, one line, no scroll */
  nav {
    flex-wrap: nowrap;
    justify-content: space-between; /* distribute evenly */
    overflow-x: hidden;
  }

  nav a {
    flex: 1 1 auto;
    min-width: 0;
    padding: 4px 4px;
    font-size: clamp(9px, 1.5vw, 11px);
    text-align: center;
  }

  .slider { aspect-ratio: 16/9; }

  .content { padding: 15px; }
  .donate { font-size: clamp(14px, 2vw, 16px); padding: clamp(10px, 2vw, 12px) clamp(16px, 3vw, 20px); }
  .qr img { width: clamp(130px, 12vw, 150px); }
}

@media (max-width: 480px) {
  body { padding-top: 190px; }

  header h1 { font-size: clamp(18px, 6vw, 20px); }

  nav a { font-size: clamp(8px, 1.8vw, 10px); padding: 3px 2px; }

  iframe { max-width: 260px; aspect-ratio: 16/9; }

  .yt-btn { font-size: clamp(12px, 3vw, 14px); padding: 6px 10px; }

  .content h2 { font-size: clamp(18px, 4vw, 20px); }
  .content p { font-size: clamp(13px, 3vw, 14px); }
  .donate { width: 100%; font-size: clamp(12px, 3vw, 14px); padding: 8px 12px; }
  .qr img { width: 130px; }
}
