/* =========================================================
   FOOTER KORPORAT DPMM NEGERI PERAK (ALIGNMENT & SPACING FIX)
   ========================================================= */

.dpmm-footer {
    background-color: #ED2124 !important; /* Dark Velvet Red */
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 50px;
    border-top: 4px solid #C5A059;
}

/* NISBAH GRID BAHARU: 
   Kolom 1: Auto (Terselari mengikut logo)
   Kolom 2: Pautan Pantas
   Kolom 3: Hubungi Kami
   Kolom 4: Sertai Kami (Diperbesarkan dengan fr nisbah lebih tinggi) 
*/
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: 300px 1.1fr 1.3fr 1.4fr !important; /* Kolom Sertai Kami lebih lebar */
    gap: 35px;
}

/* KOLOM 1: MENGHADKAN LEBAR TEKS SAMA DENGAN LOGO */
.col-brand {
    width: 300px !important;
}

.col-brand .footer-logo {
    width: 300px !important;
    max-width: 100% !important;
    height: auto !important;
    margin-bottom: 18px;
    display: block;
    filter: none !important;
}

.col-brand .footer-desc {
    width: 300px !important; /* Hadkan lebar tepat mengikut lebar logo */
    font-size: 0.88rem;
    line-height: 1.5;
    color: #f1f5f9;
    margin: 0;
    box-sizing: border-box;
    text-align: right;
}

/* TAJUK KOLOM FOOTER */
.footer-title {
    color: #ffffff !important;
    font-family: 'Bodoni Moda', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
    letter-spacing: 0.5px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background-color: #C5A059;
}

/* PAUTAN PANTAS */
.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 0 !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    line-height: 1.3 !important;
}

.footer-links li:last-child {
    border-bottom: none !important;
}

.footer-links a {
    color: #f1f5f9 !important;
    text-decoration: none !important;
    font-size: 0.88rem !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
}

.footer-links a::before {
    content: '›' !important;
    color: #C5A059 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-right: 8px !important;
    line-height: 1 !important;
}

.footer-links a:hover {
    color: #C5A059 !important;
    padding-left: 4px !important;
}

/* HUBUNGI KAMI */
.footer-contact {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-contact li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    color: #f1f5f9 !important;
    font-size: 0.88rem !important;
    margin-bottom: 12px !important;
    line-height: 1.4 !important;
}

.footer-contact .icon {
    flex-shrink: 0 !important;
    font-size: 1rem !important;
}

.footer-contact a {
    color: #f1f5f9 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.footer-contact a:hover {
    color: #C5A059 !important;
}

/* KOLOM 4: SERTAI KAMI (RUANG DIPERBESARKAN) */
.col-sertai {
    padding-left: 10px; /* Tambahan ruang pernafasan */
}

.col-sertai .footer-text {
    font-size: 0.9rem;
    color: #f1f5f9;
    line-height: 1.6;
    margin-bottom: 20px;
}

.col-sertai .btn-footer-wa {
    display: block; /* Tukar ke block supaya memenuhi ruang butang secara kemas */
    width: 100%;
    text-align: center;
    background-color: transparent;
    color: #ffffff !important;
    border: 1px solid #C5A059;
    padding: 13px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 0px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.col-sertai .btn-footer-wa:hover {
    background-color: #C5A059;
    color: #3b0508 !important;
}

/* BAR HAK CIPTA */
.footer-bottom {
    background-color: #3b0508;
    padding: 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-container {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #e2e8f0;
    font-weight: 500;
}

/* RESPONSIF */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr !important;
    }
    .col-brand, .col-brand .footer-logo, .col-brand .footer-desc {
        width: 100% !important;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
}