@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&family=Nunito:wght@400;500;700&display=swap');

:root {
  --primary-color: #FF6B6B;
  --secondary-color: #4ECDC4;
  --accent-color: #FFE66D;
  --text-color: #2D3436;
  --light-bg: #F7F9FC;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-color);
  background-color: var(--light-bg);
  padding-bottom: 60px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: 'Fredoka', sans-serif;
}

h1 {
  color: var(--primary-color);
}

h2 {
  color: var(--secondary-color);
}

h3 {
  color: var(--primary-color);
}

.text-white h1,
.text-white h2,
.text-white h3 {
  color: #fff !important;
}

/* Navbar from sekolah_html */
.navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1050;
}

.navbar-brand {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.nav-link {
  font-weight: 700;
  color: var(--text-color) !important;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color) !important;
}

.lead {
  font-size: 1.1rem;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0d6e4f 0%, #1a9d6f 50%, #0f5132 100%);
  color: #fff;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 640px;
  opacity: 0.92;
  margin-bottom: 1.75rem;
}

.hero-actions .btn-outline-light:hover {
  color: #0f5132;
}

/* Homepage Hero Section */
.hero-section {
  padding: 60px 0 40px 0;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.35) 0%, rgba(255, 230, 109, 0.45) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section .hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 500;
}

.hero-section .hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
  color: var(--text-color);
}

.hero-section .hero-image {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

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

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

/* Dropdown Hover */
@media all and (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

.dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 8px;
}

.dropdown-item {
  font-weight: 600;
  color: var(--text-color);
  border-radius: 5px;
  transition: all 0.3s ease;
  padding: 8px 15px;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--secondary-color) !important;
  background-color: rgba(78, 205, 196, 0.1) !important;
  transform: translateX(5px);
}

/* Homepage blog cards */
.section-title {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 50px;
  font-size: 2.5rem;
  position: relative;
  font-weight: 500;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.home-post-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.home-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

.home-post-image-link {
  display: block;
  overflow: hidden;
}

.home-post-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.home-post-card:hover .home-post-image {
  transform: scale(1.04);
}

.home-post-image-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #d1e7dd, #a3cfbb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f5132;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.admin-sidebar {
  min-width: 220px;
  min-height: 100vh;
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.admin-content {
  background: #f8f9fa;
  min-height: 100vh;
}

.admin-thumb {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.blog-featured {
  max-height: 400px;
  width: 100%;
  object-fit: cover;
}

.blog-content {
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Rich Text Content Styling (Summernote) */
.content-wrapper img,
.blog-content img {
  max-width: 100%;
  height: auto;
}

.content-wrapper img[style*="float: left"],
.blog-content img[style*="float: left"] {
  margin: 0.5rem 1.5rem 1rem 0;
}

.content-wrapper img[style*="float: right"],
.blog-content img[style*="float: right"] {
  margin: 0.5rem 0 1rem 1.5rem;
}

/* Custom Buttons (Pill Shape) */
.btn {
  border-radius: 50px;
  font-weight: 700;
  padding: 10px 25px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #ff5252 !important;
  border-color: #ff5252 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Ini adalah catatan kaki saja */