/**
 * ExamBlaze Footer Styles - FIXED VERSION
 * Main footer with 4 columns and footer bottom section
 * Uses hardcoded colors as fallbacks to ensure styling works
 * 
 * @package ExamBlaze
 * @version 3.0
 */

/* ========================================
   MAIN FOOTER
   ======================================== */

.main-footer {
    background: #000000;
    /* Absolute Black for Footer */
    color: var(--text-white);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    display: none;
}

.footer-main,
.footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-main {
    padding: 70px 0 50px;
}

.footer-main .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   FOOTER GRID
   ======================================== */

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
}

/* ========================================
   FOOTER COLUMNS
   ======================================== */

.footer-column {
    display: flex;
    flex-direction: column;
}

/* ========================================
   COLUMN 1: ABOUT
   ======================================== */

.footer-about {
    padding-right: 30px;
}

.footer-logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-white);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 28px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.footer-logo a:hover {
    color: var(--accent-gold);
    transform: scale(1.02);
}

.footer-logo-icon {
    font-size: 32px;
}

.footer-logo-text {
    letter-spacing: -0.5px;
}

.footer-tagline {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 15px;
    line-height: 1.3;
}

.footer-description {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

/* ========================================
   FOOTER CONTACT BUTTONS
   ======================================== */

.footer-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.footer-btn i {
    font-size: 18px;
}

.footer-btn-whatsapp {
    background: var(--accent-gold);
    color: var(--text-white);
}

.footer-btn-whatsapp:hover {
    background: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.footer-btn-email {
    background: var(--primary-blue);
    color: var(--text-white);
}

.footer-btn-email:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.4);
}

/* ========================================
   FOOTER TRUST BADGES
   ======================================== */

.footer-trust {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.trust-item i {
    font-size: 16px;
    color: var(--accent-gold);
}

/* ========================================
   FOOTER HEADINGS
   ======================================== */

.footer-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-gold);
    display: inline-block;
}

/* ========================================
   FOOTER MENUS - WITH ICONS
   ======================================== */

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu li:last-child {
    margin-bottom: 0;
}

.footer-menu a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-menu a i {
    font-size: 14px;
    color: var(--accent-gold);
    width: 18px;
    text-align: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-menu a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.footer-menu a:hover i {
    opacity: 1;
    transform: scale(1.2);
}

/* ========================================
   FOOTER CERTIFICATIONS
   ======================================== */

.footer-certifications {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--accent-gold);
    transition: all 0.3s ease;
}

.cert-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.cert-badge i {
    font-size: 26px;
    color: var(--accent-gold);
}

.cert-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cert-info strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1;
}

.cert-info span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
}

/* ========================================
   FOOTER BOTTOM
   ======================================== */

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-tagline-bottom p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.footer-rating p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-rating .stars {
    display: inline-flex;
    gap: 3px;
}

.footer-rating .stars i {
    color: var(--accent-gold);
    font-size: 14px;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(15, 118, 110, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-about {
        grid-column: 1 / -1;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .footer-contact-buttons {
        flex-direction: row;
        gap: 15px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    .footer-main {
        padding: 50px 0 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-about {
        grid-column: 1;
        margin-bottom: 0;
        text-align: center;
    }

    .footer-logo a {
        justify-content: center;
    }

    .footer-contact-buttons {
        flex-direction: column;
    }

    .footer-trust {
        align-items: center;
    }

    .footer-heading {
        width: 100%;
        text-align: center;
    }

    .footer-menu {
        text-align: center;
    }

    .footer-menu a {
        justify-content: center;
    }

    .footer-menu a:hover {
        transform: translateX(0);
    }

    .footer-certifications {
        margin-top: 20px;
    }

    .cert-badge:hover {
        transform: translateX(0);
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .back-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE
   ======================================== */

@media (max-width: 480px) {
    .footer-main {
        padding: 40px 0 30px;
    }

    .footer-grid {
        gap: 30px;
    }

    .footer-logo a {
        font-size: 24px;
    }

    .footer-logo-icon {
        font-size: 28px;
    }

    .footer-tagline {
        font-size: 16px;
    }

    .footer-description {
        font-size: 14px;
    }

    .footer-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .footer-heading {
        font-size: 18px;
    }

    .footer-menu a {
        font-size: 14px;
    }

    .cert-badge {
        padding: 12px;
    }

    .cert-badge i {
        font-size: 22px;
    }

    .cert-info strong {
        font-size: 16px;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .footer-copyright p,
    .footer-tagline-bottom p,
    .footer-rating p {
        font-size: 12px;
    }

    .back-to-top {
        bottom: 80px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {

    .main-footer,
    .back-to-top,
    .whatsapp-float {
        display: none;
    }
}