/* ==========================================================================
   Al Iman Quran Academy - Section 9: Custom Professional Footer Widget CSS
   ========================================================================== */

.sbw-footer-section {
    position: relative;
    width: 100%;
    background-color: var(--sbw-footer-bg, #091D17);
    color: #ffffff;
    font-family: 'Philosopher', sans-serif;
    box-sizing: border-box;
    overflow: hidden;
    padding-top: 85px;
}

.sbw-footer-section * {
    font-family: 'Philosopher', sans-serif;
}

/* Background Overlay */
.sbw-footer-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.05;
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 1.5px, transparent 0);
    background-size: 28px 28px;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

/* Main Container */
.sbw-footer-container {
    position: relative;
    z-index: 5;
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Top 3 Columns Grid */
.sbw-footer-top-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

/* Column 1: Logo, Description & Follow Us */
.sbw-footer-logo {
    display: inline-block;
    margin-bottom: 18px;
}

.sbw-footer-logo img {
    max-height: 55px;
    width: auto;
    object-fit: contain;
}

.sbw-footer-logo-text {
    font-size: 26px;
    font-weight: 700;
    color: var(--sbw-secondary, #FFB606);
    margin: 0 0 14px 0;
}

.sbw-footer-about {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 24px 0;
    max-width: 400px;
}

.sbw-footer-follow-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 14px 0;
    position: relative;
    display: inline-block;
}

.sbw-footer-follow-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 40px;
    height: 3px;
    background-color: var(--sbw-secondary, #FFB606);
    border-radius: 2px;
}

.sbw-footer-social-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sbw-footer-social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.35s ease;
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sbw-footer-social-btn svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
    transition: fill 0.35s ease, transform 0.35s ease;
}

.sbw-footer-social-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.sbw-footer-social-btn:hover {
    background-color: var(--sbw-secondary, #FFB606);
    border-color: var(--sbw-secondary, #FFB606);
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 8px 20px rgba(255, 182, 6, 0.4);
}

.sbw-footer-social-btn:hover svg {
    fill: var(--sbw-dark, #222222);
    transform: scale(1.1);
}

.sbw-footer-social-btn:hover img {
    transform: scale(1.1);
}

/* Columns 2 & 3 Titles & Lists */
.sbw-footer-col-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 22px 0;
    position: relative;
    padding-bottom: 8px;
}

.sbw-footer-col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45px;
    height: 3px;
    background-color: var(--sbw-secondary, #FFB606);
    border-radius: 2px;
}

/* Useful Links Grid */
.sbw-footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 18px;
}

.sbw-footer-links-list li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sbw-footer-links-list li a:hover {
    color: var(--sbw-secondary, #FFB606);
    transform: translateX(4px);
}

/* Popular Courses List */
.sbw-footer-courses-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sbw-footer-courses-list li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sbw-footer-courses-list li a:hover {
    color: var(--sbw-secondary, #FFB606);
}

/* Subscribe Newsletter Banner (Positioned right below top grid & follow links) */
.sbw-footer-newsletter-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 35px 40px;
    margin-bottom: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    backdrop-filter: blur(10px);
}

.sbw-footer-nl-info {
    flex: 1;
}

.sbw-footer-nl-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.sbw-footer-nl-sub {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

.sbw-footer-nl-form {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 480px;
    width: 100%;
}

.sbw-footer-nl-input {
    flex: 1;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0 22px;
    color: #ffffff;
    font-size: 14.5px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.sbw-footer-nl-input:focus {
    border-color: var(--sbw-secondary, #FFB606);
}

.sbw-footer-nl-btn {
    position: relative;
    height: 50px;
    background-color: var(--sbw-secondary, #FFB606);
    color: var(--sbw-dark, #222222);
    font-size: 14.5px;
    font-weight: 700;
    padding: 0 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    z-index: 1;
    transition: color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

/* Dual-Side Inward Fill Hover Animation for Footer Button */
.sbw-footer-nl-btn::before,
.sbw-footer-nl-btn::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 51%;
    background-color: var(--sbw-primary, #058349);
    z-index: -1;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.sbw-footer-nl-btn::before {
    left: 0;
    transform: translateX(-100%);
}

.sbw-footer-nl-btn::after {
    right: 0;
    transform: translateX(100%);
}

.sbw-footer-nl-btn:hover::before,
.sbw-footer-nl-btn:hover::after {
    transform: translateX(0);
}

.sbw-footer-nl-btn:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 131, 73, 0.45);
}

.sbw-footer-nl-btn .sbw-btn-text {
    position: relative;
    z-index: 2;
}

/* 3 Green Contact Cards Row (Hover: Transparent background, 2px green border & Glowing side effects) */
.sbw-footer-contact-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.sbw-footer-contact-card {
    background-color: var(--sbw-primary, #058349);
    border-radius: 18px;
    padding: 24px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--sbw-primary, #058349);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    box-sizing: border-box;
}

.sbw-footer-contact-card:hover {
    background-color: transparent !important;
    border-color: var(--sbw-primary, #058349) !important;
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(5, 131, 73, 0.75), inset 0 0 15px rgba(5, 131, 73, 0.25) !important;
}

.sbw-footer-cc-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--sbw-secondary, #FFB606);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.sbw-footer-contact-card:hover .sbw-footer-cc-icon {
    background-color: var(--sbw-primary, #058349);
    color: #ffffff;
    border-color: var(--sbw-secondary, #FFB606);
    box-shadow: 0 0 15px rgba(255, 182, 6, 0.5);
}

.sbw-footer-cc-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Main Container */
.sbw-footer-container {
    position: relative;
    z-index: 5;
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    overflow: hidden;
}

.sbw-footer-cc-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: normal;
}

.sbw-footer-cc-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
}

.sbw-footer-cc-val {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.35;
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: normal;
}

.sbw-footer-cc-val a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    display: inline-block;
    max-width: 100%;
}

.sbw-footer-cc-val a:hover {
    color: var(--sbw-secondary, #FFB606);
}

/* Bottom Copyright Bar */
.sbw-footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.78);
    flex-wrap: wrap;
}

.sbw-footer-zynox-link {
    color: var(--sbw-secondary, #FFB606);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-left: 3px;
}

.sbw-footer-zynox-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.sbw-footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sbw-footer-bottom-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 14.5px;
    transition: color 0.3s ease;
}

.sbw-footer-bottom-links a:hover {
    color: var(--sbw-secondary, #FFB606);
}

/* Responsive Queries */
@media (max-width: 991px) {
    .sbw-footer-container {
        padding: 0 16px;
    }
    .sbw-footer-top-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .sbw-footer-newsletter-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
    }
    .sbw-footer-nl-form {
        max-width: 100%;
    }
    .sbw-footer-contact-row {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
    }
    .sbw-footer-contact-card {
        width: 100%;
        max-width: 100%;
        padding: 18px 16px;
        box-sizing: border-box;
    }
}

@media (max-width: 640px) {
    .sbw-footer-container {
        padding: 0 12px;
    }
    .sbw-footer-nl-form {
        flex-direction: column;
        width: 100%;
    }
    .sbw-footer-nl-btn {
        width: 100%;
    }
    .sbw-footer-contact-card {
        padding: 14px 12px;
        gap: 10px;
        max-width: 100%;
    }
    .sbw-footer-cc-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    .sbw-footer-cc-val {
        font-size: 13.5px;
    }
    .sbw-footer-bottom-bar {
        flex-direction: column;
        text-align: center;
    }
}
