/* ==========================================================================
   GSC-TEMPC — NEWS DETAIL PAGE STYLES  (v1 — editorial redesign)
   assets/css/news_detail.css
   --------------------------------------------------------------------------
   Extracted from the inline <style> block of news-detail.php and redesigned.

   Layout of this file
     1. Legacy tokens + scroll-reveal base
     2. #newsDetailArticle — the redesigned article body       (NEW, scoped)
     3. Lightbox                                               (palette refresh)
     4. Hero (.hero#hp-main-content)                           (unchanged)

   #newsDetailArticle (the existing .gp-dossier wrapper) is a size container
   (container-name: nd), so breakpoints follow the width the article really
   has, not the screen width.

   Same house style as news_page.css and about-us.css: green/white ground,
   Fraunces headings, Poppins UI text, one champagne-gold stub rule, pill
   buttons with a gold hairline.
   ========================================================================== */

:root {
    --gp-forest: #30AA28;
    --gp-forest-dark: #2a9622;
    --gp-forest-mid: #30AA28;
    --gp-ivory: #FFFFFF;
    --gp-card: #FFFFFF;
    --gp-gold: #B8924B;
    --gp-gold-soft: rgba(184, 146, 75, 0.35);
    --gp-text: #23281F;
    --gp-muted: #6E7266;
    --gp-border: #E3EBE2;
    --gp-border-card: #E3EBE2;
    --gp-radius-sm: 8px;
    --gp-radius-md: 12px;
    --gp-shadow-card: 0 2px 4px rgba(48, 170, 40, 0.05), 0 12px 32px rgba(48, 170, 40, 0.10);
    --gp-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --gp-serif: 'Fraunces', 'Playfair Display', Georgia, serif;
    --gp-sans: 'Poppins', 'Inter', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Scroll-reveal hook: the inline script adds .gp-visible via IntersectionObserver. */
@keyframes gpFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.gp-animate { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--gp-ease), transform 0.6s var(--gp-ease); }
.gp-animate.gp-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .gp-animate { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ==========================================================================
   2. #newsDetailArticle — REDESIGNED ARTICLE BODY
   --------------------------------------------------------------------------
   Concept: the announcement as a printed notice. A dateline strip, the
   announcement artwork on a white mat, then a two-part page: a quiet
   "dateline" rail (date, type) beside a comfortable serif reading column,
   and finally the attached documents as a tidy file shelf.

   Alignment guides
     - Every block starts on the shell's left edge.
     - One gold device: a 56px stub (dateline strip, rail title, docs rule).
     - Reading column is capped at 62ch; the rail is 240px with a 64px gutter.
   Gold #D6B56D is never used for text; --nd-gold-ink (#8A6A22) is.
   ========================================================================== */

#newsDetailArticle {
    --nd-brand: #30AA28;
    --nd-leaf: #B9DDB5;
    --nd-leaf-soft: #E5F1E3;
    --nd-sage: #F3F8F2;
    --nd-action: #27883A;
    --nd-action-deep: #1B6A2E;
    --nd-forest: #1F5A2D;
    --nd-ink: #173E29;
    --nd-gold: #D6B56D;
    --nd-gold-light: #F6E3AE;
    --nd-gold-ink: #8A6A22;
    --nd-warm: #FBFCF9;
    --nd-text: #3E4C42;
    --nd-muted: #53625A;
    --nd-urgent: #8C2F26;
    --nd-urgent-bg: #FBF1EE;
    --nd-line: rgba(23, 62, 41, .12);
    --nd-edge: rgba(48, 170, 40, .18);
    --nd-ease: cubic-bezier(.16, 1, .3, 1);
    --nd-serif: var(--hp-display-font, 'Fraunces', Georgia, 'Times New Roman', serif);
    --nd-rail-top: 110px;

    container: nd / inline-size;
    position: relative;
    isolation: isolate;
    overflow: clip;   /* clip keeps the sticky rail working */
    padding: 4px 0 0;
    color: var(--nd-text);
    font-family: var(--gp-sans);
    background: linear-gradient(180deg, #FFFFFF 0%, #F3F8F2 30%, #E9F4E6 64%, #FFFFFF 100%);
}

#newsDetailArticle *,
#newsDetailArticle *::before,
#newsDetailArticle *::after {
    box-sizing: border-box;
}

#newsDetailArticle::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 52% 30% at 18% 22%, rgba(185, 221, 181, .5), transparent 72%),
        radial-gradient(ellipse 44% 26% at 94% 8%, rgba(185, 221, 181, .3), transparent 70%);
}

#newsDetailArticle > * { position: relative; z-index: 1; }

#newsDetailArticle .gp-shell {
    width: min(100% - 40px, 1160px);
    margin-inline: auto;
}

#newsDetailArticle a:focus-visible,
#newsDetailArticle button:focus-visible,
#newsDetailArticle [role="button"]:focus-visible {
    outline: 3px solid var(--nd-action);
    outline-offset: 3px;
}

/* --- Dateline strip: gold stub, text, hairline --- */
#newsDetailArticle .gp-metabar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 44px 0 28px;
    color: var(--nd-muted);
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.4;
}

#newsDetailArticle .gp-metabar .gp-rule { display: block; }

#newsDetailArticle .gp-metabar .gp-rule:first-child {
    flex: 0 0 56px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--nd-gold) 0 58%, var(--nd-leaf) 58% 100%);
}

#newsDetailArticle .gp-metabar .gp-rule:last-child {
    flex: 1 1 auto;
    height: 1px;
    background: var(--nd-line);
}

#newsDetailArticle .gp-metabar-text { min-width: 0; }

#newsDetailArticle .gp-metabar-text strong {
    color: var(--nd-forest);
    font-weight: 700;
}

#newsDetailArticle .gp-metabar-sep { color: var(--nd-gold-ink); }

/* --- Announcement artwork: edge-to-edge inside a rounded hairline frame.
       No mat, no side gaps. The frame takes the picture's own proportions
       (no fixed aspect ratio, no max-height), so the image fills the full
       column width, which also makes it larger than before, and nothing is
       cropped or letterboxed. --- */
#newsDetailArticle .gp-lead-media {
    margin: 0 0 56px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--nd-edge);
    border-radius: 22px;
    background: transparent;
    box-shadow: 0 28px 56px rgba(23, 62, 41, .14), 0 6px 16px rgba(48, 170, 40, .08);
    scroll-margin-top: 96px;
}

#newsDetailArticle .gp-lead-media--zoom { cursor: zoom-in; }

#newsDetailArticle .gp-lead-media img,
#newsDetailArticle .gp-lead-media video {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 0;
    background: none;
}

/* --- Article: dateline rail + reading column --- */
#newsDetailArticle .gp-article {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin: 0 0 64px;
    align-items: start;
}

/* Narrow: the rail becomes a single row of facts above the text */
#newsDetailArticle .gp-article-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 26px;
    padding: 0 0 22px;
    border-bottom: 1px solid var(--nd-line);
}

#newsDetailArticle .gp-article-meta h2 {
    order: 0;
    width: 100%;
    margin: 0;
    color: var(--nd-forest);
    font-family: var(--nd-serif);
    font-size: 1.28rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.015em;
    text-transform: none;
}

#newsDetailArticle .gp-meta-rule {
    order: 1;
    display: none;
    width: 56px;
    height: 3px;
    margin: 0 0 22px;
    border: 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--nd-gold) 0 58%, var(--nd-leaf) 58% 100%);
}

#newsDetailArticle .gp-meta-row {
    order: 2;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: var(--nd-ink);
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}

#newsDetailArticle .gp-meta-row i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--nd-action);
    font-size: .85rem;
}

#newsDetailArticle .gp-article-body { min-width: 0; }

#newsDetailArticle .gp-content {
    max-width: 62ch;
    margin: 0;
    color: var(--nd-text);
    font-family: var(--nd-serif);
    font-size: clamp(1.08rem, 1rem + .35cqi, 1.22rem);
    line-height: 1.85;
    overflow-wrap: anywhere;
}

#newsDetailArticle .gp-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 62ch;
    margin: 0 0 28px;
    padding: 14px 18px;
    border: 1px solid var(--nd-edge);
    border-left: 4px solid var(--nd-gold);
    border-radius: 12px;
    background: #fff;
    color: var(--nd-action-deep);
    font-family: var(--gp-sans);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.3;
}

#newsDetailArticle .gp-notice i { font-size: .95rem; }

#newsDetailArticle .gp-notice.gp-notice-urgent {
    border-color: rgba(140, 47, 38, .2);
    border-left-color: var(--nd-urgent);
    background: var(--nd-urgent-bg);
    color: var(--nd-urgent);
}

/* --- Documents & attachments --- */
#newsDetailArticle .gp-docs { margin: 0 0 8px; }

#newsDetailArticle .gp-docs-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px;
}

#newsDetailArticle .gp-docs-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--nd-forest);
    font-family: var(--nd-serif);
    font-size: clamp(1.4rem, 3.4cqi, 1.8rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-transform: none;
}

#newsDetailArticle .gp-docs-head h2 i {
    color: var(--nd-action);
    font-size: .9em;
}

#newsDetailArticle .gp-docs-count {
    color: var(--nd-muted);
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

/* Hairline opening with a 56px gold stub, same device as news_page.css */
#newsDetailArticle .gp-docs-rule {
    display: block;
    height: 2px;
    margin: 0 0 26px;
    border: 0;
    background: linear-gradient(90deg, var(--nd-gold) 0 56px, var(--nd-line) 56px 100%);
}

#newsDetailArticle .gp-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 22px;
    margin: 0 0 56px;
}

#newsDetailArticle .gp-doc-card {
    overflow: hidden;
    border: 1px solid var(--nd-edge);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(23, 62, 41, .04), 0 12px 28px rgba(23, 62, 41, .06);
    transition: box-shadow .35s ease, border-color .35s ease;
}

#newsDetailArticle .gp-doc-card:hover {
    border-color: rgba(39, 136, 58, .4);
    box-shadow: 0 1px 2px rgba(23, 62, 41, .04), 0 18px 36px rgba(23, 62, 41, .12);
}

#newsDetailArticle .gp-doc-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--nd-leaf-soft);
    cursor: pointer;
}

#newsDetailArticle .gp-doc-preview img,
#newsDetailArticle .gp-doc-preview video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#newsDetailArticle .gp-doc-preview .gp-doc-icon-only {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--nd-sage);
    color: var(--nd-gold-ink);
    font-size: 2.3rem;
}

#newsDetailArticle .gp-doc-preview .gp-doc-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding-left: 2px;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 50%;
    background: rgba(27, 106, 46, .94);
    color: #fff;
    font-size: .9rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}

#newsDetailArticle .gp-doc-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-top: 1px solid var(--nd-line);
}

#newsDetailArticle .gp-doc-info i.gp-doc-filetype {
    flex: 0 0 auto;
    color: var(--nd-action);
    font-size: 1.05rem;
}

#newsDetailArticle .gp-doc-text { flex: 1 1 auto; min-width: 0; }

#newsDetailArticle .gp-doc-name {
    margin: 0 0 3px;
    overflow: hidden;
    color: var(--nd-ink);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#newsDetailArticle .gp-doc-size {
    color: var(--nd-muted);
    font-size: .82rem;
}

#newsDetailArticle .gp-doc-download {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--nd-leaf-soft);
    color: var(--nd-action-deep);
    font-size: .9rem;
    text-decoration: none;
    transition: background .25s ease, color .25s ease;
}

#newsDetailArticle .gp-doc-download:hover {
    background: var(--nd-action);
    color: #fff;
}

/* --- Back to all announcements --- */
#newsDetailArticle .gp-back-wrap {
    margin-top: 32px;
    padding: 36px 0 96px;
    border-top: 1px solid var(--nd-line);
    text-align: center;
}

#newsDetailArticle .gp-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    margin: 0;
    padding: 0 28px;
    border: 1px solid rgba(23, 62, 41, .22);
    border-radius: 999px;
    background: #fff;
    color: var(--nd-forest);
    font-family: var(--gp-sans);
    font-size: .96rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    transition: gap .3s var(--nd-ease), border-color .25s ease, background .25s ease, color .25s ease;
}

#newsDetailArticle .gp-back-link i { color: var(--nd-action); }

#newsDetailArticle .gp-back-link:hover {
    gap: 14px;
    border-color: var(--nd-action);
    background: var(--nd-sage);
    color: var(--nd-action-deep);
}

/* Legacy gallery grid: kept hidden exactly as before */
#newsDetailArticle .detail-media-grid { display: none; }

/* --- Container breakpoints --- */
@container nd (max-width: 519px) {
    #newsDetailArticle .gp-metabar { padding-top: 32px; }
    #newsDetailArticle .gp-lead-media { margin-bottom: 40px; border-radius: 18px; }
    #newsDetailArticle .gp-back-link { width: 100%; }
}

@container nd (min-width: 760px) {
    #newsDetailArticle .gp-shell { width: min(100% - 64px, 1160px); }
}

@container nd (min-width: 820px) {
    #newsDetailArticle .gp-article {
        grid-template-columns: 240px minmax(0, 1fr);
        column-gap: 64px;
    }
    #newsDetailArticle .gp-article-meta {
        position: sticky;
        top: var(--nd-rail-top);
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 0;
        border-bottom: 0;
    }
    #newsDetailArticle .gp-article-meta h2 { width: auto; margin: 0 0 -2px; }
    #newsDetailArticle .gp-meta-rule { display: block; margin: 0 0 8px; }
}

@supports not (container-type: inline-size) {
    @media (min-width: 900px) {
        #newsDetailArticle .gp-article { grid-template-columns: 240px minmax(0, 1fr); column-gap: 64px; }
        #newsDetailArticle .gp-article-meta { flex-direction: column; align-items: flex-start; padding: 0; border-bottom: 0; }
        #newsDetailArticle .gp-article-meta h2 { width: auto; }
        #newsDetailArticle .gp-meta-rule { display: block; margin: 0 0 8px; }
    }
}

@media (prefers-reduced-motion: reduce) {
    #newsDetailArticle .gp-doc-card,
    #newsDetailArticle .gp-doc-download,
    #newsDetailArticle .gp-back-link { transition: none; }
}

@media (forced-colors: active) {
    #newsDetailArticle .gp-lead-media,
    #newsDetailArticle .gp-doc-card,
    #newsDetailArticle .gp-notice {
        border: 1px solid CanvasText;
    }
    #newsDetailArticle .gp-back-link { border: 2px solid ButtonText; }
}

/* ==========================================================================
   3. LIGHTBOX (behavior unchanged; palette follows About Us, 44px controls)
   Sits outside #newsDetailArticle in the markup, so it keeps its own selectors.
   ========================================================================== */
.lightbox-overlay {
    display: none; position: fixed; inset: 0; background: rgba(7, 20, 13, 0.96); z-index: 9999;
    align-items: center; justify-content: center; flex-direction: column;
    -webkit-tap-highlight-color: transparent;
}
.lightbox-media {
    display: flex; align-items: center; justify-content: center;
    max-width: 100%; max-height: 82vh; width: 100%; user-select: none;
    touch-action: pan-y;
}
.lightbox-media img,
.lightbox-media video {
    max-width: 94vw; max-height: 82vh; object-fit: contain; border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-top-bar {
    position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between;
    align-items: center; padding: 16px 18px; z-index: 10001;
    background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
}
.lightbox-counter-pill {
    color: white; font-size: 0.9rem; font-weight: 600; background: rgba(255,255,255,0.15);
    padding: 6px 14px; border-radius: 20px; backdrop-filter: blur(4px);
}
.lightbox-close {
    background: rgba(255,255,255,0.15); border: none; width: 44px; height: 44px;
    border-radius: 50%; font-size: 1.15rem; cursor: pointer; color: white;
    backdrop-filter: blur(4px); transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); border: none;
    width: 46px; height: 46px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; color: white;
    backdrop-filter: blur(4px); transition: background 0.2s; z-index: 10001;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-bottom-bar {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 10001;
    display: flex; align-items: center; justify-content: center; gap: 18px;
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
.lightbox-download-btn {
    min-height: 44px; padding: 0 22px; border: 1px solid rgba(214, 181, 109, .75); border-radius: 999px;
    background: linear-gradient(180deg, #27883A 0%, #1B6A2E 100%); color: white;
    text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible,
.lightbox-download-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (max-width: 640px) {
    .lightbox-nav { width: 44px; height: 44px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-bottom-bar { flex-direction: column; gap: 8px; padding-top: 10px; }
    .lightbox-download-btn { padding: 0 20px; font-size: 0.88rem; }
}

/* ==========================================================================
   4. GSC-TEMPC MASTER HERO SYNC — NEWS DETAIL PAGE (unchanged)
   Hero layout is unchanged. The primary hero button is white with logo-green
   text/icon and the dark photo overlays stay. The only edit from the inline
   version is the image path: url('company.jpg') became url('../../company.jpg')
   because this file lives in assets/css/.
   ========================================================================== */
body:has(#hp-main-content) { background: #fff; }

.hero#hp-main-content {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: max(640px, 82svh);
    height: max(640px, 82svh);
    padding: 148px 30px 90px !important;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    color: #fff;
    background-color: #071d12;
    background-image: url('../../company.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero#hp-main-content .hp-hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity .7s ease, transform 12s cubic-bezier(.22,1,.36,1);
    filter: saturate(.78) contrast(1.02) brightness(.82);
    pointer-events: none;
}
.hero#hp-main-content .hp-hero-video.is-visible { opacity: 1; transform: scale(1.045); }
@media (prefers-reduced-motion: reduce) { .hero#hp-main-content .hp-hero-video { display: none; } }

.hero#hp-main-content::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 100% at 70% 46%, rgba(10,42,24,.06) 0%, rgba(4,19,11,.20) 60%, rgba(2,13,8,.56) 100%),
        linear-gradient(90deg, rgba(3,20,11,.72) 0%, rgba(4,24,13,.42) 38%, rgba(3,18,10,.12) 72%, rgba(3,15,9,.28) 100%),
        linear-gradient(180deg, rgba(3,17,10,.58) 0%, rgba(3,17,10,.03) 22%, rgba(3,17,10,.04) 62%, rgba(2,14,8,.78) 100%);
}

.hero#hp-main-content .hp-ledger-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .12;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.12) 70%, transparent);
    mask-image: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.12) 70%, transparent);
    background-image: linear-gradient(to bottom, rgba(239,247,237,.16) 1px, transparent 1px);
    background-size: 100% 92px;
}

.hero#hp-main-content .hero-particles { position: absolute; inset: 0; z-index: 1; opacity: .16; pointer-events: none; }
.hero#hp-main-content .hero-particles .particle {
    position: absolute; width: 2px; height: 2px; border-radius: 50%;
    background: rgba(255,255,255,.5); animation: ndParticleFloat 8s ease-in-out infinite;
}
.hero#hp-main-content .hero-particles .particle:nth-child(1) { left: 18%; top: 24%; animation-delay: -1.5s; }
.hero#hp-main-content .hero-particles .particle:nth-child(2) { left: 42%; top: 62%; animation-delay: -4s; }
.hero#hp-main-content .hero-particles .particle:nth-child(3) { left: 66%; top: 34%; animation-delay: -2.5s; }
.hero#hp-main-content .hero-particles .particle:nth-child(4) { left: 78%; top: 70%; animation-delay: -6s; }
.hero#hp-main-content .hero-particles .particle:nth-child(5) { left: 30%; top: 80%; animation-delay: -3.2s; }
@keyframes ndParticleFloat { 0%, 100% { transform: translate3d(0,0,0); opacity: .15; } 50% { transform: translate3d(0,-18px,0); opacity: .5; } }

.hero#hp-main-content .hero-grid {
    position: relative;
    z-index: 2;
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.hero#hp-main-content .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    margin: 0;
    text-align: left;
    padding-top: clamp(38px, 7vh, 82px);
}

.hero#hp-main-content .hero-content::before {
    content: "GENERAL SANTOS CITY TEACHERS \A & EMPLOYEES MULTI-PURPOSE COOPERATIVE";
    white-space: pre;
    display: block;
    max-width: 760px;
    margin: 0 0 30px;
    color: rgba(245,249,241,.90);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(.63rem, .72vw, .78rem);
    line-height: 1.9;
    font-weight: 500;
    letter-spacing: .30em;
    text-transform: uppercase;
    text-shadow: 0 2px 14px rgba(0,0,0,.35);
    animation: gscLuxuryReveal .95s cubic-bezier(.22,1,.36,1) both;
}
.hero#hp-main-content .hero-content::after {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 72px;
    height: 1px;
    background: rgba(230,197,106,.82);
    transform-origin: left center;
    animation: gscLuxuryRule .9s cubic-bezier(.22,1,.36,1) .08s both;
}

.hero#hp-main-content h1 {
    max-width: 22ch;
    margin: 0;
    line-height: .96;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2.6rem, 5.4vw, 5.2rem);
    font-weight: 500;
    letter-spacing: -.02em;
    text-align: left;
    animation: gscLuxuryReveal 1.15s cubic-bezier(.22,1,.36,1) .18s both;
}
.hero#hp-main-content h1 em {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-style: normal;
    font-weight: 700;
    letter-spacing: -.02em;
    display: inline;
    background: linear-gradient(105deg, #f8fbf1 0%, #e7f5df 34%, #fffef6 58%, #d9eed6 82%, #f7faef 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 10px 40px rgba(0,0,0,.12);
    animation: gscTitleSheen 8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .hero#hp-main-content h1 em { animation: none; background-position: 0 0; } }

.hero#hp-main-content .hero-content > p {
    max-width: 760px;
    margin: 30px 0 0;
    color: rgba(249,251,245,.93);
    font-family: 'Bodoni Moda', Georgia, serif;
    font-size: clamp(1.02rem, 1.4vw, 1.3rem);
    line-height: 1.62;
    font-weight: 400;
    letter-spacing: .005em;
    text-align: left;
    text-shadow: 0 3px 18px rgba(0,0,0,.32);
    animation: gscLuxuryReveal 1s cubic-bezier(.22,1,.36,1) .48s both;
}

.hero#hp-main-content .hp-hero-est {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    margin: 26px 0 0;
    animation: gscLuxuryReveal 1s cubic-bezier(.22,1,.36,1) .58s both;
}
.hero#hp-main-content .hp-hero-est-line { width: 42px; height: 1px; background: rgba(230,197,106,.78); flex-shrink: 0; }
.hero#hp-main-content .hp-hero-est span:last-child {
    color: rgba(232,218,166,.94);
    font-size: .72rem;
    letter-spacing: .22em;
    font-weight: 600;
    text-transform: uppercase;
}

.hero#hp-main-content .hero-buttons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 34px;
    margin-top: 34px;
    animation: gscLuxuryReveal 1s cubic-bezier(.22,1,.36,1) .68s both;
}
.hero#hp-main-content .hero-buttons .btn-primary {
    min-height: 68px;
    padding: 0 34px;
    border-radius: 5px;
    background: #ffffff;
    color: #30AA28;
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: 0 16px 40px rgba(0,0,0,.22), 0 0 0 1px rgba(255,255,255,.10) inset;
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, background .35s ease;
}
.hero#hp-main-content .hero-buttons .btn-primary:hover { transform: translateY(-4px); background: #fffef5; box-shadow: 0 22px 46px rgba(0,0,0,.28); }
.hero#hp-main-content .hero-buttons .btn-primary i { color: #30AA28; margin-right: 8px; }
.hero#hp-main-content .hero-buttons .btn-outline {
    width: auto;
    min-height: auto;
    padding: 8px 0 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(239,226,179,.96);
    box-shadow: none;
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-decoration: none;
    position: relative;
}
.hero#hp-main-content .hero-buttons .btn-outline::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: rgba(230,197,106,.78);
    transform: scaleX(.45);
    transform-origin: left;
    transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.hero#hp-main-content .hero-buttons .btn-outline:hover { color: #fff8df; background: transparent; transform: translateY(-2px); }
.hero#hp-main-content .hero-buttons .btn-outline:hover::after { transform: scaleX(1); }
.hero#hp-main-content .hero-buttons .btn-outline i { color: rgba(230,197,106,.92); margin-right: 7px; }

.hero#hp-main-content .hp-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 22px;
    margin-top: 30px;
    opacity: .82;
    animation: gscLuxuryReveal 1s cubic-bezier(.22,1,.36,1) .78s both;
}
.hero#hp-main-content .hp-trust-chip {
    padding: 0; border: 0; background: transparent; border-radius: 0;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    color: rgba(244,247,238,.72);
    font-size: .67rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.hero#hp-main-content .hp-trust-chip i { color: rgba(230,197,106,.88); margin-right: 7px; }

.hero#hp-main-content .hp-hero-bottom-fade {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 180px; z-index: 3; pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(7,29,18,.08) 38%, #fff 100%);
}

.hero#hp-main-content .hp-hero-scroll-cue {
    position: absolute;
    left: auto; right: 8%; bottom: 30px; z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: rgba(246,249,241,.74);
    text-decoration: none;
    animation: gscScrollReveal .9s cubic-bezier(.22,1,.36,1) 1.25s both, gscScrollNudge 2.6s ease-in-out 2s infinite;
    transition: color .2s ease;
}
.hero#hp-main-content .hp-hero-scroll-cue:hover { color: rgba(255,255,255,.95); }
.hero#hp-main-content .hp-hero-scroll-cue-line { width: 1px; height: 46px; background: linear-gradient(to bottom, rgba(230,197,106,0), rgba(230,197,106,.88)); }
.hero#hp-main-content .hp-hero-scroll-label { font-family: 'Poppins', sans-serif; font-size: .58rem; letter-spacing: .30em; text-transform: uppercase; font-weight: 600; }

@keyframes gscLuxuryReveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gscLuxuryRule { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@keyframes gscTitleSheen { 0%, 22% { background-position: 180% 0; } 48%, 62% { background-position: 0% 0; } 100% { background-position: -180% 0; } }
@keyframes gscScrollReveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gscScrollNudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

@media (max-width: 1100px) {
    .hero#hp-main-content { padding-left: 24px !important; padding-right: 24px !important; }
    .hero#hp-main-content h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
    .hero#hp-main-content .hero-content > p { max-width: 680px; }
}
@media (max-width: 768px) {
    .hero#hp-main-content { min-height: auto; height: auto; padding: 128px 20px 90px !important; align-items: center; }
    .hero#hp-main-content .hero-grid { max-width: 100%; }
    .hero#hp-main-content .hero-content { max-width: 100%; padding-top: 18px; }
    .hero#hp-main-content .hero-content::before { margin-bottom: 24px; font-size: .58rem; letter-spacing: .20em; line-height: 1.8; }
    .hero#hp-main-content h1 { font-size: clamp(2.1rem, 8vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em; max-width: 100%; }
    .hero#hp-main-content .hero-content > p { margin-top: 24px; font-size: 1rem; line-height: 1.6; }
    .hero#hp-main-content .hp-hero-est { margin-top: 22px; gap: 9px; }
    .hero#hp-main-content .hp-hero-est-line { width: 26px; }
    .hero#hp-main-content .hp-hero-est span:last-child { font-size: .62rem; letter-spacing: .13em; }
    .hero#hp-main-content .hero-buttons { gap: 18px; flex-wrap: wrap; margin-top: 28px; }
    .hero#hp-main-content .hero-buttons .btn-primary { min-height: 60px; padding: 0 23px; font-size: .76rem; }
    .hero#hp-main-content .hero-buttons .btn-outline { font-size: .82rem; }
    .hero#hp-main-content .hp-trust-row { gap: 12px 18px; margin-top: 26px; }
    .hero#hp-main-content .hp-trust-chip { font-size: .58rem; }
    .hero#hp-main-content .hp-hero-scroll-cue { right: 22px; bottom: 26px; }
}
@media (max-width: 520px) {
    .hero#hp-main-content { padding-left: 18px !important; padding-right: 18px !important; }
    .hero#hp-main-content .hero-content::before { max-width: 320px; font-size: .54rem; letter-spacing: .16em; }
    .hero#hp-main-content h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
    .hero#hp-main-content .hero-content > p { max-width: 340px; font-size: .96rem; }
    .hero#hp-main-content .hero-buttons { align-items: flex-start; flex-direction: column; }
    .hero#hp-main-content .hp-trust-row { display: none; }
    .hero#hp-main-content .hp-hero-scroll-cue { display: flex; }
}
@media (orientation: landscape) and (max-height: 560px) {
    .hero#hp-main-content { min-height: 620px; height: auto; padding-top: 116px !important; }
    .hero#hp-main-content h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
    .hero#hp-main-content .hero-content > p { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero#hp-main-content .hero-content::before,
    .hero#hp-main-content .hero-content::after,
    .hero#hp-main-content h1,
    .hero#hp-main-content h1 em,
    .hero#hp-main-content .hero-content > p,
    .hero#hp-main-content .hp-hero-est,
    .hero#hp-main-content .hero-buttons,
    .hero#hp-main-content .hp-trust-row,
    .hero#hp-main-content .hp-hero-scroll-cue {
        animation: none !important;
    }
}