/*
Theme Name: ASCE CUET
Theme URI: https://ascecuet.info
Author: ASCE Student Chapter, CUET
Author URI: https://ascecuet.info
Description: Custom, security-hardened theme for the ASCE Student Chapter at CUET. Recreates the navy/gold chapter design with events, news, committee, and gallery content types. Designed to run with minimal plugins.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asce-cuet
*/

:root {
  --navy: #071f3f;
  --navy-2: #0b2a50;
  --blue: #0b73ad;
  --sky: #4e9ec7;
  --gold: #d7b45a;
  --gold-dark: #b99035;
  --ivory: #f7f6f0;
  --paper: #fffefb;
  --ink: #102238;
  --muted: #617083;
  --line: #dfe4e8;
  --shadow: 0 18px 55px rgba(7, 31, 63, .12);
  --radius: 22px;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; }
body, button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Manrope", sans-serif; letter-spacing: -.035em; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-wrap { min-height: 100vh; overflow: clip; }
.site-wrap main { min-height: 50vh; }
.section { padding: 112px 0; }
.section--ivory { background: var(--ivory); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { width: 28px; height: 2px; background: currentColor; content: ""; }
.eyebrow--light { color: #92c4dd; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 10px; padding: 0 25px; border: 1px solid transparent; border-radius: 10px; font-weight: 750; transition: .25s ease; cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button--gold { color: var(--navy); background: var(--gold); box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.button--gold:hover { background: #e5c66e; }
.button--outline { color: var(--navy); border-color: #aeb9c5; background: transparent; }
.button--outline:hover { color: white; background: var(--navy); border-color: var(--navy); }
.button--light { color: var(--navy); background: white; }
.button--navy { color: white; background: var(--navy); }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-weight: 750; }
.text-link svg, .show-more svg { transition: transform .2s ease; }
.text-link:hover svg, .show-more:hover svg { transform: translateX(4px); }
.text-link--light { color: white; }
.sr-only, .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; left: -9999px; z-index: 999; padding: 12px 20px; background: var(--navy); color: #fff; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; top: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; z-index: 50; top: 0; padding: 0 34px; border-bottom: 1px solid #e2e6e8; background: white; }
.header-shell { display: flex; width: min(1340px, 100%); min-height: 94px; align-items: center; gap: 28px; margin: 0 auto; padding: 0; background: white; }
.brand { display: inline-grid; flex: 0 0 auto; grid-template-columns: auto auto; align-items: center; gap: 8px; min-width: 142px; color: #0677b5; }
.brand img { width: 135px; max-height: 58px; object-fit: contain; object-position: left center; }
.brand__asce { font-family: "Manrope", sans-serif; font-size: 1.42rem; font-weight: 900; letter-spacing: -.08em; text-shadow: 1px 1px 0 #a8cfdf; }
.brand__copy { padding-left: 7px; border-left: 1px solid #8eb8cd; font-size: .39rem; font-weight: 700; line-height: 1.23; }
.brand--compact { min-width: 0; }
.desktop-nav { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: clamp(13px, 2vw, 29px); }
.desktop-nav a { position: relative; padding: 32px 0; color: #314154; font-size: .9rem; font-weight: 650; }
.desktop-nav a::after { position: absolute; right: 0; bottom: 22px; left: 0; height: 2px; transform: scaleX(0); background: var(--blue); content: ""; transition: transform .2s; }
.desktop-nav a:hover, .desktop-nav a.active, .desktop-nav li.current-menu-item > a { color: var(--navy); }
.desktop-nav a.active::after, .desktop-nav li.current-menu-item > a::after { transform: scaleX(1); }
.desktop-nav ul { display: flex; align-items: center; gap: clamp(13px, 2vw, 29px); margin: 0; padding: 0; list-style: none; }
.header-join { display: inline-flex; align-items: center; gap: 5px; padding: 12px 18px; border-radius: 999px; color: white; background: var(--navy); font-size: .88rem; font-weight: 700; }
.menu-toggle { display: none; width: 50px; height: 50px; align-items: center; justify-content: center; border: 0; background: none; cursor: pointer; }
.menu-toggle svg { width: 34px; height: 34px; stroke-width: 2.5; }
.mobile-menu { display: none; }

/* Homepage hero */
.home-hero { position: relative; display: grid; min-height: min(730px, calc(100vh - 132px)); place-items: center; isolation: isolate; overflow: hidden; color: white; background: var(--navy); }
.hero-slides, .hero-slide, .hero-shade { position: absolute; inset: 0; }
.hero-slides { z-index: -3; }
.hero-slide { transform: scale(1.04); opacity: 0; background-position: center; background-size: cover; filter: blur(1.7px); transition: opacity 1.3s ease, transform 7s ease; }
.hero-slide.is-active { transform: scale(1.09); opacity: 1; }
.hero-shade { z-index: -2; background: linear-gradient(90deg, rgba(4, 20, 39, .78), rgba(7, 31, 63, .44) 54%, rgba(4, 20, 39, .67)), linear-gradient(0deg, rgba(6, 25, 48, .68), transparent 55%); }
.hero-content { padding: 80px 0 110px; text-align: center; }
.hero-kicker { display: block; margin-bottom: 22px; font-size: .8rem; font-weight: 750; letter-spacing: .2em; text-transform: uppercase; }
.hero-content h1 { max-width: 900px; margin: 0 auto 25px; color: white; font-size: clamp(3.4rem, 7vw, 6.5rem); font-weight: 800; line-height: .98; text-shadow: 0 4px 20px rgba(0,0,0,.24); }
.hero-content p { max-width: 710px; margin: 0 auto 38px; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.65; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero-content .button { min-width: 260px; min-height: 66px; font-size: 1.08rem; }
.hero-dots { position: absolute; z-index: 3; right: 48px; bottom: 44px; display: flex; align-items: center; gap: 9px; }
.hero-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; opacity: .55; background: white; transition: .25s; cursor: pointer; }
.hero-dots button.is-active { width: 34px; opacity: 1; background: var(--gold); }
.hero-scroll { position: absolute; bottom: 35px; left: 50%; display: grid; width: 42px; height: 42px; transform: translateX(-50%); place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; }
.hero-scroll svg { animation: bob 1.8s infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* Homepage sections */
.about-intro { position: relative; min-height: 665px; display: grid; place-items: center; overflow: hidden; background: var(--paper); }
.about-intro__inner { position: relative; z-index: 1; max-width: 1000px; padding: 95px 0; text-align: center; }
.about-intro h2 { margin-bottom: 22px; color: var(--navy); font-size: clamp(2.7rem, 5vw, 4.6rem); line-height: 1.08; }
.about-intro p { max-width: 890px; margin: 0 auto 45px; color: #203247; font-size: clamp(1.25rem, 2.25vw, 1.75rem); line-height: 1.72; }
.about-intro__mark { position: absolute; bottom: -95px; left: 50%; transform: translateX(-50%); color: rgba(7, 31, 63, .025); font-family: "Manrope", sans-serif; font-size: clamp(11rem, 30vw, 28rem); font-weight: 900; letter-spacing: -.1em; pointer-events: none; }
.show-more { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid #79a9c3; color: #277da9; font-size: 1.1rem; font-weight: 800; }
.stats-band { padding: 44px 0; color: white; background: var(--navy); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid div { display: flex; flex-direction: column; align-items: center; padding: 13px 30px; border-right: 1px solid rgba(255,255,255,.18); text-align: center; }
.stats-grid div:last-child { border: 0; }
.stats-grid strong { color: var(--gold); font-family: "Manrope"; font-size: 2.3rem; }
.stats-grid span { color: #c9d3de; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; margin-bottom: 50px; }
.section-heading-row--top { align-items: flex-start; }
.section-title { max-width: 690px; }
.section-title--center { margin-inline: auto; text-align: center; }
.section-title h2 { margin-bottom: 16px; color: var(--navy); font-size: clamp(2.35rem, 4.3vw, 4rem); line-height: 1.07; }
.section-title p { margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.event-card, .news-card { overflow: hidden; border: 1px solid #e1e4e6; border-radius: var(--radius); background: white; box-shadow: 0 8px 30px rgba(7,31,63,.07); transition: .3s ease; }
.event-card:hover, .news-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.event-card__image { position: relative; display: block; height: 245px; background-position: center; background-size: cover; overflow: hidden; }
.event-card__image::after, .news-card__image::after { position: absolute; inset: 0; opacity: 0; background: rgba(7,31,63,.16); content: ""; transition: opacity .25s; }
.event-card:hover .event-card__image::after, .news-card:hover .news-card__image::after { opacity: 1; }
.date-tile { position: absolute; z-index: 2; top: 18px; left: 18px; display: grid; width: 62px; height: 68px; place-items: center; align-content: center; border-radius: 10px; color: var(--navy); background: white; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.date-tile strong { font-family: "Manrope"; font-size: 1.55rem; line-height: 1; }
.date-tile small { color: var(--blue); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.event-card__body, .news-card__body { padding: 28px; }
.card-kicker { display: flex; align-items: center; gap: 7px; margin-bottom: 13px; color: var(--blue); font-size: .76rem; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.event-card h3, .news-card h3 { margin-bottom: 12px; color: var(--navy); font-size: 1.35rem; line-height: 1.25; }
.event-card h3 a:hover, .news-card h3 a:hover { color: var(--blue); }
.event-card p, .news-card p { color: var(--muted); line-height: 1.65; }
.card-location { display: flex; min-height: 42px; align-items: flex-start; gap: 7px; margin: 17px 0; color: #384a5c; font-size: .85rem; }
.card-location svg { flex: 0 0 auto; margin-top: 3px; }
.content-placeholder { padding: 60px; border: 1px dashed #b8c1c9; border-radius: 20px; color: var(--muted); text-align: center; }
.mission-section { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 700px; color: white; background: var(--navy); }
.mission-photo { min-height: 620px; background: linear-gradient(rgba(7,31,63,.08), rgba(7,31,63,.08)), url("https://images.unsplash.com/photo-1531482615713-2afd69097998?auto=format&fit=crop&w=1200&q=85") center/cover; }
.mission-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 90px clamp(45px, 7vw, 110px); }
.mission-copy h2 { margin-bottom: 24px; font-size: clamp(2.5rem, 4.8vw, 4.5rem); line-height: 1.05; }
.mission-copy > p { max-width: 620px; color: #cbd6e1; font-size: 1.12rem; line-height: 1.78; }
.mission-points { display: grid; gap: 20px; width: 100%; margin: 25px 0 36px; }
.mission-points > div { display: flex; gap: 18px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.16); }
.mission-points svg { width: 31px; height: 31px; color: var(--gold); flex: 0 0 auto; }
.mission-points span { color: #cbd6e1; }
.mission-points strong { display: block; margin-bottom: 3px; color: white; font-size: 1.05rem; }
.cards-grid--news { grid-template-columns: repeat(3, 1fr); }
.news-card__image { position: relative; display: block; height: 235px; background-position: center; background-size: cover; }
.news-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; color: var(--muted); font-size: .73rem; text-transform: uppercase; }
.news-meta span { color: var(--blue); font-weight: 800; letter-spacing: .07em; }
.news-page-grid { margin-top: 55px; }
.gallery-strip { display: grid; grid-template-columns: 1fr 2fr; min-height: 540px; color: white; background: var(--navy); }
.gallery-strip__heading { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 60px clamp(35px, 7vw, 100px); }
.gallery-strip__heading h2 { font-size: clamp(2.5rem, 4vw, 4.2rem); line-height: 1.05; }
.gallery-strip__grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 5px; }
.gallery-strip__grid a { min-height: 230px; background-position: center; background-size: cover; filter: saturate(.9); }
.gallery-strip__grid a:first-child { grid-row: span 2; }
.gallery-strip__grid a:nth-child(n+4) { display: none; }

/* Interior pages */
.page-hero { position: relative; min-height: 440px; display: grid; align-items: center; overflow: hidden; isolation: isolate; color: white; background: var(--navy); }
.page-hero__pattern { position: absolute; z-index: -1; inset: 0; opacity: .52; background-color: #082444; background-image: linear-gradient(135deg, rgba(49,108,151,.3) 25%, transparent 25%), linear-gradient(315deg, rgba(0,0,0,.18) 25%, transparent 25%); background-position: 0 0, 55px 55px; background-size: 110px 110px; }
.page-hero__pattern::after { position: absolute; inset: 0; background: radial-gradient(circle at 75% 30%, rgba(37,115,165,.28), transparent 38%), linear-gradient(90deg, rgba(7,31,63,.3), rgba(7,31,63,.75)); content: ""; }
.page-hero__content { padding: 70px 0; }
.page-hero h1 { max-width: 970px; margin-bottom: 22px; font-size: clamp(3rem, 6.5vw, 6rem); line-height: 1.02; text-transform: uppercase; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1.02rem; }
.breadcrumbs a { border-bottom: 1px solid white; }
.filter-tabs { display: flex; padding: 5px; border-radius: 999px; background: #e4e6e3; }
.filter-tabs a, .filter-tabs button { min-width: 110px; padding: 12px 18px; border: 0; border-radius: 999px; background: transparent; font-size: .86rem; font-weight: 700; text-align: center; cursor: pointer; }
.filter-tabs a.is-active, .filter-tabs button.is-active { color: white; background: var(--navy); box-shadow: 0 4px 12px rgba(7,31,63,.2); }
.event-detail__grid { display: grid; grid-template-columns: 340px 1fr; align-items: start; gap: 75px; }
.event-facts { display: grid; gap: 17px; position: sticky; top: 20px; }
.event-facts > div { display: flex; gap: 16px; padding: 25px; border: 1px solid #e8e9e5; border-radius: 15px; background: white; box-shadow: 0 8px 20px rgba(7,31,63,.06); }
.event-facts svg { flex: 0 0 auto; color: var(--blue); }
.event-facts span { color: #37495c; line-height: 1.55; }
.event-facts strong { display: block; margin-bottom: 6px; color: var(--navy); font-family: "Manrope"; font-size: 1rem; }
.event-article { min-width: 0; }
.event-cover { width: 100%; max-height: 500px; margin-bottom: 50px; border-radius: 20px; object-fit: cover; box-shadow: var(--shadow); }
.event-article h2 { color: var(--navy); font-size: clamp(2.4rem, 4.5vw, 4.2rem); line-height: 1.08; }
.event-article p, .article-page p { color: #3d4b5c; font-size: 1.08rem; line-height: 1.9; }
.event-article .lead, .article-page .lead { color: var(--navy); font-size: 1.3rem; font-weight: 500; }
.event-article .button { margin-top: 20px; }
.article-page__inner { width: min(850px, calc(100% - 48px)); margin: auto; }
.article-page__inner > img { width: 100%; max-height: 560px; margin: 0 0 45px; border-radius: 20px; object-fit: cover; box-shadow: var(--shadow); }
.article-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; color: var(--muted); }
.article-meta > span { padding: 8px 13px; border-radius: 999px; color: var(--blue); background: #eaf4f9; font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.article-meta time { display: flex; align-items: center; gap: 7px; }
/* Content typography (post/page body from the WordPress editor) */
.entry-content > * { margin-bottom: 1.3em; }
.entry-content h2 { margin: 1.4em 0 .5em; color: var(--navy); font-size: 1.9rem; }
.entry-content h3 { margin: 1.3em 0 .5em; color: var(--navy); font-size: 1.4rem; }
.entry-content a { color: var(--blue); text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; color: #3d4b5c; line-height: 1.8; }
.entry-content blockquote { margin: 1.5em 0; padding: 6px 22px; border-left: 3px solid var(--gold); color: var(--navy); font-size: 1.15rem; }
.entry-content img { border-radius: 14px; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { margin-top: 8px; color: var(--muted); font-size: .85rem; text-align: center; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.wp-caption { max-width: 100%; }
.session-select { min-width: 150px; padding: 13px 40px 13px 17px; border: 1px solid #b9c2ca; border-radius: 10px; color: var(--navy); background: white; font-weight: 700; }
.committee-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 23px; }
.member-card { overflow: hidden; border: 1px solid #e0e4e6; border-radius: 18px; background: white; box-shadow: 0 8px 25px rgba(7,31,63,.06); }
.member-card__photo { position: relative; display: grid; height: 320px; place-items: center; overflow: hidden; color: white; background: linear-gradient(145deg, #0c365f, #0a75a8); }
.member-card__photo > img { width: 100%; height: 100%; object-fit: cover; }
.member-card__photo > span { font-family: "Manrope"; font-size: 4rem; font-weight: 800; opacity: .8; }
.member-card__links { position: absolute; right: 15px; bottom: 15px; display: flex; gap: 7px; }
.member-card__links a { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: var(--navy); background: white; }
.member-card__links svg { width: 17px; }
.member-card__body { padding: 23px; }
.member-card__body > span { color: var(--blue); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.member-card__body h3 { margin: 8px 0; color: var(--navy); font-size: 1.3rem; }
.member-card__body p { margin-bottom: 12px; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.member-card__body small { color: #84909c; }
.gallery-grid { display: grid; grid-auto-rows: 260px; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 50px; }
.gallery-item { position: relative; padding: 0; overflow: hidden; border: 0; border-radius: 15px; background: var(--navy); cursor: zoom-in; }
.gallery-item--1, .gallery-item--5 { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item > span { position: absolute; right: 0; bottom: 0; left: 0; padding: 55px 20px 18px; color: white; background: linear-gradient(transparent, rgba(4,19,38,.8)); text-align: left; }
.gallery-item strong, .gallery-item small { display: block; }
.gallery-item strong { font-family: "Manrope"; }
.gallery-item small { margin-top: 3px; opacity: .75; }
.lightbox { position: fixed; z-index: 100; inset: 0; display: none; padding: 50px; place-items: center; background: rgba(2,12,23,.93); }
.lightbox.is-open { display: grid; }
.lightbox > button { position: absolute; top: 25px; right: 25px; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: white; background: transparent; cursor: pointer; }
.lightbox__content { max-width: 1100px; color: white; }
.lightbox__content img { max-height: 75vh; border-radius: 12px; }
.lightbox__content > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 20px; padding-top: 18px; }
.lightbox__content h3, .lightbox__content p { margin: 0; }
.lightbox__content span { display: flex; align-items: center; gap: 6px; margin-left: auto; opacity: .75; }
.about-page__grid { display: grid; grid-template-columns: 1.05fr .75fr; align-items: center; gap: 90px; }
.about-page__copy h2, .contact-copy h2 { color: var(--navy); font-size: clamp(2.5rem, 4.8vw, 4.4rem); line-height: 1.08; }
.about-page__copy p, .contact-copy > p { color: var(--muted); font-size: 1.07rem; line-height: 1.85; }
.about-page__copy .lead { color: var(--navy); font-size: 1.28rem; }
.about-page__visual { display: grid; min-height: 560px; place-items: center; border-radius: 250px 250px 25px 25px; color: white; background: linear-gradient(145deg, rgba(7,31,63,.3), rgba(7,31,63,.8)), url("https://images.unsplash.com/photo-1487958449943-2429e8be8625?auto=format&fit=crop&w=1000&q=85") center/cover; box-shadow: var(--shadow); }
.about-page__visual > div { display: flex; flex-direction: column; text-align: center; text-shadow: 0 4px 20px rgba(0,0,0,.3); }
.about-page__visual span { font-family: "Manrope"; font-size: 4rem; font-weight: 900; letter-spacing: -.08em; }
.about-page__visual strong { font-size: 2.5rem; letter-spacing: .15em; }
.about-page__visual small { letter-spacing: .08em; text-transform: uppercase; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.values-grid article { padding: 38px 30px; border: 1px solid #e2e4e1; border-radius: 18px; background: white; }
.values-grid svg { width: 35px; height: 35px; color: var(--blue); }
.values-grid h3 { margin: 24px 0 10px; color: var(--navy); font-size: 1.45rem; }
.values-grid p { margin: 0; color: var(--muted); line-height: 1.65; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.contact-details { display: grid; gap: 24px; margin-top: 45px; }
.contact-details a, .contact-details p { display: flex; align-items: flex-start; gap: 15px; margin: 0; }
.contact-details svg { flex: 0 0 auto; color: var(--blue); }
.contact-details span { line-height: 1.55; }
.contact-details small { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.contact-form { display: grid; gap: 22px; padding: 42px; border-radius: 20px; background: white; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: grid; gap: 8px; color: var(--navy); font-size: .85rem; font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 14px 15px; border: 1px solid #cfd6dc; border-radius: 9px; outline: 0; color: var(--ink); background: white; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,115,173,.11); }
.contact-form .button { justify-self: start; }
.not-found { display: flex; min-height: 700px; flex-direction: column; align-items: center; justify-content: center; padding: 80px 24px; text-align: center; }
.not-found > span { color: #d8e7ef; font-family: "Manrope"; font-size: clamp(7rem, 20vw, 15rem); font-weight: 900; line-height: .8; }
.not-found h1 { margin: 30px 0 12px; color: var(--navy); font-size: clamp(2rem, 5vw, 4rem); }
.not-found p { color: var(--muted); }
.not-found .button { margin-top: 25px; }
.empty-state { padding: 70px 25px; border: 1px dashed #b7c1ca; border-radius: 18px; color: var(--muted); text-align: center; }
.empty-state > span { color: #ccdce5; font-family: "Manrope"; font-size: 3rem; font-weight: 900; }
.empty-state h3 { margin: 15px 0 8px; color: var(--navy); font-size: 1.5rem; }

/* Footer */
.site-footer { color: white; background: #05182f; }
.footer-inner { display: grid; width: min(1180px, calc(100% - 48px)); grid-template-columns: 1.2fr .65fr 1.1fr; gap: 80px; margin: auto; padding: 85px 0 65px; }
.site-footer .brand { color: #5cadd3; }
.footer-intro > p { max-width: 350px; margin: 25px 0; color: #9fb0c1; line-height: 1.7; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { display: grid; width: 41px; height: 41px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.footer-socials svg { width: 17px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; color: #aab9c8; }
.footer-column a:hover { color: white; }
.footer-label { margin-bottom: 10px; color: white; font-family: "Manrope"; font-size: 1.05rem; font-weight: 700; }
.footer-contact a, .footer-contact > p { display: flex; align-items: flex-start; gap: 10px; margin: 0; line-height: 1.55; }
.footer-contact svg { flex: 0 0 auto; margin-top: 3px; }
.footer-contact .footer-cta { margin-top: 15px; padding-bottom: 7px; border-bottom: 1px solid var(--gold); color: var(--gold); font-weight: 700; }
.footer-bottom { display: flex; width: min(1180px, calc(100% - 48px)); align-items: center; justify-content: space-between; margin: auto; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); color: #74879a; font-size: .8rem; }

@media (max-width: 1120px) {
  .desktop-nav, .desktop-nav ul { gap: 14px; }
  .desktop-nav a { font-size: .78rem; }
  .header-join { display: none; }
  .committee-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .section { padding: 85px 0; }
  .site-header { padding: 17px 22px; border-bottom: 0; background: var(--ivory); }
  .header-shell { min-height: 78px; padding: 0 24px; border-radius: 999px; box-shadow: 0 8px 25px rgba(5, 28, 53, .13); }
  .desktop-nav { display: none; }
  .header-shell .brand { flex: 1; }
  .menu-toggle { display: flex; }
  .mobile-menu { position: fixed; z-index: -1; inset: 0; display: flex; transform: translateY(-110%); flex-direction: column; justify-content: center; padding: 135px 40px 45px; opacity: 0; color: white; background: var(--navy); visibility: hidden; transition: .45s cubic-bezier(.75,0,.2,1); }
  .mobile-menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .mobile-menu nav ul { display: grid; margin: 0; padding: 0; list-style: none; }
  .mobile-menu nav a { display: block; transform: translateY(-10px); padding: 11px 0; opacity: 0; border-bottom: 1px solid rgba(255,255,255,.12); font-family: "Manrope"; font-size: clamp(1.55rem, 6vw, 2.3rem); font-weight: 700; transition: .3s ease; }
  .mobile-menu.is-open nav a { transform: none; opacity: 1; }
  .mobile-menu nav .current-menu-item > a { color: var(--gold); }
  .mobile-admin-link { display: flex; align-items: center; gap: 9px; margin-top: 28px; color: #99adbf; font-size: .85rem; }
  .home-hero { min-height: 660px; }
  .cards-grid, .cards-grid--news { grid-template-columns: repeat(2, 1fr); }
  .cards-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .mission-section { grid-template-columns: 1fr; }
  .mission-photo { min-height: 500px; }
  .mission-copy { padding: 80px 55px; }
  .gallery-strip { grid-template-columns: 1fr; }
  .gallery-strip__heading { padding: 70px 45px; }
  .event-detail__grid { grid-template-columns: 1fr; gap: 55px; }
  .event-facts { position: static; grid-template-columns: 1fr 1fr; }
  .committee-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-page__grid, .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-page__visual { min-height: 500px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 36px, 1180px); }
  .section { padding: 70px 0; }
  .site-header { padding: 18px 20px; background: #f6f7f2; }
  .header-shell { min-height: 92px; padding: 0 25px; box-shadow: 0 10px 24px rgba(5,28,53,.18); }
  .header-shell .brand { min-width: 100px; }
  .brand img { width: 105px; max-height: 55px; }
  .menu-toggle { width: 52px; height: 52px; }
  .menu-toggle svg { width: 34px; height: 34px; color: var(--navy); }
  .home-hero { min-height: 655px; }
  .hero-slide { filter: blur(2px); }
  .hero-shade { background: linear-gradient(rgba(5,22,42,.58), rgba(5,22,42,.69)); }
  .hero-content { padding: 75px 0 100px; }
  .hero-kicker { margin-bottom: 18px; font-size: .66rem; }
  .hero-content h1 { max-width: 580px; margin-bottom: 24px; font-size: clamp(3.05rem, 12.7vw, 4.25rem); line-height: 1.08; }
  .hero-content p { max-width: 570px; margin-bottom: 38px; font-size: 1.17rem; line-height: 1.65; }
  .hero-content .button { min-width: min(300px, 90%); min-height: 61px; font-size: 1rem; }
  .hero-scroll { display: none; }
  .hero-dots { right: auto; bottom: 28px; left: 50%; transform: translateX(-50%); }
  .about-intro { min-height: 680px; }
  .about-intro__inner { padding: 80px 0; }
  .about-intro h2 { margin-bottom: 24px; font-size: 2.75rem; line-height: 1.15; }
  .about-intro p { font-size: 1.25rem; line-height: 1.72; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid div { padding: 22px 10px; border-bottom: 1px solid rgba(255,255,255,.18); }
  .stats-grid div:nth-child(2) { border-right: 0; }
  .stats-grid div:nth-child(n+3) { border-bottom: 0; }
  .stats-grid strong { font-size: 1.9rem; }
  .stats-grid span { font-size: .67rem; }
  .section-heading-row { display: block; margin-bottom: 38px; }
  .section-heading-row .button { margin-top: 25px; }
  .section-title h2 { font-size: 2.5rem; }
  .cards-grid, .cards-grid--news { grid-template-columns: 1fr; }
  .cards-grid > :last-child:nth-child(odd) { grid-column: auto; }
  .event-card__image, .news-card__image { height: 245px; }
  .mission-photo { min-height: 390px; }
  .mission-copy { padding: 70px 28px; }
  .mission-copy h2 { font-size: 2.65rem; }
  .gallery-strip__heading { padding: 65px 28px; }
  .gallery-strip__grid { grid-template-columns: 1fr 1fr; }
  .gallery-strip__grid a { min-height: 190px; }
  .page-hero { min-height: 425px; }
  .page-hero__content { padding: 65px 0; }
  .page-hero h1 { font-size: clamp(2.75rem, 12vw, 4.2rem); }
  .breadcrumbs { font-size: .95rem; }
  .filter-tabs { width: 100%; margin-top: 25px; }
  .filter-tabs a, .filter-tabs button { flex: 1; }
  .event-facts { grid-template-columns: 1fr; }
  .event-facts > div { padding: 23px; }
  .event-cover { margin-bottom: 40px; }
  .article-page__inner { width: min(100% - 36px, 850px); }
  .article-meta { align-items: flex-start; flex-direction: column; }
  .committee-grid { grid-template-columns: 1fr; }
  .member-card__photo { height: 390px; }
  .gallery-grid { grid-auto-rows: 240px; grid-template-columns: 1fr; }
  .gallery-item--1, .gallery-item--5 { grid-row: span 1; }
  .lightbox { padding: 55px 18px 20px; }
  .lightbox__content span { width: 100%; margin-left: 0; }
  .about-page__visual { min-height: 420px; }
  .about-page__visual span { font-size: 3.2rem; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 42px; padding: 65px 0 45px; }
  .footer-intro { grid-column: auto; }
  .footer-bottom { display: grid; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* --- Additions for the WordPress build ---------------------------------- */

/* Pagination (events / news / gallery archives) */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 55px; }
.pagination .page-numbers { display: inline-flex; min-width: 46px; min-height: 46px; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid #d4dae0; border-radius: 10px; color: var(--navy); font-weight: 700; background: white; transition: .2s ease; }
.pagination a.page-numbers:hover { border-color: var(--navy); background: var(--navy); color: white; }
.pagination .page-numbers.current { border-color: var(--navy); background: var(--navy); color: white; }
.pagination .page-numbers.dots { border: 0; background: transparent; }


/* Committee session filter */
.committee-filter { display: flex; align-items: center; gap: 10px; }

/* Contact form helper text */
.contact-fallback { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.contact-fallback a { color: var(--blue); font-weight: 700; }

.contact-status {
	margin-top: 15px;
	font-size: 14px;
	line-height: 1.6;
	min-height: 24px;
}

.contact-form button:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

