:root {
    --deep: #1b3459;
    --cyan: #00adee;
    --pink: #f05782;
    --plum: #a92475;
    --navy: #004281;
    --sky: #0071bb;
    --ash: #e8e8e8;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --grad: linear-gradient(135deg, var(--navy) 0%, var(--deep) 100%);
    --gibr: linear-gradient(135deg, var(--cyan) 0%, var(--sky) 100%);
}

body, * {
    font-family: "Heebo", sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}
h2, h3, h4, h5 ,body ,a{
    color: var(--deep);
}

.btn-primary:hover{
    background-color: var(--pink);
    border-color: var(--pink);
}
a:hover{
    color: var(--pink);
}
@media (max-width: 991px) {
    body {
        padding-bottom:0px;
        padding-top: 10px;
    }
}
h3:first-of-type strong {
    font-size: 3.5rem!important;
    background: var(--ash);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 10px;
    font-weight: bold;
}

section {
    justify-content: center;
    flex-direction: column;
}

section.pic {

    box-shadow: inset 0 -100px 100px -50px rgba(0, 0, 0, 0.2);
    background: var(--grad);
    min-height: 35rem;
    display: flex;
    align-items: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    position: relative;
    color: white;
}

section.pic * {
    color: white!important;
    font-weight: 900!important;
    font-size: 3.5rem!important;
}

section.white * {
    color: var(--deep);
}
section.black .col-md-3 .content {
    margin: 0.5rem 0.2rem;
    padding: 1rem 0;
    padding-top: 3rem;
    transition: 0.5s;
}

section.Invitation.center {
    background: var(--navy);
    background-image: radial-gradient(circle at 20% 30%, rgba(0, 173, 238, 0.15) 0%, transparent 50%);
    position: relative;
    margin-top: 0rem;
}

section.Invitation.center h3 {
    color: white;
}
@media (max-width: 991px) {
    section.Invitation.center {
    margin-top: 1rem;
}
    section.pic * {
        font-size: 36px !important;
    }
    
section.pic {
    clip-path: none;
}
}

.row > .col-md-3 {
    border: 4px solid var(--ash);
    border-radius: 20px;
    margin: 12px;
    flex: 0 0 calc(25% - 24px);
    box-shadow: 0 8px 20px rgb(0 0 0 / 13%);
    overflow: hidden;
    position: relative;
    padding: 25px 15px;
    text-align: center;
    background: var( --grad) !important;
    background: var(--navy) !important;
    transition: background-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.row > .col-md-3::before {
    /* content: ''; */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #00adee;
}

.row > .col-md-3:hover {
    transform: translateY(-10px);
}

.row > .col-md-3 img {
    width: 55px;
    margin-bottom: 5px;
    filter: invert(56%) sepia(85%) saturate(3015%) hue-rotate(318deg) brightness(96%) contrast(96%);
    transition: all 0.3s ease;
}

.courses * {
    color: var(--ash);
}

.course {
    line-height: 2.5rem;
    font-size: 1.25rem;
    min-height: 5rem;
    padding-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.row > .col-md-3 .course {
    font-weight: 700;
    font-size: 1.3rem;
    margin-top: 15px;
    line-height: 1.4;
}

.course_group {
    display: none;
}

.Details .card {
    border-radius: 20px;
    border: solid 9px #ffffff;
    padding: 20px;
    color: white;
}

.Details .card h2 {
    color: white;
    padding: 25px 0;
}

.card-red {
    background: var(--gibr);
}

.card-black {
    background: var(--grad)!important;
}

.icon-image {
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
    max-width: 70px;
    height: auto;
}

.contact-modal .sub-content {
    position: fixed;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    color: #022353;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    padding: 1rem;
    padding-top: 4rem;
    transform: scale(0);
    transition: 0.5s;
}

.contact-modal.active .sub-content {
    transform: scale(1);
}

.contact-modal .sub-content h2 {

    padding: 35px 20px!important;
    border-radius: 20px 20px 0 0;
    text-align: center;
    font-size: 1.8rem;
    background: var(--grad);
    color: white !important;
    border-bottom: 4px solid var(--pink);
}

.contact-modal .sub-content h3 {
    font-weight: bold;
}

.contact-modal .sub-content-centered {
    background: #ffffff;
    border-radius: 30px; 
    border: 1px solid rgba(0, 66, 129, 0.08);
    box-shadow: 0 40px 100px -20px rgba(0, 27, 46, 0.15); 
    overflow: hidden;
    margin: 0 auto;
}

.sub-content-centered .py-4 {
    color: var(--navy);
    max-height: 70vh;
    overflow-y: auto;
}



.sub-content-centered strong {
    color: #ffffff;
    text-align: center;
}

.contact-modal .sub-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-modal .sub-content ul li {
    padding: 0.1rem 0;
}

.px-4.py-4 * {
    line-height: 1rem;
    font-size: 1.1rem;
    /* color: #eb5985; */
}

.px-4.py-4 * a {
    font-weight: bold;
    text-decoration: underline;
}

.close-sub-content {
    position: absolute;
    top: 20px;
    left: 20px; 
    right: auto; 
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex; 
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    z-index: 10;
}

.close-sub-content:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.close-sub-content em, 
.close-sub-content i {
    color: var(--pink);
    font-size: 20px;
    line-height: 1;
}

/* --- Buttons --- */
button.moked-btn {
    background: #ff000000;
    border: none;
    text-align: center;
}

button.moked-btn:focus {
    border: 0;
}
.col-md-4.no-padding {
    padding: 0;
}

/* --- Thanks Section --- */
.Thanks {
    background: var(--brand-light)!important;
    padding: 100px 9%!important;
    /* color: #004f8f; */
}

.Thanks h2 {
    margin-bottom: 2rem;
}

.Thanks h2 strong {
    background: var(--grad);
    border-radius: 50px;
    padding: 15px 40px;
    color: white;
}
@media (max-width: 991px) {
    .Thanks h2 strong {
        font-size: 1rem;
        padding: 0.25rem;
        border-radius: 0;
    }
    .Thanks {
        background: var(--brand-light) !important;
        padding: 100px 9% !important;
        color: #004f8f;
    }
}
/* --- Footer --- */
.footer {
    padding: 1.5rem 0;
    background-color: white;
}

.footer::after {
    display: none;
}
@media (max-width: 991px) {
    section.center.footer img {
        width: 100% !important;
    }

    section.center.footer {
        padding: 0;
    }
}


    .center {
        padding: 3rem 9%!important;
    }


@media (max-width: 991px) {
    .row > .col-md-3 {
        flex: 0 0 calc(50% - 24px);
    }
    h3:first-of-type strong {
        font-size: 2.2rem;
    }
}


@media (max-width: 768px) {
    .contact-modal .px-4.py-4 {
        padding: 20px;
    }
    .contact-modal .sub-content h2 {
        font-size: 1.4rem;
    }
    section {
        padding:0.5rem !important; 
    }
}



/* --- התאמות למובייל --- */
@media (max-width: 991px) {
    .row > .col-md-3 {
        flex: 0 0 calc(50% - 24px);
    }
    
    h3:first-of-type strong {
        font-size: 2.2rem !important;
    }
    
    section.pic {
        clip-path: none;
        min-height: auto;
        padding: 40px 20px;
    }
}

/* במעבר עכבר - שינוי לצבע הבהיר יותר (התכלת או כחול ביניים) */
.row > .col-md-3:hover {
    background-color: var(--sky) !important; /* הופך לכחול בהיר יותר */
    transform: none; /* מבטל את הקפיצה למעלה אם הייתה */
}


.row > .col-md-3:hover .course {
    color: white !important; /* הטקסט הופך ללבן כשהרקע מתבהר */
}

.row > .col-md-3:hover img {
    filter: brightness(0) invert(1); 
}