/* assets/css/style.css */

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 10px;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 14px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #008000;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.toggle-menu {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 40, 40, 0.8), rgba(0, 40, 40, 0.8)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #4CAF50;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: transparent;
    color: white;
    padding: 12px 30px;
    border: 2px solid white;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: white;
    color: #004d40;
}

/* Sambutan Kepala Sekolah */
.sambutan {
    padding: 80px 0;
    background-color: white;
}

.sambutan .container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
}

.sambutan-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.sambutan-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.logo-circle {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 120px;
    height: 120px;
}

.logo-circle img {
    width: 100%;
    height: auto;
}

.sambutan-text {
    flex: 2;
    min-width: 300px;
}

.sambutan-text h2 {
    color: #008000;
    font-size: 32px;
    margin-bottom: 20px;
    text-align: left;
}

.sambutan-text p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Galeri Foto */
.galeri {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.galeri h2 {
    color: #008000;
    font-size: 32px;
    text-align: center;
    margin-bottom: 10px;
}

.gallery-link {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-link a {
    color: #008000;
    font-weight: bold;
    text-decoration: none;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-info {
    padding: 15px;
}

.category {
    display: inline-block;
    background-color: #008000;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
}

.date {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    display: inline-block;
    float: right;
}

.gallery-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

/* Footer */
footer {
    background-color: #004d40;
    color: white;
    padding: 50px 0 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    width: 100px;
    margin-bottom: 20px;
}

.footer-motto {
    font-style: italic;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: #4CAF50;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-copyright {
    margin-top: 50px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #008000;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #006700;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        background-color: white;
        width: 80%;
        height: 100%;
        transition: 0.5s;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
        padding: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 20px;
    }

    .dropdown-content.show {
        display: block;
    }

    .toggle-menu {
        display: block;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .sambutan .container,
    .footer-container {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo img {
        height: 50px;
    }
}

.carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    max-height: 600px;
}

.carousel-container {
    width: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    position: relative;
    min-width: 100%;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    max-height: 600px;
    object-fit: cover; /* Pastikan gambar terisi penuh tanpa distorsi */
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    background: rgba(0, 0, 0, 0.6); /* lebih gelap agar kontras */
    padding: 20px 30px;
    border-radius: 12px;
    z-index: 10;
    width: 80%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel-caption h2 {
    font-size: 2rem;
    margin: 0 0 10px;
}

.carousel-caption p {
    font-size: 1.1rem;
    margin: 0;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    z-index: 15;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}


.activities-section {
    padding: 60px 20px;
    background: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #2c3e50;
}

.container {
    max-width: 1200px;
    margin: auto;
}

.activity-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.activity-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
}

.activity-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.activity-content {
    padding: 20px;
}

.activity-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.activity-content p {
    font-size: 1rem;
    color: #666;
}
ch

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-logo, .footer-links, .footer-map {
    flex: 1;
    min-width: 250px;
}

.footer-map {
    flex: 1.5;
}

.footer-map h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
}

.map-container {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.address-text, .contact-text, .email-text {
    color: #ddd;
    margin-bottom: 8px;
    font-size: 14px;
}

.address-text i, .contact-text i, .email-text i {
    margin-right: 8px;
    color: #4CAF50;
}

@media (max-width: 992px) {
    .footer-container {
        flex-direction: column;
    }
    
    .footer-map iframe {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .footer-map iframe {
        height: 180px;
    }
}
/* ISR modern content */
img{max-width:100%;height:auto;border-radius:0.75rem}
