/*
Theme Name: SWP - Sinau WordPress
Theme URI: https://sinau.org
Author: Nama Anda
Author URI: https://sinau.org
Description: Template pendidikan elegan untuk kampus dan universitas. Dibangun dengan Bootstrap 5, hero slider mandiri, canvas menu drill-down, dan sistem keanggotaan. Mendukung boxed layout, mega menu, footer widget, dan template blog lengkap.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: swp
Tags: education, university, campus, one-column, custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks

SWP WordPress Theme, (C) 2025 Nama Anda
SWP is distributed under the terms of the GNU GPL v2 or later.
*/


/* ============================================================
   CATATAN PENTING
   ------------------------------------------------------------
   File ini HANYA berisi header theme WordPress.
   Tidak ada CSS aktual di sini.

   Semua CSS tema dimuat via functions.php dari folder assets/css/:

     assets/css/base.css    → variabel, reset, typography, WP standard
     assets/css/theme.css   → komponen (header, section, footer, dll)
     assets/css/slide.css   → hero slider
     assets/css/login.css   → modal login

   Urutan load di HTML (via wp_head()):
     1. Bootstrap 5 (CDN)
     2. Bootstrap Icons (CDN)
     3. Google Fonts
     4. base.css
     5. theme.css
     6. slide.css
     7. login.css
     8. style.css (file ini — override terakhir, jika ada)

   Cache busting:
     Setiap file CSS diberi versi filemtime() di URL, sehingga
     setiap kali file diedit, browser otomatis download ulang.

   JANGAN tambahkan CSS di sini.
   Jika butuh override terakhir, tambahkan di bagian paling bawah
   file ini, tapi pertimbangkan apakah lebih tepat diletakkan di
   theme.css atau base.css.
   ============================================================ */


/* ============================================================
   OVERRIDE TERAKHIR (opsional)
   ------------------------------------------------------------
   Jika ada CSS yang harus menimpa SEMUA file lain (termasuk
   theme.css, slide.css, login.css), tulis di sini.

   Contoh:
     .site-header { background: #000 !important; }

   Tapi hindari !important jika tidak perlu. Sebagian besar
   override bisa dilakukan di theme.css dengan spesifisitas
   yang tepat.
   ============================================================ */
/* ============================================================
   15b. COMMENTS
   ============================================================ */
.comments-area{
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.comments-head{
  margin-bottom: 2rem;
}

.comments-title{
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
}

.comments-title i{
  color: var(--accent);
  font-size: 1.2rem;
}

.comment-list{
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

.comment-list .children{
  list-style: none;
  padding-left: 2rem;
  margin-top: 1.2rem;
}

.swp-comment{
  margin-bottom: 1.5rem;
}

.swp-comment-body{
  display: flex;
  gap: 1rem;
  padding: 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.swp-comment-avatar img{
  border-radius: 50%;
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.swp-comment-content{
  flex: 1;
  min-width: 0;
}

.swp-comment-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-bottom: .6rem;
  font-size: .82rem;
}

.swp-comment-author{
  font-weight: 600;
  color: var(--ink);
}

.swp-comment-author a{
  color: var(--ink);
}

.swp-comment-author a:hover{
  color: var(--accent);
}

.swp-comment-date{
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .76rem;
}

.swp-comment-pending{
  background: #fef3c7;
  color: #92400e;
  padding: .15rem .6rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
}

.swp-comment-text{
  font-size: .94rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.swp-comment-text p{
  margin-bottom: .8rem;
}

.swp-comment-text p:last-child{
  margin-bottom: 0;
}

.swp-comment-actions{
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: .75rem;
  font-size: .8rem;
}

.swp-comment-actions a{
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: color var(--dur-fast) ease;
}

.swp-comment-actions a:hover{
  color: var(--accent-dark);
}

.swp-comment-edit a{
  color: var(--muted);
}

.swp-comment-edit a:hover{
  color: var(--ink);
}

/* Form komentar */
.comment-respond{
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.comment-reply-title{
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.comment-reply-title small{
  font-size: .76rem;
  font-weight: 400;
  margin-left: .75rem;
}

.comment-reply-title small a{
  color: var(--muted);
  font-size: .82rem;
}

.comment-reply-title small a:hover{
  color: var(--accent);
}

.comment-notes{
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.comment-form-field{
  margin-bottom: 1.1rem;
}

.comment-form-field .form-label{
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .4rem;
  display: block;
}

.comment-form-field .form-control{
  border-radius: 9px;
  padding: .78rem 1rem;
  border: 1px solid var(--line);
  font-size: .92rem;
  background: #f8fbff;
  color: var(--ink-2);
  width: 100%;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background var(--dur-fast) ease;
}

.comment-form-field .form-control:focus{
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30,95,216,.14);
  outline: none;
}

.comment-form-field textarea.form-control{
  resize: vertical;
  min-height: 120px;
}

.comment-form-submit{
  margin-top: 1.5rem;
}

.comment-form-submit .btn{
  cursor: pointer;
}

.no-comments{
  padding: 1rem 0;
  color: var(--muted);
  font-size: .9rem;
}

/* Pagination komentar */
.comments-area .comment-navigation,
.comments-area .nav-links{
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin: 2rem 0 0;
}

.comments-area .nav-links a{
  padding: .6rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--ink-2);
  transition: all var(--dur-fast) ease;
}

.comments-area .nav-links a:hover{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 575.98px){
  .comment-list .children{
    padding-left: 1rem;
  }
  .swp-comment-body{
    padding: 1rem;
    gap: .75rem;
  }
  .swp-comment-avatar img{
    width: 36px;
    height: 36px;
  }
}


/* ============================================================
   15c. ERROR 404
   ============================================================ */
.error-404{
  text-align: center;
  padding: 1rem 0 2rem;
  max-width: 720px;
  margin-inline: auto;
}

.error-404-number{
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 500;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: .5rem;
  letter-spacing: -.04em;
}

.error-404-title{
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  margin-bottom: 1rem;
}

.error-404-desc{
  font-size: 1rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-inline: auto;
}

.error-404-search{
  max-width: 480px;
  margin: 0 auto 2rem;
}

.error-404-links{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
}

.error-404-recent{
  margin-top: 2rem;
}