/* pages.css - Shared Inner Page Styles */

/* ===== Page Hero Banner ===== */
.page-hero {
    position: relative;
    width: 100%;
    min-height: 350px;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: center;
}

.page-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    color: white;
}

.page-hero-content h1 {
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    max-width: 600px;
}

.page-hero-dark {
    background: #1E2A4A;
}

.page-hero-dark .page-hero-overlay {
    background: rgba(30, 42, 74, 0.7);
}


/* ===== Page Intro Section ===== */
.page-intro {
    padding: 3.5rem 0 2rem;
    background: #ffffff;
    text-align: center;
}

.page-intro .section-title {
    margin-bottom: 0.75rem;
}

.page-intro-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.page-intro-text {
    max-width: 900px;
    margin: 0 auto;
    color: #4b5563;
    line-height: 1.8;
    padding: 0 15px;
    text-align: center;
}


/* ===== Content Section ===== */
.content-section {
    padding: 3rem 0;
    background: #ffffff;
}

.content-section.bg-light {
    background: #f9fafb;
}

.content-section.bg-dark {
    background: #1E2A4A;
    color: white;
}

.content-section.bg-navy {
    background: #0f1b3d;
    color: white;
}

.content-description {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: #4b5563;
    line-height: 1.8;
    padding: 0 15px;
}

.content-section.bg-dark .content-description,
.content-section.bg-navy .content-description {
    color: rgba(255,255,255,0.85);
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
}


/* ===== Full-Width Break Image ===== */
.full-width-image {
    width: 100%;
    overflow: hidden;
}

.full-width-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.full-width-image.fixed-height {
    height: 350px;
}

.full-width-image.fixed-height img {
    height: 100%;
}


/* ===== Vision / Mission Cards ===== */
.vision-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 2rem auto;
}

.vision-card {
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
}

.vision-card-header {
    background: #C8102E;
    color: white;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: 700;
}

.vision-card-body {
    padding: 20px;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.7;
}


/* ===== Dean Profile (shared layout) ===== */
.dean-profile {
    display: flex;
    gap: 0;
    max-width: 1000px;
    margin: 2rem auto;
    align-items: stretch;
}

.dean-profile-left {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dean-profile-badge {
    background: #C8102E;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 15px 25px;
    border-radius: 8px 8px 0 0;
}

.dean-profile-content {
    background: #f5f5f5;
    padding: 25px;
    flex: 1;
    border-radius: 0 0 0 8px;
}

.dean-profile-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1E3C72;
    margin-bottom: 4px;
}

.dean-profile-position {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.dean-profile-bio {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.7;
    text-align: justify;
}

.dean-profile-photo {
    width: 380px;
    flex-shrink: 0;
}

.dean-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 8px 8px 0;
}

.dean-video-thumb {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    border-radius: 0 8px 8px 0;
}

.dean-video-thumb img {
    border-radius: 0;
}

.dean-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 56px;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.92;
    pointer-events: none;
}

.dean-video-play svg {
    width: 100%;
    height: 100%;
    display: block;
}

.dean-video-thumb:hover .dean-video-play,
.dean-video-thumb:focus-visible .dean-video-play {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
}

.dean-video-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    border: 0;
    border-radius: 0 8px 8px 0;
}


/* ===== Accreditation Cards ===== */
.accreditation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 2rem auto;
}

.accreditation-card {
    text-align: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
}

.accreditation-card img {
    max-height: 80px;
    max-width: 150px;
    margin: 0 auto 10px;
    object-fit: contain;
}

.accreditation-card p {
    font-size: 0.8rem;
    color: #4b5563;
    line-height: 1.4;
}


/* ===== Logo Grid (Industry Partners) ===== */
.partner-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 2rem auto;
    align-items: center;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    min-height: 80px;
}

.partner-logo img {
    max-height: 50px;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.3s;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}


/* ===== Photo Gallery Grid ===== */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 1000px;
    margin: 2rem auto;
}

.photo-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}


/* ===== Service / Feature Cards ===== */
.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 2rem auto;
}

.service-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
}

.service-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #C8102E;
    margin-bottom: 12px;
    text-decoration: underline;
}

.service-card-text {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.6;
}


/* ===== Faculty Department Section ===== */
.dept-section {
    padding: 3rem 0;
    background: #ffffff;
}

.dept-section:nth-child(even) {
    background: #f9fafb;
}

.dept-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1E3C72;
    text-align: center;
    margin-bottom: 1rem;
}

.dept-description {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: #4b5563;
    line-height: 1.8;
    padding: 0 15px;
}

.faculty-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faculty-card-item {
    text-align: center;
}

.faculty-card-photo {
    width: 100%;
    margin: 0 auto 1rem;
    line-height: 0;
    border-radius: 0;
    border: 0;
    overflow: visible;
}

.faculty-card-photo img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: initial !important;
    filter: none !important;
    border-radius: 0 !important;
    display: block;
}

.faculty-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #C8102E;
    margin-bottom: 0.3rem;
}

.faculty-card-role {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

/* Cards beyond the initial visible cap (e.g. 9..N in Computer Sciences)
   are hidden until the user clicks the View More toggle below the grid,
   which adds `is-expanded` to the parent grid. */
.faculty-card-item.is-extra { display: none; }
.faculty-grid-4.is-expanded .faculty-card-item.is-extra { display: block; }

.faculty-toggle-wrap {
    text-align: center;
    margin-top: 2rem;
}
.faculty-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.6rem;
    background: #C8102E;
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(196, 31, 50, 0.3);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.faculty-view-toggle:hover,
.faculty-view-toggle:focus-visible {
    background: #a61729;
    box-shadow: 0 4px 10px rgba(196, 31, 50, 0.4);
}
.faculty-view-toggle:active {
    transform: translateY(1px);
}

.faculty-card-role p {
    margin-bottom: 0.15rem;
}


/* ===== Faculty Individual Page ===== */
.faculty-hero {
    position: relative;
    background: #1E2A4A;
    min-height: 400px;
    display: flex;
    overflow: hidden;
}

.faculty-hero-photo {
    width: 45%;
    position: relative;
}

.faculty-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faculty-hero-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.faculty-hero-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.faculty-hero-title {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 8px;
}

.faculty-hero-email {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.faculty-hero-email a {
    color: white;
}

.faculty-hero-bio {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.9;
    text-align: justify;
}

/* Tag pills */
.tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 800px;
    margin: 1.5rem auto;
}

.tag-pill {
    padding: 8px 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #4b5563;
    background: white;
}

/* Publications list */
.publications-list {
    max-width: 700px;
    margin: 1.5rem auto;
    text-align: center;
}

.publications-list li,
.publications-list p {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.publications-list li:last-child,
.publications-list p:last-child {
    border-bottom: none;
}

/* Awards / Affiliations list */
.simple-list {
    max-width: 700px;
    margin: 1.5rem auto;
    text-align: center;
    list-style: none;
}

.simple-list li {
    font-size: 0.85rem;
    color: #4b5563;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.simple-list li:last-child {
    border-bottom: none;
}


/* ===== Holistic Feature Expanded Section ===== */
.holistic-feature {
    padding: 3rem 0;
    background: #ffffff;
}

.holistic-feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #C8102E;
    text-align: center;
    margin-bottom: 0.25rem;
}

.holistic-feature-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: #C8102E;
    text-align: center;
    font-style: italic;
    margin-bottom: 1rem;
}

.holistic-feature-text {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    color: #4b5563;
    line-height: 1.8;
    padding: 0 15px;
}


/* ===== SEAS Society Section ===== */
.society-section {
    padding: 3rem 0;
    background: #ffffff;
}

.society-logo {
    max-width: 200px;
    margin: 0 auto 2rem;
    display: block;
}


/* ===== Apply Online CTA Section ===== */
.apply-section {
    padding: 3rem 0;
    background: #ffffff;
    text-align: center;
}

.apply-section .section-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.apply-section-text {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.9rem;
    padding: 0 15px;
}

.apply-section .btn-primary {
    padding: 12px 30px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .apply-section .btn-primary,
    .apply-section .btn-primary:hover,
    .apply-section .btn-primary:focus,
    .apply-section .btn-primary:active {
        background-color: #C8102E !important;
        color: #ffffff !important;
        border: 0 !important;
        -webkit-tap-highlight-color: transparent;
    }
}

.apply-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.apply-link {
    padding: 8px 18px;
    border: 1px solid #C8102E;
    border-radius: 4px;
    color: #C8102E;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
}

.apply-link:hover {
    background: #C8102E;
    color: white;
}


/* OBE Framework page styles consolidated at bottom of file */


/* ================================================================== */
/* ===== Faculty Individual profile (faculty-detail.php) ============ */
/* ================================================================== */

.fi-hero {
    width: 100%;
    background: #0c1236 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><g fill="none" stroke="%231d2a6d" stroke-width="0.5" opacity="0.6"><path d="M0 50 L200 50 M0 100 L200 100 M0 150 L200 150 M50 0 L50 200 M100 0 L100 200 M150 0 L150 200"/><circle cx="50" cy="50" r="3" fill="%232EC4F0" opacity="0.3"/><circle cx="150" cy="100" r="3" fill="%232EC4F0" opacity="0.3"/><circle cx="100" cy="150" r="3" fill="%232EC4F0" opacity="0.3"/></g></svg>') repeat;
    color: #fff;
    padding: 3rem 0;
}
.fi-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    align-items: center;
}
.fi-hero-photo img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block;
    border-radius: 4px;
}

/* Photo-only variant: when the faculty photo already has the name/title/
   bio text baked in (set "photo_has_text_baked_in": true in the JSON),
   we drop the info column and stretch the photo to fill the hero. */
.fi-hero--photo-only {
    padding: 0;
    background: transparent;
}
.fi-hero--photo-only .fi-hero-inner {
    display: block;
    grid-template-columns: 1fr;
    max-width: none;
    padding: 0;
    margin: 0;
    gap: 0;
}
.fi-hero--photo-only .fi-hero-photo {
    width: 100%;
    max-width: none;
    line-height: 0;
}
.fi-hero--photo-only .fi-hero-photo img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 0;
}
.fi-hero-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.fi-hero-name {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 0.5rem;
}
.fi-hero-position {
    font-size: 1.1rem;
    color: #2EC4F0;
    margin: 0;
    line-height: 1.4;
}
.fi-hero-email {
    font-size: 0.95rem;
    margin: 0.5rem 0;
    color: #ffffff;
}
.fi-hero-email a {
    color: #ffffff;
    text-decoration: none;
}
.fi-hero-email a:hover { color: #2EC4F0; }
.fi-hero-bio {
    font-size: 0.9rem;
    line-height: 1.75;
    color: #e5e7eb;
    margin: 0.75rem 0 0;
    text-align: justify;
}

.fi-section {
    background: #fff;
    padding: 2.5rem 0;
    text-align: center;
}
.fi-section .section-title { margin-bottom: 2rem; }

.fi-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 1000px;
    margin: 0 auto;
}
.fi-pill {
    display: inline-block;
    padding: 14px 28px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #1e2a6f;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
}

.fi-textlist {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
    text-align: center;
}
.fi-textlist li {
    padding: 0.75rem 1rem;
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.7;
    border-bottom: 1px dashed #d1d5db;
}
.fi-textlist li:last-child { border-bottom: 0; }

@media (max-width: 900px) {
    .fi-hero-inner { grid-template-columns: 1fr; gap: 20px; }
    .fi-hero-photo img { max-width: 320px; margin: 0 auto; }
    .fi-hero-name { font-size: 1.8rem; }
}


/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .faculty-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    .accreditation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .partner-logos {
        grid-template-columns: repeat(3, 1fr);
    }
    .plo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 250px;
    }
    .page-hero-content h1 {
        font-size: 1.5rem;
    }
    .page-hero-content {
        padding: 0 20px;
    }

    .vision-cards {
        grid-template-columns: 1fr;
    }

    .dean-profile {
        flex-direction: column;
    }
    .dean-profile-photo {
        width: 100%;
        height: 300px;
    }
    .dean-profile-photo img {
        border-radius: 0;
    }

    .faculty-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .faculty-hero {
        flex-direction: column;
        min-height: auto;
    }
    .faculty-hero-photo {
        width: 100%;
        height: 300px;
    }
    .faculty-hero-info {
        padding: 25px 20px;
    }
    .faculty-hero-name {
        font-size: 1.75rem;
    }

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .partner-logos {
        grid-template-columns: repeat(2, 1fr);
    }

    .accreditation-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

}

@media (max-width: 480px) {
    .faculty-grid-4 {
        grid-template-columns: 1fr;
        max-width: 250px;
        margin: 0 auto;
    }
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    .plo-grid {
        grid-template-columns: 1fr;
    }
    .apply-links {
        flex-direction: column;
        align-items: center;
    }
}

/* Apply Online CTA styles moved to css/apply-cta.css and loaded
   globally via head.php so every page that includes the partial
   gets them — not just pages with $page_css = "pages". */


/* ================================================================== */
/* ===== About Us Page (about-seas.php) ============================= */
/* ================================================================== */

/* Hero banner — image has baked text, no HTML overlay */
.about-hero {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}
.about-hero-image {
    display: block;
    width: 100%;
    height: auto;
}

/* Vision / Mission two-column with background images */
.vm-section {
    background: #fff;
    padding: 2rem 0 3rem;
}
.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.vm-card {
    position: relative;
    min-height: 240px;
    padding: 2rem;
    color: #fff;
    background-color: #1e2a6f;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    overflow: hidden;
}
.vm-card > * { position: relative; z-index: 1; }
.vm-heading {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #fff;
}
.vm-body {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    color: #f3f4f6;
}

/* Dean's Message (About) */
.dean-section-about {
    background: #fff;
    padding: 3rem 0;
}
.dean-about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}
.dean-about-text {
    background: #1e2a6f;
    color: #fff;
    padding: 2rem;
    border-radius: 6px;
}
.dean-about-badge {
    display: block;
    background: transparent;
    color: #2EC4F0;
    padding: 0;
    font-weight: 700;
    font-size: 1.65rem;
    line-height: 1.2;
    margin: 0 0 1rem;
}
.dean-about-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.1rem;
    line-height: 1.3;
}
.dean-about-position {
    font-size: 0.82rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 1.1rem;
    line-height: 1.4;
}
.dean-about-bio {
    font-size: 0.88rem;
    line-height: 1.75;
    color: #ffffff;
    margin: 0 0 1.25rem;
    text-align: justify;
}
.dean-about-cta {
    background: #2EC4F0;
    color: #ffffff;
    padding: 8px 22px;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    border: 0;
}
.dean-about-cta:hover { background: #20A9D2; color: #ffffff; }
.dean-about-video {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
    background: #000;
}
.dean-about-video[data-video-id] {
    cursor: pointer;
}
.dean-about-video[data-video-id]:hover .video-play,
.dean-about-video[data-video-id]:focus-visible .video-play {
    transform: translate(-50%, -50%) scale(1.08);
    transition: transform 0.2s ease;
}
.dean-about-video img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dean-about-video.is-playing {
    aspect-ratio: 16 / 9;
}
.dean-about-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -50%);
    background: #c41f32;
    border-radius: 8px;
    pointer-events: none;
}
.video-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border: 12px solid transparent;
    border-left: 18px solid #fff;
    border-right: 0;
}

/* Accreditations layout: logos | campus | logos */
.accreditations-section {
    background: #fff;
    padding: 3rem 0;
    text-align: center;
}
.accreditations-section .content-description {
    max-width: 900px;
    margin: 0 auto 2rem;
}
.accreditation-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}
.accreditation-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.accreditation-card {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 0;
    margin: 0;
    display: block;
    overflow: hidden;
    line-height: 0;
    flex: 1;
}
.accreditation-card img {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    object-fit: initial;
}
.accreditation-center {
    border: 1px solid #e5e7eb;
    overflow: hidden;
    line-height: 0;
}
.accreditation-center img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Full-width group video banner */
.about-video-banner {
    position: relative;
    width: 100%;
    line-height: 0;
    overflow: hidden;
}
.about-video-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* OBE Section */
.obe-section {
    background: #fff;
    padding: 3rem 0;
    text-align: center;
}
.obe-section .content-description {
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

/* SEAS Society */
.society-section {
    background: #fff;
    padding: 3rem 0 4rem;
    text-align: center;
}
.society-section .content-description {
    max-width: 900px;
    margin: 0 auto 2rem;
}
.society-showcase {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 50px;
}
.society-slide {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: stretch;
}
.society-logo-box {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-radius: 4px;
}
.society-logo-box img {
    width: 100%;
    height: auto;
    max-width: 220px;
    display: block;
}
.society-photo-box {
    line-height: 0;
    border-radius: 4px;
    overflow: hidden;
}
.society-photo-box img {
    width: 100%;
    height: auto;
    display: block;
}
.society-nav,
.linkages-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: rgba(107, 114, 128, 0.9);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.society-nav.prev { left: 0; }
.society-nav.next { right: 0; }
.linkages-nav.prev { left: 0; }
.linkages-nav.next { right: 0; }
.society-nav:hover, .linkages-nav:hover { background: #4b5563; }

/* Industrial Linkages */
.linkages-section {
    background: #fff;
    padding: 3rem 0;
    text-align: center;
}
.linkages-section .content-description {
    max-width: 900px;
    margin: 0 auto 2rem;
}
.linkages-showcase {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 2.5rem;
    padding: 0 50px;
}
.linkages-slide {
    width: 100%;
    line-height: 0;
    border-radius: 4px;
    overflow: hidden;
}
.linkages-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.partner-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}
.partner-logo {
    border: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    min-height: 90px;
}
.partner-logo img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: initial !important;
    filter: none !important;
    display: block;
}

/* Co-Work Pro */
.cowork-section {
    background: #fff;
    padding: 3rem 0 4rem;
    text-align: center;
}
.cowork-section .content-description {
    max-width: 900px;
    margin: 0 auto 2rem;
}
.cowork-gallery {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cowork-hero img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
.cowork-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.cowork-row img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
    .vm-grid,
    .dean-about-grid { grid-template-columns: 1fr; }
    .accreditation-layout {
        grid-template-columns: 1fr 1fr;
    }
    .accreditation-center { grid-column: 1 / -1; max-height: 320px; }
    .partner-logos { grid-template-columns: repeat(3, 1fr); }
    .cowork-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .vm-card { padding: 1.5rem; min-height: auto; }
    .dean-about-text { padding: 1.5rem; }
    .accreditation-layout { grid-template-columns: 1fr; }
    .accreditation-col { flex-direction: row; }
    .partner-logos { grid-template-columns: repeat(2, 1fr); }
    .cowork-row { grid-template-columns: 1fr; }
    .society-slide { grid-template-columns: 1fr; gap: 14px; }
    .society-logo-box { padding: 20px; }
}


/* ================================================================== */
/* ===== Career Counselling page ==================================== */
/* ================================================================== */

.cc-hero {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}
.cc-hero-image {
    display: block;
    width: 100%;
    height: auto;
}

.cc-partners-section {
    background: #fff;
    padding: 3rem 0 3.5rem;
    text-align: center;
}
.cc-partners-section .page-intro-text {
    max-width: 900px;
    margin: 0 auto 2.5rem;
}

.cc-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}
.cc-card {
    background: #1e2a6f;
    color: #ffffff;
    padding: 1.75rem 1.5rem;
    border-radius: 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cc-card-title {
    color: #2EC4F0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}
.cc-card-body {
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.7;
    margin: 0;
    text-align: center;
}

.cc-banner {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}
.cc-banner img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .cc-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .cc-cards { grid-template-columns: 1fr; }
}


/* ================================================================== */
/* ===== Holistic Development page ================================== */
/* ================================================================== */

.hd-hero {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}
.hd-hero-image {
    display: block;
    width: 100%;
    height: auto;
}

.hd-infograph-section {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}
.hd-infograph-wrap {
    width: 100%;
    line-height: 0;
}
.hd-infograph-image {
    width: 100%;
    height: auto;
    display: block;
}

.hd-pillar {
    background: #fff;
    padding: 2.5rem 0 2rem;
    text-align: center;
}
.hd-pillar-subtitle {
    color: #333333;
    font-size: 1rem;
    font-weight: 500;
    margin: -0.5rem 0 1.25rem;
}
.hd-pillar .page-intro-text {
    margin-bottom: 1.75rem;
}

.hd-gallery {
    display: grid;
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto;
}
.hd-gallery-2 { grid-template-columns: repeat(2, 1fr); }
.hd-gallery-3 { grid-template-columns: repeat(3, 1fr); }
.hd-gallery-4 { grid-template-columns: repeat(4, 1fr); }
.hd-gallery-1-2 { grid-template-columns: 1fr 1fr; }
.hd-gallery img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}
.hd-gallery-2 img { height: 300px; }

.hd-col-left img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}
.hd-col-right {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
}
.hd-col-right img {
    width: 100%;
    height: 183px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.hd-em-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.hd-em-row-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.hd-em-row-top img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}
.hd-em-row-bottom img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.hd-banner {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}
.hd-banner img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .hd-gallery-3 { grid-template-columns: repeat(2, 1fr); }
    .hd-gallery-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .hd-gallery-2,
    .hd-gallery-3,
    .hd-gallery-4,
    .hd-gallery-1-2 { grid-template-columns: 1fr; }
    .hd-em-row-top { grid-template-columns: 1fr; }
    .hd-col-left img { min-height: 220px; }
}


/* ================================================================== */
/* ===== OBE Framework page ========================================= */
/* ================================================================== */

.obe-hero {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}
.obe-hero-image {
    display: block;
    width: 100%;
    height: auto;
}

.obe-phase {
    background: #fff;
    padding: 2rem 0 2.5rem;
}
.obe-phase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}
.obe-phase-text {
    background: #1e2a6f;
    color: #fff;
    padding: 1.5rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.obe-phase-text p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin: 0 0 0.9rem;
    text-align: justify;
}
.obe-phase-text p:last-child { margin-bottom: 0; }
.obe-phase-image {
    line-height: 0;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.obe-phase-image img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block;
}

.obe-peo-section,
.obe-plo-section {
    background: #fff;
    padding: 2.5rem 0 3rem;
    text-align: center;
}
.obe-peo-section .page-intro-text,
.obe-plo-section .page-intro-text {
    max-width: 900px;
    margin: 0 auto 2rem;
}

.obe-peo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.obe-peo-card,
.obe-plo-card {
    background: #1e2a6f;
    color: #ffffff;
    padding: 1.5rem 1.25rem;
    border-radius: 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.obe-peo-icon,
.obe-plo-icon {
    width: 66px;
    height: 66px;
    margin: 0;
}
.obe-peo-title,
.obe-plo-title {
    color: #2EC4F0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(46,196,240,0.35);
    width: 100%;
}
.obe-peo-body,
.obe-plo-body {
    color: #ffffff;
    font-size: 0.82rem;
    line-height: 1.65;
    margin: 0;
    text-align: center;
}

.obe-plo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.obe-mapping-section {
    background: #fff;
    padding: 3rem 0 3rem;
    text-align: center;
}
.obe-mapping-section .page-intro-text {
    max-width: 700px;
    margin: 0 auto 2rem;
}
.obe-mapping-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}
.obe-mapping-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.obe-mapping-table th,
.obe-mapping-table td {
    border: 1px solid #d1d5db;
    padding: 8px 12px;
}
.obe-mapping-table th {
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    text-align: left;
}
.obe-mapping-table td:last-child {
    text-align: center;
    color: #16a34a;
    font-weight: 700;
    width: 70px;
}

@media (max-width: 1024px) {
    .obe-phase-grid { grid-template-columns: 1fr; }
    .obe-plo-grid { grid-template-columns: repeat(3, 1fr); }
    .obe-mapping-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    /* For phases where the HTML has text-first (OBE Design, Analysis & Feedback),
       flip the order on mobile so the image appears right under the title. */
    .obe-phase:not(.obe-phase-alt) .obe-phase-image { order: 1; }
    .obe-phase:not(.obe-phase-alt) .obe-phase-text  { order: 2; }
}
@media (max-width: 640px) {
    .obe-peo-grid,
    .obe-plo-grid { grid-template-columns: 1fr; }
}
