/* --- Variables & Colors --- */
:root {
    --brand-navy: #004281;
    --brand-cyan: #00adef;
    --brand-pink: #f05782;
    --brand-purple: #a92475;
    --brand-dark: #0a1b2e;
    --brand-light: #f4f7f9;
    --glass: rgba(255, 255, 255, 0.9);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --grad: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-dark) 100%);
}

:root {
    --site1: var(--brand-navy);
    --site3: var(--brand-pink);
    --text: var(--brand-navy);
}

/* --- Global Styles --- */
body, * {
    font-family: "Heebo", sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}
@media (max-width: 991px) {
    body {
        padding-bottom:0px;
        padding-top: 10px;
    }
}
/* --- Typography --- */
h3:first-of-type strong {
    font-size: 3.5rem!important;
    background: linear-gradient(to left, #00adee, var(--brand-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 10px;
    font-weight: bold;
}

/* --- Sections Layout --- */
section {
    justify-content: center;
    flex-direction: column;
}

section.pic {
    background: var(--grad);
    margin-top: 0;
    min-height: 35rem;
    display: flex;
    align-items: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    position: relative;
    color: white;
    box-shadow: inset 0 -100px 100px -50px rgba(0, 0, 0, 0.2);
}

section.pic * {
    color: white!important;
    font-weight: 900!important;
    font-size: 3.5rem!important;
}

section.white * {
    color: var(--text);
}
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(--brand-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;
}
}
/* --- Grid & Cards --- */
.row > .col-md-3 {
    background: #fff!important;
    border: none;
    border-radius: 20px;
    margin: 12px;
    flex: 0 0 calc(25% - 24px);
    box-shadow: 0 8px 20px rgb(0 0 0 / 13%);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    position: relative;
    padding: 25px 15px;
    text-align: center;
}

.row > .col-md-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #f05782;
}

.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;
}

/* --- Course Elements --- */
.courses * {
    color: white;
}

.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 {
    color: var(--brand-navy);
    font-weight: 700;
    font-size: 1.3rem;
    margin-top: 15px;
    line-height: 1.4;
}

.course_group {
    display: none;
}

/* --- Details & Special Cards --- */
.Details .card {
    border-radius: 20px;
    border: solid 9px #ffffff;
    padding: 20px;
    color: white;
}

.Details .card h2 {
    color: white;
    padding: 25px 0;
}

.card-red {
    background: linear-gradient(45deg, var(--brand-pink), var(--brand-purple));
}

.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;
}

/* --- Modal & Sub-content --- */
.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 {
    color: #ffffff;
    background: linear-gradient(to left, #19538b, #991439);
    padding: 35px 20px!important;
    border-radius: 20px 20px 0 0;
    text-align: center;
    font-size: 1.8rem;
}

.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(--brand-navy);
    max-height: 70vh;
    overflow-y: auto;
}

.sub-content-centered .py-4 p, 
.sub-content-centered .py-4 strong {
    color: var(--brand-navy);
}

.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: white;
    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: #f05782;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(240, 87, 130, 0.3);
    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;
    }
}

/* --- Media Queries --- */

    .center {
        padding: 3rem 9%!important;
    }
@media (min-width: 1300px) {
    .row > .col-md-3:nth-child(8n + 1), 
    .row > .col-md-3:nth-child(8n + 3), 
    .row > .col-md-3:nth-child(8n + 6), 
    .row > .col-md-3:nth-child(8n + 8) {
        background-color: var(--text)!important;
        color: #ffffff;
    }

    .row > .col-md-3:nth-child(8n + 1) .course, 
    .row > .col-md-3:nth-child(8n + 3) .course, 
    .row > .col-md-3:nth-child(8n + 6) .course, 
    .row > .col-md-3:nth-child(8n + 8) .course {
        color: white;
    }
}

@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; 
    }
}