/* IIMMS Open Day Modal - Compact Design */

.modal {
    z-index: 1050 !important;
}

.modal-backdrop {
    z-index: 1040 !important;
}

.modal.show {
    display: block !important;
}

.open-day-modal-content-compact {
    border: none;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    background: #ffffff;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.open-day-close-btn-compact {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    font-size: 24px;
    color: #333;
}

.open-day-close-btn-compact:hover {
    background: rgba(255, 255, 255, 1);
    transform: rotate(90deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.open-day-modal-body-compact {
    padding: 0;
}

/* Image at Top */
.open-day-image-top-compact {
    width: 100%;
 /*   height: 200px;*/
    overflow: hidden;
    background: #f5f5f5;
}

.open-day-image-compact {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding: 1%;
    border-radius: 5%;
}

/* Content Section */
.open-day-content-compact-section {
    padding: 32px 28px;
}

.open-day-header-compact {
    margin-bottom: 22px;
}

.open-day-title-compact {
    font-size: 26px;
    font-weight: 900;
    color: #003f87;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.open-day-subtitle-compact {
    font-size: 14px;
    color: #e74c3c;
    font-weight: 700;
    margin: 0;
}

.open-day-highlights-compact {
    background: rgba(52, 152, 219, 0.09);
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.highlight-item-compact {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.highlight-item-compact:last-child {
    margin-bottom: 0;
}

.highlight-item-compact i {
    color: #3498db;
    margin-right: 10px;
    min-width: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 14px;
}

.open-day-description-compact {
    margin-bottom: 20px;
}

.open-day-description-compact p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.open-day-description-compact p:last-of-type {
    margin-bottom: 0;
}

.open-day-features-compact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.open-day-features-compact li {
    font-size: 13px;
    color: #333;
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
    font-weight: 500;
}

.open-day-features-compact i {
    color: #27ae60;
    margin-right: 10px;
    min-width: 16px;
    flex-shrink: 0;
}

.open-day-contact-compact {
    background: rgba(39, 174, 96, 0.09);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #27ae60;
}

.contact-title-compact {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.open-day-contact-compact p {
    font-size: 13px;
    color: #555;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.open-day-contact-compact p:last-child {
    margin-bottom: 0;
}

.open-day-contact-compact i {
    color: #27ae60;
    margin-right: 8px;
    min-width: 14px;
    flex-shrink: 0;
}

.open-day-contact-compact a {
    color: #3498db;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.open-day-contact-compact a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.open-day-btn-compact {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.open-day-btn-primary-compact {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.25);
}

.open-day-btn-primary-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.35);
    background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
}

/* Animation for modal entrance */
.modal.fade .modal-dialog {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease-out;
}

.modal.show .modal-dialog {
    animation: slideInUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInUp {
    from {
        transform: translate(0, 40px);
        opacity: 0;
    }
    to {
        transform: translate(0, 0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 576px) {
    .open-day-modal-content-compact {
        max-width: calc(100vw - 30px);
        margin: 15px auto;
    }

    .open-day-image-top-compact {
        height: 160px;
    }

    .open-day-content-compact-section {
        padding: 24px 20px;
    }

    .open-day-title-compact {
        font-size: 22px;
    }

    .open-day-subtitle-compact {
        font-size: 13px;
    }
}

/* Scrollbar styling */
.open-day-modal-content-compact::-webkit-scrollbar {
    width: 6px;
}

.open-day-modal-content-compact::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.open-day-modal-content-compact::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 3px;
}

.open-day-modal-content-compact::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}
