/* Homepage Variant Styles */

/* Header Modifications for Variant */
.page-variant .variant-header .site-branding .custom_logo {
    cursor: default;
}

.page-variant .variant-header .variant-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-variant .variant-header .variant-phone {
    font-size: 18px;
    font-weight: bold;
}

.page-variant .variant-header .variant-phone a {
    color: #857542;
    text-decoration: none;
}

.page-variant .variant-header .variant-phone a:hover {
    text-decoration: underline;
}

/* Modal Base Styles */
.program-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease-in;
}

.program-modal.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.program-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.program-modal-header {
    padding: 25px 30px;
    background-color: #857542;
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.program-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.program-modal-close {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 0 10px;
}

.program-modal-close:hover,
.program-modal-close:focus {
    color: #f0f0f0;
}

.program-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

/* Program List Styles */
.program-list-intro {
    margin-bottom: 25px;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.program-list-intro p {
    margin: 0 0 15px 0;
}

.program-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.program-column {
    min-width: 0;
}

.program-category {
    margin-bottom: 30px;
}

.program-category:last-child {
    margin-bottom: 0;
}

.program-category h4 {
    color: #857542;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #857542;
}

.program-category ul {
    list-style: disc;
    margin: 0;
    padding-left: 25px;
}

.program-category ul li {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

.program-category ul li strong {
    color: #000;
}

/* Accelerated Program Indicator */
/**
.program-accelerated {
    font-weight: bold;
**/

/* Request Info Button in Modal */
.modal-request-info-wrapper {
    margin-top: 30px;
    text-align: center;
}

.modal-request-info-btn {
    display: inline-block;
    font-family: 'TradeGothic_bold', Arial, sans-serif;
    font-size: 20px;
    color: #000 !important;
    text-decoration: none;
    padding: 14px 24px 10px 24px;
    background-color: #b7a36c;
    transition: background-color 0.3s ease;
}

.modal-request-info-btn:hover,
.modal-request-info-btn:focus {
    background-color: #857543;
    color: #fff !important;
    text-decoration: underline;
}

.modal-request-info-btn:visited,
.modal-request-info-btn:active {
    color: #000 !important;
}

/* Tablet Styles */
@media only screen and (max-width: 1024px) {
    .program-modal-content {
        width: 85%;
        margin: 8% auto;
    }

    .program-columns {
        gap: 25px;
    }

    .program-modal-header h3 {
        font-size: 22px;
    }
}

/* Mobile Styles */
@media only screen and (max-width: 768px) {
    .program-modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }

    .program-modal-header {
        padding: 20px;
    }

    .program-modal-header h3 {
        font-size: 20px;
    }

    .program-modal-close {
        font-size: 28px;
    }

    .program-modal-body {
        padding: 20px;
    }

    /* Stack columns on mobile for better readability */
    .program-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .program-category h4 {
        font-size: 17px;
    }

    .program-category ul li {
        font-size: 14px;
    }

    .modal-request-info-btn {
        font-size: 20px;
        padding: 11px 18px;
    }

    .page-variant .variant-header .variant-contact {
        flex-direction: column;
        gap: 10px;
        align-items: flex-end;
    }

    .page-variant .variant-header .variant-phone {
        font-size: 16px;
    }

    /* Reduce header spacing on mobile for online variant */
    .page-variant .site-header .std_width {
        padding: 12px 20px;
    }

    .page-variant .site-branding {
        height: 60px;
    }

    .page-variant .custom_logo {
        height: 50px;
        margin-top: 5px;
    }

    /* Reduce spacing at top of page on mobile for online variant */
    .page-variant .header_wrapper {
        margin-top: 0;
    }

    .page-variant .slide_img {
        max-height: 200px;
    }

    .page-variant #requestinfo_section {
        padding-top: 0;
    }
}

/* Small Mobile Styles */
@media only screen and (max-width: 480px) {
    .program-modal-content {
        width: 98%;
        margin: 5% auto;
    }

    .program-modal-header {
        padding: 15px;
    }

    .program-modal-header h3 {
        font-size: 18px;
    }

    .program-modal-body {
        padding: 15px;
    }

    .program-category ul {
        padding-left: 20px;
    }
}

/* Scrollbar Styling for Modal Body */
.program-modal-body::-webkit-scrollbar {
    width: 8px;
}

.program-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.program-modal-body::-webkit-scrollbar-thumb {
    background: #857542;
    border-radius: 4px;
}

.program-modal-body::-webkit-scrollbar-thumb:hover {
    background: #6d5f35;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Focus trap for accessibility */
.program-modal-content:focus {
    outline: none;
}

/* Ensure modal is above all other content */
.program-modal {
    isolation: isolate;
}
