/* ===== SMA IT Taruna Al Kahfi - Main Stylesheet ===== */

/* Base */
* { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; }

/* Navbar */
.nav-scrolled {
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08) !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}
.nav-scrolled .nav-logo-text { color: #111827 !important; }
.nav-scrolled .nav-logo-sub { color: #6B7280 !important; }
.nav-scrolled .nav-link { color: #374151 !important; }
.nav-scrolled #menu-btn { color: #374151 !important; }

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #F59E0B;
  transition: width 0.3s;
  border-radius: 1px;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Hero Slider */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(5,150,105,0.88) 0%, rgba(6,78,59,0.82) 50%, rgba(0,0,0,0.7) 100%);
}

/* Section Title */
.section-title::after {
  content: '';
  display: block;
  width: 60px; height: 4px;
  background: linear-gradient(90deg, #059669, #F59E0B);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-title-left::after {
  margin: 12px 0 0;
}

/* Cards */
.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-hover:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(5,150,105,0.12); }

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #059669, #F59E0B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Floating WA */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  animation: pulse-wa 2s infinite;
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); border-radius: 50%; }
  50% { box-shadow: 0 0 0 14px rgba(37,211,102,0); border-radius: 50%; }
}

/* Ornament Pattern */
.ornament {
  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='%23059669' fill-opacity='0.05'%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");
}

/* Animations */
.hidden-anim { opacity: 0; transform: translateY(30px); }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-slide-in { animation: slideIn 0.3s ease-out; }

/* Slider Controls */
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: all 0.3s;
  cursor: pointer;
}
.slider-dot.active {
  background: #F59E0B;
  width: 30px;
  border-radius: 5px;
}

/* Article Card Image */
.article-img-wrap { overflow: hidden; }
.article-img-wrap img { transition: transform 0.5s ease; }
.article-img-wrap:hover img { transform: scale(1.05); }

/* Gallery Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, rgba(5,150,105,0.92) 0%, rgba(6,78,59,0.88) 60%, rgba(0,0,0,0.7) 100%);
  min-height: 280px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.page-header::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.05'%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");
  pointer-events: none;
}

/* Content Prose */
.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 1.5rem 0 0.75rem; color: #111827; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin: 1.25rem 0 0.5rem; color: #1f2937; }
.prose p { margin-bottom: 1rem; line-height: 1.8; color: #4b5563; }
.prose ul, .prose ol { margin: 0.75rem 0; padding-left: 1.5rem; color: #4b5563; }
.prose li { margin-bottom: 0.5rem; line-height: 1.7; }
.prose ul li { list-style-type: disc; }
.prose ol li { list-style-type: decimal; }
.prose strong { color: #111827; }
.prose a { color: #059669; text-decoration: underline; }
.prose blockquote {
  border-left: 4px solid #059669;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  background: #f0fdf4;
  border-radius: 0 8px 8px 0;
}
.prose img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1rem 0;
}

/* Breadcrumb */
.breadcrumb a:hover { color: #F59E0B; }

/* Responsive helpers */
@media (max-width: 768px) {
  .page-header { min-height: 220px; }
}

/* Print styles */
@media print {
  nav, footer, .wa-float, #back-to-top, .page-header,
  .animate-slide-in, button, .no-print { display: none !important; }
  body { background: white !important; color: #000 !important; font-size: 12pt; }
  main { padding: 0 !important; }
  .prose { max-width: 100% !important; }
  .prose a { color: #000 !important; text-decoration: underline; }
  .prose a::after { content: ' (' attr(href) ')'; font-size: 0.8em; color: #666; }
  img { max-width: 100% !important; page-break-inside: avoid; }
  h1, h2, h3 { page-break-after: avoid; }
}
