/* =======================================================
   FOOTER SECTION - SLIM SULTAN EDITION
   ======================================================= */

.main-footer {
    position: relative;
    /* Gradasi Hijau Tua khas Madrasah */
    background: linear-gradient(150deg, #012402 0%, #1b4332 100%);
    color: #ffffff;
    padding: 45px 0 0 0; /* Atas kasih ruang, bawah 0 karena nempel footer-bottom */
    margin-top: 0;
    border-top: 3px solid #FFD700; /* Garis Emas Sultan */
    overflow: hidden;
}

/* Efek Cahaya Halus di pojok kanan atas footer */
.main-footer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(164, 198, 57, 0.1), transparent);
    pointer-events: none;
}

.footer-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px 40px 30px; /* Jarak ke bawah sebelum copyright */
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 2;
}

/* --- STYLE KOLOM --- */
.footer-column {
    flex: 1;
    transition: transform 0.3s ease;
}

.footer-column:hover {
    transform: translateY(-5px); /* Efek melayang dikit */
}

.footer-column h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-column h4 {
    color: #A4C639; /* Hijau Tea Cerah */
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

/* Garis Emas Animasi di bawah judul H4 */
.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 35px;
    height: 2px;
    background: #FFD700;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-column:hover h4::after {
    width: 100%; /* Garis memanjang pas kolom disentuh */
}

/* --- TEKS & LINK --- */
.footer-column p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #d1d1d1;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #FFD700 !important; /* Jadi Emas */
    transform: translateX(8px); /* Geser kanan dikit */
}

/* --- SOSIAL MEDIA ICONS --- */
.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    color: #A4C639;
}

.social-icons span {
    cursor: pointer;
    font-weight: bold;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    transition: 0.3s;
}

.social-icons span:hover {
    background: #FFD700;
    color: #1b4332;
    border-color: #FFD700;
}

/* --- COPYRIGHT SECTION (PENGHABIS PUTIH-PUTIH) --- */
.footer-bottom {
    background: #010101; /* Hitam pekat biar "mengunci" layar */
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    margin: 0 !important; /* WAJIB NOL biar gak ada sisa putih di bawah */
    font-size: 0.85rem;
    color: #666;
    transition: 0.5s;
}

.footer-bottom:hover p {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Responsif buat Monitor Kecil / HP */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}