:root {
  --primary-blue: #1e40af;
  --dark-blue: #1e3a8a;
  --light-blue: #3b82f6;
  --white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-800: #1f2937;
  --text-dark: #111827;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "MODERNIZ";
  src: url("../../assets/fonts/Moderniz.otf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Top Social Bar */
.top-bar {
  background: linear-gradient(rgba(0, 88, 157), rgba(0, 51, 102));
  color: white;
  padding: 8px 0;
  font-size: 14px;
}

.top-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links a {
  color: white;
  margin-right: 15px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.social-links a:hover {
  opacity: 0.8;
}

/* ==========================
   HERO SLIDER / CAROUSEL
   ========================== */
  .hero-slider {
            position: relative;
            overflow: hidden;
            height: 80vh;
            min-height: 600px;
        }

        .hero-slide {
            position: absolute;
            text-decoration: none;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            opacity: 0;
            transform: translateX(100%);
            transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            z-index: 1;
        }

        .hero-slide.active {
            opacity: 1;
            transform: translateX(0);
            z-index: 2;
        }

        .hero-slide.prev {
            transform: translateX(-100%);
        }

        .hero-slide.next {
            transform: translateX(100%);
        }

        .hero-slide::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(rgba(0, 88, 157, 0.4), rgba(0, 51, 102, 0.4));
            z-index: 1;
        }

        .hero-slide .hero-content {
            position: relative;
            z-index: 2;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 100px;
            color: white;
            width: 100%;
            transform: translateY(30px);
            opacity: 0;
            transition: all 0.8s ease 0.3s;
        }

        .hero-slide.active .hero-content {
            transform: translateY(0);
            opacity: 1;
        }

        .hero-slide .hero-content h1 {
            font-family: MODERNIZ, sans-serif;
            font-size: 3rem;
            font-weight: bold;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
            line-height: 1.2;
            transform: translateY(20px);
            opacity: 0;
            transition: all 0.8s ease 0.5s;
        }

        .hero-slide.active .hero-content h1 {
            transform: translateY(0);
            opacity: 1;
        }

        .hero-slide .hero-content p {
            font-family: Arial, Helvetica, sans-serif;
            font-weight: normal;
            font-size: 1.4rem;
            margin-bottom: 30px;
            opacity: 0;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
            max-width: 600px;
            transform: translateY(20px);
            transition: all 0.8s ease 0.7s;
        }

        .hero-slide.active .hero-content p {
            transform: translateY(0);
            opacity: 0.95;
        }

        /* Navigation Buttons */
        .hero-prev,
        .hero-next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.6);
            color: var(--white);
            border: none;
            font-size: 2.5rem;
            padding: 15px 20px;
            cursor: pointer;
            z-index: 10;
            transition: all 0.3s ease;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-prev:hover,
        .hero-next:hover {
            background: rgba(0, 88, 157, 0.8);
            transform: translateY(-50%) scale(1.1);
        }

        .hero-prev {
            left: 30px;
        }

        .hero-next {
            right: 30px;
        }

        /* Slide Indicators */
        .hero-indicators {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 10;
        }

        .hero-indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .hero-indicator.active {
            background: rgba(255, 255, 255, 0.9);
            transform: scale(1.2);
        }

        /* Fade Animation Alternative */
        .hero-slide.fade-animation {
            transform: none;
            transition: opacity 1s ease-in-out;
        }

        .hero-slide.fade-animation.active {
            transform: none;
        }

        /* Scale Animation Alternative */
        .hero-slide.scale-animation {
            transform: scale(1.1);
            transition: all 1s ease-in-out;
        }

        .hero-slide.scale-animation.active {
            transform: scale(1);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero-slide .hero-content {
                padding: 0 20px;
                text-align: center;
            }

            .hero-slide .hero-content h1 {
                font-size: 2.2rem;
            }

            .hero-slide .hero-content p {
                font-size: 1.1rem;
            }

            .hero-prev,
            .hero-next {
                font-size: 1.8rem;
                padding: 10px 15px;
                width: 50px;
                height: 50px;
            }

            .hero-prev {
                left: 15px;
            }

            .hero-next {
                right: 15px;
            }
        }

        @media (max-width: 480px) {
            .hero-slide .hero-content h1 {
                font-size: 1.8rem;
            }

            .hero-slide .hero-content p {
                font-size: 1rem;
            }

            .hero-prev,
            .hero-next {
                font-size: 1.5rem;
                width: 40px;
                height: 40px;
            }
        }
        
.section-sambutan {
    background: #fff;
    padding: 60px 20px;
    color: #003366;
}

.sambutan-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: auto;
    gap: 30px;
    align-items: flex-start;
}

.sambutan-img {
    flex: 0 0 auto;
    width: 220px;
}

.sambutan-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.sambutan-text {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sambutan-text h3 {
    font-size: 28px;
    margin: 0 0 15px 0;
    color: black;
}

.sambutan-text p {
    font-size: 18px;
    line-height: 1.7;
    text-align: justify;
    color: black;
}

.sambutan-penutup {
    max-width: 1150px;
    margin: 30px auto 0 auto;
    color: black;
    font-size: 18px;
    line-height: 1.7;
    text-align: justify;
    padding: 0 20px;
}

/* News Section */
.news-section {
  padding: 20px 0;
  background: var(--gray-100);
}

.news-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.section-title {
  text-align: center;
  margin-bottom: 20px;
}

.section-title h2 {
    font-size: 1.8rem;
    padding: 0 15px;
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}


.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.news-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.news-card-content {
  padding: 25px;
}

.news-card-content h3 {
  display: -webkit-box; /* Untuk browser WebKit */
  display: box; /* Fallback lama */
  -webkit-box-orient: vertical; /* Untuk WebKit */
  box-orient: vertical; /* Fallback lama */

  overflow: hidden;
  text-overflow: ellipsis;

  /* Properti line-clamp */
  -webkit-line-clamp: 2; /* WebKit */
  line-clamp: 2; /* Properti standar, mulai didukung */

  line-height: 2em;
  max-height: 3em;
  margin: 0 0 0.5em 0;
}

.news-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-dark);
  line-height: 1.4;
}

.news-card p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.read-more {
  background: var(--primary-blue);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s;
}

.read-more:hover {
  background: var(--dark-blue);
}

/* Extracurricular Section */
.extra-section {
  padding: 80px 0;
  background: white;
}

.extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 60px;
}

.extra-card {
  color: white;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.extra-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* dark overlay for readability */
  z-index: 1;
}

.extra-card h3 {
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

/* Individual backgrounds */
.marching-band {
  background-image: url("../image/merchingband.png");
}

.paskibra {
  background-image: url("images/paskibra.jpg");
}

.basket {
  background-image: url("images/basketball.jpg");
}

.sepak-bola {
  background-image: url("images/soccer.jpg");
}

.badminton {
  background-image: url("images/badminton.jpg");
}

.voli {
  background-image: url("images/volleyball.jpg");
}

.extra-card:hover {
  transform: scale(1.05);
}

/* Tambahan efek untuk form-jadwal */
.form-jadwal {
  animation: fadeInUp 0.6s ease-in-out;
  border: 1px solid var(--gray-800);
}

/* Animasi masuk */
@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Tambahan focus efek */
.form-group select:focus {
  border-color: var(--light-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Responsive untuk jadwal ujian */
@media (max-width: 768px) {
  .hero-content {
    padding: 0 20px;
    text-align: center;
  }

  .form-jadwal {
    padding: 20px;
  }
}

/* Custom tombol jadwal ujian saat loading (jika ingin pakai JS nanti) */
button[type="submit"].loading {
  background-color: #ccc;
  cursor: not-allowed;
  position: relative;
}

button[type="submit"].loading::after {
  content: "⏳";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.feedback-section {
  background: white;
  padding: 80px 20px;
  text-align: center;
}

.feedback-container {
  max-width: 900px;
  margin: 0 auto;
}

.feedback-title {
  font-size: 32px;
  font-weight: bold;
  color: #004030;
  margin-bottom: 40px;
  text-align: left;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 60px;
}

.feedback-form input,
.feedback-form textarea {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  width: 100%;
}

.feedback-form textarea {
  height: 120px;
  resize: none;
}

.feedback-form button {
  align-self: flex-start;
  padding: 10px 30px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background-color: #00589d;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.feedback-form button:hover {
  background-color: #004070;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feedback-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background-color: #f2f2f2;
  border-radius: 10px;
}

.feedback-card .avatar {
  width: 50px;
  height: 50px;
}

.feedback-content {
  text-align: left;
}

.feedback-content h4 {
  margin: 0;
  font-weight: bold;
  color: #003366;
}

.feedback-content .waktu {
  display: block;
  font-size: 14px;
  color: #777;
  margin-bottom: 5px;
}

.feedback-content p {
  margin: 0;
  font-style: italic;
  color: #333;
}

/* Dropdown responsive behavior */
@media (max-width: 768px) {
  

}

/* Footer */
.footer {
  background: #004030;
  color: white;
  padding: 60px 0 30px;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-align: left;
  font-weight: bold;
}

.footer-section p,
.footer-section li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-section a:hover {
  opacity: 0.8;
}

.contact-info {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-info i {
  margin-right: 10px;
  width: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 30px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  width: 70px;
  height: 78px;
  margin-right: 10px;
  border-radius: 50%;
}

.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  color: white;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {


  .hero-content h1 {
    font-size: 2.5rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    text-align: center;
    flex-direction: column;
    gap: 20px;
  }
}
