/* home.css - Styling khusus untuk halaman beranda */

/* Hero Section dengan Background Image */
.hero-section-new {
    position: relative;
    height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)); 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    overflow: hidden;
}

.hero-section-new img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 126, 52, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4em;
    margin-bottom: 35px;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary-hero {
    background: #667eea;
    color: white;
}

.btn-primary-hero:hover {
    background: #5568d3;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary-hero {
    background: #6c757d;
    color: white;
}

.btn-secondary-hero:hover {
    background: #5a6268;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(26, 58, 82, 0.4);
}

/* Facilities Section */
.facilities-section {
    padding: 60px 0;
    text-align: center;
}

.section-title {
    font-size: 2.5em;
    color: #1a3a52;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-description {
    color: #666;
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.facility-card {
    padding: 50px 30px;
    width: 270px;
    height: 350px;
    border-radius: 20%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
}

.facility-red {
    background: linear-gradient(135deg, #ffebe9 0%, #ffd4d0 100%);
}

.facility-green {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.facility-yellow {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
}

.facility-blue {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.facility-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.facility-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.facility-red .facility-icon {
    color: #ff6b35;
}

.facility-green .facility-icon {
    color: #28a745;
}

.facility-yellow .facility-icon {
    color: #ffc107;
}

.facility-blue .facility-icon {
    color: #2196f3;
}

.facility-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #1a3a52;
}

.facility-card p {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
}

.about-content h2 {
    font-size: 2.2em;
    color: #1a3a52;
    margin-bottom: 25px;
    line-height: 1.3;
}

.about-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.founder-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.founder-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.founder-text {
    display: flex;
    flex-direction: column;
}

.founder-text strong {
    color: #1a3a52;
    font-size: 1.1em;
}

.founder-text span {
    color: #666;
    font-size: 0.95em;
}

.about-images {
    position: relative;
    height: 500px;
}

.image-circle {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.circle-1 {
    width: 400px;
    height: 350px;
    top: 0;
    left: 50px;
    border: 8px solid #ffebe9;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 100px;
    left: 0;
    border: 8px solid #fff8e1;
}

.circle-3 {
    width: 180px;
    height: 180px;
    top: 100px;
    right: 0;
    border: 8px solid #e8f5e9;
}

/* Content Section */
.content-section {
    padding: 60px 0;
    text-align: center;
}

.content-section hr {
    border: none;
    background: #1a3a52;
    margin: 20px auto 40px;
}

.content-section hr.small {
    margin-top: 70px;
    width: 70%;
    height: 1px;
}

.content-section hr.large {
    width: 90%;
    height: 2px;
}

.content-title {
    font-size: 2.5em;
    color: #1a3a52;
    margin-bottom: 15px;
    font-weight: 700;
}

.content-description {
    color: #666;
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;

}

.misi-description {
    color: #666;
    font-size: 1.1em;
    max-width: 700px;
    margin: 10px auto;
    line-height: 1.6;
}

/* Visi & Misi */
/* Ekstrakurikuler - New Design */
.ekskul-section {
    padding: 60px 0;
    text-align: center;
}

.ekskul-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.ekskul-card-new {
    background: white;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ekskul-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.ekskul-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.ekskul-card-new:hover .ekskul-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.ekskul-icon-box i {
    font-size: 2.2em;
    color: white;
}

/* Icon Colors */
.icon-red {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.icon-green {
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
}

.icon-orange {
    background: linear-gradient(135deg, #ff922b 0%, #fd7e14 100%);
}

.icon-blue {
    background: linear-gradient(135deg, #4dabf7 0%, #228be6 100%);
}

.icon-purple {
    background: linear-gradient(135deg, #b197fc 0%, #9775fa 100%);
}

.icon-pink {
    background: linear-gradient(135deg, #ff6b9d 0%, #f06595 100%);
}

.icon-teal {
    background: linear-gradient(135deg, #20c997 0%, #12b886 100%);
}

.ekskul-card-new h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 12px;
    font-weight: 600;
}

.ekskul-card-new p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
}

/* Media Query untuk Mobile */
@media (max-width: 768px) {
    .ekskul-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .ekskul-card-new {
        padding: 25px 15px;
    }
}


@media (max-width: 768px) {
    .facilities-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Memusatkan grid secara horizontal */
        gap: 20px; /* Jarak antar kartu, sesuaikan jika perlu */
    }
    
    .facility-card {
        flex: 0 1 calc(50% - 20px); /* 2 kolom pada mobile, sesuaikan lebar jika
        max-width: 300px; /* Batasi lebar kartu agar tidak terlalu lebar */
    }
}


/* CTA Section */
.cta-section {
    background:white;
    color: #1a3a52;
    padding: 50px 40px;
    text-align: center;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-section h2 {
    color: #0f2537;
    border: none;
    margin-bottom: 15px;
    font-size: 2em;
}

.cta-section p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.contact-info {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-info p {
    margin: 10px 0;
    font-size: 1.05em;
}

.contact-info i {
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-images {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-section-new {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .section-title {
        font-size: 2em;
    }

    .facilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .facility-card {
        padding: 40px 20px;
    }

    .about-content h2 {
        font-size: 1.8em;
    }

    .content-section {
        padding: 25px;
    }

    .content-section h2 {
        font-size: 1.5em;
    }

    .cta-section {
        padding: 40px 20px;
    }

    .cta-section h2 {
        font-size: 1.6em;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .about-images {
        height: 350px;
    }

    .circle-1 {
        width: 200px;
        height: 200px;
        left: 20px;
    }

    .circle-2 {
        width: 160px;
        height: 160px;
        bottom: 80px;
    }

    .circle-3 {
        width: 140px;
        height: 140px;
        top: 80px;
    }
}

@media (max-width: 480px) {
    .hero-section-new {
        height: 450px;
    }

    .hero-content h1 {
        font-size: 1.8em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .btn-hero {
        padding: 12px 30px;
        font-size: 1em;
    }

    .section-title {
        font-size: 1.7em;
    }

    .content-section h2 {
        font-size: 1.3em;
    }

    .content-section {
        padding: 20px;
    }

    .facility-card h3 {
        font-size: 1.2em;
    }

    .facility-card p {
        font-size: 0.9em;
    }

    .about-images {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
        position: static;
    }

    .image-circle {
        position: static;
        width: 120px;
        height: 120px;
        margin: 10px;
    }

    .circle-1,
    .circle-2,
    .circle-3 {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
    }
}