/* ============================================
   DESIGN SYSTEM: Editorial Academic
   Tone: Warm scholarly elegance with bold geometry
   ============================================ */

:root {
    --ink: #0d1b2a;
    --ink-80: #1b2d45;
    --ink-60: #34495e;
    --ink-40: #7f8c97;
    --ink-20: #b8c4ce;
    --ink-10: #dde3e8;
    --ink-05: #f0f3f5;
    --parchment: #faf8f4;
    --cream: #f5f0e8;
    --ivory: #fffdf7;
    --teal-deep: #0a3d5c;
    --teal: #12687a;
    --teal-mid: #1a8fa3;
    --teal-light: #3cc0d0;
    --teal-pale: #e0f4f7;
    --amber: #d4830e;
    --amber-light: #f2a93b;
    --amber-pale: #fef3e0;
    --rust: #c05621;
    --shadow-sm: 0 1px 3px rgba(13,27,42,0.06);
    --shadow-md: 0 4px 16px rgba(13,27,42,0.08);
    --shadow-lg: 0 12px 40px rgba(13,27,42,0.12);
    --shadow-xl: 0 20px 60px rgba(13,27,42,0.16);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
}

/* === TYPOGRAPHY === */
body {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    color: var(--ink-60);
    background: var(--parchment);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--ink);
    letter-spacing: -0.02em;
}

p {
    text-align: justify !important;
    text-justify: inter-word !important;
    line-height: 1.85;
    color: var(--ink-60);
    font-size: 1.05rem;
}

/* === HERO SECTION === */
.hero-editorial {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: var(--teal-deep);
    overflow: hidden;
}

.hero-editorial::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, var(--teal-deep) 0%, transparent 60%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 80px,
            rgba(255,255,255,0.015) 80px,
            rgba(255,255,255,0.015) 81px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 80px,
            rgba(255,255,255,0.015) 80px,
            rgba(255,255,255,0.015) 81px
        );
    z-index: 1;
}

.hero-editorial::after {
    content: '';
    position: absolute;
    right: -10%;
    top: -20%;
    width: 70%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(60,192,208,0.12) 0%, transparent 70%);
    z-index: 1;
}

.hero-editorial .container { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 8px 22px;
    border-radius: 50px;
    color: var(--teal-light);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 28px;
    animation: fadeSlideDown 0.8s ease-out;
}

.hero-badge i { font-size: 0.9rem; }

.hero-heading {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 24px;
    max-width: 680px;
    animation: fadeSlideDown 0.8s ease-out 0.15s both;
}

.hero-heading em {
    font-style: italic;
    color: var(--amber-light);
}

.hero-desc {
    color: rgba(255,255,255,0.72);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 36px;
    text-align: left !important;
    animation: fadeSlideDown 0.8s ease-out 0.3s both;
}

.hero-cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeSlideDown 0.8s ease-out 0.45s both;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.35s ease;
    text-decoration: none;
}

.btn-hero-primary {
    background: var(--amber);
    color: #fff;
    border: 2px solid var(--amber);
}

.btn-hero-primary:hover {
    background: var(--rust);
    border-color: var(--rust);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212,131,14,0.35);
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-hero-outline:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}

.hero-image-col {
    position: relative;
    animation: fadeSlideUp 1s ease-out 0.3s both;
}

.hero-image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid rgba(255,255,255,0.08);
}

.hero-image-frame img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
}

.hero-image-accent {
    position: absolute;
    bottom: -16px;
    left: -16px;
    width: 120px;
    height: 120px;
    border: 4px solid var(--amber);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.5;
}

/* === SECTION SCAFFOLDING === */
.sec-pad { padding: 100px 0; }
.sec-pad-sm { padding: 80px 0; }

.sec-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 14px;
}

.sec-label::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--amber);
}

.sec-heading {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 18px;
    line-height: 1.2;
}

.sec-desc {
    color: var(--ink-40);
    font-size: 1.1rem;
    max-width: 560px;
}

.bg-ivory { background: var(--ivory); }
.bg-cream { background: var(--cream); }
.bg-parchment { background: var(--parchment); }

/* === NEWS CARDS (Magazine Grid) === */
.news-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--ink-10);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal-light);
}

.news-card__img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.news-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.news-card:hover .news-card__img img {
    transform: scale(1.08);
}

.news-card__tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--amber);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 4px;
    z-index: 2;
}

.news-card__body {
    padding: 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card__date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--ink-40);
    font-weight: 500;
    margin-bottom: 12px;
}

.news-card__date i { color: var(--teal); font-size: 0.85rem; }

.news-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.55;
    margin-bottom: 0;
    flex: 1;
}

.news-card__title a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__title a:hover { color: var(--teal); }

.news-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--ink-10);
    color: var(--teal);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s;
}

.news-card__link:hover { color: var(--teal-deep); gap: 14px; }
.news-card__link i { transition: transform 0.3s; }
.news-card__link:hover i { transform: translateX(4px); }

/* === VIDEO + EVENTS SPLIT === */
.video-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
}

.video-frame > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,61,92,0.85) 0%, rgba(10,61,92,0.4) 50%, rgba(10,61,92,0.2) 100%);
    z-index: 1;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.video-play-btn img {
    width: 80px;
    height: 80px;
    filter: brightness(1.2) drop-shadow(0 6px 20px rgba(0,0,0,0.3));
    transition: transform 0.3s;
}

.video-play-btn:hover img { transform: scale(1.15); }

.video-caption {
    position: absolute;
    bottom: 28px;
    left: 28px;
    right: 28px;
    z-index: 3;
    color: #fff;
}

.video-caption h4 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0;
}

/* === EVENT LIST ITEMS === */
.evt-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid var(--ink-10);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: all 0.35s ease;
    position: relative;
}

.evt-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal-mid);
}

.evt-card__date {
    flex-shrink: 0;
    width: 72px;
    height: 80px;
    background: linear-gradient(135deg, var(--teal-deep), var(--teal));
    border-radius: var(--radius-sm);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(10,61,92,0.25);
}

.evt-card__day {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    font-family: 'Playfair Display', serif;
}

.evt-card__month {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
    opacity: 0.85;
}

.evt-card__body { flex: 1; min-width: 0; }

.evt-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.45;
}

.evt-card__title a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.3s;
}

.evt-card__title a:hover { color: var(--teal); }

.evt-card__meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--ink-40);
}

.evt-card__meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.evt-card__meta i { color: var(--teal-mid); }

/* === ANNOUNCEMENT CARDS === */
.ann-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--ink-10);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ann-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.ann-card__header {
    height: 160px;
    background: linear-gradient(135deg, var(--teal-pale) 0%, var(--cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ann-card__header::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(10,61,92,0.04);
    top: -60px;
    right: -40px;
}

.ann-card__icon {
    font-size: 3rem;
    color: var(--teal);
    opacity: 0.25;
}

.ann-card__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--teal);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 4px;
}

.ann-card__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ann-card__date {
    font-size: 0.82rem;
    color: var(--ink-40);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ann-card__date i { color: var(--teal-mid); }

.ann-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.55;
    flex: 1;
}

.ann-card__title a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.3s;
}

.ann-card__title a:hover { color: var(--teal); }

.ann-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--ink-10);
    color: var(--teal);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s;
}

.ann-card__link:hover { color: var(--teal-deep); gap: 14px; }

/* === ABOUT SECTION === */
.about-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-img-wrap:hover img { transform: scale(1.04); }

.about-content-wrap {
    background: #fff;
    padding: 44px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
}

.about-content-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--amber), var(--teal));
    border-radius: 5px 0 0 5px;
}

/* === KEYFRAMES === */
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .hero-editorial { min-height: auto; padding: 80px 0 60px; }
    .hero-heading { font-size: 2rem; }
    .hero-image-frame img { height: 300px; }
    .hero-image-col { margin-top: 40px; }
    .sec-pad { padding: 70px 0; }
    .about-content-wrap { padding: 28px 20px; margin-top: 30px; }
    .evt-card { flex-direction: column; gap: 16px; }
    .evt-card__date { width: 100%; height: auto; flex-direction: row; gap: 8px; padding: 10px 16px; }
}

@media (max-width: 767px) {
    .hero-heading { font-size: 1.7rem; }
    .sec-heading { font-size: 1.5rem; }
    .video-frame { min-height: 280px; }
}

/* Smooth scroll */
html { scroll-behavior: smooth; }
a { text-decoration: none; }

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--teal-deep);
    color: #fff;
    padding: 10px 20px;
    z-index: 9999;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 600;
}

.skip-link:focus { top: 0; color: #fff; }
