/* ============================================
   Program Page Header Enhancements
   Matches student portal hero styling
   ============================================ */

.program-page-redesign {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
    padding-bottom: 4rem;
    margin-top: -15px;
}

.program-hero {
    background: linear-gradient(135deg, #155e75 0%, #0e7490 100%);
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2.8rem;
}

.program-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.3;
}

.program-page-redesign .hero-content-program {
    text-align: center;
    position: relative;
    z-index: 2;
}

.program-page-redesign .hero-icon-program {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease both, float 3s ease-in-out 0.8s infinite;
}

.program-page-redesign .hero-icon-program i {
    font-size: 2.5rem;
    color: white;
}

.program-page-redesign .hero-title-program {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.program-page-redesign .hero-subtitle-program {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0;
    animation: fadeInUp 0.8s ease 0.25s both;
}

.program-page-redesign .hero-decoration-program {
    width: 60px;
    height: 4px;
    background: white;
    margin: 2rem auto 0;
    border-radius: 2px;
    animation: expand 0.8s ease 0.4s both;
}

/* Shared animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expand {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .program-page-redesign .hero-title-program {
        font-size: 2.25rem;
    }
    
    .program-page-redesign .hero-subtitle-program {
        font-size: 1.05rem;
    }
}

@media (max-width: 576px) {
    .program-hero {
        padding: 3rem 0 5rem;
    }
    
    .program-page-redesign .hero-title-program {
        font-size: 1.75rem;
    }
    
    .program-page-redesign .hero-icon-program {
        width: 60px;
        height: 60px;
    }
    
    .program-page-redesign .hero-icon-program i {
        font-size: 2rem;
    }
}

/* ===== Moved from styles.css: Program Page Redesign Styles ===== */
/* (Deduplicated to prefer scoped hero rules and existing keyframes) */

.program-container-main {
    padding-bottom: 3rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.program-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
    border: 1px solid #e1e8ed;
    position: relative;
    height: auto;
}

.program-card:hover,
.program-card:focus-within {
    transform: translateY(-14px);
}

.program-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none !important;
    border-radius: 16px;
}

.program-card-link:focus,
.program-card-link:focus-visible {
    outline: 3px solid rgba(139, 92, 246, 0.8);
    outline-offset: 4px;
    border-radius: 16px;
    text-decoration: none !important;
}

.program-card-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px 16px 0 0;
}

.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-card-image img,
.program-card:focus-within .program-card-image img {
    transform: scale(1.1);
}

.program-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(21, 94, 117, 0.95) 0%, rgba(14, 116, 144, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.program-card:hover .program-overlay,
.program-card:focus-within .program-overlay {
    opacity: 1;
}

.program-icon-large {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: all 0.4s ease;
}



.program-years-badge {
    background: linear-gradient(135deg, #155e75 0%, #0e7490 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(21, 94, 117, 0.3);
}

.program-ibm-text {
    color: #155e75;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
    letter-spacing: 0.5px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.program-card:hover .program-icon-large,
.program-card:focus-within .program-icon-large {
    transform: scale(1);
}

.program-icon-large i {
    font-size: 2.5rem;
    color: #155e75;
}

.program-card-body {
    padding: 2rem;
    background: white;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
    transition: background 0.35s ease;
}

.program-card-body::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 61, 83, 0.05), rgba(14, 116, 144, 0.08));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.program-card-content {
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.program-card:hover .program-card-body,
.program-card-link:hover .program-card-body,
.program-card-link:focus-visible .program-card-body {
    background: #f8fbff;
}

.program-card:hover .program-card-body::after,
.program-card-link:hover .program-card-body::after,
.program-card-link:focus-visible .program-card-body::after {
    opacity: 1;
}

.program-card:hover .view-program-btn span,
.program-card:focus-within .view-program-btn span,
.program-card-link:hover .view-program-btn span,
.program-card-link:focus-visible .view-program-btn span {
    color: #0e7490;
}

.program-card:hover .view-program-btn i,
.program-card:focus-within .view-program-btn i,
.program-card-link:hover .view-program-btn i,
.program-card-link:focus-visible .view-program-btn i {
    transform: translateX(4px);
    color: #0e7490;
}

.view-program-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.75rem;
    color: #155e75;
    background: transparent;
    font-weight: 700;
    font-size: 1rem;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    position: static;
    overflow: visible;
}

.view-program-btn span {
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.view-program-btn i {
    font-size: 1rem;
    color: inherit;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .program-card-image {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .program-card-image {
        height: 220px;
    }
}

/* Landing program styles (moved from styles.css) */
.program-page-redesign {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
    padding-bottom: 3rem;
    margin-top: 80px;
}

.program-hero {
    background: linear-gradient(135deg, #155e75 0%, #0e7490 100%);
    padding: 3.5rem 0 5rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2.4rem;
}

.program-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.3;
}

.program-page-redesign .hero-content-program {
    text-align: center;
    position: relative;
    z-index: 2;
}

.program-page-redesign .hero-icon-program {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease both, float 3s ease-in-out 0.8s infinite;
}

.program-page-redesign .hero-icon-program i {
    font-size: 2.1rem;
    color: white;
}

.program-page-redesign .hero-title-program {
    color: white;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.program-page-redesign .hero-subtitle-program {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0;
    animation: fadeInUp 0.8s ease 0.25s both;
}

.program-page-redesign .hero-decoration-program {
    width: 55px;
    height: 3px;
    background: white;
    margin: 1.4rem auto 0;
    border-radius: 2px;
    animation: expand 0.8s ease 0.4s both;
}

.program-container-main {
    padding-bottom: 3rem;
}

@media (max-width: 640px) {
    .program-page-redesign {
        margin-top: 20px;
        padding-top: 0;
    }
    .program-container-main {
        margin-top: 36px;
    }
    body[id^="page-local-landing"] #page {
        padding-bottom: 0;
    }
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.program-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid #e1e8ed;
    position: relative;
}

.program-card:hover,
.program-card:focus-within {
    transform: translateY(-10px);
}

.program-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none !important;
    border-radius: 16px;
}

.program-card-link:focus,
.program-card-link:focus-visible {
    outline: 3px solid rgba(139, 92, 246, 0.8);
    outline-offset: 4px;
    border-radius: 16px;
    text-decoration: none !important;
}

.program-card-image {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px 16px 0 0;
}

.program-card-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-card-image img,
.program-card:focus-within .program-card-image img {
    transform: scale(1.1);
}

.program-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(21, 94, 117, 0.95) 0%, rgba(14, 116, 144, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.program-card:hover .program-overlay,
.program-card:focus-within .program-overlay {
    opacity: 1;
}

.program-icon-large {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.program-card:hover .program-icon-large,
.program-card:focus-within .program-icon-large {
    transform: scale(1);
}

.program-icon-large i {
    font-size: 2.3rem;
    color: #155e75;
}

.program-card-body {
    padding: 1.75rem;
    background: white;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
    transition: background 0.35s ease;
}

.program-card-body::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 61, 83, 0.05), rgba(14, 116, 144, 0.08));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.program-card-content {
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.program-card:hover .program-card-body,
.program-card-link:hover .program-card-body,
.program-card-link:focus-visible .program-card-body {
    background: #f8fbff;
}

.program-card:hover .program-card-body::after,
.program-card-link:hover .program-card-body::after,
.program-card-link:focus-visible .program-card-body::after {
    opacity: 1;
}

.program-card:hover .view-program-btn span,
.program-card:focus-within .view-program-btn span,
.program-card-link:hover .view-program-btn span,
.program-card-link:focus-visible .view-program-btn span {
    color: #0e7490;
}

.program-card:hover .view-program-btn i,
.program-card:focus-within .view-program-btn i,
.program-card-link:hover .view-program-btn i,
.program-card-link:focus-visible .view-program-btn i {
    transform: translateX(4px);
    color: #0e7490;
}

.view-program-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.75rem;
    color: #155e75;
    background: transparent;
    font-weight: 700;
    font-size: 1rem;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    position: static;
    overflow: visible;
}

.view-program-btn span {
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.view-program-btn i {
    font-size: 1rem;
    color: inherit;
    transition: transform 0.3s ease, color 0.3s ease;
}

@media (max-width: 768px) {
    .program-hero {
        padding: 3rem 0 4rem;
    }
    .programs-grid {
        grid-template-columns: 1fr;
    }
    .program-page-redesign .hero-title-program {
        font-size: 2rem;
    }
    .program-page-redesign .hero-subtitle-program {
        font-size: 1rem;
    }
    .program-card-image {
        height: auto;
    }
    .program-card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .program-card-image {
        height: auto;
    }
}

/* Program page overrides (landing) - remove hover overlay/icon, keep image zoom */
.program-page-redesign .program-overlay {
    background: transparent !important;
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
}

.program-page-redesign .program-card:hover .program-overlay,
.program-page-redesign .program-card:focus-within .program-overlay {
    opacity: 0 !important;
    display: none !important;
}

.program-page-redesign .program-icon-large {
    display: none !important;
}

/* Place the test button below the card, in normal flow */
.program-page-redesign .program-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.program-page-redesign .program-card {
    overflow: visible !important;
    width: 100%;
    height: auto;
}

.program-page-redesign .program-test-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    position: static;
    padding: 0.55rem 1rem;
    margin-top: 12px;
    background: linear-gradient(120deg, #ff4d4d 0%, #ff1a1a 60%, #d00000 100%);
    background-size: 200% 200%;
    color: #fff !important;
    border-color: rgba(8, 145, 178, 0.4);
    text-decoration: none !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 8px !important;
    transition: transform 0.2s ease, background-position 0.25s ease;
    outline: none;
    align-self: flex-start;
    width: auto;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.program-page-redesign .program-test-btn:hover,
.program-page-redesign .program-test-btn:focus-visible {
    transform: translateY(-2px);
    background-position: 100% 0;
}

@media (max-width: 640px) {
    .program-page-redesign .program-test-btn {
        width: 100%;
        justify-content: space-between;
    }
}






