﻿
*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}


#sec2 {
    overflow-x: hidden;
}

#sec2 .container {
    width: 90%;
    padding-left: 15px;
    padding-right: 15px;
}



@media (min-width: 768px) and (max-width: 991.98px) {
    .row > .col-lg-2,
    .row > .col-lg-3,
    .row > .col-lg-4,
    .row > .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .row > .col-lg-16 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


.date-row {
    margin-left: -6px;
    margin-right: -6px;
}

    .date-row > [class*="col-"] {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
        padding-left: 6px;
        padding-right: 6px;
    }

@media (max-width: 400px) {
    .date-row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 8px;
    }
}



.title-desc-1 {
    font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
}

.form-label-1 {
    font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem);
}

.title-desc {
    color: #000;
    font-size: clamp(1.45rem, 1.3rem + 0.5vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
    padding-top: 10px !important;
    padding-bottom: 5px !important;
    line-height: 1.4;
}

    .title-desc .sub-text {
        font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
        color: #e9302a;
        font-weight: 700;
        display: inline-block;
    }

.titled-paragraph {
    padding-right: 12px;
    padding-top: 16px;
}

    .titled-paragraph h2 {
        padding: 0;
        margin: 0;
        color: #f1b30b;
        font-size: clamp(1.25em, 1em + 1.6vw, 1.7em);
        font-weight: bold;
        line-height: 1.4;
    }

    .titled-paragraph ul li {
        color: #000;
        padding-top: 5px;
        text-align: justify;
        font-size: 2rem;
        direction: rtl;
        list-style: disc;
    }

        .titled-paragraph ul li ul li {
            font-size: 1em;
        }

ul li {
    line-height: 1.9;
}

#sec2 h4 {
    font-weight: bold;
    text-align: right;
}

.conditions {
    margin: 0;
    padding-right: 22px;
    padding-left: 0;
}

    .conditions li {
        list-style: disc;
        direction: rtl;
    }


/* -------------------------------------------------------------
   4. Panels
   ------------------------------------------------------------- */
.panel,
.panel2 {
    border: #ececec 2px solid;
    background-color: #ffffff33;
    border-radius: 15px;
    height: auto;
    box-shadow: 1px 1px 10px .15px;
    margin: 28px 0;
}

.panel2 {
    direction: rtl;
}

.wizard_panel {
    margin-bottom: 20px;
}

/* --panel-pad drives both the panel padding and the negative
   margin on .title-h2, so they can never disagree. */
.modern-panel {
    --panel-pad: 40px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 0 var(--panel-pad) var(--panel-pad) var(--panel-pad) !important;
    margin-top: 30px;
    direction: rtl;
    border: 1px solid #f0f0f0;
}

.title-h2 {
    background-color: #e1e1e1;
    color: #000;
    font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    padding: 12px 20px;
    margin: 0 calc(var(--panel-pad, 40px) * -1) 0;
    border-radius: 20px 20px 0 0;
    line-height: 1.35;
}

.sub-panel {
    background: #ffffff;
    border-radius: 16px;
    padding: clamp(15px, 3vw, 30px);
    box-shadow: 0 4px 25px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
}

.card-body {
    padding: 15px clamp(15px, 3vw, 35px);
    background-color: #f8fafc;
}

.card-header h4 {
    font-size: clamp(1rem, 0.9rem + 0.6vw, 1.5rem);
    line-height: 1.5;
}


/* -------------------------------------------------------------
   5. Rules / dividers  (were pinned at margin: 9px 1091px)
   ------------------------------------------------------------- */
hr,
div hr {
    padding: 0;
    margin: 9px auto;
    width: min(100%, 173px);
    height: 2px;
    background-color: #b6b632;
    border: 0;
    direction: rtl;
}

.main_hr {
    width: min(90%, 43%);
    margin: 9px auto;
    height: 2px;
    background-color: #b6b632;
}

.Print_hr {
    width: min(100%, 420px);
    margin: 9px auto;
    height: 2px;
    background-color: #a00000;
}

.RegSearch_hr {
    width: min(100%, 360px);
    margin: 9px auto;
    height: 2px;
    background-color: #a00000;
}

.modern_hr {
    width: 60px;
    height: 4px;
    background-color: #f1b30b;
    border: none;
    border-radius: 2px;
    margin: 15px auto 25px auto;
    opacity: 1;
}



.form-control,
.form-control-1 {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0.7rem 1rem !important;
    font-weight: 500;
    line-height: 1.5;
    color: #2d3748;
    background-color: #f8fafc;
    background-clip: padding-box;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    height: auto !important;
    margin-bottom: 7px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.01);
}

.form-control {
    font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem) !important;
}

.form-control-1 {
    font-size: clamp(1.05em, 1em + 0.3vw, 1.2em) !important;
}

    .form-control:hover:not([disabled]),
    .form-control-1:hover:not([disabled]) {
        border-color: #cbd5e1;
        background-color: #ffffff;
    }

    .form-control:focus,
    .form-control-1:focus {
        color: #1a202c;
        background-color: #ffffff;
        border-color: #f1b30b;
        outline: 0;
        box-shadow: 0 0 0 4px rgba(241, 179, 11, 0.15);
    }

    .form-control:disabled,
    .form-control[readonly],
    .form-control-1:disabled,
    .form-control-1[readonly] {
        background-color: #edf2f7;
        border-color: #e2e8f0;
        color: #4a5464;
        opacity: 1;
        cursor: not-allowed;
        font-weight: bold;
    }


input.form-control[readonly] {
    text-overflow: ellipsis;
}

.form-control.is-invalid,
.form-control-1.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15) !important;
}

select.form-control.drop.is-invalid,
select.form-control-1.drop.is-invalid {
    border-color: #dc3545 !important;
}

select.form-control-1.drop {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 1em;
    padding-left: 2.5rem !important;
    direction: rtl;
}


input[type="file"].form-control {
    padding: 0.5rem;
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    cursor: pointer;
    text-align: center;
    min-width: 0;
    font-size: clamp(1.1rem, 1rem + 0.4vw, 1.4rem) !important;
}

    input[type="file"].form-control:hover {
        border-color: #f1b30b;
        background-color: #fffdf5;
    }

    input[type="file"].form-control::file-selector-button {
        background-color: #edf2f7;
        color: #2d3748;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        margin-inline-end: 0.75rem;
        cursor: pointer;
        font-weight: 600;
        max-width: 100%;
        transition: all 0.2s ease-in-out;
    }

        input[type="file"].form-control::file-selector-button:hover {
            background-color: #e2e8f0;
        }

.validators {
    color: #e53e3e;
    font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.5rem);
    font-weight: 500;
    margin-top: 4px;
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ddl-1 {
    font-size: 1.2em !important;
}



.modern-radio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

    .modern-radio-list input[type="radio"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .modern-radio-list label {
        display: inline-block;
        background-color: #f8f9fa;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        padding: 10px clamp(12px, 3vw, 25px);
        font-size: clamp(14px, 13px + 0.3vw, 16px);
        font-weight: 600;
        color: #000;
        cursor: pointer;
        transition: all 0.3s ease-in-out;
        user-select: none;
    }

        .modern-radio-list label:hover {
            border-color: #f1b30b;
            background-color: #fffdf5;
            transform: translateY(-2px);
        }

    .modern-radio-list input[type="radio"]:focus-visible + label {
        outline: 3px solid #07294d;
        outline-offset: 2px;
    }

    .modern-radio-list input[type="radio"]:checked + label {
        background-color: #f1b30b;
        border-color: #f1b30b;
        color: #07294d;
        box-shadow: 0 4px 15px rgba(241, 179, 11, 0.4);
    }

.radio-list label {
    margin-right: 10px;
    margin-left: 15px;
    font-size: 16px;
    cursor: pointer;
}

.radio-list input[type=radio] {
    transform: scale(1.3);
    margin-right: 5px;
    cursor: pointer;
}

.StyleCheckbox {
    vertical-align: middle;
    margin-left: 10px;
}

.checkx input {
    width: 26px;
    height: 26px;
}


.main-btn {
    display: inline-block;
    background: linear-gradient(135deg, #f1b30b, #ffc600) !important;
    border: none;
    padding: 0 clamp(20px, 4vw, 40px);
    font-size: clamp(14px, 13px + 0.4vw, 18px);
    font-weight: 700;
    line-height: 55px;
    border-radius: 8px;
    color: #07294d !important;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    white-space: normal;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 4px 15px rgba(241, 179, 11, 0.3);
}

    .main-btn:hover:not([disabled]) {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(241, 179, 11, 0.5);
        background: linear-gradient(135deg, #ffc600, #f1b30b) !important;
        color: #07294d !important;
    }

    .main-btn[disabled] {
        background: #e2e8f0 !important;
        color: #a0aec0 !important;
        box-shadow: none;
        cursor: not-allowed;
    }


.btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 3vw, 48px);
}

    .btns .main-btn {
        margin: 0 !important;
    }

.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.42857143;
    text-align: center;
    white-space: normal;
    vertical-align: middle;
    touch-action: manipulation;
    cursor: pointer;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
    width: auto;
    max-width: 100%;
}

.btn-successSty {
    width: 100%;
    max-width: 250px;
    min-height: 49px;
    font-size: clamp(13px, 12px + 0.3vw, 16px);
}

.btn-danderSty {
    width: auto !important;
    min-width: 82px;
    min-height: 41px !important;
    font-size: 16px;
}


.OkBtn,
input#ContentPlaceHolder1_Btn_Send {
    margin: 0 auto;
    border-radius: 4px;
    width: 100%;
    max-width: 250px;
}

.btnsStyle {
    margin: 0 auto;
}

.center {
    display: block;
    margin: auto;
}

.read_more {
    text-align: center;
    position: relative;
}

.pulse:not([disabled]) {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(241, 179, 11, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(241, 179, 11, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(241, 179, 11, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pulse:not([disabled]) {
        animation: none;
    }

    * {
        transition-duration: 0.01ms !important;
    }
}

.AddStyle,
.AddStyle2 {
    background-color: #9d760d;
    border-radius: 9px;
    font-size: 17px;
    color: white;
    line-height: 26px;
    margin: 5px 0 17px;
}

    .AddStyle:hover,
    .AddStyle2:hover {
        background-color: #cf9805;
        color: white;
    }

.hvr {
    display: inline-block;
    vertical-align: middle;
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    position: relative;
    background: #e1e1e1;
    transition-property: color;
    transition-duration: 0.3s;
}


/* -------------------------------------------------------------
   9. Notification box  (was a fixed 308px)
   ------------------------------------------------------------- */
.Notif {
    font-size: clamp(13px, 12px + 0.4vw, 17px);
    color: #ef0700;
    text-align: center;
    font-weight: 600;
    margin: 20px auto;
    border: 2px solid gray;
    padding: 12px;
    border-radius: 15px;
    width: 100%;
    max-width: 420px;
    direction: rtl;
}

    .Notif label {
        vertical-align: middle;
    }


/* -------------------------------------------------------------
   10. Course dates header
   ------------------------------------------------------------- */
.course-dates-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 6px 14px;
    direction: rtl;
    
}

    .course-dates-header span[style] {
        font-size: 1.9rem;
    }



.table-responsive-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.course {
    width: 100%;
}

    .course tr td:first-child {
        width: 40%;
        font-weight: bold;
        text-align: right;
    }

.tabs {
    padding-left: 0 !important;
    margin: 0 15px;
}


/* -------------------------------------------------------------
   12. Modals
   ------------------------------------------------------------- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--bs-backdrop-zindex);
}

    .modal-backdrop.fade,
    .modal-backdrop.show {
        opacity: 0 !important;
    }

.modal-dialog {
    margin: 1rem auto;
    max-width: calc(100% - 2rem);
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
    }

    .modal-dialog.modal-lg {
        max-width: 800px;
    }
}

.modal-body {
    font-size: clamp(13px, 12px + 0.4vw, 16px);
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

    .modal-footer > * {
        margin: 0 !important;
    }

.alert {
    font-size: clamp(13px, 12px + 0.4vw, 16px);
    line-height: 1.7;
}


/* -------------------------------------------------------------
   13. Spacing helpers
   ------------------------------------------------------------- */
.mx-5 {
    margin-right: 3rem;
    margin-left: 3rem;
}


/* -------------------------------------------------------------
   14. Tablet
   ------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .modern-panel {
        --panel-pad: 25px;
    }

    .conditions {
        padding-right: 18px;
    }
}


/* -------------------------------------------------------------
   15. Phone
   ------------------------------------------------------------- */
@media (max-width: 767.98px) {
    #sec2 .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .modern-panel {
        --panel-pad: 15px;
        padding-bottom: 25px !important;
        margin-top: 15px;
    }

    .panel,
    .panel2 {
        margin: 15px 0;
        padding: 12px !important;
    }

    .sub-panel {
        padding: 15px 12px;
    }

    .modern-radio-list {
        flex-direction: column;
        gap: 10px;
    }

        .modern-radio-list label {
            width: 100%;
            text-align: center;
        }

    .btns {
        flex-direction: column-reverse;
        gap: 14px;
    }

    .main-btn {
        width: 100%;
        line-height: 48px;
        font-size:12px;
    }

    .mx-5 {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

   
    #sec2 .row > .col-lg-3:empty,
    #sec2 .row > .col-lg-6:empty {
        display: none;
    }

   
    label {
        display: inline-block;
        margin-bottom: .5rem;
    }

    .Notif label {
        vertical-align: middle;
        margin-bottom: 0;
    }

    .btn-successSty,
    .btn-danderSty {
        width: 100% !important;
        max-width: none;
    }

    .modal-footer {
        flex-direction: column-reverse;
    }

        .modal-footer > * {
            width: 100%;
        }

    
    .SizeOnMobile,
    .SizeOnMobile2 {
        margin: 0 !important;
    }
}



@media (max-width: 400px) {
    .title-h2 {
        padding: 10px 12px;
    }

    .form-control,
    .form-control-1 {
        padding: 0.6rem 0.75rem !important;
    }

    input[type="file"].form-control::file-selector-button {
        display: block;
        width: 100%;
        margin: 0 0 8px 0;
    }
}


.course-dates-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px 25px;
    direction: rtl;
    color: #ff0000;
}

.course-dates-header .date-item {
    display: inline-flex;
    align-items: baseline; 
    gap: 8px;
}

.course-dates-header .date-title {
    font-weight: bold;
    font-size:2.8rem;
    line-height: 1;
}

.course-dates-header .date-value {
    font-weight: bold;
    font-size: 2.8rem;
    line-height: 1;
}

.course-dates-header .date-separator {
    font-weight: bold;
    opacity: 0.5;
    display: inline-block;
}

@media (max-width: 767px) {
    .course-dates-header .date-separator {
        display: none; 
    }

    .course-dates-header .date-title {

    font-size: 2rem;

}

.course-dates-header .date-value {

    font-size: 2rem;

}

.titled-paragraph ul li {
   
    font-size: 1.3rem;
   
}
}