﻿h1.section-heading {
    font-weight: 800 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin-bottom: 1rem;
}

.hero-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    width: 100%;
}

.hero-text {
    flex: 0 0 50%;
    max-width: 50%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2rem;
    order: 1;
}

nav #menu {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-right: 100px;
    margin-top: 50px;
}

    nav #menu a,
    nav #menu button#more-btn {
        background: transparent;
        border: none;
        color: black;
        font-size: 25px;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
        display: block;
        align-items: center;
        gap: 8px;
    }

#more-btn img {
    width: 30px;
    height: 33px;
    margin-top: 7px;
}

#more-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 5px;
    min-width: 150px;
    z-index: 9999;
}

    #more-dropdown a {
        display: block;
        padding: 15px 20px;
        color: black;
        text-decoration: none;
    }


.hero-image {
    flex: 0 0 50%;
    max-width: 50%;
    height: 650px;
    object-fit: cover;
    border-radius: 0.25rem;
    order: 2;
    margin-top:40px;
}
.single_course img {
    width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.hero-text h1 {
    font-weight: 700;
    font-size: 5.6rem;
    color: #005AA9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 90px;
}

.hero-text p.subtitle {
    font-size: 2rem;
    color: black;
    margin-top: 20px;
    padding-left: 90px;
}

.hero-text p.description {
    font-size: 2.3rem;
    color: #444;
    margin-top: 1rem;
}

section > h1.section-heading {
    width: 100%;
}

.time-box {
    background-color: #0C2863;
    border: 10px solid #ffffff;
    border-radius: 19px;
    padding: 20px 30px;
    min-width: 100px;
    color: white;
}

    .time-box h3 {
        margin: 0;
        font-size: 28px;
        font-weight: bold;
    }

    .time-box p {
        margin: 0;
        font-size: 16px;
    }

.section-heading {
    font-size: 36px;
    font-weight: bold;
}
.owl-nav {
    display: flex !important;
    justify-content: space-between;
    position: absolute;
    top: 40%;
    width: 100%;
    padding: 0 40px;
}

    .owl-nav button.owl-prev,
    .owl-nav button.owl-next {
        background-color: #005598;
        color: white;
        border: none;
        padding: 20px;
        font-size: 60px; /* حجم الأيقونة */
        border-radius: 50%;
        
    }
.owl-dots {
    display: none !important;
}
/* Reset some inline margins for responsiveness */
header .logo {
    margin-left: 20px !important;
    margin-top: 20px !important;
}

header .buttons {
    margin-right: 90px !important;
    margin-top: 50px !important;
    gap: 15px !important;
}

    header .buttons button, header .buttons #more-btn {
        font-size: 18px !important;
    }

/* Container padding adjustments */
section {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

    section.w-100.py-3,
    section.about-area.about-five.row,
    section.map-section,
    section.w-100.text-center.py-5 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Hero image */
    section.w-100 img {
        max-width: 100%;
        height: auto;
    }

/* Buttons */
.btn.btn-primary.btn-lg {
    max-width: 100%;
    width: 100%;
    font-size: 18px;
}

/* Text content */
.description {
    font-size: 16px !important;
    text-align: justify;
}

/* Owl carousel */
.owl-carousel .single_course {
    padding: 30px !important;
}

.owl-carousel .card-img {
    width: 140px !important;
}

/* Countdown */
#countdown {
    flex-wrap: wrap;
    gap: 15px !important;
}

    #countdown .time-box h3 {
        font-size: 28px !important;
    }

    #countdown .time-box p {
        font-size: 16px !important;
    }

/* Welcome and About sections */
h1, h2, h3, h4 {
    font-size: 1.5rem !important;
}

p, ul.ul1 li {
    font-size: 14px !important;
}

/* Responsive Grid for About Sections */
@media (max-width: 991px) {
    section.about-area.about-five.row > div.container-fluid > div.row > div.col-lg-5 {
        border: none !important;
        padding: 20px !important;
        margin-bottom: 20px;
    }

    section.about-area.about-five.row > div.container-fluid > div.row {
        flex-direction: column !important;
        align-items: center;
    }
}

/* Responsive adjustments for header */
@media (max-width: 768px) {
    .responsive-register-section {
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 15px;
        max-width: 100% !important;
        text-align: center !important;
    }

    .welcome-section {
        padding: 15px !important;
    }

    .welcome-heading {
        font-size: 30px !important;
    }

    .welcome-text {
        font-size: 16px !important;
    }

    .welcome-img {
        max-width: 100% !important;
        margin-bottom: 20px;
    }

    .welcome-director h4,
    .welcome-director p {
        font-size: 18px !important;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .buttons {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-top: 10px;
    }

        .buttons a,
        #more-btn {
            font-size: 1.1rem;
            padding-left: 0;
        }

    .logo img {
        height: 50px;
    }
}

/* Smaller phones */
@media (max-width: 480px) {
    header .buttons button, header .buttons #more-btn {
        font-size: 14px !important;
        padding: 4px 8px;
    }

    .description {
        font-size: 14px !important;
    }

    #countdown .time-box h3 {
        font-size: 22px !important;
    }
}
