/* seas-programs.css — School of Engineering & Applied Sciences Programs
   Structure mirrors gbs-programs.css but uses the SEAS navy/cyan palette so
   it blends with the rest of the SEAS site (faculty pages, hero section).

   head.php only loads ONE page-scoped stylesheet; we pull in pages.css so
   the shared inner-page components (.page-hero, .section-title, .container,
   .apply-section, etc.) still apply on top of the program-grid rules below. */
@import url("pages.css");

:root {
    --seas-navy: #0c1236;
    --seas-navy-dk: #070a22;
    --seas-accent: #2EC4F0;
    --seas-accent-dk: #1fa6d1;
    --seas-ink: #1f2937;
    --seas-muted: #4b5563;
    --seas-line: #e5e7eb;
    --seas-bg-soft: #f8fafc;
}

/* ── Intro Section ──────────────────────────────────────── */
.seas-programs-intro-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.seas-programs-intro-section .section-text {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--seas-muted);
    text-align: center;
}

/* ── Programs Section ───────────────────────────────────── */
.seas-programs-section {
    padding: 2rem 0 4rem 0;
    background-color: var(--seas-bg-soft);
}

/* Filter Navigation */
.program-level-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.level-filter-btn {
    padding: 0.75rem 1.5rem;
    background-color: #ffffff;
    color: var(--seas-muted);
    border: 2px solid var(--seas-line);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.level-filter-btn:hover,
.level-filter-btn.active {
    background-color: var(--seas-navy);
    color: #fff;
    border-color: var(--seas-navy);
}

/* Search Container */
.program-search-container {
    max-width: 400px;
    margin: 0 auto 3rem auto;
}

.program-search-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--seas-line);
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.program-search-input:focus {
    outline: none;
    border-color: var(--seas-accent);
    box-shadow: 0 0 0 3px rgba(46, 196, 240, 0.15);
}

/* Program Category */
.program-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--seas-navy);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--seas-accent);
    border-radius: 2px;
}

/* Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Program Card */
.program-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 580px;
    position: relative;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.program-image-container {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #e5e7eb;
}

.program-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Badges */
.program-level-badge,
.program-duration-badge {
    position: absolute;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-level-badge {
    top: 12px;
    left: 12px;
    background-color: var(--seas-navy);
    color: #fff;
}

.program-duration-badge {
    top: 12px;
    right: 12px;
    background-color: var(--seas-accent);
    color: var(--seas-navy);
}

/* Content */
.program-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.program-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--seas-navy);
    margin-bottom: 1rem;
    line-height: 1.4;
    min-height: 70px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-align: center;
}

.program-description {
    font-size: 0.95rem;
    color: var(--seas-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    min-height: 100px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    text-align: center;
}

/* Footer + Read More */
.program-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
}

.read-more-btn {
    background-color: var(--seas-navy);
    color: #fff;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 140px;
    text-decoration: none;
    display: inline-block;
}

.read-more-btn:hover {
    background-color: var(--seas-accent);
    color: var(--seas-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 196, 240, 0.3);
}

.read-more-btn:active {
    transform: translateY(0);
}

.read-more-btn-disabled,
.read-more-btn-disabled:hover,
.read-more-btn-disabled:active {
    background-color: #e5e7eb;
    color: #6b7280;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.65rem 1.5rem;
    min-width: 200px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--seas-muted);
}

/* Mobile tweaks */
@media (max-width: 640px) {
    .program-level-filters { gap: 0.5rem; }
    .level-filter-btn { padding: 0.5rem 1rem; font-size: 0.9rem; }
    .category-title { font-size: 1.5rem; }
    .program-card { height: auto; min-height: 520px; }
}
