* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', sans-serif;
}


.home {

    background-color: #001f3f;
    height: 100vh;
    width: 100%;
    overflow: hidden;



}

.A {
    width: 100%;
    height: 70%;
    background-color: #004f99;
    display: flex;
    justify-content: center;
    align-items: center;
}

.B {
    width: 100%;
    height: 30%;
    background-color: #004f99;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar {
    height: 100%;
    width: 10%;
    background-color: #001f3f;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.hero {
    height: 100%;
    width: 30%;
    background-color: #004f99;
}

.text h3,
.text h1 {
    color: #ffffff;
    /* white text */
}

.image {
    width: 60%;
    height: 100%;
    background-image: url(./slider-img.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: change 12s infinite;
}

@keyframes change {
    0% {
        background-image: url(./moshe.jpg);
        opacity: 1;
    }

    25% {
        background-image: url(./slider-img.jpg);
        opacity: 1;
    }

    30% {
        background-image: url(./slider-img.jpg);
        opacity: 1;
    }

    35% {
        background-image: url(./slider-img2.jpg);
        opacity: 1;
    }

    50% {
        background-image: url(./slider-img2.jpg);
        opacity: 1;
    }

    55% {
        background-image: url(./slider-img2.jpg);
        opacity: 1;
    }

    60% {
        background-image: url(./slider-img3.jpg);
        opacity: 1;
    }

    75% {
        background-image: url(./slider-img3.jpg);
        opacity: 1;
    }

    80% {
        background-image: url(./partner.jpg);
        opacity: 1;
    }

    85% {
        background-image: url(./partner.jpg);
        opacity: 1;
    }

    100% {
        background-image: url(./moshe.jpg);
        opacity: 1;
    }

}

.hamburger {
    width: 35px;
    height: 24px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    margin-bottom: 10px;

}

.hamburger span {
    display: block;
    height: 4px;
    background-color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* cancel icon */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.search {
    color: white;
    margin-bottom: 10px;
}

.user {
    color: white;
    margin-bottom: 10px;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: white;
}

.log {
    display: none;
}

.text {
    height: 90%;
    width: 100%;
    padding: 40px;
}

.text h3 {
    text-align: center;
    font-weight: bolder;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
    text-align: center;
}

.text h4 {
    font-weight: lighter;
    font-size: 2rem;
    line-height: 3rem;
    color: white;
}

.btn {
    width: 100%;
    height: 10%;
    display: flex;

}

.btn button {
    width: 50%;
    padding: 10px;
    font-size: large;
    font-weight: lighter;
    color: white;
    border: none;
}



.read {
    background-color: transparent;
    border: 1px solid #00cfff;
    color: #00cfff;
}
.read a {
    color: #00cfff;
    font-size: 1.5rem;
    text-decoration: none;
}

.read {
    background-color: transparent;
}

.cnt {
    background-color: #001f3f;
    color: #ffffff;
}
.cnt a {
    color: #00cfff;
    font-size: 1.5rem;
    text-decoration: none;
}


.cnt:hover ,
.read:hover  {
    background-color: #ffffff;
    color: #004f99;
}


.B2,
.B1 {
    background-color: #001f3f;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;

}

.links {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20%;

}

.con {
    width: 20%;
    text-align: center;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

}

.con div {
    color: white;
    margin-bottom: 20px;

}

.con div:hover {
    background-color: #001f3f;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 79, 153, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    transition: left 0.3s ease;
    z-index: 1000;

}

.side-menu ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    list-style-type: none;

}

ul li {
    margin-bottom: 10px;
    border: 1px solid #ffffff;
    color: #ffffff;
    border-radius: 4px;
    background-color: transparent;
    padding: 10px;
    width: 200px;
    text-align: center;
}

ul li:nth-child(1) {
    background-color: #fff;
    color: black;
}

ul li a {
    color: #ffffff;
    text-decoration: none;
    padding: 15px 20px;
    font-size: 18px;
    transition: background 0.3s ease;
}

.side-menu.active {
    left: 0;
}

ul li:hover {
    background-color: #00cfff;
    color: #001f3f;

}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 71, 238, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.about {
    background-color: #f5f5f5;
    padding: 60px 20px;
    width: 100%;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

.about-text {
    flex: 1 1 400px;
    color: #333;
}

.about-text h2 {
    font-size: 2rem;
    color: #004f99;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.about-image {
    flex: 1 1 400px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}


.why-choose-us {
    background-color: #004f99;
    padding: 60px 20px;
    max-width: 100%;
    margin: auto;
}

.why-choose-us h2 {
    text-align: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 40px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    background-color: white;
    color: #004f99;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.accordion-header:hover {
    background-color: #004f99;
    color: white;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    background-color: #f9f9f9;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.accordion-content p {
    padding: 15px 0;
    color: #333;
}

.accordion-item.active .accordion-content {
    max-height: 150px;
}


























/* Tablet Devices */
@media (max-width: 1024px) {
    .A {
        flex-direction: column;
        height: auto;
    }

    .sidebar {
        flex-direction: row;
        width: 100%;
        height: auto;
        padding: 10px;
        gap: 15px;
        justify-content: space-around;
    }

    .hero {
        width: 100%;
        height: auto;
        padding: 20px 0;
    }

    .image {
        width: 100%;
        height: 300px;
    }

    .text {
        padding: 20px;
    }

    .btn {
        flex-direction: row;
        justify-content: center;
    }

    .B {
        flex-wrap: wrap;
        padding: 10px;
    }

    .links {
        width: 100%;
        justify-content: space-around;
        margin-bottom: 10px;
    }

    .con {
        width: 45%;
        margin: 10px 0;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .A {
        flex-direction: column;
        height: auto;
    }

    .sidebar {
        flex-direction: row;
        width: 100%;
        height: auto;
        padding: 10px;
        justify-content: space-evenly;
    }

    .logo {
        flex-direction: row;
        display: none;
    }

    .log {
        display: block;
    }

    .hero {
        width: 100%;
        padding: 20px;
    }

    .text h1 {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .btn {
        flex-direction: column;
        gap: 10px;
    }

    .btn button {
        width: 100%;
    }

    .image {
        width: 100%;
        height: 250px;
    }

    .B {
        flex-direction: column;
        align-items: center;
        height: auto;
        gap: 10px;
    }

    .links {
        width: 100%;
        justify-content: space-between;
    }

    .con {
        width: 90%;
    }

    .side-menu ul li {
        width: 100%;
    }


}
















.courses-section {
    padding: 50px 20px;
    background-color: #f8f8f8;
    text-align: center;
}

.courses-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #004f99;
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.course-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: scale(1.03);
}

.course-card img {
    width: 100%;
    border-radius: 6px;
    height: 150px;
    object-fit: cover;
}

.course-card h3 {
    margin: 15px 0 5px;
}

.course-card p {
    font-size: 0.9rem;
    color: #444;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    text-align: left;
}

.modal-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.modal-content h3 {
    margin-top: 20px;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}

.enroll-button {
    display: inline-block;
    margin-top: 20px;
    background-color: #0066ff;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.apply {
    display: inline-block;
    margin-top: 20px;
    background-color: #0066ff;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    width: 100%;
}

form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input,
textarea,
select {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #aaa;
    border-radius: 4px;
}

button {
    padding: 0.7rem;
    background-color: #4caf50;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

.apply-section,
.Sponsor-section {
    padding: 2rem 1rem;
    max-width: 600px;
    margin: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.apply-section,
.Sponsor-section h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #222;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input,
select {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
}

button[type="submit"] {
    padding: 0.75rem;
    background-color: #007B55;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #005f3c;
}

.error {
    color: red;
    font-size: 0.85rem;
}

/* Modal (hidden by default) */
.modal {
    display: none;
    /* hidden until triggered */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* semi-transparent overlay */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Modal box */
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    animation: popIn 0.3s ease-out;
}

/* Title and text */
.modal-title {
    color: #004f99;
    margin-bottom: 10px;
}

.modal-text {
    color: #333;
    margin-bottom: 20px;
}

/* Close button */
.close-modal-btn {
    padding: 10px 20px;
    background: #004f99;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.close-modal-btn:hover {
    background: #003366;
}

/* Animation */
@keyframes popIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


@media (max-width: 480px) {
    .apply-section {
        padding: 1rem;
    }

    .apply-section h1 {
        font-size: 1.5rem;
    }

    input,
    select,
    button {
        font-size: 1rem;
    }
}



/* get in touch section  */
.get-in-touch {
    background-color: #004f99;
    padding: 60px 20px;
    text-align: center;
}

.get-in-touch h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #ffffff;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #ffffff;
}

.contact-item i {
    font-size: 1.5rem;
    color: #ffffff;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
}

.contact-item a:hover {
    color: #007bff;
}

@media (min-width: 600px) {
    .contact-details {
        flex-direction: row;
        justify-content: space-around;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
    }
}


/* footer */

footer {
    background-color: white;
    padding: 60px 20px 40px;
    position: relative;
    overflow: hidden;

}

.footer-container {
    max-width: 1200px;
    margin: auto;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-logo-info img {
    width: 150px;
    margin-bottom: 10px;
}

.footer-logo-info p {
    font-size: 14px;
    color: #333;
}

.footer-partners h4,
.footer-contact h4,
.footer-newsletter h4 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #004f99;
}

.footer-partners .partners img {
    width: 80px;
    margin-right: 10px;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.footer-newsletter input {
    padding: 10px;
    width: 100%;
    max-width: 220px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

.footer-newsletter button {
    padding: 10px 20px;
    background-color: #004f99;
    color: white;
    border: none;
    cursor: pointer;
}

.footer-newsletter .socials a {
    margin-right: 10px;
    font-size: 18px;
    color: #004f99;
}