/* --- Footer (Full-Width) --- */
.footer {
    background: var(--color-surface);
    padding: 0 0 2rem; 
    border-top: 1px solid var(--color-border);
    width: 100%;
    position: relative;
}

/* === Image Banner Styles === */
.footer-image-banner {
    width: 100%;
    height: 350px; 
    overflow: hidden;
    position: relative;
    margin-bottom: 4rem; 
}
.footer-image-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 10s ease-out;
}
.footer-image-banner:hover img {
    transform: scale(1.05);
}
.footer-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Faded blue gradient */
    background: linear-gradient(
        to top, 
        var(--color-surface) 5%, 
        rgba(58, 123, 213, 0.6) 60%, 
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 1;
}
/* === END: Image Banner Styles === */


.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
}

/* === Footer Logo Styles === */
.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-text);
}
.footer-logo img {
    height: 40px;
    width: 40px;
}
.footer-logo span {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* === END: Footer Logo Styles === */

.footer-container p {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.6;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.footer-links a {
    color: var(--color-text);
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--color-primary);
}

.footer-socials {
    display: flex;
    gap: 1.25rem;
    font-size: 1.75rem;
}
.footer-socials a {
    color: var(--color-text);
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-socials a:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* === Payment Methods Styles === */
.footer-payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* 8px */
    align-items: center;
}

.footer-payment-methods img {
    height: 30px;
    border-radius: 4px;
    background: #f0f0f0;
}

/* === BINAGO: Copyright Styles === */
.footer-copy {
    margin-top: 4rem;
    font-size: .9rem;
    color: var(--color-text);
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between; /* Para maghiwalay ang left at right */
    align-items: center;
    gap: 1.5rem; /* Space pag nag-stack */
}

/* BINAGO: Inayos ang alignment */
.footer-copy-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    justify-content: center; /* Para gumitna sa mobile */
}

.footer-copyright-text {
    font-size: 0.9rem;
}

/* TINANGGAL: Inalis na yung .footer-language-selector styles */


.footer-legal-links {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; /* Para gumitna sa mobile */
    gap: 1.5rem;
}

.footer-legal-links a {
    font-size: 0.85rem;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-legal-links a:hover {
    color: var(--color-primary);
}

/* Animated Bottom Logo */
.footer-bottom-logo-wrapper {
    padding: 3rem 0 1rem;
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid var(--color-border);
}
.footer-bottom-logo {
    height: 60px;
    opacity: 0.8;
    animation: footer-logo-pulse 2.5s ease-in-out infinite;
}
@keyframes footer-logo-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}
/* === END: Animated Logo === */


/* Responsive fix para sa copyright bar */
@media screen and (max-width: 992px) {
    .footer-copy {
        flex-direction: column; /* Stack left at right */
        justify-content: center;
        gap: 1.5rem;
    }
    .footer-copy-left {
        /* 'di na kailangan i-column, center na lang */
        justify-content: center; 
    }
}

/* === COOKIE MODAL STYLES (Nandito pa rin) === */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9998;
    display: grid;
    place-items: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cookie-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 10;
}
.cookie-modal-close:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.cookie-modal-content h3 {
    font-size: 1.75rem;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}
.cookie-modal-content h4 {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.cookie-modal-description {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.6;
}

.cookie-preference-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cookie-preference {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}
.cookie-preference summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none;
    padding: 1rem 1.25rem;
    background: var(--color-bg);
    transition: background 0.3s ease;
}
.cookie-preference summary::-webkit-details-marker { display: none; }
.cookie-preference:hover summary {
    background: var(--color-surface);
}

.cookie-preference-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}
.cookie-preference-title i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.cookie-preference.is-open .cookie-preference-title i {
    transform: rotate(180deg);
}
.cookie-status-always-active {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
}

.cookie-preference-content {
    font-size: 0.85rem;
    line-height: 1.6;
    padding: 0 1.25rem 1.25rem;
    display: none;
}
.cookie-preference.is-open .cookie-preference-content {
    display: block;
}

/* CSS Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}
.cookie-toggle input { 
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-border);
    border-radius: 34px;
    transition: .4s;
}
.cookie-toggle .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}
.cookie-toggle input:checked + .slider {
    background-color: var(--color-primary);
}
.cookie-toggle input:focus + .slider {
    box-shadow: 0 0 1px var(--color-primary);
}
.cookie-toggle input:checked + .slider:before {
    transform: translateX(22px);
}

/* Modal Footer Buttons */
.cookie-modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-primary);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cookie-btn.cookie-accept {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.cookie-btn.cookie-accept:hover {
    opacity: 0.85;
}
.cookie-btn.cookie-confirm {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}
.cookie-btn.cookie-confirm:hover {
    background: var(--color-bg);
    border-color: var(--color-text);
}
.cookie-btn.cookie-reject {
    background: var(--color-bg);
    color: var(--color-text);
    border-color: var(--color-border);
    margin-right: auto;
}
.cookie-btn.cookie-reject:hover {
    background: var(--color-surface);
    border-color: var(--color-text);
}

/* === TINANGGAL: Inalis na yung Language Modal Styles === */

@media screen and (max-width: 768px) {
    .cookie-modal-content {
        padding: 1.5rem;
    }
    .cookie-modal-footer {
        flex-direction: column-reverse;
    }
    .cookie-btn {
        width: 100%;
    }
    .cookie-btn.cookie-reject {
        margin-right: 0;
    }
}



/* === BINAGO: Copyright Styles === */
.footer-copy {
/* ... (yung dati mong styles dito) ... */
}
/* ... (yung iba mo pang styles) ... */

/* === COOKIE MODAL STYLES (Nandito pa rin) === */
.cookie-modal {
/* ... (yung dati mong styles para sa full modal) ... */
}

/* ... (yung iba mo pang styles) ... */

.cookie-btn.cookie-reject:hover {
    background: var(--color-surface);
    border-color: var(--color-text);
}


/* === BAGONG DAGDAG: Cookie Banner Styles === */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    max-width: 500px; /* Para hindi masyadong malapad sa desktop */
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 9997; /* Mas mababa sa main modal (9998) pero mataas sa page */
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    
    /* Animation */
    transform: translateY(200%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out, visibility 0.6s;
}

.cookie-banner.is-active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-banner-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    color: var(--color-text);
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0; /* Para hindi lumiit yung buttons */
}
/* === END NG BAGONG DAGDAG === */


/* === TINANGGAL: Inalis na yung Language Modal Styles === */

@media screen and (max-width: 768px) {
    /* ... (yung dati mong styles dito) ... */
    
    .cookie-btn.cookie-reject {
        margin-right: 0;
    }

    /* === BAGONG DAGDAG: Responsive para sa Banner === */
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }
    .cookie-banner-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
     /* === END NG BAGONG DAGDAG === */
}