body {
    font-family: 'Roboto' !important;
}

.curved-header {
    background: #C7C7BF;
    position: relative;
    z-index: 10;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    padding: 30px 0;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.6) !important;
    border: none !important;
    margin: 0 6px !important;
    transition: all 0.3s ease !important;
}

.carousel-indicators .active {
    background-color: #2E306B !important; 
    opacity: 1 !important;
}

.carousel-indicators {
    bottom: 15px !important; 
}

section {
    position: relative;
    margin-top: -40px;
}

.purple-bg {
    background-color: #2E306B;
    color: white;
}

.carousel-item img {
    height: 700px;
    object-fit: cover;
}

.uae {
    width: 365px;
    height: 154.117px;
    object-fit: cover;
}

.alusra {
    width: 139px;
    height: 100px;
    flex-shrink: 0;
    aspect-ratio: 139/100;
}

#mainCarousel,
#mainCarousel .carousel-inner,
#mainCarousel .carousel-item {
    height: 100%;
}

#mainCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.text-title {
    font-family: 'Inter';
    font-size: 22px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    margin-bottom: 56px;
}

.text-description p, a {
    font-size: 20px;
    font-family: 'Roboto';
    font-style: normal;
    text-align: start;
    font-weight: 500;
    line-height: 140%;
}

.text-description p {
    font-size: 20px;
}

.link {
    background-color: #C7C7BF !important;
    padding: 20px 10px;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    text-align: center;
    color: #1a1a1a;
    transition: all 0.3s ease;
    height: 100%; 
}

.link span {
    color: #42447F;
    text-decoration: underline;
}

.link span, .link div {
    font-size: 14px;
}

.link span{
    font-size: 10px;
}

.link div {
    color: #000;
}

.btn:hover {
    background-color: #C7C7BF !important;
}

.buttons-grid .col-6 {
    display: flex;
}

.buttons-grid .btn {
    flex: 1;
}

/* ===== Responsive Styles ===== */

/* Tablets and Medium screens - iPad (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .curved-header {
        padding: 25px 0;
    }
    
    .uae {
        width: 300px;
        height: 130px;
    }
    
    .alusra {
        width: 110px;
        height: 79px;
    }
    
    .carousel-item img {
        height: 550px;
    }
    
    .purple-bg {
        padding: 40px 30px !important;
    }
    
    .text-title {
        font-size: 26px;
        margin-bottom: 45px;
    }
    
    .text-description p {
        font-size: 22px;
        margin-bottom: 25px !important;
    }
    
    .text-description p, a {
        font-size: 20px;
    }
    
    .link {
        padding: 18px 12px;
    }
    
    .link span, .link div {
        font-size: 14px;
    }
    
    .buttons-grid {
        margin-top: 30px !important;
    }
}

/* Mobile screens (less than 768px) */
@media (max-width: 767px) {
    .curved-header {
        padding: 15px 0;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }
    
    /* توسيط زر اللغة في الموبايل */
    .curved-header .row.mt-2 {
        justify-content: center !important;
        text-align: center !important;
    }
    
    .curved-header .row.mt-2 .col {
        display: flex;
        justify-content: center;
    }
    
    .uae {
        width: 180px;
        height: 80px;
    }
    
    .alusra {
        width: 70px;
        height: 50px;
    }
    
    section {
        margin-top: -20px;
    }
    
    /* ترتيب العناصر: Header -> Image -> Text */
    .row.g-0 {
        flex-direction: column;
    }
    
    .col-lg-8 {
        order: 1;
        width: 100%;
    }
    
    .col-lg-4 {
        order: 2;
        width: 100%;
    }
    
    .carousel-item img {
        height: 300px;
    }
    
    .purple-bg {
        padding: 30px 20px !important;
    }
    
    .text-title {
        font-size: 22px;
        margin-bottom: 30px;
        margin-top: 0 !important;
    }
    
    .text-description p {
        font-size: 18px;
        margin-bottom: 20px !important;
    }
    
    .text-description p, a {
        font-size: 16px;
    }
    
    .link {
        padding: 15px 10px;
    }
    
    .link span, .link div {
        font-size: 16px;
    }

    .link span{
        font-size: 10px;
    }
    
    .buttons-grid {
        margin-top: 20px !important;
    }
    
    .buttons-grid .g-3 {
        gap: 10px !important;
    }
}

/* Very small screens (less than 576px) */
@media (max-width: 575px) {
    .uae {
        width: 150px;
        height: 65px;
    }
    
    .alusra {
        width: 60px;
        height: 43px;
    }
    
    .text-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .text-description p {
        font-size: 16px;
    }
    
    .text-description p, a {
        font-size: 14px;
    }
    
    .link span, .link div {
        font-size: 13px;
    }
    
    .purple-bg {
        padding: 25px 15px !important;
    }
}
