section {
    display: flex;
    padding: 40px 20px;
    margin: 40px auto;
    max-width: 100%;
    position: relative;
    box-sizing: border-box;
}

/*Theory*/
#theory {
    flex: 2;
    background: url('https://patenta-abcd.al/wp-content/uploads/2017/10/post-img-04.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.5);
    padding: 20px;
    box-sizing: border-box;
}

.course-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px;
}

.course {
    flex: 0 0 auto;
    background: rgba(122, 131, 108, 0.9);
    border: 1px solid gray;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 250px;
    text-align: center;
    position: relative;
    transition: background-color 0.3s ease;
    cursor: pointer;
    padding: 10px;
}

.course i {
    font-size: 2em;
    color: #333;
    margin-top: 10px;
}

.course-info {
    padding: 10px;
}

.course-info h3 {
    margin: 0;
    font-size: 1.5em;
}

.course-info p {
    margin: 0;
    color: #333;
    font-weight: 500;
}

.active {
    background-color: yellow;
}

/* Form */
#registration-form {
    flex: 0 0 400px;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    padding: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
    max-height: 85vh;
    overflow-y: auto;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 12px;

}

.form-container h2 {
    margin: 0 0 5px;
    font-size: 0.95em;
    color: #333;
    text-align: center;
}

.form-container p {
    color: #666;
    font-size: 0.8em;
    margin: 5px 0 10px;
    text-align: center;
}

form {
    display: grid;
    gap: 8px;

}

.form-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.form-group i {
    padding: 6px;
    font-size: 0.85em;
    color: #333;
    background-color: #f4f4f4;
}

input {
    flex: 1;
    border: none;
    padding: 6px;
    font-size: 0.85em;
    outline: none;
}

button {
    background-color: #bce40d;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    margin-top: 5px;
}

button:hover {
    background-color: #555;
}

.info-container {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 12px;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
}

.info-container i {
    font-size: 1em;
    color: #007bff;
}

.info-container p {
    margin: 0;
    color: #666;
    font-size: 0.8em;
}

/* FEATURES SECTION */
#features {
    background-color: #003366;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: stretch;
}

.feature {
    background-color: #004080;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    width: 300px;
    text-align: left;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    min-height: 200px;
}

.feature-icon {
    font-size: 2em;
    color: #fff;
    position: absolute;
    top: 20px;
    left: 20px;
}

.feature h3 {
    margin-top: 0;
    font-size: 1.3em;
    margin-left: 50px;
}

.feature p {
    margin: 10px 0;
    margin-left: 50px;
    flex-grow: 1;
}

.feature-button {
    display: block;
    width: fit-content;
    margin: 10px auto 0;
    background-color: #d4d8c3;
    color: rgb(36, 35, 35);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    font-size: 1em;
}

.feature-button:hover {
    background-color: #d0ff00d8;
}


/*content*/
#content {
    display: flex;
    justify-content: space-between;
    padding: 40px 20px;
    box-sizing: border-box;
    background: url('https://patenta-abcd.al/wp-content/uploads/2017/10/post-img-04.jpg') no-repeat center center;
    background-size: cover;
}

.content-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

/* ====== Shared Styles ====== */
#about-us,
#offer {
    flex: 1 1 48%;
    padding: 30px;
    border-radius: 16px;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about-us:hover,
#offer:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* ====== About Section ====== */
#about-us {
    background: #ffffff;
    color: #333;
}

.about-us-container h2 {
    font-size: 1.8rem;
    color: #004080;
    margin-bottom: 15px;
    text-align: center;
}

.about-us-container p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #444;
}

/* ====== Offer Section ====== */
#offer {
    background: #004080;
    color: #fff;
}

.offer-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.offer-container h2 {
    font-size: 1.6rem;
    font-weight: bold;
    background: #b7ec25;
    color: #161515;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 8px;
    margin-bottom: 20px;
}

.offer-container p {
    font-size: 1rem;
    margin-bottom: 15px;
}

/* ====== Countdown ====== */
#countdown {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.countdown-item {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.countdown-item span {
    display: block;
    font-size: 1.2rem;
    line-height: 1.2;
    margin: 0 auto;
}

/* ====== Button ====== */
.button {
    display: inline-block;
    background: #d0ff00;
    color: #161515;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    margin-top: 15px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background: #b7ec25;
    transform: scale(1.05);
}

.curved-line {
    width: 50%;
    height: 50px;
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

/*Services*/
#services {
    background-color: #f4f4f4;
    padding: 40px 20px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

.service-item i {
    font-size: 3em;
    color: #004080;
    margin-bottom: 10px;
}

.service-item h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: #004080;
}

.service-item p {
    color: #666;
    font-size: 1em;
}

/*Course*/
#courses {
    width: 100%;
    background-color: #7a797e;
    padding: 40px 20px;
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.course-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.course-item i {
    font-size: 2em;
    color: #004080;
    margin-bottom: 10px;
}

.course-info {
    z-index: 1;
    transition: opacity 0.3s ease;
}

.course-item:hover .course-info {
    opacity: 0;
}

.course-hover-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 2px solid yellow;
    border-radius: 5px;
}

.course-item:hover .course-hover-info {
    opacity: 1;
}

.course-hover-info .button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.course-hover-info .button:hover {
    background-color: #0056b3;
}

/*gallery*/
#gallery {
    padding: 40px 20px;
    border-bottom: 2px solid #b3ce1a;
}

.gallery-container {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.gallery-container h2 {
    margin: 20px;
    text-align: center;
    color: #161515;
    font-weight: bold;
}

.gallery-categories {
    margin-bottom: 20px;
}

.gallery-button {
    background-color: transparent;
    color: black;
    border: 2px solid #c4b70d;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.gallery-button:hover {
    background-color: #d9ff00;
    color: #fff;
    transform: scale(1.05);
}

.gallery-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.gallery-item {
    padding: 20px;
    text-align: center;
    max-width: 40%;
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    max-width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Instructors Section */
#instructors {
    padding: 50px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)),
        url('https://example.com/your-background-image.jpg') no-repeat center center;
    background-size: cover;
    border-bottom: 2px solid #007bff;
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #333;
}

/* Container */
.instructors-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Section Heading */
#instructors h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 40px;
    color: #111;
}

/* Slider Wrapper */
.slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

/* Slides */
.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Individual Slide */
.slide {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Slide Image */
.slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.slide:hover img {
    transform: scale(1.03);
}

/* Slide Info Overlay */
.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 180px;
}

/* Instructor Name */
.slide-info h3 {
    font-size: 1.4em;
    font-weight: 700;
    color: #00aaff;
    margin-top: 10px;
    line-height: 1.2;
}

/* Instructor Details */
.slide-info p {
    font-size: 0.95em;
    font-weight: 400;
    color: #f0f0f0;
    margin: 10px 0;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

/* Navigation Arrows */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.next {
    right: 10px;
}

.prev {
    left: 10px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* Media Queries (375px - 768px) */
@media (min-width: 375px) and (max-width: 1024px) {
    #theory {
        flex-direction: column;
        padding: 20px;
    }

    #theory-content {
        margin-bottom: 20px;
    }

    .course-container {
        flex-direction: column;
        gap: 15px;
    }

    .course {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Form */
    #registration-form {
        padding: 20px;
        max-width: 80%;
    }

    .form-group i {
        font-size: 1.2em;
    }

    input {
        font-size: 1em;
    }

    button {
        font-size: 1em;
        padding: 12px;
    }

    .info-container {
        font-size: 0.9em;
    }

    #content {
        padding: 20px;
    }

    .content-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /*about us*/
    #content {
        display: flex;
        flex-direction: column;
        padding: 20px;
        box-sizing: border-box;
    }

    .content-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    #about-us,
    #offer {
        padding: 20px;
        box-sizing: border-box;
        border-radius: 8px;
    }

    #about-us {
        background-color: #ffffff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .about-us-container {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    #offer {
        background-color: #004080;
        color: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .offer-container {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .offer-container h2 {
        color: #161515;
        background-color: #b7ec25;
        padding: 10px;
        border-radius: 8px;
        margin: 20px 0;
    }

    #countdown {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 20px;
    }

    .countdown-item {
        text-align: center;
        color: white;
        padding: 15px;
        border-radius: 50%;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);

    }

    .countdown-item span {
        display: block;
        font-size: 1.2em;
    }

    /*SERVICES*/

    #services {
        padding: 20px;
    }

    .services-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .service-item {
        display: flex;
        align-items: center;
        gap: 15px;
        background: rgba(255, 255, 255, 0.9);
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        font-size: 0.9em;
    }

    .service-item i {
        font-size: 2em;
        color: #007bff;
    }

    .service-item h3 {
        margin: 0;
        font-size: 1.2em;
    }

    /*Courses*/
    #courses {
        padding: 30px 15px;
        margin: 10px auto;
    }

    .courses-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        margin: 10px;
    }

    .course-item {
        padding: 15px;
        max-width: 100%;
        transition: transform 0.3s ease;
    }

    .course-item:hover {
        transform: scale(1.05);
    }

    .course-item i {
        font-size: 1.5em;
    }

    .course-info h3 {
        font-size: 1.1em;
    }

    .course-info p {
        font-size: 0.9em;
    }

    .course-hover-info .button {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    /*gallery*/

    .gallery-button {
        font-size: 0.7em;
        padding: 7px 12px;
        margin: 10px;
    }

    .gallery-item {
        max-width: 100%;
        flex: 1 1 100%;
        padding: 5px;
    }

    #instructors {
        padding: 20px 10px;
        background: linear-gradient(rgba(255, 255, 255, 0.8),
                rgba(255, 255, 255, 0.5)), url('https://example.com/your-background-image.jpg');
        background-size: cover;
        background-position: center;
        border-bottom: 1px solid #007bff;
        margin: 0 auto;
    }

    .instructor-profile {
        flex-direction: column;
    }

    .slider {
        max-width: 100%;
        margin-right: 0;
    }

    .slides {
        flex-direction: column;
    }

    .slide {
        min-width: 100%;
    }

    .prev,
    .next {
        width: 40px;
        height: 40px;
        padding: 8px;
        font-size: 14px;
    }

    .prev {
        left: 10px;
        border-radius: 3px 0 0 3px;
    }

    .next {
        right: 10px;
        border-radius: 0 3px 3px 0;
    }

}