
/* === educon palette === */
:root{
  --educon-blue:#1574A6;
  --educon-orange:#F4991E;
  --educon-muted:#5C7279;
  --educon-ink:#111111;
}




/* ========== extracted styles ========== */


    .apm-offers-slider {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0;
        position: relative;
    }

    .apm-offers-header {
        position: relative;
        background-color: #ffffff;
        background-size: cover;
        background-position: center;
        border-radius: 10px;
        padding: 20px 0;
        margin-bottom: 20px;
        text-align: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transform: translateZ(5px);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .apm-offers-header h2 {
        margin: 0;
        font-size: 22px;
        color: #23518C;
    }

    .apm-swiper {
        width: 100%;
        margin: 0 auto;
        padding: 0;
        height: auto;
        overflow: hidden;
    }

    .swiper-wrapper {
        align-items: stretch;
    }

    .swiper-slide {
        width: 350px;
        display: flex;
        justify-content: center;
        align-items: stretch;
        padding: 0;
        margin: 0;
    }

    .apm-offer-card {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        margin: 0 auto;
        width: 115%;
        max-width: 390px;
        height: 100%;
        display: flex;
        flex-direction: column;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
    }

    .apm-offer-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .apm-offer-image {
        height: 200px;
        background-size: cover;
        background-position: center;
        position: relative;
    }

    .apm-image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 16px;
        font-weight: bold;
        text-align: center;
    }

    .apm-offer-image:hover .apm-image-overlay {
        opacity: 1;
    }

    .apm-offer-logo-bar {
        background: #fff;
        text-align: center;
        padding: 8px 0;
        border-top: 1px solid #eee;
    }

    .apm-logo-img {
        max-width: 100px;
        max-height: 60px;
        object-fit: contain;
    }

   .apm-discount-percentage {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #ff6200;
    color: white;
    padding: 8px 14px; /* زيادة الحشوة لجعل الخلفية أكبر */
    border-radius: 4px; /* زيادة طفيفة في الزوايا الدائرية لتناسب الحجم الأكبر */
    font-size: 18px; /* زيادة حجم الخط لجعل النص أكثر وضوحًا */
    font-weight: bold;
    z-index: 10;
    animation: balloon-pop 2s infinite ease-in-out; /* تأثير انفجار البالونة */
    transition: all 0.3s ease;
}

.apm-offer-card:hover .apm-discount-percentage {
    animation: shake 0.5s ease-in-out; /* تأثير الاهتزاز عند التمرير */
    background: #e55a00; /* تغيير طفيف في اللون عند التمرير */
    box-shadow: 0 0 15px rgba(255, 98, 0, 0.7); /* وميض إضافي */
}

/* تأثير انفجار البالونة */
@keyframes balloon-pop {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 98, 0, 0.5);
    }
    50% {
        transform: scale(1.3); /* زيادة الحجم قليلاً لتأثير أقوى */
        box-shadow: 0 0 20px rgba(255, 98, 0, 0.8);
        background: #F4991E;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 98, 0, 0.5);
    }
}

/* تأثير اهتزاز عند التمرير */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
    }

    .apm-offer-info {
        padding: 15px;
        flex-grow: 1;
    }

    .apm-offer-info h3 {
        margin: 0 0 10px;
        font-size: 18px;
        color: #34498f;
    }

    .apm-offer-info p {
        margin: 5px 0;
        color: #666;
    }

    .apm-offer-info i {
        margin-left: 5px;
        color: #77A1D9;
    }

    .apm-offer-icons {
        display: flex;
        gap: 10px;
        margin-top: 10px;
        color: #666;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }

    .swiper-pagination {
        display: none !important;
    }

    .custom-school-color {
        color: #77A1D9 !important;
        font-weight: 500;
    }

    @media (max-width: 1280px) {
        .apm-swiper {
            max-width: 100%;
        }
    }

    @media (max-width: 1024px) {
        .swiper-slide {
            width: 50%;
        }
    }

    @media (max-width: 768px) {
        .swiper-slide {
            width: 100%;
        }
    }
    


    .country-search-container, .programs-search-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px 0;
        direction: rtl;
    }
    .search-header-container {
        position: relative;
        background-color: #ffffff;
        background-size: cover;
        background-position: center;
        border-radius: 10px;
        padding: 20px 0;
        margin-bottom: 20px;
        text-align: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transform: translateZ(5px);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .search-header-container h2 {
        position: relative;
        color: #23518C;
        font-size: 28px;
        font-weight: bold;
        margin: 0;
        z-index: 1;
    }
    .search-header-container:hover {
        transform: translateZ(10px) translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }
    .search-form {
        background-color: #1574A6;
        border: 1px solid #5C7279;
        border-radius: 5px;
        padding: 10px;
        margin-bottom: 20px;
    }
    .search-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    .search-field {
        flex: 1;
        min-width: 150px;
    }
    .search-field select,
    .search-field input[type="text"],
    .search-field input[type="date"] {
        width: 100%;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 3px;
        font-size: 16px;
        background-color: #ffffff;
    }
    .search-btn {
        background-color: #23518C;
        color: #ffffff;
        border: none;
        padding: 8px 20px;
        border-radius: 3px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.2s ease;
    }
    .extra-options-btn {
        background-color: #23518C;
        color: #ffffff;
        border: none;
        padding: 8px 15px;
        border-radius: 3px;
        cursor: pointer;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: background-color 0.2s ease;
    }
    .extra-options-btn:hover {
        background-color: #23518C;
    }
    .extra-options {
        margin-top: 10px;
        padding: 10px;
        border-top: 1px solid #5C7279;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .extra-field {
        flex: 1;
        min-width: 200px;
    }
    .extra-field label {
        display: block;
        margin-bottom: 5px;
        font-size: 16px;
    }
    .extra-field select,
    .extra-field input[type="text"] {
        width: 100%;
        padding: 8px;
        border: 1px solid #ffffff;
        border-radius: 3px;
        font-size: 16px;
    }
    .housing-details {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    .programs-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-left: auto;
        margin-right: auto;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .programs-grid.loaded {
        opacity: 1;
    }
    .program-card {
        background-color: #23518C;
        border: 1px solid #ddd;
        border-radius: 5px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transform: translateZ(5px);
        transition: transform 0.2s ease, box-shadow 0.2s ease, width 0.3s ease;
        width: 100%;
    }
    .program-card:hover {
        transform: translateZ(10px) translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    }
    .program-image-wrapper {
        position: relative;
    }
    .discount-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #ff6200;
    color: #ffffff;
    padding: 10px 24px; /* زيادة الحشوة لجعل الخلفية أكبر */
    border-radius: 6px; /* زيادة طفيفة في الزوايا الدائرية */
    font-size: 18px; /* زيادة حجم الخط لجعل النص أكثر وضوحًا */
    font-weight: bold;
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateZ(5px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    animation: balloon-pop 2s infinite ease-in-out; /* تأثير انفجار البالونة */
}

.program-card:hover .discount-badge {
    transform: translateZ(10px) translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    animation: shake 0.5s ease-in-out; /* تأثير الاهتزاز عند التمرير */
    background: #e55a00; /* تغيير طفيف في اللون عند التمرير */
}
    .program-image {
        width: 100%;
        height: 160px;
        object-fit: cover;
    }
    .program-details {
        padding: 12px;
    }
    .program-details p {
        margin: 5px 0;
        font-size: 15px;
        color: #333;
        display: flex;
        align-items: center;
    }
    .program-details p i {
        color: #5C7279;
        margin-left: 5px;
        font-size: 14px;
    }
    .program-details p strong {
        color: #5C7279;
        margin-right: 5px;
    }
    .riyal-icon {
        width: 14px;
        height: 14px;
        vertical-align: middle;
        margin-right: 5px;
        display: none;
    }
    .currency-icon {
        font-size: 20px;
        vertical-align: middle;
        margin-right: 5px;
    }
    #programs-program-details-section, #programs-booking-section {
        display: none;
        width: 100%;
        max-width: 1200px;
        margin: 20px auto;
        background-color: #ffffff;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        direction: rtl;
    }
    .modal-content, .booking-modal-content {
        background-color: #ffffff;
        border-radius: 10px;
        width: 100%;
        position: relative;
        padding: 20px;
    }
    .back-btn {
        background-color: #23518C;
        color: #ffffff;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        margin-bottom: 20px;
        transition: background-color 0.2s ease;
    }
    .back-btn:hover {
        background-color: #1e4273;
    }
    .modal-body {
        display: flex;
        gap: 20px;
    }
    .modal-left {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .modal-right {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .modal-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    .modal-image img {
        border-radius: 5px;
        width: 100%;
        height: auto;
        max-width: 400px;
    }
    .modal-details {
        width: 100%;
    }
    .modal-details h2 {
        color: #23518C;
        margin-bottom: 15px;
        font-size: 24px;
        line-height: 1.4;
    }
    .modal-details p {
        margin: 8px 0;
        font-size: 14px;
        display: flex;
        align-items: center;
        color: #333;
    }
    .modal-details p i {
        color: #5C7279;
        margin-left: 5px;
        font-size: 16px;
    }
    .modal-customize {
        padding: 15px;
        background-color: #f5f5f5;
        border-radius: 5px;
    }
    .modal-customize h3 {
        color: #23518C;
        font-size: 16px;
        margin-bottom: 10px;
    }
    .modal-customize .form-group {
        margin-bottom: 10px;
    }
    .modal-customize .form-group label {
        font-size: 16px;
        margin-bottom: 5px;
        display: block;
        color: #333;
    }
    .modal-customize .modal-input {
        width: 100%;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 3px;
        font-size: 16px;
    }
    .modal-price {
        padding: 15px;
        background-color: #f5f5f5;
        border-radius: 5px;
    }
    .modal-price p {
        font-size: 16px;
        margin: 5px 0;
        color: #333;
    }
    .modal-note {
        padding: 10px;
        background-color: #f9f9f9;
        border-radius: 5px;
        border: 1px solid #ddd;
    }
    .modal-note p {
        margin: 0;
        font-size: 20px;
        color: #555;
        display: flex;
        align-items: center;
    }
    .modal-note p i {
        color: #ff6200;
        margin-left: 5px;
        font-size: 16px;
    }
    .book-now-btn {
        display: inline-block;
        padding: 10px 20px;
        background-color: #1574A6;
        color: #fff;
        text-decoration: none;
        border-radius: 3px;
        font-size: 20px;
        margin-top: 10px;
        transition: background-color 0.2s ease;
        border: none;
        cursor: pointer;
    }
    .book-now-btn:hover {
        background-color: #F4991E;
    }
    .modal-extra-details {
        width: 100%;
    }
    .extra-details-header {
        background-color: #f5f5f5;
        padding: 10px 15px;
        border-radius: 5px;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
    }
    .extra-details-header h3 {
        color: #23518C;
        font-size: 20px;
        margin: 0;
    }
    .extra-details-header .stars i {
        color: #FFD700;
        font-size: 14px;
    }
    .modal-extra-details p {
        font-size: 20px;
        line-height: 1.5;
        color: #333;
    }
    .booking-modal-content {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    .booking-modal-body {
        text-align: center;
    }
    .booking-modal-body h2 {
        color: #23518C;
        margin-bottom: 20px;
        font-size: 24px;
    }
    .booking-form {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .form-group {
        display: flex;
        flex-direction: column;
        text-align: right;
    }
    .form-group label {
        font-size: 20px;
        margin-bottom: 5px;
        color: #333;
    }
    .form-group input {
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    .form-group input:focus {
        outline: none;
        border-color: #5C7279;
        box-shadow: 0 0 5px rgba(107, 165, 242, 0.3);
    }
    .program-details {
        background-color: #f9f9f9;
        padding: 15px;
        border-radius: 5px;
        text-align: right;
    }
    .program-details h3 {
        color: #23518C;
        font-size: 20px;
        margin-bottom: 10px;
    }
    .program-details p {
        font-size: 14px;
        margin: 5px 0;
        color: #333;
        display: flex;
        align-items: center;
    }
    .submit-btn {
        padding: 10px 20px;
        background-color: #1574A6;
        color: #fff;
        border: none;
        border-radius: 5px;
        font-size: 20px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }
    .submit-btn:hover {
        background-color: #F4991E;
    }
    @media (max-width: 768px) {
        .programs-grid {
            grid-template-columns: 1fr;
            gap: 10px;
        }
        .program-image {
            height: 140px;
        }
        .no-image {
            height: 140px;
        }
        .program-details p {
            font-size: 12px;
        }
        .program-details p i {
            font-size: 12px;
        }
        .search-field select,
        .search-field input[type="text"],
        .search-field input[type="date"] {
            font-size: 12px;
        }
        .search-btn {
            padding: 6px 16px;
            font-size: 12px;
        }
        .extra-options-btn {
            padding: 6px 12px;
            font-size: 20px;
        }
        #programs-program-details-section, #programs-booking-section {
            width: 95%;
            padding: 15px;
            margin: 10px auto;
        }
        .modal-body {
            flex-direction: column;
        }
        .modal-left, .modal-right {
            width: 100%;
        }
        .modal-image {
            max-width: 100%;
        }
        .modal-content, .booking-modal-content {
            padding: 15px;
        }
        .modal-details h2 {
            font-size: 20px;
        }
        .modal-customize h3, .program-details h3 {
            font-size: 14px;
        }
        .modal-price p, .program-details p {
            font-size: 12px;
        }
        .book-now-btn, .submit-btn {
            font-size: 20px;
            padding: 8px 16px;
        }
        .search-header-container h2 {
            font-size: 24px;
        }
        .riyal-icon {
            width: 12px;
            height: 12px;
        }
        .currency-icon {
            font-size: 20px;
        }
        .modal-details p i, .program-details p i {
            font-size: 12px;
        }
        .extra-details-header .stars i {
            font-size: 20px;
        }
    }
    @media (max-width: 480px) {
        .programs-grid {
            grid-template-columns: 1fr;
            gap: 8px;
        }
        .program-card {
            border-radius: 3px;
        }
        .program-image {
            height: 120px;
        }
        .no-image {
            height: 120px;
            font-size: 20px;
        }
        .program-details {
            padding: 8px;
        }
        .program-details p {
            font-size: 10px;
            margin: 3px 0;
        }
        .program-details p i {
            font-size: 20px;
        }
        .search-field select,
        .search-field input[type="text"],
        .search-field input[type="date"] {
            font-size: 20px;
        }
        .search-btn {
            padding: 5px 14px;
            font-size: 20px;
        }
        .extra-options-btn {
            padding: 5px 10px;
            font-size: 20px;
        }
        .extra-field label {
            font-size: 12px;
        }
        .extra-field select {
            font-size: 20px;
        }
        #programs-program-details-section, #programs-booking-section {
            width: 95%;
            padding: 10px;
            margin: 5px auto;
        }
        .modal-content, .booking-modal-content {
            padding: 10px;
        }
        .modal-image {
            max-width: 100%;
        }
        .modal-details h2 {
            font-size: 24px;
        }
        .modal-customize h3, .program-details h3 {
            font-size: 20px;
        }
        .modal-price p, .program-details p {
            font-size: 20px;
        }
        .book-now-btn, .submit-btn {
            font-size: 10px;
            padding: 6px 12px;
        }
        .search-header-container h2 {
            font-size: 24px;
        }
        .riyal-icon {
            width: 10px;
            height: 10px;
        }
        .currency-icon {
            font-size: 10px;
        }
        .modal-details p i, .program-details p i {
            font-size: 20px;
        }
        .extra-details-header .stars i {
            font-size: 20px;
        }
    }
    /* تأثير انفجار البالونة */
@keyframes balloon-pop {
    0% {
        transform: translateZ(5px) scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: translateZ(5px) scale(1.3); /* زيادة الحجم لتأثير أقوى */
        box-shadow: 0 6px 20px rgba(255, 98, 0, 0.8);
        background: #F4991E;
    }
    100% {
        transform: translateZ(5px) scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
}

/* تأثير اهتزاز عند التمرير */
@keyframes shake {
    0% { transform: translateZ(5px) translateX(0); }
    25% { transform: translateZ(5px) translateX(-5px); }
    50% { transform: translateZ(5px) translateX(5px); }
    75% { transform: translateZ(5px) translateX(-5px); }
    100% { transform: translateZ(5px) translateX(0); }
}
    


    .country-search-container, .programs-search-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px 0;
        direction: rtl;
    }
    .search-header-container {
        position: relative;
        background-color: #ffffff;
        background-size: cover;
        background-position: center;
        border-radius: 10px;
        padding: 20px 0;
        margin-bottom: 20px;
        text-align: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transform: translateZ(5px);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .search-header-container h2 {
        position: relative;
        color: #23518C;
        font-size: 28px;
        font-weight: bold;
        margin: 0;
        z-index: 1;
    }
    .search-header-container:hover {
        transform: translateZ(10px) translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }
    .search-form {
        background-color: #1574A6;
        border: 1px solid #5C7279;
        border-radius: 5px;
        padding: 10px;
        margin-bottom: 20px;
    }
    .search-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    .search-field {
        flex: 1;
        min-width: 150px;
    }
    .search-field select,
    .search-field input[type="text"],
    .search-field input[type="date"] {
        width: 100%;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 3px;
        font-size: 16px;
        background-color: #ffffff;
    }
    .search-btn {
        background-color: #23518C;
        color: #ffffff;
        border: none;
        padding: 8px 20px;
        border-radius: 3px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.2s ease;
    }
    .extra-options-btn {
        background-color: #23518C;
        color: #ffffff;
        border: none;
        padding: 8px 15px;
        border-radius: 3px;
        cursor: pointer;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: background-color 0.2s ease;
    }
    .extra-options-btn:hover {
        background-color: #23518C;
    }
    .extra-options {
        margin-top: 10px;
        padding: 10px;
        border-top: 1px solid #5C7279;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .extra-field {
        flex: 1;
        min-width: 200px;
    }
    .extra-field label {
        display: block;
        margin-bottom: 5px;
        font-size: 16px;
    }
    .extra-field select,
    .extra-field input[type="text"] {
        width: 100%;
        padding: 8px;
        border: 1px solid #ffffff;
        border-radius: 3px;
        font-size: 16px;
    }
    .housing-details {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    .programs-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-left: auto;
        margin-right: auto;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .programs-grid.loaded {
        opacity: 1;
    }
    .load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.load-more-btn {
    background-color: #1574A6;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.load-more-btn:hover {
    background-color: #5A94E0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .load-more-container {
        margin-top: 20px;
    }
    .load-more-btn {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .load-more-container {
        margin-top: 15px;
    }
    .load-more-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}
    .program-card {
        background-color: #23518C;
        border: 1px solid #ddd;
        border-radius: 5px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transform: translateZ(5px);
        transition: transform 0.2s ease, box-shadow 0.2s ease, width 0.3s ease;
        width: 100%;
    }
    .program-card:hover {
        transform: translateZ(10px) translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    }
    .program-image-wrapper {
        position: relative;
    }
    .discount-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #ff6200;
    color: #ffffff;
    padding: 10px 24px; /* زيادة الحشوة لجعل الخلفية أكبر */
    border-radius: 6px; /* زيادة طفيفة في الزوايا الدائرية */
    font-size: 18px; /* زيادة حجم الخط لجعل النص أكثر وضوحًا */
    font-weight: bold;
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateZ(5px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    animation: balloon-pop 2s infinite ease-in-out; /* تأثير انفجار البالونة */
}

.program-card:hover .discount-badge {
    transform: translateZ(10px) translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    animation: shake 0.5s ease-in-out; /* تأثير الاهتزاز عند التمرير */
    background: #e55a00; /* تغيير طفيف في اللون عند التمرير */
}
    .program-image {
        width: 100%;
        height: 160px;
        object-fit: cover;
    }
    .program-details {
        padding: 12px;
    }
    .program-details p {
        margin: 5px 0;
        font-size: 15px;
        color: #333;
        display: flex;
        align-items: center;
    }
    .program-details p i {
        color: #5C7279;
        margin-left: 5px;
        font-size: 14px;
    }
    .program-details p strong {
        color: #5C7279;
        margin-right: 5px;
    }
    .riyal-icon {
        width: 14px;
        height: 14px;
        vertical-align: middle;
        margin-right: 5px;
        display: none; /* يظهر فقط عند اختيار SAR */
    }
    .currency-icon {
        font-size: 20px;
        vertical-align: middle;
        margin-right: 5px;
    }
    #programs-program-details-section, #programs-booking-section {
        display: none;
        width: 100%;
        max-width: 1200px;
        margin: 20px auto;
        background-color: #ffffff;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        direction: rtl;
    }
    .modal-content, .booking-modal-content {
        background-color: #ffffff;
        border-radius: 10px;
        width: 100%;
        position: relative;
        padding: 20px;
    }
    .back-btn {
        background-color: #23518C;
        color: #ffffff;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        margin-bottom: 20px;
        transition: background-color 0.2s ease;
    }
    .back-btn:hover {
        background-color: #1e4273;
    }
    .modal-body {
        display: flex;
        gap: 20px;
    }
    .modal-left {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .modal-right {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .modal-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    .modal-image img {
        border-radius: 5px;
        width: 100%;
        height: auto;
        max-width: 400px;
    }
    .modal-details {
        width: 100%;
    }
    .modal-details h2 {
        color: #23518C;
        margin-bottom: 15px;
        font-size: 24px;
        line-height: 1.4;
    }
    .modal-details p {
        margin: 8px 0;
        font-size: 14px;
        display: flex;
        align-items: center;
        color: #333;
    }
    .modal-details p i {
        color: #5C7279;
        margin-left: 5px;
        font-size: 16px;
    }
    .modal-customize {
        padding: 15px;
        background-color: #f5f5f5;
        border-radius: 5px;
    }
    .modal-customize h3 {
        color: #23518C;
        font-size: 16px;
        margin-bottom: 10px;
    }
    .modal-customize .form-group {
        margin-bottom: 10px;
    }
    .modal-customize .form-group label {
        font-size: 16px;
        margin-bottom: 5px;
        display: block;
        color: #333;
    }
    .modal-customize .modal-input {
        width: 100%;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 3px;
        font-size: 16px;
    }
    .modal-price {
        padding: 15px;
        background-color: #f5f5f5;
        border-radius: 5px;
    }
    .modal-price p {
        font-size: 16px;
        margin: 5px 0;
        color: #333;
    }
    .modal-note {
        padding: 10px;
        background-color: #f9f9f9;
        border-radius: 5px;
        border: 1px solid #ddd;
    }
    .modal-note p {
        margin: 0;
        font-size: 20px;
        color: #555;
        display: flex;
        align-items: center;
    }
    .modal-note p i {
        color: #ff6200;
        margin-left: 5px;
        font-size: 16px;
    }
    .book-now-btn {
        display: inline-block;
        padding: 10px 20px;
        background-color: #1574A6;
        color: #fff;
        text-decoration: none;
        border-radius: 3px;
        font-size: 20px;
        margin-top: 10px;
        transition: background-color 0.2s ease;
        border: none;
        cursor: pointer;
    }
    .book-now-btn:hover {
        background-color: #F4991E;
    }
    .modal-extra-details {
        width: 100%;
    }
    .extra-details-header {
        background-color: #f5f5f5;
        padding: 10px 15px;
        border-radius: 5px;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
    }
    .extra-details-header h3 {
        color: #23518C;
        font-size: 20px;
        margin: 0;
    }
    .extra-details-header .stars i {
        color: #FFD700;
        font-size: 14px;
    }
    .modal-extra-details p {
        font-size: 20px;
        line-height: 1.5;
        color: #333;
    }
    .booking-modal-content {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    .booking-modal-body {
        text-align: center;
    }
    .booking-modal-body h2 {
        color: #23518C;
        margin-bottom: 20px;
        font-size: 24px;
    }
    .booking-form {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .form-group {
        display: flex;
        flex-direction: column;
        text-align: right;
    }
    .form-group label {
        font-size: 20px;
        margin-bottom: 5px;
        color: #333;
    }
    .form-group input {
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    .form-group input:focus {
        outline: none;
        border-color: #5C7279;
        box-shadow: 0 0 5px rgba(107, 165, 242, 0.3);
    }
    .program-details {
        background-color: #f9f9f9;
        padding: 15px;
        border-radius: 5px;
        text-align: right;
    }
    .program-details h3 {
        color: #23518C;
        font-size: 20px;
        margin-bottom: 10px;
    }
    .program-details p {
        font-size: 14px;
        margin: 5px 0;
        color: #333;
        display: flex;
        align-items: center;
    }
    .submit-btn {
        padding: 10px 20px;
        background-color: #1574A6;
        color: #fff;
        border: none;
        border-radius: 5px;
        font-size: 20px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }
    .submit-btn:hover {
        background-color: #F4991E;
    }
    @media (max-width: 768px) {
        .programs-grid {
            grid-template-columns: 1fr;
            gap: 10px;
        }
        .program-image {
            height: 140px;
        }
        .no-image {
            height: 140px;
        }
        .program-details p {
            font-size: 12px;
        }
        .program-details p i {
            font-size: 12px;
        }
        .search-field select,
        .search-field input[type="text"],
        .search-field input[type="date"] {
            font-size: 12px;
        }
        .search-btn {
            padding: 6px 16px;
            font-size: 12px;
        }
        .extra-options-btn {
            padding: 6px 12px;
            font-size: 20px;
        }
        #programs-program-details-section, #programs-booking-section {
            width: 95%;
            padding: 15px;
            margin: 10px auto;
        }
        .modal-body {
            flex-direction: column;
        }
        .modal-left, .modal-right {
            width: 100%;
        }
        .modal-image {
            max-width: 100%;
        }
        .modal-content, .booking-modal-content {
            padding: 15px;
        }
        .modal-details h2 {
            font-size: 20px;
        }
        .modal-customize h3, .program-details h3 {
            font-size: 14px;
        }
        .modal-price p, .program-details p {
            font-size: 12px;
        }
        .book-now-btn, .submit-btn {
            font-size: 20px;
            padding: 8px 16px;
        }
        .search-header-container h2 {
            font-size: 24px;
        }
        .riyal-icon {
            width: 12px;
            height: 12px;
        }
        .currency-icon {
            font-size: 20px;
        }
        .modal-details p i, .program-details p i {
            font-size: 12px;
        }
        .extra-details-header .stars i {
            font-size: 20px;
        }
    }
    @media (max-width: 480px) {
        .programs-grid {
            grid-template-columns: 1fr;
            gap: 8px;
        }
        .program-card {
            border-radius: 3px;
        }
        .program-image {
            height: 120px;
        }
        .no-image {
            height: 120px;
            font-size: 20px;
        }
        .program-details {
            padding: 8px;
        }
        .program-details p {
            font-size: 10px;
            margin: 3px 0;
        }
        .program-details p i {
            font-size: 20px;
        }
        .search-field select,
        .search-field input[type="text"],
        .search-field input[type="date"] {
            font-size: 20px;
        }
        .search-btn {
            padding: 5px 14px;
            font-size: 20px;
        }
        .extra-options-btn {
            padding: 5px 10px;
            font-size: 20px;
        }
        .extra-field label {
            font-size: 12px;
        }
        .extra-field select {
            font-size: 20px;
        }
        #programs-program-details-section, #programs-booking-section {
            width: 95%;
            padding: 10px;
            margin: 5px auto;
        }
        .modal-content, .booking-modal-content {
            padding: 10px;
        }
        .modal-image {
            max-width: 100%;
        }
        .modal-details h2 {
            font-size: 24px;
        }
        .modal-customize h3, .program-details h3 {
            font-size: 20px;
        }
        .modal-price p, .program-details p {
            font-size: 20px;
        }
        .book-now-btn, .submit-btn {
            font-size: 10px;
            padding: 6px 12px;
        }
        .search-header-container h2 {
            font-size: 24px;
        }
        .riyal-icon {
            width: 10px;
            height: 10px;
        }
        .currency-icon {
            font-size: 10px;
        }
        .modal-details p i, .program-details p i {
            font-size: 20px;
        }
        .extra-details-header .stars i {
            font-size: 20px;
        }
    }
    /* تأثير انفجار البالونة */
@keyframes balloon-pop {
    0% {
        transform: translateZ(5px) scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: translateZ(5px) scale(1.3); /* زيادة الحجم لتأثير أقوى */
        box-shadow: 0 6px 20px rgba(255, 98, 0, 0.8);
        background: #F4991E;
    }
    100% {
        transform: translateZ(5px) scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
}

/* تأثير اهتزاز عند التمرير */
@keyframes shake {
    0% { transform: translateZ(5px) translateX(0); }
    25% { transform: translateZ(5px) translateX(-5px); }
    50% { transform: translateZ(5px) translateX(5px); }
    75% { transform: translateZ(5px) translateX(-5px); }
    100% { transform: translateZ(5px) translateX(0); }
}
    

/* === APM unified typography + spacing (apm_all_programs & apm_country_programs) === */
#programs-search-container,
#programs-program-details-section,
#programs-booking-section{
  font-family:'Montserrat',system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color: var(--educon-muted);
}

/* section titles inside plugin */
#programs-search-container h2,
#programs-program-details-section h2,
#programs-booking-section h2{
  font-family:'Montserrat',system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-weight:800;
  color: var(--educon-blue);
}

/* tighter line-height only inside plugin (both shortcodes) */
#programs-search-container p,
#programs-search-container li,
#programs-program-details-section p,
#programs-program-details-section li,
#programs-booking-section p,
#programs-booking-section li{
  line-height:1.4 !important;
  margin-top:4px !important;
  margin-bottom:4px !important;
}

/* Booking details: two columns (labels right / values left) */
#programs-booking-section .program-details{
  direction: rtl;
  text-align: right;
}

#programs-booking-section .program-details p{
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

#programs-booking-section .program-details p strong{
  min-width: 130px;
  white-space: nowrap;
  text-align: center;
}

#programs-booking-section .program-details p span{
  flex: 1 1 0;
  min-width: 0;
  white-space: normal;
  text-align: right;
}

/* price + currency icon in total row */
#programs-booking-section .program-details p .currency-icon{
  margin-right: 4px;
}
#programs-booking-section .program-details p #programs-booking-total-price{
  margin-left: 4px;
}
