/* Program Offerings Page Specific Styles */

/* Program Hero Section */
.program-hero {
    background: linear-gradient(135deg, #4a9b8e 0%, #6bb6ff 100%);
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
    margin-top: 0;
}

.program-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.program-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Program Content */
.program-content {
    padding: 4rem 0;
}

.program-section {
    margin-bottom: 5rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

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

/* Program Header */
.program-header {
    background: linear-gradient(135deg, #4a9b8e 0%, #6bb6ff 100%);
    color: white;
    padding: 2.5rem;
    text-align: center;
    position: relative;
}

.program-number {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.program-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1.5rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.download-document-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.download-document-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: white;
    text-decoration: none;
}

.download-document-btn i {
    font-size: 1.1rem;
}

/* Program Body */
.program-body {
    padding: 3rem;
}

.program-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

/* Objectives Section */
.objectives-section h3 {
    color: #4a9b8e;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.objectives-section h3::before {
    content: "🎯";
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.objectives-list {
    list-style: none;
    counter-reset: obj-counter;
    padding: 0;
}

.objectives-list li {
    counter-increment: obj-counter;
    margin-bottom: 1.2rem;
    padding-left: 2.5rem;
    position: relative;
    line-height: 1.7;
    font-size: 1.05rem;
    color: #555;
}

.objectives-list li::before {
    content: counter(obj-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #4a9b8e 0%, #6bb6ff 100%);
    color: white;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Poster Section */
.poster-section h3 {
    color: #4a9b8e;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-section h3::before {
    content: "📋";
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.poster-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.poster-item {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.poster-item:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.poster-item::after {
    content: "🔍 Click to view full size";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 0 0 15px 15px;
}

.poster-item:hover::after {
    opacity: 1;
}

.poster-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.poster-item:hover .poster-image {
    transform: scale(1.05);
}

.poster-placeholder {
    padding: 2rem;
    text-align: center;
    color: #666;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #ddd;
    border-radius: 15px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: not-allowed;
}

.poster-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #4a9b8e;
}

.poster-placeholder small {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Program Divider */
.program-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #4a9b8e 50%, transparent 100%);
    margin: 4rem 0;
    opacity: 0.3;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .program-layout {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
    }

    .program-body {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .program-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .program-hero h1 {
        font-size: 2.2rem;
    }

    .program-title {
        font-size: 1.8rem;
    }

    .program-header {
        padding: 2rem 1.5rem;
    }

    .program-body {
        padding: 1.5rem;
    }

    .program-content {
        padding: 2rem 0;
    }

    .program-section {
        margin-bottom: 3rem;
    }

    .download-document-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .program-hero {
        padding: 3rem 0 1.5rem;
    }

    .program-hero h1 {
        font-size: 1.8rem;
    }

    .program-hero p {
        font-size: 1rem;
    }

    .program-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .program-header {
        padding: 1.5rem 1rem;
    }

    .program-body {
        padding: 1rem;
    }

    .objectives-section h3,
    .poster-section h3 {
        font-size: 1.5rem;
    }

    .download-document-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        gap: 6px;
    }
}

/* ============================
   Program Filter Bar
   ============================ */
.program-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.program-search {
    position: relative;
    flex: 1 1 280px;
    max-width: 360px;
}

.program-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.program-search input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.program-search input:focus {
    outline: none;
    border-color: #4a9b8e;
    box-shadow: 0 0 0 3px rgba(74, 155, 142, 0.15);
}

.program-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.filter-tab {
    background: #f1f3f5;
    color: #555;
    border: 2px solid transparent;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-tab:hover {
    background: #e3f3f0;
    color: #4a9b8e;
}

.filter-tab.active {
    background: linear-gradient(135deg, #4a9b8e 0%, #6bb6ff 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 155, 142, 0.3);
}

.program-count {
    color: #888;
    font-size: 0.9rem;
    margin: 0 0 2rem 0;
}

/* ============================
   Program Card Grid
   ============================ */
.program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

@media (max-width: 700px) {
    .program-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.program-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.15);
}

.program-card-image {
    position: relative;
    aspect-ratio: 707 / 1000;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    padding: 1.25rem;
    box-sizing: border-box;
}

.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.15));
    transition: transform 0.4s ease;
}

.program-card:hover .program-card-image img {
    transform: scale(1.03);
}

@media (max-width: 700px) {
    .program-card-image {
        aspect-ratio: 707 / 850;
    }
}

.program-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a9b8e;
    font-size: 2.5rem;
}

.program-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.badge-secm { background: linear-gradient(135deg, #4a9b8e 0%, #6bb6ff 100%); }
.badge-tlc { background: linear-gradient(135deg, #ed8936 0%, #f6ad55 100%); }
.badge-other { background: linear-gradient(135deg, #718096 0%, #a0aec0 100%); }

.program-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.program-card-number {
    color: #4a9b8e;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.program-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.75rem 0;
    color: #222;
}

.program-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.program-card-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.view-details-btn {
    flex: 1;
    background: linear-gradient(135deg, #4a9b8e 0%, #6bb6ff 100%);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 155, 142, 0.35);
}

.card-download-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    color: #4a9b8e;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: background 0.25s ease, color 0.25s ease;
}

.card-download-btn:hover {
    background: #4a9b8e;
    color: white;
}

.no-results {
    text-align: center;
    color: #888;
    font-size: 1.1rem;
    padding: 3rem 0;
}

/* ============================
   Program Detail Modal
   ============================ */
.program-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.program-modal.is-open {
    display: flex;
}

.program-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.program-modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.program-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.85);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.program-modal-header {
    background: linear-gradient(135deg, #4a9b8e 0%, #6bb6ff 100%);
    color: white;
    padding: 2.5rem 3rem;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.program-modal-header h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.program-modal-number {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.program-modal-body {
    padding: 3rem;
}

@media (max-width: 1024px) {
    .program-modal-body .program-layout {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .program-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .program-search {
        max-width: none;
    }

    .program-modal-body {
        padding: 1.5rem;
    }

    .program-modal-body .program-layout {
        grid-template-columns: 1fr;
    }

    .program-modal-header {
        padding: 2rem 1.5rem;
    }

    .program-modal-header h2 {
        font-size: 1.5rem;
    }
}