/* SECOOP portal – theme */
:root {
  --navy: #0b2c4f;
  --navy-2: #123d69;
  --accent: #e0a526;      /* gold (Timor-Leste flag) */
  --red: #c8102e;         /* red (Timor-Leste flag) */
  --soft: #f4f7fb;
  --text: #1f2a37;
  --muted: #6b7785;
  --radius: 12px;
  --blue: #03649e;        /* menu bar, as on secoop.gov.tl */
  --news-red: #bb1919;    /* section underlines, as on secoop.gov.tl */
  --page: #f5f5f5;
  --bs-primary: var(--navy);
  --bs-primary-rgb: 11, 44, 79;
  --bs-link-color: var(--navy-2);
  --bs-link-color-rgb: 18, 61, 105;
  --bs-link-hover-color: var(--red);
}
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--page); }
h1, h2, h3, h4, h5, h6, .brand-short { font-family: 'Poppins', sans-serif; }
a { text-decoration: none; }
.text-accent { color: var(--accent) !important; }
.text-primary { color: var(--navy) !important; }
.bg-soft { background: var(--soft); }
.btn-primary { --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-bg: var(--navy-2); --bs-btn-hover-border-color: var(--navy-2); --bs-btn-active-bg: var(--navy-2); }
.btn-outline-primary { --bs-btn-color: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-bg: var(--navy); --bs-btn-hover-border-color: var(--navy); }
.btn-accent { background: var(--accent); color: #1a1a1a; font-weight: 600; border: 0; }
.btn-accent:hover { background: #f0b93a; color: #000; }

/* Top bar & nav */
.topbar { background: var(--navy); color: #cfd9e6; padding: 6px 0; border-bottom: 3px solid var(--red); }
.topbar a { color: #cfd9e6; } .topbar a:hover { color: var(--accent); }
.main-nav { background: var(--blue); padding: 0; flex-wrap: wrap; }
.main-nav .navbar-brand { padding: 8px 0; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--accent)); color: #fff; display: grid; place-items: center; font: 700 20px 'Poppins'; }
.brand-short { color: #fff; font-size: 1.15rem; }
.brand-name { color: rgba(255, 255, 255, .75); font-size: .72rem; max-width: 260px; white-space: normal; }
.main-nav .nav-link { color: #fff; font-weight: 600; padding: 1.05rem .9rem !important; }
.main-nav .nav-link:hover, .main-nav .nav-link:focus { color: #fff; background: rgba(0, 0, 0, .12); }
.main-nav .nav-link.active { color: #fff; box-shadow: inset 0 -4px 0 #fff; }
.main-nav .navbar-toggler { color: #fff; border-color: rgba(255, 255, 255, .4); }
.dropdown-menu { border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.12); border-radius: var(--radius); padding: .5rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .9rem; }
.dropdown-item:hover { background: var(--soft); color: var(--navy); }
.btn-search { background: transparent; color: #fff; border-radius: 50%; width: 40px; height: 40px; }
.btn-search:hover { background: rgba(0, 0, 0, .15); color: #fff; }
@media (min-width: 992px) { .main-nav .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; } }

.lang-switch { display: inline-flex; border: 1px solid rgba(255,255,255,.25); border-radius: 20px; overflow: hidden; }
.lang-switch a { padding: 1px 10px; font-weight: 600; font-size: .75rem; }
.lang-switch a.active { background: var(--accent); color: #1a1a1a; }

/* Header banner (Site settings): a short strip like secoop.gov.tl, picture cropped to fill it, logo on the left */
.site-banner { position: relative; height: clamp(100px, 15vw, 220px); overflow: hidden; background: var(--navy); }
.site-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.site-banner-inner { position: relative; height: 100%; display: flex; align-items: center; }
.site-banner-logo { height: clamp(64px, 9vw, 130px); width: auto; display: block; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); }

/* Home, laid out like secoop.gov.tl */
.home-top { padding-top: 20px; }
.ticker { display: flex; background: #fff; margin-bottom: 20px; overflow: hidden; }
.ticker-label { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; background: var(--blue); color: #fff; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; padding: 12px 18px; }
.ticker-dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); }
.ticker-window { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; }
.ticker-list a { display: flex; align-items: center; gap: 8px; padding: 0 22px; white-space: nowrap; color: var(--text); font-weight: 600; font-size: .88rem; }
.ticker-list a:hover { color: var(--blue); }
.ticker-list img { width: 26px; height: 26px; object-fit: cover; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker-window { overflow-x: auto; } }

.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.block-head h2 { font-size: 1.25rem; font-weight: 700; color: #1f2125; margin: 0; padding-bottom: 6px; border-bottom: 3px solid var(--news-red); }
.block-more { font-size: .85rem; font-weight: 600; color: var(--blue); }
.block-arrows { display: flex; gap: 4px; }
.block-arrows button { width: 28px; height: 28px; border: 0; background: #fff; color: #1f2125; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.block-arrows button:hover { background: var(--blue); color: #fff; }
.tag { display: inline-block; background: var(--news-red); color: #fff; font-size: .72rem; font-weight: 600; padding: 2px 7px; }
.tag + .tag { margin-left: 4px; }

.news-slider .slide-img { width: 100%; height: clamp(280px, 40vw, 440px); object-fit: cover; display: block; }
.hero-fallback { background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 70%); }
.slide-overlay { position: absolute; inset: auto 0 0 0; padding: 70px 22px 20px; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); }
.slide-title { font-size: clamp(1.25rem, 2.2vw, 1.8rem); font-weight: 700; line-height: 1.3; margin: 8px 0; }
.slide-title a { color: #fff; } .slide-title a:hover { color: #dbe9f5; }
.slide-sub { margin: 0; opacity: .9; }
.slide-meta { font-size: .8rem; opacity: .85; }

.video-stack { display: flex; flex-direction: column; gap: 12px; }
.video-tile { position: relative; display: block; width: 100%; height: clamp(160px, 19vw, 214px); padding: 0; border: 0; overflow: hidden; background: #000; text-align: left; }
.video-tile img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transform: scale(1.34); transition: transform .4s, opacity .2s; }
/* YouTube's hqdefault picture is 4:3 with black bands above and below a 16:9 video; the scale crops them off. */
.video-tile:hover img { transform: scale(1.4); opacity: 1; }
.video-tile .video-play { width: 52px; height: 52px; font-size: 1.6rem; bottom: 30px; }
.video-tile-title { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; color: #fff; font-weight: 600; font-size: .92rem; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); }

.rank-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rank-list a { display: flex; gap: 12px; background: #fff; padding: 8px; color: #1f2125; font-weight: 600; font-size: .88rem; line-height: 1.35; }
.rank-text { min-width: 0; }
.rank-scroll { position: relative; max-height: 440px; overflow-y: auto; scrollbar-width: none; scroll-behavior: smooth; }
.rank-scroll::-webkit-scrollbar { display: none; }
.rank-all { display: block; margin-top: 10px; padding: 8px; background: #fff; text-align: center; font-size: .85rem; font-weight: 600; color: var(--blue); }
.rank-all:hover { background: var(--blue); color: #fff; }
@media (prefers-reduced-motion: reduce) { .rank-scroll { scroll-behavior: auto; } }
/* Columns side by side end on one line: the program list takes the height of its neighbours
   (the videos on tablets; the news slider and videos on wide screens). */
@media (min-width: 768px) {
  .home-col { display: flex; flex-direction: column; }
  .home-col .rank-scroll { flex: 1 1 0; min-height: 0; max-height: none; }
}
@media (min-width: 992px) {
  .news-slider .slide-img { height: 440px; }
  .home-col .video-stack { flex: 1; display: grid; grid-template-rows: 1fr 1fr; }
  .home-col .video-tile { height: 100%; }
}
.rank-list a:hover { color: var(--blue); }
.rank-thumb { position: relative; flex: 0 0 88px; height: 72px; background: var(--soft); display: grid; place-items: center; color: var(--muted); font-size: 1.4rem; }
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-no { position: absolute; left: 0; bottom: 0; width: 26px; height: 26px; display: grid; place-items: center; background: var(--news-red); color: #fff; font-size: .85rem; font-weight: 700; }
.rank-kind { display: block; color: var(--news-red); font-size: .72rem; font-weight: 600; margin-bottom: 2px; }

.home-latest { padding-top: 28px; padding-bottom: 50px; }
.tile { background: #fff; height: 100%; }
.tile-img { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--soft); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-img .tag { position: absolute; left: 12px; bottom: 12px; }
.tile-body { padding: 16px 18px 20px; font-size: .9rem; color: #404650; }
.tile-title { font-size: 1.02rem; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.tile-title a { color: #1f2125; } .tile-title a:hover { color: var(--blue); }
.partners-strip { background: #fff; padding: 26px 0; }
.partner-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.partner-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.partner-marquee:hover .partner-track, .partner-marquee:focus-within .partner-track { animation-play-state: paused; }
.partner-list { display: flex; align-items: center; }
.partner-list > * { flex: 0 0 auto; display: grid; place-items: center; width: 220px; height: 92px; margin: 0 12px; padding: 8px 14px; border: 1px solid #eceef1; border-radius: 12px; background: #fff; }
.partner-list img { max-width: 100%; max-height: 72px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .partner-track { animation: none; } .partner-marquee { overflow-x: auto; } }

/* Sections */
.section { padding: 60px 0; }
.link-more { font-weight: 600; font-size: .9rem; color: var(--navy-2); }
.eyebrow { color: var(--red); font-weight: 600; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.display-title { font-weight: 700; color: var(--navy); }

/* Cards */
.thumb-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.5rem; color: #c3cdd8; }
.kind-badge { position: absolute; top: 12px; left: 12px; font-weight: 600; }
.kind-news { background: var(--navy) !important; } .kind-activity { background: #1c7c54 !important; } .kind-announcement { background: var(--red) !important; }
.post-meta { color: var(--muted); font-size: .8rem; }


.program-card { display: block; background: #fff; border-radius: var(--radius); padding: 28px; color: var(--text); border: 1px solid #e6ecf2; transition: all .2s; }
.program-card:hover { border-color: var(--accent); box-shadow: 0 10px 28px rgba(11, 44, 79, .12); transform: translateY(-4px); color: var(--text); }
.program-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: rgba(224, 165, 38, .15); color: var(--navy); font-size: 1.6rem; margin-bottom: 16px; }
.program-card:has(.program-img) { padding: 0 0 22px; overflow: hidden; }
.program-card:has(.program-img) > :not(.program-img) { margin-left: 24px; margin-right: 24px; }
.program-img { display: block; aspect-ratio: 16/10; overflow: hidden; margin-bottom: 18px; background: var(--soft); }
.program-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.program-card:hover .program-img img { transform: scale(1.05); }
.program-card h3 { color: var(--navy); } .program-card p { color: var(--muted); font-size: .92rem; }

.product-card { border: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(11, 44, 79, .08); }
.product-thumb { display: block; aspect-ratio: 1; overflow: hidden; background: var(--soft); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-card h3 a { color: var(--text); }
.price { color: var(--red); font-weight: 700; } .price small { color: var(--muted); font-weight: 400; font-size: .75em; }


/* Inner pages */
.page-header { position: relative; overflow: hidden; color: #fff; padding: 40px 0 46px;
  background: radial-gradient(circle at 85% 20%, rgba(3, 100, 158, .9), transparent 55%), linear-gradient(120deg, var(--navy) 0%, #0d3a66 60%, var(--blue) 100%); }
/* A photo of the page's subject sits behind a blue veil, strongest on the left where the text is. */
.page-header-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.page-header.has-photo::before { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(11, 44, 79, .96) 0%, rgba(11, 44, 79, .85) 45%, rgba(3, 100, 158, .45) 100%); }
/* Without a photo: soft rings and dots on the right. */
.page-header-deco { position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%; z-index: 1;
  border: 60px solid rgba(255, 255, 255, .05); box-shadow: 0 0 0 40px rgba(224, 165, 38, .06); pointer-events: none; }
.page-header-deco::after { content: ''; position: absolute; left: -170px; top: 210px; width: 140px; height: 90px;
  background: radial-gradient(rgba(255, 255, 255, .25) 1.5px, transparent 1.6px) 0 0 / 14px 14px; }
.page-header-inner { position: relative; z-index: 2; }
.page-header-title { display: flex; align-items: center; gap: 18px; }
.page-header-icon { flex: 0 0 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 1.8rem;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); color: var(--accent); backdrop-filter: blur(4px); }
.page-header h1 { font-size: clamp(1.5rem, 3.2vw, 2.4rem); font-weight: 700; margin: 0; text-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.page-header-sub { margin: 6px 0 0; color: rgba(255, 255, 255, .85); max-width: 680px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.page-header-count { display: inline-block; background: var(--news-red); color: #fff; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.page-header .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); --bs-breadcrumb-item-active-color: rgba(255,255,255,.8); font-size: .85rem; color: rgba(255,255,255,.8);
  display: inline-flex; background: rgba(0, 0, 0, .2); padding: 5px 14px; border-radius: 20px; }
.page-header .breadcrumb a { color: var(--accent); }
/* Timor-Leste flag colours along the bottom edge. */
.flag-strip { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; display: flex; z-index: 2; }
.flag-strip span:nth-child(1) { flex: 6; background: var(--red); }
.flag-strip span:nth-child(2) { flex: 2; background: var(--accent); }
.flag-strip span:nth-child(3) { flex: 1; background: #111; }
@media (max-width: 575.98px) {
  .page-header { padding: 28px 0 34px; }
  .page-header-icon { flex-basis: 48px; height: 48px; font-size: 1.35rem; border-radius: 12px; }
  .page-header-title { gap: 12px; }
}
.rich-content { line-height: 1.8; font-size: 1.02rem; }
.rich-content img { max-width: 100%; height: auto; border-radius: 8px; }
.rich-content h2, .rich-content h3 { color: var(--navy); margin-top: 1.6rem; }
.rich-content table { width: 100%; } .rich-content td, .rich-content th { border: 1px solid #dde3ea; padding: 6px 10px; }
/* About pages read like a book: a sheet of paper with pages stacked behind it. */
.book-section { background: linear-gradient(180deg, #eef1f5, var(--page) 320px); }
.book-page { position: relative; background: #fffdf8; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 6px 6px 0 -1px #fbf8f1, 6px 6px 0 0 #e3ded2, 12px 12px 0 -1px #f8f4ea, 12px 12px 0 0 #ddd7c9, 0 18px 40px rgba(11, 44, 79, .12); }
.book-page::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, var(--red) 0 66%, var(--accent) 66% 89%, #111 89%); }
.book-head { text-align: center; padding: 40px 40px 6px; }
.book-chapter { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--news-red); margin-bottom: 8px; }
.book-title { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.2 Georgia, 'Times New Roman', serif; color: var(--navy); margin: 0; }
.book-ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; color: var(--accent); font-size: 1.1rem; }
.book-ornament::before, .book-ornament::after { content: ''; width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); }
.book-ornament::after { transform: scaleX(-1); }
.book-figure { margin: 22px 40px 0; } .book-figure img { width: 100%; border: 6px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.book-body { position: relative; padding: 26px 48px 16px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.06rem; line-height: 1.85; color: #2a2f36; text-align: justify; }
.book-body h3, .book-body h4 { font-family: 'Poppins', sans-serif; color: var(--navy); font-size: 1.1rem; margin: 1.8rem 0 .8rem; padding-bottom: 6px; border-bottom: 1px dashed #d8d2c4; text-align: left; }
.book-body ul, .book-body ol { padding-left: 1.4rem; text-align: left; clear: both; }
.book-body h3, .book-body h4, .book-body figure, .book-body blockquote { clear: both; }
.book-body li { margin-bottom: .45rem; text-align: left; } .book-body li::marker { color: var(--news-red); }
.book-body figure { text-align: center; } .book-body figure img { border: 6px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
/* A large first letter opens the text when it starts with a paragraph. */
.book-body > p:first-child::first-letter, .book-body > .message-quote + p::first-letter { float: left; font: 700 3.6rem/.85 Georgia, 'Times New Roman', serif; color: var(--news-red); margin: 8px 10px 0 0; }
/* Turning the page */
.book-turn { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 18px 48px 0; padding: 18px 0 30px; border-top: 1px solid #e6e0d3; }
.book-turn a { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 600; font-size: .92rem; line-height: 1.3; }
.book-turn a:hover { color: var(--news-red); }
.book-turn small { display: block; font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.book-turn i { flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #d8d2c4; transition: all .2s; }
.book-turn a:hover i { background: var(--news-red); border-color: var(--news-red); color: #fff; }
.book-turn-next { justify-content: flex-end; text-align: right; }
.book-folio { font: italic 600 .95rem Georgia, serif; color: var(--muted); }
/* Table of contents */
.book-toc { background: #fff; box-shadow: 0 4px 18px rgba(11, 44, 79, .08); padding: 22px; }
.book-toc-title { font-size: 1rem; color: var(--navy); text-transform: uppercase; letter-spacing: .08em; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 3px solid var(--news-red); display: inline-block; }
.book-toc ol { list-style: none; padding: 0; margin: 0; }
.book-toc li a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; color: var(--text); border-bottom: 1px dotted #d8dde4; }
.book-toc li a:hover, .book-toc li a.active { color: var(--news-red); background: #fbf6ea; }
.book-toc li a.active { font-weight: 700; }
.book-toc-no { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--navy); font: 700 .8rem 'Poppins', sans-serif; }
.book-toc a.active .book-toc-no { background: var(--news-red); color: #fff; }
.book-toc-more { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.book-toc-more a { display: flex; align-items: center; gap: 10px; padding: 8px; color: var(--blue); font-weight: 600; font-size: .9rem; }
.book-toc-more a:hover { background: var(--soft); }
/* Wide pages of the book (organogram, team) and the news story page */
.book-wide-body { padding: 24px 40px 10px; }
.book-lead { margin: 12px 0 0; color: var(--muted); font-style: italic; }
.book-title-sm { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.book-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 14px; font-size: .85rem; color: var(--muted); }
.book-meta a { color: var(--muted); } .book-meta a:hover { color: var(--news-red); }
.book-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 48px 0; padding-top: 18px; border-top: 1px dashed #d8d2c4; }
.book-share strong { margin-right: 4px; color: var(--navy); }
.book-comments { margin-top: 36px; background: #fff; padding: 28px 32px; box-shadow: 0 4px 18px rgba(11, 44, 79, .08); }
.book-empty { text-align: center; color: var(--muted); padding: 30px 0; font-style: italic; }
.book-empty i { display: block; font-size: 2.6rem; color: #cfc8b8; margin-bottom: 8px; font-style: normal; }
.book-team-card { background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); border-radius: 4px; }
.book-wide .book-wide-body { padding: 20px 12px 6px 18px; }
.book-wide .org-chart { background: transparent; }
@media (max-width: 575.98px) {
  .book-wide-body { padding: 18px 14px 6px; }
  .book-share { margin: 12px 20px 0; }
  .book-comments { padding: 22px 18px; }
}

/* The message page: portrait, name and signature on the same paper. */
.message-profile { display: flex; align-items: center; gap: 24px; padding: 32px 40px; border-bottom: 1px solid #ece6d9; background: linear-gradient(120deg, #f7f3ea, #fffdf8); }
.message-photo { flex: 0 0 150px; height: 150px; border-radius: 50%; overflow: hidden; border: 5px solid #fff; box-shadow: 0 0 0 3px var(--accent), 0 8px 24px rgba(11, 44, 79, .2); background: var(--soft); }
.message-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.message-photo-empty { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3.5rem; color: #aab6c4; }
.message-name { font: 700 1.35rem Georgia, 'Times New Roman', serif; color: var(--navy); margin: 0 0 4px; }
.message-role { color: var(--news-red); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; margin: 0 0 12px; }
.flag-strip.message-strip { position: static; width: 120px; height: 4px; }
.message .book-body { padding-top: 34px; }
.message-quote { position: absolute; left: 16px; top: 0; font-size: 3.6rem; line-height: 1; color: rgba(224, 165, 38, .35); }
/* The last paragraph of a message is its closing line. */
.message .book-body > p:last-of-type { margin-top: 1.6rem; padding: 18px 22px; background: #fbf6ea; border-left: 4px solid var(--accent);
  font-style: italic; font-weight: 600; color: var(--navy); text-align: left; }
.message-sign { padding: 8px 48px 10px; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.message-sign-name { font: italic 600 1.15rem Georgia, 'Times New Roman', serif; color: var(--navy); padding-top: 10px; border-top: 1px solid #d6dde6; }
.message-sign-role { font-size: .85rem; color: var(--muted); }
@media (max-width: 575.98px) {
  .book-page { box-shadow: 0 1px 2px rgba(0,0,0,.08), 5px 5px 0 -1px #fbf8f1, 5px 5px 0 0 #e3ded2, 0 12px 28px rgba(11, 44, 79, .12); }
  .book-head { padding: 30px 20px 4px; } .book-figure { margin: 18px 18px 0; }
  .book-body { padding: 22px 20px 10px; font-size: 1rem; text-align: left; }
  .book-turn { margin: 14px 20px 0; padding-bottom: 22px; grid-template-columns: 1fr 1fr; }
  .book-folio { grid-column: 1 / -1; grid-row: 1; text-align: center; }
  .book-turn span:not(.book-folio) small, .book-turn a > span { font-size: .8rem; }
  .message-profile { flex-direction: column; text-align: center; padding: 24px 18px; }
  .message-strip { margin: 0 auto; }
  .message-sign { padding: 8px 20px 10px; }
}
.comment { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid #eef2f6; }
.comment p { overflow-wrap: anywhere; }
.comment-avatar { flex: 0 0 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.comment-form { background: var(--soft); border-radius: var(--radius); padding: 22px; }
.side-box { background: var(--soft); border-radius: var(--radius); padding: 22px; }
.side-title { color: var(--navy); text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid var(--accent); padding-bottom: 8px; margin-bottom: 12px; }
.side-menu a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); }
.side-menu a:hover, .side-menu a.active { background: #fff; color: var(--navy); font-weight: 600; }
.side-post { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid #e3e9f0; color: var(--text); font-weight: 500; }
.side-post:last-child { border-bottom: 0; } .side-post:hover span { color: var(--navy-2); }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pills a { padding: 6px 16px; border-radius: 30px; background: var(--soft); color: var(--text); font-size: .88rem; font-weight: 500; }
.filter-pills a.active, .filter-pills a:hover { background: var(--navy); color: #fff; }
.doc-list .list-group-item { border-left: 0; border-right: 0; }
.doc-icon { flex: 0 0 52px; height: 52px; border-radius: 10px; background: var(--red); color: #fff; display: grid; place-items: center; font: 700 .75rem 'Poppins'; }
.coop-table thead th { background: var(--navy); color: #fff; font-weight: 500; }
.coop-facts dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; } .coop-facts dd { font-weight: 600; margin-bottom: 10px; }
.team-card { text-align: center; background: #fff; border-radius: var(--radius); padding: 22px 14px; box-shadow: 0 4px 18px rgba(11, 44, 79, .08); height: 100%; }
.team-card img, .team-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--soft); }
.team-avatar { display: inline-grid; place-items: center; background: var(--soft); font-size: 3rem; color: #aab6c4; }
.album-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album-card:hover img { transform: scale(1.06); }
.album-caption { position: absolute; inset: auto 0 0 0; padding: 18px; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.8), transparent); }
.gallery-item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; } .gallery-item:hover img { transform: scale(1.08); }
.contact-list li { display: flex; gap: 14px; margin-bottom: 18px; }
.contact-list i { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--navy); display: grid; place-items: center; font-size: 1.2rem; }
.search-list li { padding: 6px 0; }

/* Footer */
.site-footer { background: #1f2125; color: #c4c7cc; }
.site-footer a { color: #c4c7cc; } .site-footer a:hover { color: var(--accent); }
.footer-title { color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin-bottom: 14px; }
.footer-links li { margin-bottom: 8px; font-size: .92rem; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 10px; font-size: .92rem; } .footer-contact i { color: var(--accent); }
.footer-bottom { background: #121314; color: #9a9ea5; }
.footer-map { width: 100%; height: 200px; border: 0; margin-top: 12px; }
.footer-counter img { display: block; max-width: 100%; height: auto; }
.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 1030; }
.back-to-top.show { opacity: 1; pointer-events: auto; } .back-to-top:hover { color: #fff; background: var(--navy); }

/* Text clamping keeps cards the same height */
.clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { -webkit-line-clamp: 2; } .clamp-3 { -webkit-line-clamp: 3; }

.side-sticky { position: sticky; top: 96px; }
.side-menu .count { font-size: .78rem; color: var(--muted); background: #fff; border-radius: 20px; padding: 0 8px; align-self: center; }
.side-menu a.active .count { background: var(--soft); }
.filter-active { display: inline-flex; align-items: center; background: var(--soft); border-radius: 30px; padding: 6px 14px; font-weight: 500; font-size: .9rem; }

/* News / activity list page */
.news-page { padding: 28px 0 56px; }
.kind-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; border-bottom: 2px solid #e2e4e8; }
.kind-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; margin-bottom: -2px; color: #404650; font-weight: 600;
  border-bottom: 3px solid transparent; }
.kind-tabs a:hover { color: var(--blue); }
.kind-tabs a.active { color: #1f2125; border-bottom-color: var(--news-red); }
.kind-tabs .count { font-size: .75rem; font-weight: 600; background: #e6e8ec; color: #555; border-radius: 20px; padding: 1px 8px; }
.kind-tabs a.active .count { background: var(--news-red); color: #fff; }
.news-lead { margin-bottom: 32px; }
.tile-sm .tile-body { padding: 12px 14px 16px; font-size: .85rem; }
.tile-sm .tile-title { font-size: .95rem; }
.news-lead-side { display: flex; flex-direction: column; gap: 1rem; }
.feature-card { position: relative; display: block; height: 100%; min-height: 200px; overflow: hidden; background: #2b2f36; color: #fff; }
.feature-card-lg { min-height: 420px; }
.news-lead-side .feature-card { flex: 1; }
.feature-card > img, .feature-card > .thumb-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.feature-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.35) 45%, transparent 75%); }
.feature-card:hover > img { transform: scale(1.05); }
.feature-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.feature-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem; line-height: 1.35; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.feature-card-lg .feature-body { padding: 26px 28px; }
.feature-card-lg .feature-title { font-size: clamp(1.2rem, 2.2vw, 1.7rem); }
.feature-card:hover .feature-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.feature-meta { font-size: .8rem; color: rgba(255,255,255,.8); }
.news-search { display: flex; background: #fff; border: 1px solid #dcdfe4; }
.news-search .form-control { border: 0; border-radius: 0; box-shadow: none; padding: 10px 14px; }
.news-search button { border: 0; background: var(--blue); color: #fff; width: 48px; }
.news-search button:hover { background: var(--navy); }
.news-units { background: #fff; padding: 6px; }
.news-units a { border-radius: 0; }
.news-units a:hover, .news-units a.active { background: var(--page); color: var(--blue); }
.news-units a.active { box-shadow: inset 3px 0 0 var(--news-red); }

/* Homepage sidebar documents */

/* Video thumbnails (the player opens in a window) */
.video-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .4s, opacity .2s; }
.video-thumb:hover img { transform: scale(1.04); opacity: 1; }
.video-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: 2rem; box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .2s; }
.video-thumb:hover .video-play { transform: scale(1.1); }

@media (max-width: 991.98px) {
  .side-sticky { position: static; }
}
@media (max-width: 767px) {
  .feature-card-lg { min-height: 300px; }
  .feature-card-lg .feature-body { padding: 18px; }
}
@media (max-width: 767px) {
  .section { padding: 48px 0; }
  .hero-overlay { padding-bottom: 40px; }
  .stats-strip .stat:nth-child(2) { border-right: 0; }
  .stats-strip strong { font-size: 1.5rem; }
}
