/* Prevent Horizontal Scrolling */
html, body {
    overflow-x: hidden !important;
    max-width: 100%;
}

/* Footer Styles */
.footer-block {
    background: #f5f5f5;
    color: #273444;
    font-family: 'Tajawal', sans-serif;
    max-width: 100%;
    overflow-x: hidden;
}

/* Utility Classes */
.hidden-xl,
.hidden-lg,
.hidden-md {
    display: none;
}

@media (max-width: 991px) {
    .hidden-md {
        display: block;
    }
}

@media (max-width: 1199px) {
    .hidden-lg {
        display: block;
    }
}

@media (max-width: 1399px) {
    .hidden-xl {
        display: block;
    }
}

.fw-600 {
    font-weight: 600;
}

.d-flex {
    display: flex;
}

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

.my0 {
    margin-top: 0;
    margin-bottom: 0;
}

.page__container {
    max-width: 1232px;
    margin: 0 auto;
    padding: 0 16px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.footer .row {
    margin: 0;
}

.container {
    max-width: 1232px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Back to Top Link */
.footer__back-to-top {
    background: #273444;
    padding: 1rem 0;
    text-align: center;
}

.navigation-block {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.navigation-block:hover {
    opacity: 0.8;
}

.navigation-block__label {
    font-weight: 500;
}

.icon-navigation__wrapper {
    display: flex;
    align-items: center;
}

.icon-navigation {
    width: 24px;
    height: 24px;
}

/* Payment Background Section */
.footer__payment-bg {
    background: #eff2f7;
    padding: 2rem 0;
}

.footer__container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
}

.footer__container > div {
    flex: 1;
    min-width: 300px;
}

.footer__social-section {
    flex: 1;
    min-width: 300px;
}

.footer__newsletter-section {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.footer__app-store-mobile {
    margin-bottom: 1.5rem;
}

/* Social Media Section */
.footer__social-title--v2,
.footer__social-link-title--v2 {
    color: #273444;
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer__social-appstore img {
    max-width: 150px;
    height: auto;
}

.footer__social-link-list--v2 {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.footer__social-link--v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
    overflow: hidden;
}

.footer__social-link--v2:hover {
    transform: scale(1.1);
}

.footer__social-link--v2 img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Newsletter Section */
.footer__newsletter {
    background: transparent;
}

.footer__newsletter-title {
    color: #273444;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer__newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer__newsletter-form form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    flex-wrap: wrap;
}

.footer__newsletter-form .input__field {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.footer__newsletter-form .button {
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: #273444;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.footer__newsletter-form .button:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* Benefits Section */
.benefit-full-block {
    background: #fff;
    padding: 2rem 0;
}

.page__row--footer {
    padding: 0;
}

.benefit--full {
    padding: 0;
}

.benefit--full .list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.list__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.list__icon-wrapper {
    flex-shrink: 0;
}

.list__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list__icon svg {
    width: 100%;
    height: 100%;
    fill: #8492A6;
}

.list__content {
    flex: 1;
}

.list__content--bold {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #273444;
}

.list__subtext {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* Payment Methods Section */
.footer-payment-block {
    background: #eff2f7;
    padding: 1.5rem 0;
}

.footer-payment-block .footer__payment-bg {
    background: transparent;
    padding: 0;
}

.footer__payment--v2 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    margin-top: 0;
}

.footer__payment-list--v2 {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__payment-item--v2 {
    display: flex;
    align-items: center;
}

.footer__payment-item--v2 img {
    max-height: 35px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer__payment-item--v2:hover img {
    opacity: 1;
}

/* Footer Links Section */
.footer {
    background: #3c4858;
    color: #fff;
    font-size: 12px;
    padding-top: 1rem;
    padding-bottom: 0.75rem;
}

.footer__col-border {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .footer__col-border {
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 1.5rem;
        margin-right: 1.5rem;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .footer__col-border:last-child {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
    }
    
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
        display: flex;
        flex-direction: column;
        padding: 0 8px;
        width: 25%;
    }
    
    .footer .row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        margin: 0;
        max-width: 100%;
    }
}

.footer__link-title {
    margin-bottom: 0.5rem;
    margin-top: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.footer__link-title--default {
    font-size: 18px;
    line-height: 1.3;
}

.footer__link {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: opacity 0.2s ease;
}

.footer__link:hover {
    opacity: 0.8;
}

.footer__link-icon {
    width: 24px;
    height: 24px;
}

.footer__item {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block !important;
}

.footer__list {
    margin-bottom: 0.35rem;
}

.footer__list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s ease;
    padding: 0.15rem 0;
    font-size: 12px;
    line-height: 1.4;
}

.footer__list--default a {
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    line-height: 1.4;
}

.footer__list a:hover {
    color: #fff;
}

.icon--arrow-white {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    flex-shrink: 0;
}

.icon--arrow-white img {
    width: 100%;
    height: 100%;
}

/* Copyright Section */
.footer__copyright {
    background: #3c4858;
    color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copyright p {
    margin: 0;
}

/* Back to Top Button */
.vue-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.button--floating-small {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    padding: 0;
}

.button--floating-small:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.button__icon {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 767px) {
    .footer__container {
        flex-direction: column;
    }
    
    .footer__container > div {
        width: 100%;
    }
    
    .footer__newsletter-form form {
        flex-direction: column;
    }
    
    .footer__newsletter-form .input__field {
        width: 100%;
    }
    
    .footer__newsletter-form .button {
        width: 100%;
    }
    
    .benefit--full .list {
        grid-template-columns: 1fr;
    }
    
    .footer__payment-list--v2 {
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .vue-back-to-top {
        bottom: 1rem;
        right: 1rem;
    }
    
    .footer__col-border {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
    }
}

