/* Programs page styles */
.container {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    width: 100%;
}

.logos-container {
    margin: 3rem 0rem;
}

.logos-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 10px 0;
    width: 100%;
}

.single-logo {
    margin: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
    width: fit-content;
    padding: 0;
    flex: 0 1 auto;
}

.single-logo:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.card-img-top {
    display: block;
    object-fit: contain;
    max-height: 150px;
    height: auto;
    width: auto;
    margin: 0;
    padding: 0;
}

/* Focus styles for clickable images acting as buttons */
.card-img-top[role="button"]:focus {
    outline: 2px solid #ff0000 !important;
    outline-offset: 2px !important;
    border-radius: 4px;
}

.card-img-top[role="button"]:focus-visible {
    outline: 2px solid #ff0000 !important;
    outline-offset: 2px !important;
    border-radius: 4px;
}

/* Program logo button styles to match images */
.program-logo-button {
    text-transform: uppercase !important;
    word-wrap: break-word !important;
    display: block !important;
    object-fit: contain;
    max-height: 150px !important;
    height: 120px !important;
    width: auto !important;
    min-width: 200px !important;
    margin: 0 !important;
    padding: 10px !important;
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.program-logo-button:hover {
    box-shadow: 0 4px 12px rgba(0,123,255,0.2) !important;
    color: #003a78 !important;
    background: #f8f9fa !important;
    transform: translateY(-2px) !important;
}

.program-logo-button:focus {
    outline: 2px solid #ff0000 !important;
    outline-offset: 2px !important;
}

.program-logo-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}

/* program header */

.program-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-height: 200px;
    position: relative;
    width: 100%;
}

.program-header-title {
    flex: 1;
}

.program-header-image {
    flex: 1;
    text-align: right;
}

.program-header-image img {
    max-width: 100%;
    max-height: 150px;
}

.program-content {
    width: 100%;
}

.program-content-description {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    .single-logo {
        margin: 0.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    .single-logo {
        margin: 0.6rem;
    }
    .card-img-top {
        max-height: 180px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    .single-logo {
        margin: 0.5rem;
    }
    .card-img-top {
        max-height: 150px;
    }
    .logos-row {
        gap: 10px;
    }
}

.programs-container {
    margin-top: 2rem;
    margin-bottom: 10rem;
    width: 100%;
    position: relative;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.programs-container[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
}

.programs-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.single-program {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.single-program[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
}

.single-program::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transform: translateX(-50%) rotate(45deg);
}

.single-program h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

#program-header-hr {
    border-top: 1px solid #979797be;
    
}

.single-program p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #444;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .single-program {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .single-program h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .single-program {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .single-program h3 {
        font-size: 1.2rem;
    }
}

.program-html-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin: 2rem 0rem;
    width: 100%;
    box-sizing: border-box;
}

.program-html-content {
    max-width: 65%;
    box-sizing: border-box;
    text-align: left;
}

.program-html-image {
    max-width: 35%;
    padding: 4.5rem 0rem;
    box-sizing: border-box;
}

.program-html-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* When there's no image, make the content take full width */
.program-html-container:not(:has(.program-html-image)) .program-html-content {
    flex: 0 0 100%;
    width: 100%;
}

@media (max-width: 768px) {
    .program-header {
        flex-direction: column;
        max-height: none;
        gap: 1rem;
    }

    .program-header-title,
    .program-header-image {
        flex: 0 0 100%;
        width: 100%;
        text-align: center;
    }

    .program-header-image {
        padding: 1rem 0;
    }

    .program-html-container {
        flex-direction: column;
        gap: 1rem;
    }

    .program-html-content,
    .program-html-image {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .program-html-image {
        padding: 1rem 0;
    }
}

@media (max-width: 576px) {
    .single-program {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .single-program h3 {
        font-size: 1.2rem;
    }

    .program-header-title h2 {
        font-size: 1.4rem;
    }
} 