﻿.hero-section {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 100vh;
}

    .hero-section video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.hero-text {
    position: absolute;
    top: 60%;
    right: 10%;
    transform: translateY(-50%);
    color: white;
    text-align: right;
    z-index: 10;
    font-family: 'Cairo', sans-serif;
}

    .hero-text h2 {
        font-size: 2.5rem;
        font-weight: 500;
        white-space: nowrap;
    }

        .hero-text h2 span:first-child {
            font-weight: 300;
            margin-left: 10px;
        }

    .hero-text h6 {
        font-weight: 300;
        font-size: 1.25rem;
        margin-top: 10px;
    }

.learn-more-btn {
    position: absolute;
    top: 75%;
    right: 10%;
    transform: translateY(-50%);
    z-index: 10;
    padding: 12px 30px;
    border: 1px solid white;
    border-radius: 70px;
    background: transparent;
    color: white;
    text-decoration: none;
    right:50%;
    font-size: 18px;
    font-family: 'Cairo', sans-serif;
    transition: 0.3s ease;

}

    .learn-more-btn:hover {
        background-color: white;
        color: #1D75B3;
    }

.btn-custom-blue {
    background-color: #005AA9;
    color: white;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 60px;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

    .btn-custom-blue:hover {
        background-color: #C8D952;
        color: #005AA9;
    }

.btn-custom-white {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 60px;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

    .btn-custom-white:hover {
        background-color: #005AA9;
        color: white;
    }

.rotating-images {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.rotating-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .rotating-img.active {
        opacity: 1;
        z-index: 10;
    }

.about-subtitle {
    color: #005AA9;
    font-weight: 400;
    font-size: 2.6rem;
}

.about-title {
    color: #005AA9;
    font-weight: 400;
    font-size: 2.8rem;
}

.about-main-title {
    color: #175BA7;
    font-weight: 700;
    font-size: 2.5rem;
    white-space: nowrap;
}

.about-description {
    font-size: 2rem;
    color: #175BA7;
    font-weight: 400;
    text-align: end;
    margin-right: 80px;
}

.course-img {
    height: 600px;
    object-fit: cover;
}

.course-title {
    font-weight: 600;
    color: #005AA9;
}

.story-title {
    color: #005AA9;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: right;
}

.story-text {
    font-size: 1.4rem;
    font-weight: 400;
    color: #6c757d;
    line-height: 1.6;
    text-align: right;
}

.visit-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #005AA9;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    z-index: 10;
    display: inline-block;
}

    .visit-btn:hover {
        background-color: #B1C732;
        color: #fff;
    }

.rtl-row {
    direction: rtl;
}

@media (max-width: 768px) {
    .hero-text {
        top: 55%;
        right: 5%;
    }

        .hero-text h2 {
            font-size: 1.8rem;
            white-space: normal;
        }

        .hero-text h6 {
            font-size: 1rem;
        }

    .learn-more-btn {
        font-size: 14px;
        padding: 8px 20px;
        top: 80%;
        right: 5%;
    }

    .rotating-images,
    .rotating-img {
        width: 250px;
        height: 250px;
    }

    .about-description {
        font-size: 1.4rem;
        margin-right: 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 1.4rem;
    }

    .hero-text h6 {
        font-size: 0.9rem;
    }

    .learn-more-btn {
        font-size: 12px;
        padding: 6px 16px;
        top: 82%;
    }

    .rotating-images,
    .rotating-img {
        width: 200px;
        height: 200px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .visit-btn {
        font-size: 1.5rem;
        padding: 16px 32px;
    }
}
