/* SMK Kahuripan 1 — consolidated, deduplicated and efficient CSS */

:root {
  --text-color: #333;
  --hero-height-desktop: 80vh;
  --hero-height-md: 360px;
  --hero-height-sm: 280px;
  --caption-bg: rgba(0, 0, 0, 0.45);
}

/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header / top-header */
header {
  position: sticky;
  top: 0;
  z-index: 1050;
}

.navbar {
  background: linear-gradient(90deg, #0066cc, #004c99);
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ffd43b;
}

.navbar-brand {
  font-size: 1.1rem;
}

.top-header {
  background: #f8f9fa;
}

.top-header h5 {
  color: #004c99;
}

.btn-light:hover {
  background-color: #e9ecef;
}

.header-link {
  color: #000000ff;
}
.header-link:hover {
  color: #1083dbff;
  transition: 0.2s all;
}

/* Hero / Carousel */
/* HERO SECTION */
#hero {
  height: 100vh;
  color: white;
  overflow: hidden;
  position: relative;
}

/* Gambar dengan efek parallax & fade */
.hero-img {
  height: 100vh;
  object-fit: cover;
  filter: brightness(65%);
  transform: scale(1.05);
  transition: transform 8s ease-in-out;
}

.carousel-item.active .hero-img {
  transform: scale(1);
}

/* Overlay gradien lembut */
.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.3)
  );
  z-index: 1;
}

/* Caption styling */
.carousel-caption {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 600px;
}

/* Animasi teks: fade-up */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s ease forwards;
}

.fade-up.delay-1 {
  animation-delay: 0.4s;
}

.fade-up.delay-2 {
  animation-delay: 0.8s;
}

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

/* Tombol dengan animasi glow */
.carousel-caption .btn {
  transition: all 0.3s ease;
}

.carousel-caption .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

/* Parallax efek lembut */
.carousel-item.active img {
  animation: parallaxZoom 12s ease-in-out infinite alternate;
}

@keyframes parallaxZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

/* Responsiveness */
@media (max-width: 768px) {
  .carousel-caption {
    top: 55%;
    left: 6%;
    max-width: 90%;
  }

  .carousel-caption h1 {
    font-size: 1.8rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .carousel-caption .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
}
/* Headmaster Section Styling */
.headmaster-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e9f2ff 100%);
}

/* Headmaster Photo Styling */
.headmaster-photo-fixed {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-size: contain;
  background-color: #0877b4;
  background-position: center center;
  background-repeat: no-repeat;
  border: 4px solid white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
}

/* Optional: Add border animation */
.headmaster-photo-fixed::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 2px solid rgba(13, 110, 253, 0.2);
  z-index: -1;
}

@media (max-width: 768px) {
  .headmaster-photo-fixed {
    width: 120px;
    height: 120px;
  }
}

/* Headmaster Name */
.headmaster-name {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.hm-photo,
.hm-name,
.hm-greeting {
  all: unset;
}
/* Greeting Quote */
.greeting-quote {
  position: relative;
  padding: 1rem;
  background: rgba(13, 110, 253, 0.03);
  border-radius: 10px;
  border-left: 4px solid #0d6efd;
}

/* Values Section */
.values-section {
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-title {
  color: #1a1a1a;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #0d6efd, #0dcaf0);
  border-radius: 3px;
}

/* Value Items */
.value-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  margin-bottom: 0.75rem;
}

.value-item:hover {
  background: white;
  border-color: rgba(13, 110, 253, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.value-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.value-content {
  flex: 1;
}

.value-title {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.value-description {
  font-size: 0.875rem;
  color: #6c757d;
  line-height: 1.4;
}

.value-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.value-content h6 {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.value-content small {
  font-size: 0.875rem;
  color: #6c757d;
  line-height: 1.4;
}

/* Statistics */
.stat-number {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .headmaster-name {
    font-size: 1.5rem;
  }

  .greeting-quote p {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .headmaster-section {
    padding: 2rem 0;
  }

  .card-body {
    padding: 1.5rem !important;
  }

  .value-item {
    padding: 0.75rem;
  }

  .value-icon-wrapper {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* jurusan sekolah*/
.hover-card {
  transition: all 0.3s ease;
}

.hover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card img {
  height: 220px;
  object-fit: cover;
}

/* agenda sekolah */
.agenda-section {
  padding: 2rem 1rem;
}

.agenda-name {
  font-size: 2.4rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.agenda-desc {
  font-size: 1.2rem;
  color: #555;
  margin: 0 0 0.4rem 0;
}

.calender-icon {
  font-size: 4.8rem;
  color: #0d6efd;
}
.agenda-border {
  border-bottom: 2px solid #0d6efd;
  padding-bottom: 0.25rem;
}

/* agenda sekolah */
.agenda-section {
  background: linear-gradient(to right, #f8fafc, #fdfdfd);
  overflow: hidden;
}

.agenda-title {
  font-size: 2rem;
  color: #1b1b1b;
  position: relative;
}

.agenda-title::after {
  content: "";
  width: 80px;
  height: 3px;
  background: #007bff;
  display: block;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.agenda-subtitle {
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Card Style */
.agenda-card {
  background: #fff;
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.agenda-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.15);
}

/* Ikon bulat */
.agenda-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  background: linear-gradient(135deg, #007bff, #00b4d8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.25);
}

/* Text */
.agenda-text {
  font-size: 0.95rem;
  color: #555;
  margin-top: 10px;
  line-height: 1.5;
}

/* Animasi saat muncul */
.agenda-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUpCard 1s ease forwards;
}

.agenda-card:nth-child(1) {
  animation-delay: 0.2s;
}
.agenda-card:nth-child(2) {
  animation-delay: 0.4s;
}
.agenda-card:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes fadeUpCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* berita dan artikel */
.berita-wrapper {
  background: linear-gradient(180deg, #212529 0%, #1a1a1a 100%);
}
.agenda-title {
  font-size: 2rem;
  color: #1b1b1b;
  position: relative;
}

.berita-card {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
}

.berita-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.berita-img {
  overflow: hidden;
}

.berita-img img {
  transition: transform 0.5s ease;
}

.berita-card:hover img {
  transform: scale(1.1);
}

.berita-card .card-body {
  background: #fff;
  border-top: 3px solid #0d6efd;
  border-radius: 0 0 10px 10px;
}

.berita-card .btn {
  margin-top: 10px;
  font-size: 0.9rem;
}

/* fasilitas */
/* Carousel Container */
.carousel-img-container {
  height: 400px;
  overflow: hidden;
}

.carousel-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.carousel-item:hover .carousel-img-container img {
  transform: scale(1.05);
}

/* Small Images Thumbnail */
.small-img {
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.small-img:hover {
  border-color: #0d6efd;
  transform: translateY(-2px);
}

.small-img.active {
  border-color: #0d6efd;
  box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

/* Facility Tabs */
.facility-tabs .nav-link {
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem;
  border-radius: 50px;
  border: 2px solid #cfe0f2;
  color: #6c757d;
  font-weight: 500;
  transition: all 0.3s ease;
}

.facility-tabs .nav-link:hover {
  border-color: #0d6efd;
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.05);
}

.facility-tabs .nav-link.active {
  background: #0d6efd;
  border-color: #0d6efd;
  color: white;
}

/* Facility Details */
.facility-details {
  background: #f8f9fa;
  padding: 1.25rem;
  border-radius: 10px;
  border-left: 4px solid #0d6efd;
}

/* Carousel Indicators Custom */
.carousel-indicators {
  bottom: -25px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 30%;
  margin: 0 5px;
  background-color: #dee2e6;
  border: none;
}

.carousel-indicators button.active {
  background-color: #0d6efd;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .carousel-img-container {
    height: 300px;
  }

  .facility-tabs .nav-link {
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 767.98px) {
  .carousel-img-container {
    height: 250px;
  }

  .row.g-0 > .col-md-5 {
    padding: 1.5rem !important;
  }

  .facility-tabs .nav-link {
    padding: 0.5rem;
    margin: 0.125rem;
    font-size: 0.8rem;
  }

  .small-img {
    height: 60px;
  }
}

/* ekstrakurikuler */
.ekstra-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ekstra-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.ekstra-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-bottom: 4px solid #f8f9fa;
}

.ekstra-card:hover .ekstra-img {
  transform: scale(1.05);
}

.carousel-fade .carousel-item {
  transition: opacity 0.8s ease-in-out;
}

/* footer */
.footer-section .card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.text-light-50 {
  color: rgba(255, 255, 255, 0.75) !important;
}

.icon-wrapper {
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (min-width: 768px) {
  .hm-card {
    flex-direction: row;
  }
  .hm-left {
    align-items: flex-start;
    text-align: left;
    padding-left: 1rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .hm-photo {
    width: 110px;
    height: 110px;
  }
  .hm-card {
    padding: 12px;
  }
}

/* section pendaftaran */
/* Gradient Background */
.bg-gradient-primary {
  background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
  position: relative;
  overflow: hidden;
}

.bg-gradient-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Card Hover Effects */
.hover-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hover-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Timeline & Steps */
.step-process .step-number {
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* Contact Info Cards */
.contact-info .bg-primary.bg-opacity-10,
.contact-info .bg-success.bg-opacity-10,
.contact-info .bg-info.bg-opacity-10 {
  transition: all 0.3s ease;
}

.contact-info .bg-primary.bg-opacity-10:hover {
  background-color: rgba(13, 110, 253, 0.2) !important;
}

.contact-info .bg-success.bg-opacity-10:hover {
  background-color: rgba(25, 135, 84, 0.2) !important;
}

/* Button Styles */
.btn-primary,
.btn-success {
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.btn-success::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn-primary:hover::after,
.btn-success:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .display-5 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .card-body {
    padding: 1.5rem !important;
  }

  .d-flex.flex-md-row {
    flex-direction: column !important;
  }

  .btn-lg {
    width: 100%;
    margin-bottom: 10px;
  }
}
