/*
Theme Name: PFO Modern
Theme URI: https://pfo.info.pl/
Author: OpenAI for PFO
Author URI: https://openai.com/
Description: Nowoczesny motyw strony Polskiej Federacji Ornitologicznej inspirowany przygotowaną wizualizacją. Zawiera nowy układ strony głównej, sekcję aktualności, wydarzenia i nowoczesny footer.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: pfo-modern
*/

:root{
  --pfo-navy:#082b57;
  --pfo-navy-dark:#041b38;
  --pfo-red:#c62828;
  --pfo-red-dark:#a01919;
  --pfo-yellow:#f2c94c;
  --pfo-ink:#12243b;
  --pfo-muted:#637084;
  --pfo-bg:#f5f7fb;
  --pfo-border:#dfe6f0;
  --pfo-white:#fff;
  --shadow:0 12px 30px rgba(5,25,55,.10);
  --radius:18px;
  --container:1280px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;color:var(--pfo-ink);background:var(--pfo-bg);line-height:1.6}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
.container{width:min(var(--container),calc(100% - 32px));margin-inline:auto}
.section-title{display:flex;align-items:center;gap:10px;font-size:2rem;line-height:1.1;margin:0 0 22px;font-weight:800;color:var(--pfo-navy-dark)}
.section-title:before{content:"";width:22px;height:3px;background:var(--pfo-red);border-radius:999px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:14px 24px;border-radius:14px;font-weight:700;transition:.2s ease;border:1px solid transparent}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--pfo-red);color:#fff;box-shadow:var(--shadow)}
.btn-primary:hover{background:var(--pfo-red-dark)}
.btn-secondary{background:rgba(255,255,255,.09);color:#fff;border-color:rgba(255,255,255,.36)}
.btn-secondary:hover{background:rgba(255,255,255,.16)}
.btn-navy{background:var(--pfo-navy);color:#fff}
.btn-navy:hover{background:var(--pfo-navy-dark)}
.btn-yellow{background:var(--pfo-yellow);color:var(--pfo-navy-dark)}
.btn-yellow:hover{filter:brightness(.97)}
.card{background:var(--pfo-white);border:1px solid var(--pfo-border);border-radius:var(--radius);box-shadow:var(--shadow)}
.site-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid rgba(17,33,55,.08)}
.header-row{display:flex;align-items:center;gap:18px;min-height:82px}
.branding{display:flex;align-items:center;gap:14px;min-width:285px;flex:0 0 auto}
.branding img{width:62px;height:62px;object-fit:contain;border-radius:12px;background:#fff}
.branding-text{display:flex;flex-direction:column;line-height:1.08}
.branding-title{font-size:1.12rem;font-weight:900;color:var(--pfo-red);letter-spacing:.015em;text-transform:uppercase;white-space:nowrap}
.branding-sub{font-size:.82rem;color:var(--pfo-muted);font-weight:700}
.primary-nav{margin-left:auto}
.primary-nav ul{list-style:none;display:flex;align-items:center;gap:18px;padding:0;margin:0}
.primary-nav a{display:block;padding:10px 0;color:var(--pfo-ink);font-weight:750;font-size:.88rem;position:relative;white-space:nowrap}
.primary-nav .current-menu-item>a,.primary-nav a:hover{color:var(--pfo-red)}
.primary-nav .current-menu-item>a:after,.primary-nav a:hover:after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:3px;border-radius:999px;background:var(--pfo-red)}
.header-actions{display:flex;align-items:center;gap:10px;margin-left:10px;flex:0 0 auto}.header-actions .btn{padding:12px 16px;white-space:nowrap;font-size:.9rem}
.menu-toggle{display:none;background:none;border:0;font-size:1.5rem;color:var(--pfo-navy-dark);padding:8px;cursor:pointer}
.hero{position:relative;background-image:linear-gradient(90deg,rgba(4,27,56,.98) 0%,rgba(4,27,56,.94) 38%,rgba(4,27,56,.70) 58%,rgba(4,27,56,.18) 100%),url("assets/images/hero-canary.jpg");background-size:cover;background-position:center center;overflow:hidden}
.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 70%,rgba(4,27,56,.16));pointer-events:none}
.hero-grid{display:block;min-height:520px;padding:82px 0 108px;position:relative;z-index:1}
.hero-copy{color:#fff;max-width:760px}
.hero-kicker{width:48px;height:4px;background:var(--pfo-red);border-radius:999px;margin-bottom:20px}
.hero-title{margin:0;font-size:clamp(3rem,5.1vw,4.85rem);line-height:.97;font-family:Georgia,"Times New Roman",serif;font-weight:800;letter-spacing:-.035em;text-wrap:balance}
.hero-lead{font-size:1.24rem;line-height:1.48;color:rgba(255,255,255,.93);margin:24px 0 32px;max-width:720px;text-shadow:0 2px 12px rgba(0,0,0,.16)}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px}
.hero-visual{display:none}
.feature-strip{margin-top:-54px;position:relative;z-index:3}
.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.feature-card{padding:26px 22px;display:flex;align-items:flex-start;gap:16px;min-height:132px}
.feature-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:#f6f9ff;color:var(--pfo-navy);font-size:1.35rem;font-weight:900;border:1px solid var(--pfo-border)}
.feature-card h3{font-size:1.25rem;margin:0 0 6px;color:var(--pfo-navy-dark)}
.feature-card p{margin:0;color:var(--pfo-muted);font-size:.95rem}
.feature-arrow{margin-left:auto;color:var(--pfo-red);font-size:1.45rem;font-weight:800;align-self:center}
.main-sections{padding:56px 0 22px}
.columns-grid{display:grid;grid-template-columns:1.5fr 1fr .95fr;gap:28px;align-items:start}
.news-grid{display:grid;grid-template-columns:1.2fr .9fr;gap:18px}
.featured-news{overflow:hidden}
.featured-news .thumb{height:255px;background:linear-gradient(135deg,#b78442,#845621);position:relative}
.featured-news .thumb:before{content:"WAŻNE";position:absolute;left:18px;top:18px;background:var(--pfo-red);color:#fff;font-weight:800;padding:8px 12px;border-radius:10px;font-size:.82rem}
.featured-news .thumb:after{content:"";position:absolute;inset:18% 18% auto auto;width:120px;height:96px;background:rgba(255,255,255,.18);border-radius:12px;box-shadow:-44px 42px 0 rgba(255,255,255,.12), -20px 96px 0 rgba(255,255,255,.09)}
.featured-news .content{padding:24px}
.meta{font-size:.85rem;color:var(--pfo-muted);font-weight:700}
.featured-news h3{margin:10px 0 12px;font-size:2rem;line-height:1.1;color:var(--pfo-navy-dark)}
.featured-news p{margin:0 0 18px;color:var(--pfo-muted)}
.news-list{display:grid;gap:14px}
.news-item{display:grid;grid-template-columns:92px 1fr;gap:14px;padding:12px}
.news-item .mini-thumb{border-radius:14px;background:linear-gradient(145deg,#d9dee8,#f0f3f8);min-height:78px;position:relative;overflow:hidden}
.news-item .mini-thumb:after{content:"";position:absolute;inset:18px;background:linear-gradient(135deg, rgba(198,40,40,.2), rgba(8,43,87,.22));border-radius:8px}
.news-item h4{margin:4px 0 4px;font-size:1.05rem;line-height:1.2;color:var(--pfo-navy-dark)}
.news-item p{margin:0;color:var(--pfo-muted);font-size:.92rem}
.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.stat-card{padding:26px 18px;text-align:center;min-height:190px;display:flex;flex-direction:column;justify-content:center}
.stat-icon{font-size:2rem;margin-bottom:8px}
.stat-value{font-size:2.7rem;line-height:1;font-weight:900;color:var(--pfo-navy-dark);margin-bottom:10px}
.stat-label{font-weight:700;color:var(--pfo-muted)}
.events-list{display:grid;gap:14px}
.event-card{padding:0;display:grid;grid-template-columns:116px 1fr;overflow:hidden}
.event-date{display:grid;place-items:center;padding:18px;background:linear-gradient(180deg,#fff,#f7f9fc);border-right:1px solid var(--pfo-border);text-align:center}
.event-date strong{display:block;font-size:3rem;line-height:1;color:var(--pfo-navy-dark)}
.event-date span{display:block;font-weight:800;color:var(--pfo-muted);text-transform:uppercase;letter-spacing:.06em}
.event-info{padding:20px}
.event-info h4{margin:0 0 8px;font-size:1.18rem;line-height:1.25;color:var(--pfo-navy-dark)}
.event-info p{margin:0;color:var(--pfo-muted)}
.cta-band{margin:28px 0 0;padding-bottom:28px}
.cta-inner{padding:28px 32px;background:linear-gradient(90deg,var(--pfo-navy-dark),var(--pfo-navy));color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px;position:relative;overflow:hidden}
.cta-inner:after{content:"";position:absolute;right:-40px;top:-20px;width:280px;height:180px;background:radial-gradient(circle at center, rgba(255,255,255,.14), transparent 55%);transform:rotate(-8deg)}
.cta-copy h3{font-size:2rem;line-height:1.1;margin:0 0 10px}
.cta-copy p{margin:0;color:rgba(255,255,255,.8)}
.site-footer{background:linear-gradient(180deg,var(--pfo-navy),var(--pfo-navy-dark));color:#fff;margin-top:0}
.footer-top{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:26px;padding:40px 0}
.footer-brand{display:flex;gap:16px}
.footer-brand img{width:76px;height:76px;object-fit:contain;background:#fff;border-radius:14px}
.footer-title{font-weight:900;text-transform:uppercase;letter-spacing:.02em;font-size:1.2rem;margin:0 0 6px}
.footer-col h4{margin:0 0 14px;font-size:1rem;letter-spacing:.04em;text-transform:uppercase;color:var(--pfo-yellow)}
.footer-col ul{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.footer-col a{color:rgba(255,255,255,.9)}
.footer-col a:hover{color:#fff}
.socials{display:flex;gap:10px;flex-wrap:wrap}
.socials a{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.12);font-weight:800}
.socials a:hover{background:rgba(255,255,255,.18)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:16px 0;font-size:.92rem;color:rgba(255,255,255,.72);display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}
.page-shell{padding:40px 0 70px}
.entry-card{padding:34px}
.entry-title{margin:0 0 18px;color:var(--pfo-navy-dark);font-size:2.4rem;line-height:1.05}
.entry-content{color:var(--pfo-ink)}
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.post-card{overflow:hidden}
.post-card .thumb{height:180px;background:linear-gradient(135deg,#d9e4f4,#f5f8fc)}
.post-card .body{padding:18px}
.post-card h3{margin:0 0 8px;font-size:1.28rem;line-height:1.2;color:var(--pfo-navy-dark)}
.post-card p{margin:0;color:var(--pfo-muted)}
@media (max-width:1180px){
  .primary-nav ul{gap:16px}
  .header-actions .btn{padding:12px 14px}
  .feature-grid{grid-template-columns:repeat(2,1fr)}
  .columns-grid{grid-template-columns:1fr}
}
@media (max-width:980px){
  .menu-toggle{display:block;margin-left:auto}
  .primary-nav,.header-actions{display:none}
  .site-header.nav-open .primary-nav,.site-header.nav-open .header-actions{display:block}
  .site-header.nav-open .header-row{align-items:flex-start;flex-wrap:wrap;padding-bottom:18px}
  .site-header.nav-open .primary-nav{width:100%;order:10}
  .site-header.nav-open .primary-nav ul{flex-direction:column;align-items:flex-start;gap:4px;padding-top:14px}
  .site-header.nav-open .primary-nav a{padding:10px 0}
  .site-header.nav-open .header-actions{width:100%;display:flex;flex-wrap:wrap;order:11;margin:8px 0 0}
  .hero-grid{min-height:500px;padding:64px 0 96px}
  .news-grid{grid-template-columns:1fr}
  .footer-top{grid-template-columns:1fr 1fr}
  .post-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:680px){
  .branding img{width:56px;height:56px}
  .branding-title{font-size:.98rem;white-space:normal}
  .branding-sub{font-size:.82rem}
  .container{width:min(var(--container),calc(100% - 20px))}
  .hero-title{font-size:2.75rem}
  .hero-lead{font-size:1.02rem}
  .feature-grid{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:1fr}
  .event-card{grid-template-columns:92px 1fr}
  .cta-inner{padding:24px;align-items:flex-start;flex-direction:column}
  .footer-top{grid-template-columns:1fr}
  .post-grid{grid-template-columns:1fr}
  .entry-card{padding:24px}
  .entry-title{font-size:2rem}
}

body.admin-bar .site-header{top:32px}
@media (max-width:782px){body.admin-bar .site-header{top:46px}}


/* =========================================================
   PFO Modern 1.2.0 — responsive layout for 1366/1024/tablet
   ========================================================= */
html,body{max-width:100%;overflow-x:hidden}
.header-row>*,.columns-grid>*,.news-grid>*,.feature-grid>*{min-width:0}
.container{width:min(var(--container),calc(100% - clamp(24px,4vw,64px)))}
.section-title{font-size:clamp(1.45rem,2vw,2rem);margin-bottom:clamp(16px,2vw,22px)}
.btn{padding:clamp(11px,1.1vw,14px) clamp(16px,1.7vw,24px);font-size:clamp(.85rem,.9vw,.98rem)}

/* Desktop: fluid dimensions instead of fixed 1280-style proportions */
.header-row{min-height:clamp(70px,5.6vw,82px);gap:clamp(10px,1.2vw,18px)}
.branding{min-width:clamp(220px,19vw,285px);gap:clamp(9px,1vw,14px)}
.branding img{width:clamp(50px,4vw,62px);height:clamp(50px,4vw,62px)}
.branding-title{font-size:clamp(.92rem,1.05vw,1.12rem)}
.branding-sub{font-size:clamp(.72rem,.75vw,.82rem)}
.primary-nav ul{gap:clamp(8px,1vw,18px)}
.primary-nav a{font-size:clamp(.76rem,.79vw,.88rem)}
.header-actions{gap:8px;margin-left:clamp(0px,.6vw,10px)}
.header-actions .btn{padding:10px clamp(10px,1vw,16px);font-size:clamp(.78rem,.8vw,.9rem)}

.hero{background-position:62% center}
.hero-grid{
  min-height:clamp(410px,58svh,540px);
  padding:clamp(50px,7vh,82px) 0 clamp(78px,10vh,108px);
}
.hero-copy{max-width:min(650px,55vw)}
.hero-title{font-size:clamp(2.65rem,4.35vw,4.45rem);line-height:.98}
.hero-lead{font-size:clamp(1rem,1.25vw,1.22rem);max-width:640px;margin:clamp(18px,2vw,24px) 0 clamp(24px,2.5vw,32px)}
.feature-strip{margin-top:clamp(-54px,-3.4vw,-38px)}
.feature-grid{gap:clamp(14px,1.4vw,22px)}
.feature-card{padding:clamp(18px,1.6vw,26px) clamp(16px,1.4vw,22px);gap:clamp(11px,1vw,16px);min-height:clamp(112px,9.5vw,132px)}
.feature-icon{flex:0 0 auto;width:clamp(44px,3.6vw,52px);height:clamp(44px,3.6vw,52px)}
.feature-card h3{font-size:clamp(1.03rem,1.1vw,1.25rem)}
.feature-card p{font-size:clamp(.84rem,.82vw,.95rem);line-height:1.45}

.main-sections{padding:clamp(38px,4vw,56px) 0 22px}
.columns-grid{grid-template-columns:minmax(0,1.48fr) minmax(250px,.92fr) minmax(280px,.92fr);gap:clamp(18px,1.8vw,28px)}
.news-grid{grid-template-columns:minmax(0,1.15fr) minmax(240px,.85fr);gap:clamp(14px,1.2vw,18px)}
.featured-news .thumb{height:clamp(200px,18vw,255px)}
.featured-news .content{padding:clamp(18px,1.5vw,24px)}
.featured-news h3{font-size:clamp(1.45rem,1.8vw,2rem)}
.news-item{grid-template-columns:clamp(72px,6vw,92px) minmax(0,1fr)}
.stat-card{padding:clamp(18px,1.7vw,26px) 14px;min-height:clamp(150px,13vw,190px)}
.stat-value{font-size:clamp(2rem,2.6vw,2.7rem)}
.event-card{grid-template-columns:clamp(88px,7vw,116px) minmax(0,1fr)}
.event-date{padding:clamp(12px,1.2vw,18px)}
.event-date strong{font-size:clamp(2.2rem,2.8vw,3rem)}
.event-info{padding:clamp(15px,1.4vw,20px)}
.event-info h4{font-size:clamp(1rem,1.02vw,1.18rem)}
.footer-top{gap:clamp(18px,2vw,26px)}

/* Compact desktop / common 1366px laptops */
@media (max-width:1460px){
  :root{--container:1180px}
  .branding{min-width:230px}
  .branding-title{max-width:170px;white-space:normal;line-height:1.05}
  .primary-nav ul{gap:11px}
  .primary-nav a{font-size:.78rem}
  .header-actions .btn{padding:10px 12px;font-size:.8rem}
  .hero-copy{max-width:590px}
  .hero-title{font-size:clamp(2.8rem,4.2vw,3.85rem)}
  .feature-card{min-height:122px}
  .columns-grid{grid-template-columns:minmax(0,1.35fr) minmax(245px,.85fr) minmax(260px,.9fr)}
}

/* Switch header to hamburger before it starts wrapping */
@media (max-width:1280px){
  :root{--container:1080px}
  .menu-toggle{display:block;margin-left:auto}
  .primary-nav,.header-actions{display:none}
  .site-header.nav-open .header-row{align-items:flex-start;flex-wrap:wrap;padding-bottom:16px}
  .site-header.nav-open .primary-nav{display:block;width:100%;order:10;margin-left:0;border-top:1px solid var(--pfo-border);padding-top:10px}
  .site-header.nav-open .primary-nav ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:4px 14px}
  .site-header.nav-open .primary-nav a{padding:9px 8px;font-size:.9rem;white-space:normal;border-radius:8px}
  .site-header.nav-open .primary-nav a:hover{background:#f2f6fb}
  .site-header.nav-open .primary-nav a:after{display:none}
  .site-header.nav-open .header-actions{display:flex;width:100%;order:11;margin:8px 0 0;gap:10px}
  .site-header.nav-open .header-actions .btn{font-size:.9rem;padding:11px 16px}
  .hero{background-position:66% center}
  .hero-copy{max-width:56%}
  .hero-title{font-size:clamp(2.6rem,4.8vw,3.7rem)}
  .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .columns-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .columns-grid>div:first-child{grid-column:1/-1}
  .news-grid{grid-template-columns:minmax(0,1.18fr) minmax(280px,.82fr)}
}

/* 1024px notebooks and landscape tablets */
@media (max-width:1060px){
  :root{--container:920px}
  .hero{
    background-position:69% center;
    background-image:linear-gradient(90deg,rgba(4,27,56,.99) 0%,rgba(4,27,56,.96) 42%,rgba(4,27,56,.80) 63%,rgba(4,27,56,.42) 100%),url("assets/images/hero-canary.jpg");
  }
  .hero-grid{min-height:430px;padding:54px 0 84px}
  .hero-copy{max-width:62%}
  .hero-title{font-size:clamp(2.45rem,5vw,3.35rem)}
  .hero-lead{font-size:1rem;line-height:1.42}
  .feature-strip{margin-top:-38px}
  .feature-card{min-height:112px}
  .footer-top{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Tablet portrait */
@media (max-width:820px){
  .container{width:calc(100% - 28px)}
  .site-header.nav-open .primary-nav ul{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero{
    background-position:72% center;
    background-image:linear-gradient(90deg,rgba(4,27,56,.99) 0%,rgba(4,27,56,.96) 56%,rgba(4,27,56,.73) 100%),url("assets/images/hero-canary.jpg");
  }
  .hero-grid{min-height:410px;padding:48px 0 78px}
  .hero-copy{max-width:82%}
  .hero-title{font-size:clamp(2.35rem,7vw,3.2rem)}
  .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .feature-card{min-height:0}
  .columns-grid{grid-template-columns:1fr}
  .columns-grid>div:first-child{grid-column:auto}
  .news-grid{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cta-inner{align-items:flex-start;flex-direction:column;padding:24px}
  .footer-top{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Phones */
@media (max-width:620px){
  .container{width:calc(100% - 20px)}
  .header-row{min-height:68px}
  .branding{min-width:0;max-width:calc(100% - 52px)}
  .branding img{width:48px;height:48px}
  .branding-title{font-size:.86rem;max-width:190px}
  .branding-sub{font-size:.7rem}
  .site-header.nav-open .primary-nav ul{grid-template-columns:1fr}
  .site-header.nav-open .header-actions{flex-direction:column;align-items:stretch}
  .site-header.nav-open .header-actions .btn{width:100%}
  .hero{
    background-position:76% center;
    background-image:linear-gradient(90deg,rgba(4,27,56,.995) 0%,rgba(4,27,56,.97) 68%,rgba(4,27,56,.78) 100%),url("assets/images/hero-canary.jpg");
  }
  .hero-grid{min-height:395px;padding:42px 0 68px}
  .hero-copy{max-width:100%}
  .hero-title{font-size:clamp(2.1rem,11vw,2.8rem);letter-spacing:-.025em}
  .hero-lead{font-size:.96rem;max-width:95%;margin:16px 0 22px}
  .hero-actions{display:grid;grid-template-columns:1fr;max-width:310px}
  .hero-actions .btn{width:100%}
  .feature-strip{margin-top:-26px}
  .feature-grid{grid-template-columns:1fr}
  .feature-card{padding:18px 16px}
  .feature-arrow{font-size:1.2rem}
  .stats-grid{grid-template-columns:1fr}
  .event-card{grid-template-columns:82px minmax(0,1fr)}
  .event-date strong{font-size:2rem}
  .event-date span{font-size:.72rem}
  .footer-top{grid-template-columns:1fr}
  .footer-bottom{display:block;text-align:center}
  .footer-bottom>div+div{margin-top:8px}
  .post-grid{grid-template-columns:1fr}
  .entry-card{padding:20px}
}

/* Short-height displays: reduce hero vertical footprint */
@media (min-width:821px) and (max-height:760px){
  .hero-grid{min-height:390px;padding-top:44px;padding-bottom:72px}
  .hero-title{font-size:clamp(2.55rem,4vw,3.65rem)}
  .hero-lead{margin:16px 0 22px;font-size:1rem}
  .feature-strip{margin-top:-34px}
}


/* ===== PFO Modern 1.3.0 Birdy style ===== */
.hero-birdy{background:linear-gradient(180deg,#ffffff 0 0);padding-top:0;overflow:visible}
.hero-birdy-grid{display:grid;grid-template-columns:minmax(360px,1fr) minmax(420px,1.12fr);gap:0;align-items:stretch;padding:24px 0 0}
.hero-copy-birdy{background:linear-gradient(180deg,#041938 0%,#052856 70%,#0a2f61 100%);border-radius:34px 0 0 34px;padding:54px 56px 54px 56px;position:relative;overflow:hidden;min-height:500px;display:flex;flex-direction:column;justify-content:center;box-shadow:var(--shadow)}
.hero-copy-birdy:before,.hero-copy-birdy:after{content:"";position:absolute;inset:auto auto 0 0;pointer-events:none}
.hero-copy-birdy:before{width:260px;height:260px;left:-40px;bottom:-55px;background:radial-gradient(circle, rgba(255,255,255,.10), transparent 68%)}
.hero-copy-birdy:after{right:18px;top:30px;left:auto;width:180px;height:420px;opacity:.08;background:repeating-linear-gradient(180deg, transparent 0 14px, rgba(255,255,255,.25) 14px 16px)}
.hero-copy-birdy .hero-title{font-size:clamp(3rem,5vw,4.9rem);line-height:.95;margin-bottom:18px}
.hero-copy-birdy .hero-lead-accent{font-size:1.35rem;line-height:1.35;color:var(--pfo-yellow);font-weight:700;max-width:520px;margin:0 0 10px}
.hero-copy-birdy .hero-sublead{font-size:1.1rem;line-height:1.55;color:rgba(255,255,255,.9);max-width:560px;margin:0 0 28px}
.hero-stage{position:relative;min-height:500px;border-radius:0 34px 34px 0;overflow:hidden;box-shadow:var(--shadow);background:#d7c0a5}
.hero-stage img{width:100%;height:100%;object-fit:cover;display:block}
.hero-stage:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg, rgba(6,26,56,.22) 0%, rgba(6,26,56,.04) 18%, transparent 36%)}
.hero-stage:after{content:"";position:absolute;left:-120px;top:-40px;width:320px;height:640px;border:3px solid rgba(238,187,78,.9);border-radius:50%;opacity:.95}
.hero-badge{position:absolute;right:18px;bottom:24px;width:128px;height:128px;border-radius:50%;background:radial-gradient(circle at 30% 30%,#163868,#071a38 72%);border:2px solid rgba(222,177,62,.9);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;color:var(--pfo-yellow);font-weight:700;text-align:center;box-shadow:0 8px 28px rgba(4,20,45,.35)}
.hero-badge span{display:block;line-height:1.15}
.feature-strip-birdy{margin-top:-26px;padding-bottom:8px}
.birdy-feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.birdy-card{position:relative;padding:22px 20px 18px;min-height:158px;border-radius:22px;background:#fff;overflow:hidden}
.birdy-card:before{content:"";position:absolute;right:10px;bottom:8px;width:120px;height:120px;background:radial-gradient(circle at center, rgba(224,180,75,.07), transparent 68%)}
.feature-card-main{display:flex;gap:16px;align-items:flex-start;padding-right:92px}
.birdy-card .feature-icon{width:48px;height:48px;border-radius:16px;background:#fbfbfc;border-color:#e6e7ea;color:#18345e;box-shadow:none}
.birdy-card h3{margin:0 0 6px;font-size:1.12rem;color:#10284d}
.birdy-card p{margin:0;color:#556273;font-size:.98rem;line-height:1.45}
.feature-bird{position:absolute;right:10px;bottom:10px;max-width:88px;max-height:100px;object-fit:contain;filter:drop-shadow(0 8px 12px rgba(0,0,0,.08))}
.birdy-card .feature-arrow{position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:1.7rem;color:var(--pfo-red)}
.birdy-main-sections{padding-top:18px}
.birdy-columns-grid{display:grid;grid-template-columns:1.4fr .9fr .9fr;gap:18px;align-items:start}
.section-head-row{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:16px}
.section-head-row .section-title{margin-bottom:0;font-size:1.75rem}
.section-more{color:var(--pfo-red);font-weight:700;font-size:.95rem;white-space:nowrap}
.section-more:hover{color:var(--pfo-red-dark)}
.birdy-news-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:16px}
.birdy-featured-news{padding:0;overflow:hidden}
.birdy-featured-news .thumb{height:214px;background:#f6f6f8;overflow:hidden}
.birdy-featured-news .thumb img{width:100%;height:100%;object-fit:cover;display:block}
.birdy-featured-news .content{padding:18px 20px 20px}
.birdy-featured-news h3{font-size:1.68rem;margin:6px 0 10px;line-height:1.12;color:#10284d}
.read-more-link{display:inline-flex;align-items:center;gap:8px;color:var(--pfo-red);font-weight:800;margin-top:2px}
.read-more-link:after{content:"→"}
.birdy-news-list{display:grid;gap:12px}
.birdy-news-item{display:grid;grid-template-columns:84px 1fr;gap:12px;padding:12px 14px;border-radius:18px;min-height:96px}
.birdy-news-item .mini-thumb{height:72px;border-radius:12px;overflow:hidden;background:#eceef2}
.birdy-news-item .mini-thumb img{width:100%;height:100%;object-fit:cover}
.birdy-news-item h4{font-size:1rem;margin:2px 0 4px;color:#10284d;line-height:1.2}
.birdy-news-item p{font-size:.92rem;color:#606d7d}
.birdy-events-list{display:grid;gap:12px}
.birdy-event-card{grid-template-columns:92px 1fr;border-radius:18px;overflow:hidden;min-height:98px}
.birdy-event-card .event-date{background:#fff;border-right:1px solid var(--pfo-border);padding:12px}
.birdy-event-card .event-date strong{font-size:2.4rem;color:var(--pfo-red)}
.birdy-event-card .event-date span{font-size:.95rem;color:#8e2430}
.birdy-event-card .event-info{padding:16px 16px 16px 18px}
.birdy-event-card .event-info h4{font-size:1.03rem;line-height:1.25}
.birdy-event-card .event-info p{font-size:.94rem;color:#717c8b}
.birdy-stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.birdy-stat-card{min-height:154px;padding:18px 12px;border-radius:20px;background:linear-gradient(180deg,#fff,#fefcf8)}
.birdy-stat-card .stat-icon{font-size:1.7rem;color:#c79b32;margin-bottom:8px}
.birdy-stat-card .stat-value{font-size:2.2rem;line-height:1;color:#10284d}
.birdy-stat-card .stat-label{font-size:.93rem;color:#717c8b}
.birdy-cta-band{padding-top:10px}
.birdy-cta-band .cta-inner{background:linear-gradient(90deg,#041b38,#082b57);border-radius:26px;min-height:128px}
.birdy-cta-band .cta-inner:before{content:"";position:absolute;right:26px;bottom:-16px;width:110px;height:110px;background:url('assets/images/bird-yellow.png') no-repeat center/contain;opacity:.18}

@media (max-width:1380px){
  .hero-birdy-grid{grid-template-columns:minmax(300px,.9fr) minmax(360px,1.1fr)}
  .hero-copy-birdy{padding:42px 38px}
  .hero-copy-birdy .hero-title{font-size:clamp(2.6rem,4vw,4.2rem)}
  .birdy-feature-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:1180px){
  .hero-birdy-grid{grid-template-columns:1fr}
  .hero-copy-birdy{border-radius:28px 28px 0 0;min-height:auto}
  .hero-stage{border-radius:0 0 28px 28px;min-height:360px}
  .hero-stage:after{left:auto;right:24px;top:-48px;width:260px;height:470px}
  .birdy-columns-grid{grid-template-columns:1fr 1fr}
  .stats-column{grid-column:1 / -1}
  .birdy-stats-grid{grid-template-columns:repeat(4,1fr)}
}
@media (max-width:900px){
  .feature-card-main{padding-right:72px}
  .feature-bird{max-width:74px;max-height:84px}
  .birdy-news-grid{grid-template-columns:1fr}
  .birdy-columns-grid{grid-template-columns:1fr}
  .stats-column{grid-column:auto}
  .birdy-stats-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:680px){
  .hero-birdy-grid{padding-top:14px}
  .hero-copy-birdy{padding:30px 22px 28px;border-radius:22px 22px 0 0}
  .hero-copy-birdy .hero-title{font-size:2.35rem}
  .hero-copy-birdy .hero-lead-accent{font-size:1.08rem}
  .hero-copy-birdy .hero-sublead{font-size:.98rem}
  .hero-stage{min-height:250px;border-radius:0 0 22px 22px}
  .hero-stage:after{right:6px;top:-30px;width:190px;height:320px;border-width:2px}
  .hero-badge{right:10px;bottom:10px;width:92px;height:92px;font-size:.8rem}
  .birdy-feature-grid{grid-template-columns:1fr}
  .feature-card-main{padding-right:88px}
  .feature-bird{max-width:82px;max-height:86px}
  .birdy-stats-grid{grid-template-columns:1fr 1fr}
  .section-head-row{align-items:flex-start;flex-direction:column}
}
