﻿/* ==========================================================================
   GLOBAL LAYOUT & SECTIONS
   ========================================================================== */
section { padding: 3.5rem 0; }
.intro-section, .supervisors-section { margin: 1.5rem 0; padding: 1rem 0; }
.intro-section .container { max-width: 1200px; margin-left: auto; margin-right: auto; }
.intro-section p { color: var(--muted); font-size: 1.05rem; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero { position: relative; background-size: cover; background-position: center; color: var(--white); padding: 6rem 0 5rem; overflow: hidden; }
.hero-home { background-image: url("/img/hero-home.jpg"); }
.hero-secondary { background-image: url("/img/hero-secondary.jpg"); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,38,77,0.88), rgba(0,38,77,0.70), rgba(0,0,0,0.45)); z-index: 2; pointer-events: none; }
.hero-content { position: relative; z-index: 4; }
.hero h1 { font-size: 2.6rem; margin-bottom: 0.75rem; color: var(--white); text-shadow: 0 6px 18px rgba(0,0,0,0.45); }
.hero p { font-size: 1.1rem; max-width: 40rem; }

/* ==========================================================================
   CAROUSEL
   ========================================================================== */
.hero-carousel, .page-carousel { position: relative; width: 100%; max-width: 1100px; margin: 0 auto; height: 500px; max-height: 500px; overflow: hidden; background: #ffffff; z-index: 2; pointer-events: auto; box-sizing: border-box; }
.hc-track { position: absolute; inset: 0; display: flex; transition: transform .6s ease; will-change: transform; }
.hc-slide { min-width: 100%; height: 100%; flex: 0 0 100%; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hc-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; background-color: #ffffff; }

.hc-prev, .hc-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); color: var(--white); border: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(4px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); z-index: 3; }
.hc-prev { left: 1rem; }
.hc-next { right: 1rem; }
.hc-prev:focus, .hc-next:focus { outline: 3px solid rgba(0,58,112,0.18); }

.hc-indicators { position: absolute; left: 50%; transform: translateX(-50%); bottom: 1.25rem; display: flex; gap: .5rem; z-index: 3; }
.hc-indicators button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,0.45); cursor: pointer; }
.hc-indicators button[aria-selected="true"] { background: var(--primary); box-shadow: 0 2px 6px rgba(0,58,112,0.18); }

/* ==========================================================================
   PARTNER LOGOS
   ========================================================================== */
.logo-row { display: flex; justify-content: center; align-items: center; flex-wrap: nowrap; gap: 0; }
.logo-cell { display: flex; justify-content: center; align-items: center; padding: calc(1rem * var(--scale, 1)); }
.logo-cell img { width: calc(120px * var(--scale, 1)); height: auto; object-fit: contain; transition: transform 0.2s ease; }
.logo-cell:hover img { transform: scale(1.05); }

/* ==========================================================================
   WORK PACKAGE GRIDS (Layout Context)
   ========================================================================== */
.cards-section { background: var(--bg-light); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.cards-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.highlight-section { background: var(--primary); color: var(--white); }
.highlight-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }

.wp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; align-items: stretch; grid-auto-rows: 1fr; }
.wp-grid .wp-card { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.wp-card .card-link { margin-top: auto; }

/* ==========================================================================
   NEWS 
   ========================================================================== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.news-card { background: var(--white); border-radius: var(--radius); box-shadow: 0 8px 22px rgba(0,0,0,0.06); overflow: visible; position: relative; }
.news-card-inner { display: flex; gap: 1rem; padding: 1rem; align-items: flex-start; }
.news-media { flex: 0 0 120px; }
.news-thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; display: block; }
.news-body { flex: 1; min-width: 0; }
.news-title { margin: 0 0 0.25rem; font-size: 1.05rem; color: var(--primary-dark); }
.news-meta { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.9rem; }
.news-excerpt { margin: 0 0 0.75rem; color: var(--muted); }
.news-detail { display: none; padding: 1rem; border-top: 1px solid #eef2f6; background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.98)); }
.news-detail.open { display: block; }
.news-detail-inner { display: grid; grid-template-columns: 1fr 320px; gap: 1rem; align-items: start; }
.news-detail-photo { width: 100%; height: 220px; object-fit: cover; border-radius: 6px; box-shadow: 0 6px 14px rgba(0,0,0,0.04); }
.news-detail-footer { margin-top: 0.75rem; display: flex; justify-content: flex