/* ============================================
   Footer Khatab Academy Styles
   ============================================ */

.footer-khatab {
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 30%, #000000 100%) !important;
    color: #ffffff !important;
    padding: 100px 0 0 0 !important;
    position: relative;
    overflow: hidden;
    width: 100% !important;
    margin: 0 !important;
}

.footer-khatab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffde59 50%, transparent);
}

.footer-khatab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 222, 89, 0.1);
}

.footer-content-khatab {
    position: relative;
    z-index: 2;
}

.footer-content-khatab .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
}

.footer-khatab .row {
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    align-items: flex-start !important;
}

.footer-khatab .row > * {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
}

/* Force Bootstrap columns to work */
.footer-khatab [class*="col-"] {
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.footer-khatab [class*="col-"] > * {
    flex: 0 0 auto !important;
}

@media (min-width: 768px) {
    .footer-khatab .col-md-6 {
        flex: 0 0 auto !important;
        width: 50% !important;
    }
}

@media (min-width: 992px) {
    .footer-khatab .col-lg-4 {
        flex: 0 0 auto !important;
        width: 33.33333333% !important;
    }

    .footer-khatab .col-lg-3 {
        flex: 0 0 auto !important;
        width: 25% !important;
    }

    .footer-khatab .col-lg-5 {
        flex: 0 0 auto !important;
        width: 41.66666667% !important;
    }
}

.footer-logo-section {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.footer-logo-section img {
    max-height: 70px;
    width: auto;
    margin-bottom: 30px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 222, 89, 0.3));
    transition: all 0.3s ease;
}

.footer-logo-section img:hover {
    filter: drop-shadow(0 0 20px rgba(255, 222, 89, 0.5));
    transform: scale(1.05);
}

.footer-description {
    color: #b0b0b0;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 30px;
    max-width: 100%;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 35px;
}

.social-link-khatab {
    width: 50px;
    height: 50px;
    background: rgba(255, 222, 89, 0.08);
    border: 2px solid rgba(255, 222, 89, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffde59;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-link-khatab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffde59, #e6c850);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.social-link-khatab i {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.social-link-khatab:hover {
    border-color: #ffde59;
    transform: translateY(-5px) scale(1.15);
    box-shadow: 0 15px 35px rgba(255, 222, 89, 0.5);
    text-decoration: none;
}

.social-link-khatab:hover::before {
    width: 100%;
    height: 100%;
}

.social-link-khatab:hover i {
    color: #000000;
    transform: rotate(360deg);
}

.footer-contact-btn {
    background: linear-gradient(135deg, #ffde59 0%, #e6c850 100%) !important;
    color: #000000 !important;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 222, 89, 0.3);
}

.footer-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.footer-contact-btn:hover::before {
    left: 100%;
}

.footer-contact-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 222, 89, 0.6);
    color: #000000 !important;
    text-decoration: none !important;
}

.footer-contact-btn i {
    transition: transform 0.4s ease;
}

.footer-contact-btn:hover i {
    transform: translateX(-5px);
}

.footer-widget-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 30px;
    margin-top: 0 !important;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ffde59, #e6c850);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 222, 89, 0.5);
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 15px;
}

.footer-links-list a {
    color: #b0b0b0 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.footer-links-list a::before {
    content: '◀';
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(8px);
    color: #ffde59;
}

.footer-links-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffde59, #e6c850);
    transition: width 0.3s ease;
}

.footer-links-list a:hover {
    color: #ffde59 !important;
    text-decoration: none !important;
    padding-right: 15px;
    transform: translateX(-3px);
}

.footer-links-list a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-links-list a:hover::after {
    width: 30px;
}

.newsletter-section {
    background: linear-gradient(135deg, rgba(255, 222, 89, 0.08), rgba(255, 222, 89, 0.03));
    border: 2px solid rgba(255, 222, 89, 0.2);
    border-radius: 25px;
    padding: 35px;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 222, 89, 0.1) 0%, transparent 70%);
    transition: all 0.6s ease;
    opacity: 0;
}

.newsletter-section:hover {
    border-color: rgba(255, 222, 89, 0.4);
    background: linear-gradient(135deg, rgba(255, 222, 89, 0.12), rgba(255, 222, 89, 0.05));
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 222, 89, 0.2);
}

.newsletter-section:hover::before {
    opacity: 1;
    transform: rotate(180deg);
}

.newsletter-title {
    color: #ffde59;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.newsletter-text {
    color: #b0b0b0;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    font-size: 15px;
    direction: rtl;
}

.newsletter-input:focus {
    border-color: #ffde59;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 222, 89, 0.1);
}

.newsletter-input::placeholder {
    color: #666666;
}

.newsletter-btn {
    background: linear-gradient(135deg, #ffde59, #e6c850);
    color: #000000;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 222, 89, 0.4);
}

.footer-contact-info {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    color: #b0b0b0;
    font-size: 15px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 222, 89, 0.1);
    border: 2px solid rgba(255, 222, 89, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffde59;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: rgba(255, 222, 89, 0.2);
    border-color: #ffde59;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(255, 222, 89, 0.3);
}

.footer-bottom {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
    padding: 35px 0;
    margin-top: 80px;
    border-top: 2px solid rgba(255, 222, 89, 0.1);
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffde59 50%, transparent);
}

.footer-bottom .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
}

.footer-bottom .row {
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

.footer-bottom .row > * {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.footer-policy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.footer-policy-links a {
    color: #b0b0b0 !important;
    text-decoration: none !important;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.footer-policy-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 0;
    height: 2px;
    background: #ffde59;
    transition: width 0.3s ease;
}

.footer-policy-links a:hover {
    color: #ffde59 !important;
    text-decoration: none !important;
}

.footer-policy-links a:hover::after {
    width: 100%;
}

.copyright-text {
    color: #888888;
    font-size: 14px;
    text-align: left;
    margin: 0;
    font-weight: 500;
}

.copyright-text a {
    color: #ffde59 !important;
    text-decoration: none !important;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.copyright-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: #ffde59;
    transition: width 0.3s ease;
}

.copyright-text a:hover {
    color: #e6c850 !important;
}

.copyright-text a:hover::after {
    width: 100%;
}

/* Animated Background Elements */
.footer-khatab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 222, 89, 0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .footer-khatab {
        padding: 80px 0 0 0;
    }
}

@media (max-width: 992px) {
    .footer-khatab {
        padding: 50px 0 0 0;
    }

    .footer-logo-section img {
        max-height: 50px;
    }

    .footer-description {
        max-width: 100%;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        min-width: 100%;
    }

    .newsletter-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-khatab {
        padding: 40px 0 0 0;
    }

    .footer-widget-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .footer-links-list a {
        font-size: 14px;
    }

    .footer-policy-links {
        justify-content: center;
        margin-bottom: 20px;
        gap: 15px;
    }

    .copyright-text {
        text-align: center;
        font-size: 13px;
    }

    .social-link-khatab {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .footer-contact-btn {
        padding: 12px 28px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .footer-khatab {
        padding: 30px 0 0 0;
    }

    .footer-content-khatab .container {
        padding: 0 15px;
    }

    .footer-logo-section img {
        max-height: 40px;
    }

    .footer-description {
        font-size: 14px;
    }

    .footer-social-links {
        gap: 10px;
    }

    .social-link-khatab {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .footer-contact-btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .newsletter-section {
        padding: 20px;
    }

    .contact-item {
        font-size: 14px;
    }

    .contact-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* Fix for icons */
.footer-khatab .fa-solid, 
.footer-khatab .fa-regular, 
.footer-khatab .fa-brands, 
.footer-khatab .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 6 Pro" !important;
}

.footer-khatab .fa-solid {
    font-weight: 900 !important;
}

.footer-khatab .fa-regular {
    font-weight: 400 !important;
}

.footer-khatab .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Ensure footer is visible */
.footer-khatab * {
    box-sizing: border-box;
}

/* Hide any old top bar */
.top-bar,
.top-header,
.header-top,
.sub-header,
.sub-header-area,
.top-bar-area {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

