/* ========================================== */
/* GLOBAL STYLES */
/* ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================== */
/* SECTION 1: NAVIGATION BAR */
/* ========================================== */
.navbar {
    background: linear-gradient(135deg, #1f2dce 0%, #4a5fd9 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.1);
}

.navbar-nav {
    margin-right: auto;
}

.nav-link {
    color: #fff !important;
    font-size: 17px;
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 18px !important;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown-menu {
    background-color: #fff;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 10px;
    min-width: 250px;
}

.dropdown-item {
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 15px;
    background-color: transparent;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
    color: #1f2dce;
    transform: translateX(-5px);
}

.dropdown-menu .nav-link {
    color: #1f2dce !important;
    background-color: transparent;
    padding: 10px 15px;
}

.dropdown-menu .nav-link:hover {
    background-color: #f0f0f0;
}

/* Nested Dropdown - Opens on Left (Right side in RTL) */
.dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
    right: auto;
    margin-left: 5px;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    right: auto;
    margin-left: 5px;
}

.navbar-toggler {
    border: 2px solid #fff;
    padding: 8px 12px;
    background: transparent;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler svg {
    fill: #fff;
    width: 28px;
    height: 28px;
}

/* ========================================== */
/* SECTION 2: HERO SECTION */
/* ========================================== */
.hero-section {
    background-color: #fff;
    padding: 60px 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-image-col {
    text-align: center;
    padding: 30px;
}

.hero-image {
    width: 100%;
    max-width: 650px;
    height: auto;
}

.hero-content-col {
    position: relative;
    padding: 40px;
    text-align: right;
}

.hero-title {
    color: #1f2dce;
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.3;
}

.hero-description {
    color: #555;
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.btn-hero {
    display: inline-block;
    background: linear-gradient(135deg, #27eac8 0%, #1fc7a8 100%);
    color: #fff;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 21px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(39, 234, 200, 0.5);
    transition: all 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(39, 234, 200, 0.7);
    color: #fff;
    text-decoration: none;
}

/* Decorative Shapes */
.shape-decoration {
    position: absolute;
    opacity: 0.3;
    width: 40px;
    height: 40px;
}

.shape-1 {
    top: 10%;
    right: 5%;
}

.shape-2 {
    top: 50%;
    right: 15%;
}

.shape-3 {
    bottom: 15%;
    left: 10%;
}

.plus-sign {
    font-size: 25px;
    fill: #27eac8;
    text-anchor: middle;
    font-family: Roboto;
}

/* ========================================== */
/* SECTION 3: ADVERTISEMENT SPACE */
/* ========================================== */
.ad-section {
    padding: 30px 0;
    background-color: #f8f9fa;
}

.ad-section .container {
    max-width: 1200px;
}

.adsbygoogle {
    display: block;
    min-height: 100px;
}

/* ========================================== */
/* SECTION 4: ABOUT US */
/* ========================================== */
.about-section {
    padding: 40px 0 60px 0;
    background-color: #fff;
}

.section-title {
    font-size: 38px;
    color: #1f2dce;
    font-weight: 700;
    margin-bottom: 0;
    margin-top: 0;
    text-align: center;
}

.title-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1f2dce, #27eac8);
    margin: 5px auto 10px;
    border-radius: 2px;
}

.about-image-col {
    text-align: center;
    padding: 5px;
}

.about-image-col img {
    width: 100%;
    max-width: 350px;
}

.about-content-col {
    padding: 5px;
}

.about-text {
    font-size: 17px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
    text-align: justify;
}

.btn-about {
    display: inline-block;
    background: linear-gradient(135deg, #1f2dce 0%, #4a5fd9 100%);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-about:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(31, 45, 206, 0.4);
    color: #fff;
    text-decoration: none;
}

/* ========================================== */
/* SECTION 5: OUR SERVICES */
/* ========================================== */
.services-section {
    padding: 60px 0;
    background: #fff;
}

.title-line {
    display: block;
    margin: 0 auto 40px;
    max-width: 150px;
}

.services-grid {
    padding: 0;
    margin-top: 30px;
}

.services-grid .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.services-grid .mb-4 {
    margin-bottom: 30px !important;
}

.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 35px 25px;
    border-radius: 20px;
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(31, 45, 206, 0.08);
    transition: all 0.4s ease;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1f2dce 0%, #27eac8 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(31, 45, 206, 0.15);
    border-color: #27eac8;
}

.service-icon {
    font-size: 55px;
    color: #1f2dce;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    color: #27eac8;
    transform: scale(1.1);
}

.service-title {
    font-size: 21px;
    color: #1f2dce;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.service-description {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-link {
    display: inline-block;
    background: linear-gradient(135deg, #1f2dce 0%, #4a5fd9 100%);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.service-link:hover {
    background: linear-gradient(135deg, #27eac8 0%, #1fc7a8 100%);
    color: #fff;
    text-decoration: none;
    transform: scale(1.05);
}

.service-link i {
    margin-right: 5px;
}

/* ========================================== */
/* SECTION 6: LOAN TYPES INFO */
/* ========================================== */
.loan-types-section {
    padding: 20px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.loan-content-col {
    padding: 10px;
}

.loan-title {
    font-size: 32px;
    color: #1f2dce;
    font-weight: 700;
    margin-bottom: 10px;
}

.loan-description {
    font-size: 17px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

.btn-loan {
    display: inline-block;
    background: linear-gradient(135deg, #27eac8 0%, #1fc7a8 100%);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-loan:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(39, 234, 200, 0.4);
    color: #fff;
    text-decoration: none;
}

.loan-image-col {
    text-align: center;
    padding: 10px;
}

.loan-image {
    width: 100%;
    max-width: 400px;
}

/* ========================================== */
/* SECTION 8: SUPERVISED BY (BANKS SLIDER) */
/* ========================================== */
.banks-section {
    padding: 20px 0;
    background: linear-gradient(135deg, #1f2dce 0%, #4a5fd9 100%);
    overflow: hidden;
    text-align: center;
}

.banks-section .section-title {
    color: #fff;
}

.banks-section .title-line {
    filter: brightness(0) invert(1);
}

.banks-slider-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

.banks-slick-slider {
    direction: ltr;
}

.banks-slick-slider .slick-slide {
    padding: 0 8px;
}

.banks-slick-slider .slick-list {
    overflow: hidden;
}

.banks-slick-slider .slick-track {
    display: flex !important;
    align-items: center;
}

.bank-card {
    background: #fff;
    padding: 18px 12px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    min-height: 150px;
    width: 100%;
    max-width: 160px;
    margin: 0 auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bank-card img {
    max-width: 100px;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.bank-name {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    margin: 0;
}

/* ========================================== */
/* SECTION 9: STATISTICS COUNTERS */
/* ========================================== */
.statistics-section {
    padding: 20px 0;
    background: #fff;
}

.counter-card {
    padding: 25px 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: 15px;
}

.counter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(31, 45, 206, 0.15);
}

.counter-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
}

.counter-number {
    display: block;
    font-size: 38px;
    color: #1f2dce;
    font-weight: 700;
    margin-bottom: 8px;
}

.counter-label {
    font-size: 16px;
    color: #666;
    font-weight: 600;
    margin: 0;
}

/* ========================================== */
/* SECTION 11: FOOTER */
/* ========================================== */
.footer-primary {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 40px 0 20px;
    color: #fff;
}

.footer-col {
    margin-bottom: 20px;
}

.footer-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #27eac8;
}

.footer-link {
    display: block;
    color: #ddd;
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    padding: 3px 0;
}

.footer-link:hover {
    color: #27eac8;
    transform: translateX(-5px);
    text-decoration: none;
}

.footer-link i {
    margin-right: 8px;
    color: #27eac8;
}

.footer-logo {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.footer-contact {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-contact i {
    color: #27eac8;
    font-size: 18px;
}

.footer-email,
.footer-phone {
    color: #ddd;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-email:hover,
.footer-phone:hover {
    color: #27eac8;
    text-decoration: none;
}

.footer-copyright {
    background-color: #0f0f1e;
    padding: 18px 0;
    color: #fff;
    text-align: center;
}

.copyright-text {
    margin: 0;
    font-size: 15px;
}

/* ========================================== */
/* LOADING SCREEN */
/* ========================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 99999;
    display: none !important;
    align-items: center;
    justify-content: center;
}

.loader-container {
    text-align: center;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1f2dce;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ========================================== */
/* HOVER EFFECTS */
/* ========================================== */
.hvr-grow {
    display: inline-block;
    vertical-align: middle;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hvr-glow {
    transition: all 0.3s ease;
}

.hvr-grow:hover {
    transform: scale(1.05);
}

/* ========================================== */
/* RESPONSIVE DESIGN */
/* ========================================== */
@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 15px;
    }

    .nav-link {
        margin: 5px 0;
    }

    .dropdown-menu {
        margin-top: 10px;
    }

    .services-grid .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .hero-section {
        padding: 40px 0;
        min-height: 70vh;
    }

    .hero-image-col {
        padding: 20px;
    }

    .hero-image {
        max-width: 500px;
    }

    .hero-content-col {
        padding: 30px 25px;
    }

    .hero-title {
        font-size: 40px;
    }

    /* Banks Section - Tablet */
    .banks-slick-slider .slick-slide {
        padding: 0 12px;
    }

    .bank-card {
        max-width: 160px;
        min-height: 170px;
        padding: 22px 12px;
    }

    .bank-card img {
        max-width: 100px;
        max-height: 65px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 30px 0;
        min-height: auto;
    }

    .hero-image-col {
        order: 1;
        padding: 20px;
        margin-bottom: 20px;
    }

    .hero-image {
        max-width: 400px;
    }

    .hero-content-col {
        order: 2;
        text-align: center;
        padding: 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 18px;
    }

    .section-title {
        font-size: 30px;
    }

    .service-card {
        min-height: auto;
    }

    .services-grid .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .service-card {
        margin: 0 auto 25px;
        max-width: 400px;
    }

    /* Banks Section - Mobile */
    .banks-section {
        padding: 35px 0;
    }

    .banks-slider-wrapper {
        padding: 25px 0;
    }

    .banks-slick-slider .slick-slide {
        padding: 0 10px;
    }

    .bank-card {
        max-width: 140px;
        min-height: 160px;
        padding: 20px 10px;
    }

    .bank-card img {
        max-width: 85px;
        max-height: 55px;
    }

    .bank-name {
        font-size: 12px;
    }

    .counter-number {
        font-size: 32px;
    }

    .loan-title {
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 20px 0;
        min-height: auto;
    }

    .hero-image-col {
        margin-bottom: 15px;
        padding: 15px;
    }

    .hero-image {
        max-width: 350px;
    }

    .hero-content-col {
        padding: 15px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 17px;
    }

    .btn-hero {
        padding: 14px 35px;
        font-size: 18px;
    }

    .navbar-brand img {
        width: 50px;
        height: 50px;
    }

    .service-card {
        padding: 30px 20px;
        max-width: 100%;
    }

    /* Banks Section - Small Mobile */
    .banks-section {
        padding: 30px 0;
    }

    .banks-slider-wrapper {
        padding: 20px 0;
    }

    .banks-slick-slider .slick-slide {
        padding: 0 8px;
    }

    .bank-card {
        max-width: 120px;
        min-height: 150px;
        padding: 18px 8px;
    }

    .bank-card img {
        max-width: 70px;
        max-height: 45px;
    }

    .bank-name {
        font-size: 11px;
        line-height: 1.3;
    }

    .section-title {
        font-size: 26px;
    }
}