/* ============================================================
   Guilford Hub — main stylesheet
   Coastal New England design system
   ============================================================ */

*{box-sizing:border-box;margin:0;padding:0}

:root{
    --navy:#1B3A4B;
    --navy-dark:#0F2530;
    --navy-light:#2C5568;
    --brick:#A63D2F;
    --brick-dark:#8B3225;
    --sand:#F5F0E6;
    --cream:#FAFAF7;
    --border:#E8E4DA;
    --text:#2C2C2C;
    --text-muted:#6B6B6B;
    --green:#2E7D32;
    --amber:#B25D1F;
}

html{scroll-behavior:smooth}

body{
    font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    background:var(--cream);
    color:var(--text);
    font-size:16px;
    line-height:1.65;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

h1,h2,h3,h4{
    font-family:var(--serif);
    color:var(--navy);
    line-height:1.25;
    font-weight:800;
}

a{color:var(--navy);text-decoration:none;transition:color .15s}
/*a:hover{color:var(--brick)}*/
img{max-width:100%;display:block}
button{font-family:inherit}

.container{max-width:1280px;margin:0 auto;padding:0 20px}
header .container{
    max-width:1570px;
}

/* ============================================================
   HEADER / NAV — sticky at top
   ============================================================ */

.site-header{
    background:#fff;
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 2px 8px rgba(27,58,75,.06);
}

.header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 20px;
    gap:16px;
}

/* Logo */
.logo{
    display:flex;
    align-items:center;
    gap:8px;
    font-weight:700;
    font-size:.95rem;
    font-family:'Libre Baskerville',serif;
    color:var(--navy);
    flex-shrink:0;
    text-decoration:none;
}

.logo:hover{color:var(--navy)}

.logo-mark{
    width:32px;
    height:32px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--navy),var(--navy-light));
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:'Libre Baskerville',serif;
    font-size:.9rem;
    font-weight:700;
    box-shadow:0 2px 8px rgba(27,58,75,.25);
    flex-shrink:0;
}

.logo-text{white-space:nowrap}

/* Main nav */
.main-nav{
    display:flex;
    gap:2px;
    flex-wrap:nowrap;
    align-items:center;
    flex:1;
    justify-content:center;
    overflow:hidden;
    min-width:0;
}

.main-nav a{
    font-size:.72rem;
    font-weight:500;
    color:var(--text);
    padding:7px 8px;
    border-radius:5px;
    white-space:nowrap;
    transition:all .15s;
    letter-spacing:-.005em;
}

.main-nav a:hover{
    background:var(--sand);
    color:var(--navy);
}

/* Auth */
.auth-controls{
    display:flex;
    gap:6px;
    align-items:center;
    flex-shrink:0;
}

.user-badge{
    font-size:.75rem;
    font-weight:600;
    color:var(--navy);
    white-space:nowrap;
    max-width:120px;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary{
    background:var(--navy);
    color:#fff;
    border:none;
    padding:7px 14px;
    border-radius:6px;
    font-weight:600;
    cursor:pointer;
    font-size:.78rem;
    display:inline-block;
    transition:all .15s;
    white-space:nowrap;
}

.btn-primary:hover{
    background:var(--navy-dark);
    color:#fff;
    transform:translateY(-1px);
}

.btn-ghost{
    background:transparent;
    color:var(--navy);
    border:1.5px solid var(--navy);
    padding:6px 12px;
    border-radius:6px;
    font-weight:600;
    display:inline-block;
    font-size:.78rem;
    cursor:pointer;
    transition:all .15s;
    white-space:nowrap;
}

.btn-ghost:hover{background:var(--navy);color:#fff}

.btn-sm{
    padding:5px 10px;
    font-size:.75rem;
    border:none;
    border-radius:5px;
    background:var(--navy);
    color:#fff;
    cursor:pointer;
    font-weight:600;
    transition:all .12s;
}

.btn-sm:hover{opacity:.9}
.btn-sm.danger{background:var(--brick)}
.btn-sm.ok{background:var(--green)}

.btn-view-all{
    font-size:.82rem;
    font-weight:600;
    color:var(--navy);
    padding:8px 16px;
    border-radius:8px;
    background:var(--sand);
    transition:all .15s;
    white-space:nowrap;
}

.btn-view-all:hover{background:var(--navy);color:#fff}

/* ============================================================
   HERO
   ============================================================ */

.hero{
    position:relative;
    background:linear-gradient(135deg,#1B3A4B 0%,#2C5568 60%,#1B3A4B 100%);
    color:#fff;
    padding:85px 0 75px;
    text-align:center;
    overflow:hidden;
}

.hero-bg{
    position:absolute;
    inset:0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(166,61,47,.15) 0%, transparent 50%);
    pointer-events:none;
}

.hero-content{position:relative;z-index:2}

.hero-eyebrow{
    display:inline-block;
    font-size:.72rem;
    font-weight:600;
    letter-spacing:.15em;
    text-transform:uppercase;
    color:#C8D8E0;
    padding:6px 16px;
    border:1px solid rgba(200,216,224,.35);
    border-radius:20px;
    margin-bottom:20px;
}

.hero h1{
    color:#fff;
    font-size:2.9rem;
    margin-bottom:14px;
    letter-spacing:-.02em;
    line-height:1.15;
}

.hero-subtitle{
    color:#C8D8E0;
    font-size:1.05rem;
    max-width:620px;
    margin:0 auto 28px;
}

.hero-actions{
    display:flex;
    gap:12px;
    justify-content:center;
    flex-wrap:wrap;
}

.btn-hero-primary{
    background:#fff;
    color:var(--navy);
    padding:12px 26px;
    border-radius:8px;
    font-weight:700;
    font-size:.9rem;
    transition:all .15s;
    box-shadow:0 4px 14px rgba(0,0,0,.15);
    display:inline-block;
}

.btn-hero-primary:hover{
    background:var(--sand);
    color:var(--navy);
    transform:translateY(-2px);
}

.btn-hero-ghost{
    background:transparent;
    color:#fff;
    padding:12px 26px;
    border-radius:8px;
    font-weight:700;
    font-size:.9rem;
    border:1.5px solid rgba(255,255,255,.4);
    transition:all .15s;
    display:inline-block;
}

.btn-hero-ghost:hover{
    background:rgba(255,255,255,.1);
    border-color:#fff;
    color:#fff;
}

/* ============================================================
   STATS BAR
   ============================================================ */

.main-content{padding-top:0}

.stats-bar{
    margin-top:-40px;
    position:relative;
    z-index:5;
    margin-bottom:50px;
}

.stats-bar-inner{
    background:#fff;
    border-radius:14px;
    padding:24px 28px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    box-shadow:0 8px 30px rgba(27,58,75,.08);
    border:1px solid var(--border);
}

.stats-item{
    text-align:center;
    padding:0 8px;
    border-right:1px solid var(--border);
}

.stats-item:last-child{border-right:none}

.stats-num{
    display:block;
    font-family:'Libre Baskerville',serif;
    font-size:1.7rem;
    font-weight:700;
    color:var(--navy);
    line-height:1;
}

.stats-label{
    display:block;
    font-size:.68rem;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:var(--text-muted);
    margin-top:8px;
    font-weight:600;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section{padding:42px 0;border-bottom:1px solid var(--border)}
.section:last-of-type{border-bottom:none;padding-bottom:70px}

.section-header{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    margin-bottom:26px;
    gap:20px;
    flex-wrap:wrap;
}

.section-title-group{flex:1;min-width:0}
.section-header h2{font-size:1.55rem;margin-bottom:6px;letter-spacing:-.01em}
.section-desc{color:var(--text-muted);font-size:.88rem;margin:0}

/* ============================================================
   CARDS
   ============================================================ */

.card-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
    gap:20px;
}

.card{
    background:#fff;
    border-radius:12px;
    padding:22px;
    border:1px solid var(--border);
    position:relative;
    display:flex;
    flex-direction:column;
    transition:all .2s;
    overflow:hidden;
}

.card::before{
    content:'';
    position:absolute;
    top:0;left:0;right:0;
    height:3px;
    background:linear-gradient(90deg,var(--navy),var(--navy-light));
    transform:scaleX(0);
    transform-origin:left;
    transition:transform .25s;
}

.card:hover{
    border-color:transparent;
    box-shadow:0 12px 30px rgba(27,58,75,.1);
    transform:translateY(-3px);
}

.card:hover::before{transform:scaleX(1)}

.card-tag{
    display:inline-block;
    align-self:flex-start;
    font-size:.66rem;
    font-weight:700;
    letter-spacing:.06em;
    text-transform:uppercase;
    padding:4px 10px;
    border-radius:20px;
    background:var(--sand);
    color:var(--navy);
    margin-bottom:14px;
}

.tag-blue{background:#E3EEF5;color:#1B3A4B}
.tag-green{background:#E8F5E9;color:#2E7D32}
.tag-amber{background:#FDF0E3;color:#B25D1F}
.tag-navy{background:#EAEEF2;color:#1B3A4B}

.card h3{
    font-size:1.02rem;
    margin-bottom:10px;
    line-height:1.35;
}

.card-meta{
    font-size:.78rem;
    color:var(--text-muted);
    margin-bottom:12px;
    display:flex;
    gap:6px;
    flex-wrap:wrap;
    align-items:center;
}

.meta-icon{font-size:.82rem}
.meta-sep{color:var(--border)}

.card-body{
    font-size:.88rem;
    color:#4A4A4A;
    margin-bottom:16px;
    line-height:1.55;
    flex:1;
}

.card-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-top:14px;
    border-top:1px solid var(--border);
    margin-top:auto;
}

.card-author{
    font-size:.7rem;
    color:var(--text-muted);
    font-style:italic;
}

.card-arrow{
    font-size:1rem;
    color:var(--brick);
    font-weight:700;
    transition:transform .2s;
}

.card:hover .card-arrow{transform:translateX(4px)}

/* ============================================================
   MEETING CARD
   ============================================================ */

.meeting-card{
    background:#fff;
    border-radius:12px;
    padding:26px 30px;
    border:1px solid var(--border);
    border-left:4px solid var(--brick);
}

.meeting-list{list-style:none;padding:0;margin:0}

.meeting-list li{
    padding:10px 0 10px 24px;
    position:relative;
    font-size:.9rem;
    border-bottom:1px solid var(--border);
}

.meeting-list li:last-child{border-bottom:none}

.meeting-list li::before{
    content:'▸';
    position:absolute;
    left:0;
    color:var(--brick);
    font-weight:700;
}

/* ============================================================
   SUBSCRIBE
   ============================================================ */

.subscribe-banner{
    background:linear-gradient(135deg,var(--navy),var(--navy-light));
    color:#fff;
    padding:50px 0;
    text-align:center;
}

.subscribe-banner h3{color:#fff;font-size:1.35rem;margin-bottom:8px}
.subscribe-banner p{color:#C8D8E0;margin-bottom:22px;font-size:.9rem}

.subscribe-form{
    display:flex;
    gap:10px;
    max-width:480px;
    margin:0 auto;
}

.subscribe-form input{
    flex:1;
    padding:13px 18px;
    border-radius:8px;
    border:none;
    font-family:inherit;
    font-size:.92rem;
    outline:none;
}

.subscribe-form .btn-primary{
    background:var(--brick);
    padding:13px 24px;
}

.subscribe-form .btn-primary:hover{background:var(--brick-dark)}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer{
    background:var(--navy-dark);
    color:#C8D8E0;
    padding:28px 0;
    text-align:center;
    font-size:.83rem;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */

.flash{
    background:#E8F5E9;
    color:#2E7D32;
    padding:14px 24px;
    max-width:1280px;
    margin:16px auto;
    border-radius:8px;
    border-left:4px solid #2E7D32;
    font-size:.88rem;
}

.flash.err{
    background:#FBE9E5;
    color:var(--brick);
    border-left-color:var(--brick);
}

/* ============================================================
   AUTH PAGES
   ============================================================ */

.auth-box{
    background:#fff;
    padding:42px;
    border-radius:14px;
    border:1px solid var(--border);
    width:100%;
    max-width:420px;
    margin:80px auto;
    box-shadow:0 8px 30px rgba(27,58,75,.08);
}

.auth-box h1{font-size:1.7rem;margin-bottom:8px}
.auth-box .sub{color:var(--text-muted);margin-bottom:22px;font-size:.9rem}

.auth-box label{
    display:block;
    font-size:.78rem;
    font-weight:600;
    margin-bottom:8px;
    color:var(--navy);
    text-transform:uppercase;
    letter-spacing:.04em;
}

.auth-box input{
    width:100%;
    padding:13px 16px;
    border:1.5px solid #D8D4CA;
    border-radius:8px;
    margin-bottom:16px;
    font-family:inherit;
    font-size:.95rem;
    transition:border-color .15s;
}

.auth-box input:focus{outline:none;border-color:var(--navy)}

.auth-box button{width:100%}

.auth-box .err{
    background:#FBE9E5;
    color:var(--brick);
    padding:12px 16px;
    border-radius:8px;
    margin-bottom:16px;
    font-size:.85rem;
}

.auth-box .link{
    text-align:center;
    margin-top:16px;
    font-size:.85rem;
    color:var(--text-muted);
}

.auth-box .demo{
    background:#F0F5F8;
    padding:14px 16px;
    border-radius:8px;
    font-size:.76rem;
    color:var(--navy);
    margin-top:22px;
    line-height:1.7;
}

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */

.admin-wrap{display:flex;min-height:100vh}

.admin-sidebar{
    width:240px;
    background:var(--navy);
    color:#fff;
    padding:24px 0;
    flex-shrink:0;
    position:sticky;
    top:0;
    height:100vh;
    overflow-y:auto;
}

.admin-sidebar .brand{
    font-family:'Libre Baskerville',serif;
    font-size:1rem;
    padding:0 22px 20px;
    border-bottom:1px solid rgba(255,255,255,.1);
    margin-bottom:14px;
    color:#fff;
}
.brand__mark{width:74px;height:46px;flex:none}
.admin-sidebar nav a{
    display:block;
    color:#C8D8E0;
    padding:11px 22px;
    font-size:.86rem;
    border-left:3px solid transparent;
    transition:all .12s;
    font-weight:500;
}

.admin-sidebar nav a:hover{background:rgba(255,255,255,.06);color:#fff}

.admin-sidebar nav a.active{
    background:rgba(255,255,255,.08);
    color:#fff;
    border-left-color:var(--brick);
}

.admin-main{flex:1;padding:30px 36px;min-width:0}
.admin-main h1{font-size:1.6rem;margin-bottom:22px}
.admin-main h2{font-size:1.1rem;margin:24px 0 14px}

.stat-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
    gap:16px;
    margin-bottom:30px;
}

.stat{
    background:#fff;
    border-radius:12px;
    padding:22px;
    border:1px solid var(--border);
    transition:all .15s;
}

.stat:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(27,58,75,.08)}

.stat-num{
    font-size:1.8rem;
    font-weight:700;
    color:var(--navy);
    font-family:'Libre Baskerville',serif;
    line-height:1;
}

.stat-label{
    font-size:.68rem;
    color:var(--text-muted);
    text-transform:uppercase;
    letter-spacing:.06em;
    margin-top:8px;
    font-weight:600;
}

.stat.warn .stat-num{color:var(--brick)}

.data-table{
    width:100%;
    border-collapse:collapse;
    font-size:.85rem;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    border:1px solid var(--border);
}

.data-table th{
    text-align:left;
    padding:12px 16px;
    background:var(--sand);
    color:var(--navy);
    font-size:.7rem;
    text-transform:uppercase;
    letter-spacing:.06em;
    font-weight:700;
}

.data-table td{padding:13px 16px;border-top:1px solid #F0EDE4}
.data-table tr:hover td{background:#FAFAF7}

.tag{
    display:inline-block;
    background:#E8F0F5;
    color:var(--navy);
    padding:3px 10px;
    border-radius:12px;
    font-size:.7rem;
    font-weight:600;
}

.tag.warn{background:#FBE9E5;color:var(--brick)}
.tag.ok{background:#E8F5E9;color:var(--green)}

.grid-2{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin-bottom:26px;
    background:#fff;
    padding:22px;
    border-radius:12px;
    border:1px solid var(--border);
}

.grid-2 input,.grid-2 select{
    padding:11px 14px;
    border:1.5px solid #D8D4CA;
    border-radius:8px;
    font-family:inherit;
    font-size:.9rem;
}

.grid-2 input:focus,.grid-2 select:focus{outline:none;border-color:var(--navy)}

.admin-main form input,
.admin-main form select,
.admin-main form textarea{
    width:100%;
    padding:11px 14px;
    border:1.5px solid #D8D4CA;
    border-radius:8px;
    font-family:inherit;
    margin-bottom:10px;
    font-size:.9rem;
}

.admin-main form input:focus,
.admin-main form select:focus,
.admin-main form textarea:focus{outline:none;border-color:var(--navy)}

/* ============================================================
   MODERATOR
   ============================================================ */

.mod-card{
    background:#fff;
    border-radius:12px;
    padding:22px;
    border:1px solid var(--border);
    margin-bottom:18px;
}

.mod-head{
    display:flex;
    gap:12px;
    align-items:center;
    flex-wrap:wrap;
    margin-bottom:14px;
    font-size:.83rem;
    color:var(--text-muted);
}

.mod-card pre{
    background:#F8F6F0;
    padding:16px;
    border-radius:8px;
    font-size:.8rem;
    overflow:auto;
    max-height:240px;
    margin-bottom:14px;
    font-family:'Consolas','Monaco',monospace;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Large desktop — plenty of room */
@media (min-width:1400px){
    .main-nav a{font-size:.76rem;padding:8px 7px}
}

/* Standard laptop */
@media (max-width:1399px){
    .main-nav a{font-size:.72rem;padding:7px 8px}
}

/* Small laptop */
@media (max-width:1200px){
    .main-nav a{font-size:.68rem;padding:6px 6px}
    .logo-text{font-size:.9rem}
    .logo-mark{width:30px;height:30px;font-size:.85rem}
}

/* Tablet — wrap menu to a second line */
@media (max-width:1000px){
    .header-inner{flex-wrap:wrap}
    .main-nav{
        order:3;
        width:100%;
        justify-content:flex-start;
        padding-top:10px;
        margin-top:8px;
        border-top:1px solid var(--border);
        flex-wrap:wrap;
        overflow:visible;
        gap:4px;
    }
    .main-nav a{font-size:.78rem;padding:7px 10px;background:var(--sand)}
    .main-nav a:hover{background:var(--navy);color:#fff}

    .stats-bar-inner{grid-template-columns:repeat(2,1fr);padding:22px}
    .stats-item:nth-child(2){border-right:none}
    .hero{padding:70px 0 60px}
    .hero h1{font-size:2.2rem}
}

/* Phone */
@media (max-width:720px){
    .container{padding:0 16px}
    .header-inner{padding:10px 16px}

    .admin-sidebar{width:100%;position:static;height:auto}
    .admin-wrap{flex-direction:column}
    .admin-main{padding:20px}
    .grid-2{grid-template-columns:1fr}

    .subscribe-form{flex-direction:column}
    .subscribe-form button{width:100%}

    .section-header{flex-direction:column;align-items:flex-start}
    .card-grid{grid-template-columns:1fr}

    .hero h1{font-size:1.8rem}
    .hero-subtitle{font-size:.95rem}
    .stats-num{font-size:1.4rem}

    .user-badge{display:none}
}

/* Admin topbar */
.admin-topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:24px;
    padding-bottom:18px;
    border-bottom:1px solid var(--border);
    flex-wrap:wrap;
    gap:12px;
}

.admin-topbar h1{
    font-size:1.6rem;
    margin:0;
}

.admin-user{
    font-size:.85rem;
    color:var(--text-muted);
    background:var(--sand);
    padding:8px 14px;
    border-radius:8px;
    font-weight:500;
}

@media(max-width:720px){
    .admin-topbar{flex-direction:column;align-items:flex-start}
}


/* ============================================================
   SECTION ACTIONS + CONTRIBUTE (+)
   ============================================================ */

.section-actions{
    display:flex;
    gap:10px;
    align-items:center;
    flex-shrink:0;
}

.btn-add{
    width:38px;
    height:38px;
    border-radius:50%;
    background:var(--brick);
    color:#fff;
    border:none;
    font-size:1.4rem;
    line-height:1;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all .18s;
    box-shadow:0 2px 8px rgba(166,61,47,.25);
    font-family:inherit;
    padding:0;
}

/*.btn-add:hover{
    transform:scale(1.1) rotate(90deg);
    background:var(--brick-dark);
    box-shadow:0 4px 14px rgba(166,61,47,.35);
}*/

/* ============================================================
   MODAL
   ============================================================ */

.modal{
    position:fixed;
    inset:0;
    background:rgba(27,58,75,.75);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:2000;
    padding:24px;
    backdrop-filter:blur(3px);
    animation:fadeIn .15s;
}

.modal.hidden{display:none}

@keyframes fadeIn{
    from{opacity:0}
    to{opacity:1}
}

.modal-content{
    background:#fff;
    border-radius:14px;
    padding:32px;
    max-width:560px;
    width:100%;
    max-height:88vh;
    overflow-y:auto;
    position:relative;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
    animation:slideUp .2s;
}

@keyframes slideUp{
    from{transform:translateY(20px);opacity:0}
    to{transform:translateY(0);opacity:1}
}

.modal-content h2{
    font-size:1.4rem;
    margin-bottom:6px;
    padding-right:30px;
}

.modal-sub{
    color:var(--text-muted);
    font-size:.9rem;
    margin-bottom:20px;
}

.modal-close{
    position:absolute;
    top:16px;
    right:18px;
    background:none;
    border:none;
    font-size:1.7rem;
    cursor:pointer;
    color:var(--text-muted);
    line-height:1;
    padding:0;
    transition:color .15s;
}

.modal-close:hover{color:var(--brick)}

.modal-narrow{max-width:420px}

.modal-foot{
    text-align:center;
    margin-top:16px;
    font-size:.85rem;
    color:var(--text-muted);
}

#contribution-form label,
.auth-form label{
    display:block;
    font-size:.78rem;
    font-weight:600;
    color:var(--navy);
    text-transform:uppercase;
    letter-spacing:.04em;
    margin-bottom:6px;
    margin-top:12px;
}

#contribution-form input,
#contribution-form textarea,
.auth-form input{
    width:100%;
    padding:11px 14px;
    border:1.5px solid #D8D4CA;
    border-radius:8px;
    font-family:inherit;
    font-size:.95rem;
    transition:border-color .15s;
}

#contribution-form input:focus,
#contribution-form textarea:focus,
.auth-form input:focus{
    outline:none;
    border-color:var(--navy);
}

#contribution-form textarea,
.auth-form textarea{
    resize:vertical;
    min-height:80px;
}

/* Auth tabs */
.auth-tabs{
    display:flex;
    gap:4px;
    margin:16px 0 20px;
    background:var(--sand);
    padding:4px;
    border-radius:10px;
}

.auth-tab{
    flex:1;
    padding:9px;
    text-align:center;
    border-radius:7px;
    font-size:.85rem;
    font-weight:600;
    color:var(--text-muted);
    transition:all .15s;
}

.auth-tab.active{
    background:#fff;
    color:var(--navy);
    box-shadow:0 1px 3px rgba(0,0,0,.08);
}



/* Facebook module */
.fb-warning{
    background:#FDF0E3;
    color:#B25D1F;
    padding:14px 20px;
    border-radius:10px;
    border-left:4px solid #B25D1F;
    margin-bottom:22px;
    font-size:.9rem;
}

.admin-main form label{
    display:block;
    font-size:.78rem;
    font-weight:600;
    color:var(--navy);
    text-transform:uppercase;
    letter-spacing:.04em;
    margin-top:14px;
    margin-bottom:6px;
}

.admin-main form select,
.admin-main form textarea,
.admin-main form input[type="url"],
.admin-main form input[type="date"]{
    width:100%;
    padding:11px 14px;
    border:1.5px solid #D8D4CA;
    border-radius:8px;
    font-family:inherit;
    font-size:.92rem;
}

.btn-claude{
    background:#7C3AED;
    color:#fff;
    border:none;
    padding:10px 18px;
    border-radius:8px;
    font-weight:600;
    cursor:pointer;
    font-family:inherit;
    margin-top:8px;
    font-size:.85rem;
    transition:all .15s;
}

.btn-claude:hover{background:#6D28D9;transform:translateY(-1px)}

#summarize-status{font-size:.85rem;color:var(--text-muted);margin-left:10px}

.fb-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.fb-check{
    display:flex;
    align-items:center;
    gap:8px;
    text-transform:none;
    letter-spacing:0;
    font-size:.9rem;
    margin-top:14px;
    margin-bottom:14px;
}

.fb-check input{width:auto}


.btn-edit{
    opacity:.55 !important;
}
.card:hover .btn-edit{
    opacity:1 !important;
}
@media (hover:none){ .btn-edit{ opacity:.55 } }



/* ============================================================
   MODERATOR DASHBOARD
   ============================================================ */

.mod-tabs{
    display:flex;
    gap:6px;
    margin-bottom:24px;
    background:#fff;
    padding:6px;
    border-radius:12px;
    border:1px solid var(--border);
}

.mod-tab{
    flex:1;
    padding:12px 18px;
    text-align:center;
    border-radius:8px;
    font-size:.9rem;
    font-weight:600;
    color:var(--text-muted);
    transition:all .15s;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.mod-tab:hover{
    background:var(--sand);
    color:var(--navy);
}

.mod-tab.active{
    background:var(--navy);
    color:#fff;
}

.mod-tab-count{
    display:inline-block;
    background:rgba(255,255,255,.2);
    padding:2px 10px;
    border-radius:20px;
    font-size:.75rem;
    font-weight:700;
}

.mod-tab:not(.active) .mod-tab-count{
    background:var(--sand);
    color:var(--navy);
}

.mod-empty{
    background:#fff;
    border:1px solid var(--border);
    border-radius:14px;
    padding:70px 30px;
    text-align:center;
}

.mod-empty-icon{
    font-size:3rem;
    margin-bottom:16px;
}

.mod-empty h3{
    font-size:1.2rem;
    margin-bottom:8px;
    color:var(--navy);
}

.mod-empty p{
    color:var(--text-muted);
    font-size:.9rem;
}

.mod-card{
    background:#fff;
    border-radius:12px;
    border:1px solid var(--border);
    margin-bottom:18px;
    overflow:hidden;
    transition:all .15s;
}

.mod-card:hover{
    box-shadow:0 6px 20px rgba(27,58,75,.08);
}

.mod-card-top{
    padding:16px 22px;
    background:var(--sand);
    border-bottom:1px solid var(--border);
}

.mod-card-meta{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}

.mod-badge-section{
    background:var(--navy);
    color:#fff;
    padding:4px 12px;
    border-radius:20px;
    font-size:.72rem;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.mod-badge-type{
    padding:4px 12px;
    border-radius:20px;
    font-size:.72rem;
    font-weight:600;
}

.mod-badge-new{
    background:#E8F5E9;
    color:#2E7D32;
}

.mod-badge-edit{
    background:#FDF0E3;
    color:#B25D1F;
}

.mod-badge-status{
    padding:4px 12px;
    border-radius:20px;
    font-size:.72rem;
    font-weight:600;
}

.mod-status-pending{background:#FEF3C7;color:#92400E}
.mod-status-approved{background:#D1FAE5;color:#065F46}
.mod-status-rejected{background:#FEE2E2;color:#991B1B}

.mod-user{
    font-size:.82rem;
    color:var(--text-muted);
    margin-left:auto;
}

.mod-card-body{
    padding:22px;
}

.mod-title{
    font-size:1.15rem;
    font-family:'Libre Baskerville',serif;
    color:var(--navy);
    margin-bottom:12px;
}

.mod-meta-line{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    margin-bottom:14px;
    font-size:.85rem;
    color:var(--text-muted);
}

.mod-meta-item{
    display:inline-flex;
    align-items:center;
    gap:5px;
}

.mod-body{
    font-size:.94rem;
    line-height:1.65;
    color:#333;
    margin-bottom:14px;
}

.mod-bullets{
    list-style:none;
    padding:0;
    margin:14px 0;
    border-left:3px solid var(--brick);
    padding-left:18px;
}

.mod-bullets li{
    padding:6px 0;
    font-size:.92rem;
    line-height:1.5;
    color:#333;
}

.mod-note{
    background:#FEF3C7;
    color:#92400E;
    padding:12px 16px;
    border-radius:8px;
    font-size:.86rem;
    margin-top:14px;
}

.mod-reviewed{
    font-size:.8rem;
    color:var(--text-muted);
    margin-top:12px;
    font-style:italic;
}

.mod-card-actions{
    padding:16px 22px;
    border-top:1px solid var(--border);
    background:#FAFAF7;
}

.mod-action-form{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}

.mod-note-input{
    flex:1;
    min-width:220px;
    padding:10px 14px;
    border:1.5px solid #D8D4CA;
    border-radius:8px;
    font-family:inherit;
    font-size:.88rem;
}

.mod-note-input:focus{outline:none;border-color:var(--navy)}

.btn-mod-approve{
    background:#2E7D32;
    color:#fff;
    border:none;
    padding:10px 22px;
    border-radius:8px;
    font-weight:600;
    cursor:pointer;
    font-family:inherit;
    font-size:.88rem;
    transition:all .15s;
    white-space:nowrap;
}

.btn-mod-approve:hover{background:#245E27;transform:translateY(-1px)}

.btn-mod-reject{
    background:var(--brick);
    color:#fff;
    border:none;
    padding:10px 22px;
    border-radius:8px;
    font-weight:600;
    cursor:pointer;
    font-family:inherit;
    font-size:.88rem;
    transition:all .15s;
    white-space:nowrap;
}

.btn-mod-reject:hover{background:var(--brick-dark);transform:translateY(-1px)}

.btn-mod-restore{
    background:var(--navy);
    color:#fff;
    border:none;
    padding:10px 22px;
    border-radius:8px;
    font-weight:600;
    cursor:pointer;
    font-family:inherit;
    font-size:.88rem;
    transition:all .15s;
}

.btn-mod-restore:hover{background:var(--navy-dark)}


.card-image{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:10px;
    margin:12px 0;
}

.image-input{
    padding:8px;
    border:1.5px dashed #D8D4CA;
    border-radius:8px;
    width:100%;
    font-family:inherit;
    margin-top:4px;
    background:#FAFAF7;
    cursor:pointer;
}

.image-preview img{
    max-height:180px;
    border-radius:8px;
}

.card-image{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:10px;
    margin:0 0 14px 0;
    display:block;
}

.card-read-more{
    font-size:.82rem;
    font-weight:600;
    color:var(--brick);
    white-space:nowrap;
    transition:all .15s;
}

.card-read-more:hover{
    color:var(--brick-dark);
    transform:translateX(2px);
}

.item-detail{
    background:#fff;
    border-radius:14px;
    border:1px solid var(--border);
    overflow:hidden;
    margin-top:-30px;
    position:relative;
    z-index:5;
    box-shadow:0 12px 40px rgba(27,58,75,.08);
}

.item-hero-image{
    width:100%;
    max-height:480px;
    overflow:hidden;
    background:#F0EDE4;
}

.item-hero-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.item-body{
    padding:38px 44px;
}

.item-text{
    font-size:1.02rem;
    line-height:1.75;
    color:#333;
    margin-top:16px;
}

.item-meta-row{
    font-size:.95rem;
    color:#333;
    margin-bottom:6px;
}

.item-footer{
    margin-top:30px;
    padding-top:20px;
    border-top:1px solid var(--border);
    font-size:.85rem;
    color:var(--text-muted);
}

@media(max-width:720px){
    .item-body{padding:24px 22px}
    .item-detail{margin-top:0}
    .card-image{height:150px}
}

.card-read-more{
    font-size:.82rem;
    font-weight:600;
    color:var(--brick);
    white-space:nowrap;
    transition:all .15s;
    padding:4px 8px;
    border-radius:6px;
}

.card-read-more:hover{
    color:#fff;
    background:var(--brick);
    transform:translateX(2px);
}

.card-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-top:14px;
    border-top:1px solid var(--border);
    margin-top:auto;
}





/* ============================================================
   GUILFORD HOMEPAGE — CLEAN COMMUNITY LAYOUT
   ============================================================ */

.gh-hero{
    position:relative;
    min-height:480px;
    background:linear-gradient(135deg,#1B3A4B 0%,#2C5568 50%,#1B3A4B 100%);
    color:#fff;
    display:flex;
    align-items:center;
    overflow:hidden;
}

.gh-hero-bg{
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 80% 20%, rgba(166,61,47,.2) 0%, transparent 55%),
        radial-gradient(circle at 10% 80%, rgba(255,255,255,.06) 0%, transparent 50%);
}

.gh-hero-inner{position:relative;z-index:2;padding:70px 24px}

.gh-hero-text{max-width:600px}

.gh-eyebrow{
    display:inline-block;
    font-size:.72rem;
    letter-spacing:.18em;
    text-transform:uppercase;
    color:#8FB0C0;
    margin-bottom:14px;
}

.gh-hero h1{
    font-size:4.5rem;
    color:#fff;
    margin:0 0 4px;
    line-height:1;
    font-family:'Libre Baskerville',serif;
    letter-spacing:-.02em;
}

.gh-tagline{
    font-size:1.4rem;
    color:#7FD1AE;
    font-style:italic;
    margin-bottom:20px;
    font-family:'Libre Baskerville',serif;
}

.gh-sub{
    font-size:1.02rem;
    color:#C8D8E0;
    margin-bottom:30px;
    line-height:1.65;
    max-width:500px;
}

.gh-hero-actions{display:flex;gap:12px;flex-wrap:wrap}

.gh-btn-primary{
    background:#2E7D32;
    color:#fff;
    padding:14px 26px;
    border-radius:8px;
    font-weight:600;
    font-size:.95rem;
    display:inline-block;
    transition:all .15s;
    border:none;
}

.gh-btn-primary:hover{background:#245E27;transform:translateY(-1px)}

.gh-btn-ghost{
    background:rgba(255,255,255,.1);
    color:#fff;
    padding:14px 26px;
    border-radius:8px;
    font-weight:600;
    font-size:.95rem;
    display:inline-block;
    border:1px solid rgba(255,255,255,.25);
    transition:all .15s;
}

.gh-btn-ghost:hover{background:rgba(255,255,255,.18);color:#fff}

.gh-btn-green{
    background:#2E7D32;
    color:#fff;
    padding:12px 24px;
    border-radius:8px;
    font-weight:600;
    font-size:.92rem;
    display:inline-block;
    transition:all .15s;
}

.gh-btn-green:hover{background:#245E27;color:#fff;transform:translateY(-1px)}

/* FEATURES ROW */
.gh-features{background:#F5F0E6;padding:34px 0}

.gh-features-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:18px;
    text-align:center;
}

.gh-feature{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    text-decoration:none;
    color:var(--navy);
    padding:8px;
    transition:transform .15s;
}

.gh-feature:hover{transform:translateY(-3px);color:var(--navy)}

.gh-feature-icon{
    width:52px;
    height:52px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.4rem;
}

.gh-feature-title{font-size:.85rem;font-weight:700}

.gh-feature-sub{font-size:.72rem;color:var(--text-muted)}

/* MAIN CONTENT AREA */
.gh-main{padding:50px 24px}

.gh-row{margin-bottom:60px}

.gh-row-split{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:start;
}

.gh-col-main, .gh-col-side{min-width:0}

.gh-row-header{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    margin-bottom:22px;
    padding-bottom:12px;
    border-bottom:2px solid var(--border);
}

.gh-row-header h2{
    font-size:1.35rem;
    margin:0;
    font-family:'Libre Baskerville',serif;
}

.gh-link{
    font-size:.82rem;
    font-weight:600;
    color:#2E7D32;
    text-decoration:none;
}

.gh-link:hover{text-decoration:underline}

/* EVENT ROWS */
.gh-event-list{display:flex;flex-direction:column;gap:16px}

.gh-event-row{
    display:flex;
    gap:16px;
    align-items:center;
    padding:12px;
    border-radius:10px;
    text-decoration:none;
    color:inherit;
    transition:background .15s;
    border:1px solid transparent;
}

.gh-event-row:hover{background:#fff;border-color:var(--border)}

.gh-event-date{
    display:flex;
    flex-direction:column;
    align-items:center;
    min-width:52px;
    padding:8px 4px;
    background:#F5F0E6;
    border-radius:8px;
    flex-shrink:0;
}

.gh-event-month{
    font-size:.65rem;
    text-transform:uppercase;
    color:var(--text-muted);
    font-weight:700;
    letter-spacing:.04em;
}

.gh-event-day{
    font-size:1.3rem;
    font-weight:700;
    color:var(--navy);
    font-family:'Libre Baskerville',serif;
    line-height:1;
}

.gh-event-img{
    width:64px;
    height:64px;
    border-radius:8px;
    object-fit:cover;
    flex-shrink:0;
}

.gh-event-img-empty{background:linear-gradient(135deg,#D6E4EB,#E8DFD0)}

.gh-event-info{flex:1;min-width:0}

.gh-event-info h3{
    font-size:.95rem;
    margin:0 0 6px;
    font-family:'Inter',sans-serif;
    font-weight:700;
    color:var(--navy);
}

.gh-event-meta{
    font-size:.74rem;
    color:var(--text-muted);
    margin-bottom:6px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.gh-event-tag{
    display:inline-block;
    padding:2px 10px;
    border-radius:12px;
    font-size:.68rem;
    font-weight:600;
    background:#E8F5E9;
    color:#2E7D32;
}

/* FEATURED CARD */
.gh-featured{
    position:relative;
    border-radius:14px;
    overflow:hidden;
    min-height:420px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    background:linear-gradient(135deg,#1B3A4B,#2C5568);
    color:#fff;
    padding:32px;
    box-shadow:0 12px 40px rgba(27,58,75,.15);
}

.gh-featured-bg{
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 30% 20%, rgba(127,209,174,.15) 0%, transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(166,61,47,.2) 0%, transparent 55%);
}

.gh-featured-badge{
    position:absolute;
    top:24px;
    right:24px;
    background:rgba(27,58,75,.85);
    border:1.5px solid #C8D8E0;
    padding:12px 18px;
    text-align:center;
    font-family:'Libre Baskerville',serif;
    font-size:.8rem;
    line-height:1.3;
    letter-spacing:.06em;
    color:#C8D8E0;
    z-index:2;
}

.gh-featured-badge small{font-size:.6rem;letter-spacing:.15em;display:block;margin:2px 0}

.gh-featured-badge em{font-size:.62rem;font-style:italic;color:#7FD1AE;display:block;margin-top:4px}

.gh-featured-content{position:relative;z-index:2}

.gh-featured h2{
    font-size:1.9rem;
    color:#fff;
    line-height:1.2;
    margin:0 0 16px;
    font-family:'Libre Baskerville',serif;
}

.gh-featured p{
    font-size:.92rem;
    color:#C8D8E0;
    line-height:1.6;
    margin-bottom:22px;
    max-width:340px;
}

/* DISCUSSIONS */
.gh-discuss-list{display:flex;flex-direction:column;gap:4px}

.gh-discuss-row{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 8px;
    border-radius:8px;
    text-decoration:none;
    color:inherit;
    transition:background .15s;
}

.gh-discuss-row:hover{background:#F5F0E6}

.gh-discuss-avatar{
    width:36px;
    height:36px;
    border-radius:50%;
    background:linear-gradient(135deg,#1B3A4B,#2C5568);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:.85rem;
    font-weight:700;
    flex-shrink:0;
}

.gh-discuss-body{flex:1;min-width:0}

.gh-discuss-title{
    font-size:.92rem;
    font-weight:600;
    color:var(--navy);
    margin-bottom:2px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.gh-discuss-meta{
    font-size:.73rem;
    color:var(--text-muted);
}

.gh-discuss-count{
    font-size:.75rem;
    color:var(--text-muted);
    flex-shrink:0;
}

/* NEWS CARDS */
.gh-news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}

.gh-news-card{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    border:1px solid var(--border);
    text-decoration:none;
    color:inherit;
    transition:all .15s;
    display:block;
}

.gh-news-card:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(27,58,75,.1);
    border-color:transparent;
}

.gh-news-img{
    height:110px;
    background-size:cover;
    background-position:center;
}

.gh-news-img-empty{background:linear-gradient(135deg,#D6E4EB,#E8DFD0)}

.gh-news-body{padding:12px}

.gh-news-body h4{
    font-size:.85rem;
    margin:0 0 6px;
    font-family:'Inter',sans-serif;
    font-weight:700;
    color:var(--navy);
    line-height:1.35;
}

.gh-news-date{font-size:.7rem;color:var(--text-muted)}

/* BUSINESS GRID */
.gh-biz-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}

.gh-biz-card{
    text-decoration:none;
    color:inherit;
    transition:transform .15s;
    display:block;
}

.gh-biz-card:hover{transform:translateY(-3px);color:inherit}

.gh-biz-img{
    height:100px;
    border-radius:8px;
    background-size:cover;
    background-position:center;
    margin-bottom:8px;
}

.gh-biz-img-empty{background:linear-gradient(135deg,#D6E4EB,#E8DFD0)}

.gh-biz-title{
    font-size:.82rem;
    font-weight:700;
    color:var(--navy);
    margin-bottom:2px;
    line-height:1.2;
}

.gh-biz-sub{font-size:.7rem;color:var(--text-muted)}

/* GROUPS GRID */
.gh-group-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}

.gh-group-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:10px;
    padding:16px 12px;
    text-align:center;
    text-decoration:none;
    color:inherit;
    transition:all .15s;
    display:block;
}

.gh-group-card:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(27,58,75,.08);
    border-color:transparent;
}

.gh-group-icon{
    display:inline-flex;
    width:40px;
    height:40px;
    border-radius:50%;
    background:linear-gradient(135deg,#7FD1AE,#2E7D32);
    color:#fff;
    align-items:center;
    justify-content:center;
    font-size:1rem;
    font-weight:700;
    font-family:'Libre Baskerville',serif;
    margin-bottom:10px;
}

.gh-group-title{
    font-size:.8rem;
    font-weight:700;
    color:var(--navy);
    margin-bottom:4px;
    line-height:1.25;
}

.gh-group-meta{font-size:.68rem;color:var(--text-muted);margin-bottom:10px}

.gh-group-btn{
    display:inline-block;
    padding:4px 14px;
    background:#F5F0E6;
    color:var(--navy);
    border-radius:6px;
    font-size:.7rem;
    font-weight:600;
}

.gh-group-card:hover .gh-group-btn{background:#2E7D32;color:#fff}

.gh-empty{
    text-align:center;
    color:var(--text-muted);
    font-style:italic;
    padding:30px 0;
}

/* CTA BANNER */
.gh-cta{
    background:linear-gradient(135deg,#1B3A4B,#2C5568);
    color:#fff;
    padding:60px 0;
    text-align:center;
    position:relative;
    overflow:hidden;
}

.gh-cta::before{
    content:'';
    position:absolute;
    inset:0;
    background:radial-gradient(circle at 20% 30%, rgba(127,209,174,.1) 0%, transparent 55%);
}

.gh-cta .container{position:relative;z-index:2}

.gh-cta h2{
    color:#fff;
    font-size:1.7rem;
    margin-bottom:12px;
    font-family:'Libre Baskerville',serif;
}

.gh-cta p{
    color:#C8D8E0;
    margin-bottom:26px;
    font-size:.98rem;
}

/* RESPONSIVE */
@media(max-width:1000px){
    .gh-row-split{grid-template-columns:1fr;gap:32px}
    .gh-features-grid{grid-template-columns:repeat(3,1fr)}
    .gh-news-grid{grid-template-columns:repeat(3,1fr)}
}

@media(max-width:720px){
    .gh-hero h1{font-size:2.8rem}
    .gh-tagline{font-size:1.1rem}
    .gh-features-grid{grid-template-columns:repeat(2,1fr)}
    .gh-biz-grid{grid-template-columns:repeat(2,1fr)}
    .gh-group-grid{grid-template-columns:repeat(2,1fr)}
    .gh-news-grid{grid-template-columns:1fr}
    .gh-main{padding:30px 16px}
    .gh-row{margin-bottom:40px}
    .gh-featured h2{font-size:1.4rem}
}


/* ============================================================
   RESPONSIVE HEADER — final
   ============================================================ */

.nav-toggle{
    display:none;
    background:none;
    border:none;
    padding:8px;
    cursor:pointer;
    flex-direction:column;
    gap:5px;
    flex-shrink:0;
    margin-left:auto;
}

.nav-toggle span{
    display:block;
    width:24px;
    height:2px;
    background:var(--navy);
    transition:all .2s;
    border-radius:2px;
}

.nav-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle.open span:nth-child(2){opacity:0}
.nav-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* Show hamburger + dropdown on tablet & phone */
@media (max-width:1200px){

    .header-inner{
        flex-wrap:nowrap;
        align-items:center;
        padding:10px 16px;
    }
    section#instagram {
    padding: 26px;
}


    .nav-toggle{display:flex;
        order:3}

    .main-nav{
        display:none;
        position:absolute;
        top:100%;
        left:0;
        right:0;
        flex-direction:column;
        align-items:stretch;
        background:#fff;
        padding:10px 16px 16px;
        border-bottom:1px solid var(--border);
        box-shadow:0 12px 24px rgba(27,58,75,.12);
        gap:2px;
        flex-wrap:nowrap;
        overflow:visible;
        z-index:999;
    }

    .main-nav.open{display:flex}

    .main-nav a{
        padding:12px 10px;
        font-size:.92rem;
        border-radius:8px;
        width:100%;
        text-align:left;
        background:transparent;
        border-bottom:1px solid #F0EDE4;
    }

    .main-nav a:last-child{border-bottom:none}

    .main-nav a:hover{background:var(--sand);color:var(--navy)}

    .auth-controls{
        margin-left:auto;
        gap:8px;
    }

    .auth-controls .user-badge{
        display:none;
    }

    .auth-controls .btn-primary,
    .auth-controls .btn-ghost{
        padding:7px 12px;
        font-size:.78rem;
    }
}

@media (max-width:520px){
    .logo-text{font-size:.85rem}
    .logo-mark{width:30px;height:30px;font-size:.82rem}
    .header-inner{padding:10px 12px}
    .auth-controls .btn-primary,
    .auth-controls .btn-ghost{
        padding:6px 10px;
        font-size:.74rem;
    }
}



/* ============================================================
   PENDING NOTIFICATION BADGE
   ============================================================ */

.mod-link{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:6px;
}

.mod-badge-notify{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:20px;
    height:20px;
    padding:0 6px;
    border-radius:10px;
    background:#e0362c;
    color:#fff;
    font-size:.68rem;
    font-weight:700;
    line-height:1;
    animation:pulseBadge 2s infinite;
}

@keyframes pulseBadge{
    0%,100%{box-shadow:0 0 0 0 rgba(224,54,44,.6)}
    50%{box-shadow:0 0 0 6px rgba(224,54,44,0)}
}

@media (max-width:720px){
    .mod-badge-notify{
        min-width:18px;
        height:18px;
        font-size:.62rem;
    }
}






/* ============================================================
   PAGINATION (Bootstrap 5 markup, custom styles)
   ============================================================ */

.pagination-wrap{
    display:flex;
    justify-content:center;
    margin-top:24px;
    padding-top:22px;
    border-top:1px solid var(--border);
}

.pagination-wrap nav{
    display:block;
    width:100%;
}

.pagination-wrap nav > div:first-child{
    display:none; /* hides "Showing X to Y of Z" */
}

.pagination-wrap .pagination{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
    justify-content:center;
    list-style:none;
    padding:0;
    margin:0;
}

.pagination-wrap .page-item{
    display:inline-block;
}

.pagination-wrap .page-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:40px;
    height:40px;
    padding:0 14px;
    border:1px solid var(--border);
    background:#fff;
    color:var(--navy);
    border-radius:8px;
    font-size:.88rem;
    font-weight:600;
    text-decoration:none;
    transition:all .12s;
    font-family:inherit;
    cursor:pointer;
    line-height:1;
}

.pagination-wrap .page-link:hover{
    background:var(--navy);
    color:#fff;
    border-color:var(--navy);
}

.pagination-wrap .page-item.active .page-link{
    background:var(--navy);
    color:#fff;
    border-color:var(--navy);
    font-weight:700;
    cursor:default;
}

.pagination-wrap .page-item.disabled .page-link{
    opacity:.35;
    cursor:not-allowed;
    background:#fff;
    color:var(--navy);
    border-color:var(--border);
}

.pagination-wrap .page-link svg{
    width:16px;
    height:16px;
}

/* Hide the default "« Previous" text — show only the arrow icon */
.pagination-wrap .page-item:first-child .page-link,
.pagination-wrap .page-item:last-child .page-link{
    font-size:.9rem;
}

/* Mobile adjustments */
@media (max-width:600px){
    .pagination-wrap .page-link{
        min-width:36px;
        height:36px;
        padding:0 10px;
        font-size:.8rem;
    }
}


/* ============================================================
   PAGINATION — final clean version
   ============================================================ */

.pgn{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;
    margin:28px 0 0;
    padding:22px 0 0;
    border-top:1px solid #E8E4DA;
}

.pgn-item{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:40px;
    height:40px;
    padding:0 14px;
    border:1px solid #E8E4DA;
    border-radius:8px;
    background:#fff;
    color:#1B3A4B;
    font-size:.88rem;
    font-weight:600;
    text-decoration:none;
    transition:background .12s,color .12s,border-color .12s;
    line-height:1;
    box-sizing:border-box;
    font-family:inherit;
}

.pgn-item:hover{
    background:#1B3A4B;
    color:#fff;
    border-color:#1B3A4B;
}

.pgn-on{
    background:#1B3A4B;
    color:#fff;
    border-color:#1B3A4B;
    cursor:default;
}

.pgn-off{
    opacity:.35;
    cursor:not-allowed;
    background:#fff;
    color:#1B3A4B;
}

.pgn svg{
    display:none;
}

.pagination-wrap,
.custom-pagination{
    all:unset;
    display:block;
}

@media (max-width:600px){
    .pgn-item{
        min-width:34px;
        height:34px;
        padding:0 10px;
        font-size:.8rem;
    }
}


/* ============================================================
   FILTER BAR — single row
   ============================================================ */

.filter-bar{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    gap:10px !important;
    width:100% !important;
    background:transparent !important;
    padding:0 !important;
    border:none !important;
    margin-bottom:0 !important;
}

.filter-search{
    flex:1 1 auto !important;
    min-width:0 !important;
    width:auto !important;
    padding:11px 16px !important;
    border:1.5px solid #D8D4CA !important;
    border-radius:8px !important;
    font-family:inherit !important;
    font-size:.92rem !important;
    background:#fff !important;
    box-sizing:border-box !important;
    height:46px !important;
}

.filter-select{
    flex:0 0 auto !important;
    width:auto !important;
    min-width:150px !important;
    padding:0 14px !important;
    border:1.5px solid #D8D4CA !important;
    border-radius:8px !important;
    font-family:inherit !important;
    font-size:.92rem !important;
    background:#fff !important;
    cursor:pointer !important;
    box-sizing:border-box !important;
    height:46px !important;
}

.filter-bar .btn-primary,
.filter-bar .btn-ghost{
    flex:0 0 auto !important;
    height:46px !important;
    padding:0 22px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    white-space:nowrap !important;
    box-sizing:border-box !important;
}

/* On narrow screens, wrap to 2 rows */
@media (max-width:900px){
    .filter-bar{
        flex-wrap:wrap !important;
    }
    .filter-search{
        flex:1 1 100% !important;
    }
    .filter-select{
        flex:1 1 calc(50% - 5px) !important;
        min-width:0 !important;
    }
    .filter-bar .btn-primary,
    .filter-bar .btn-ghost{
        flex:1 1 100% !important;
    }
}

/* On phone, stack everything */
@media (max-width:560px){
    .filter-select{
        flex:1 1 100% !important;
    }
}


/* ============================================================
   CLAUDE FETCH PANEL — admin dashboard
   ============================================================ */

.claude-fetch-panel{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    background:linear-gradient(135deg,#7C3AED,#5B21B6);
    color:#fff;
    border-radius:14px;
    padding:22px 26px;
    margin-bottom:24px;
    box-shadow:0 8px 24px rgba(124,58,237,.2);
    flex-wrap:wrap;
}

.cfp-left{display:flex;gap:16px;align-items:center;flex:1;min-width:240px}

.cfp-icon{
    width:52px;
    height:52px;
    border-radius:12px;
    background:rgba(255,255,255,.15);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.5rem;
    flex-shrink:0;
    backdrop-filter:blur(4px);
}

.cfp-title{
    font-family:'Libre Baskerville',serif;
    font-size:1.1rem;
    font-weight:700;
    margin-bottom:4px;
}

.cfp-sub{
    font-size:.85rem;
    color:rgba(255,255,255,.8);
}

.cfp-right{flex-shrink:0}

.cfp-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    background:#fff;
    color:#5B21B6;
    border:none;
    padding:14px 26px;
    border-radius:10px;
    font-size:.95rem;
    font-weight:700;
    cursor:pointer;
    font-family:inherit;
    transition:all .15s;
    box-shadow:0 4px 14px rgba(0,0,0,.15);
    white-space:nowrap;
}

.cfp-btn:hover:not(:disabled){
    transform:translateY(-2px);
    box-shadow:0 8px 22px rgba(0,0,0,.22);
}

.cfp-btn:disabled{
    opacity:.75;
    cursor:wait;
}

.cfp-btn.loading .cfp-btn-icon{
    animation:spin 1s linear infinite;
    display:inline-block;
}

@keyframes spin{
    from{transform:rotate(0)}
    to{transform:rotate(360deg)}
}

.cfp-btn-icon{font-size:1.1rem}

/* Progress panel */
.claude-progress{
    background:#fff;
    border:1px solid var(--border);
    border-radius:14px;
    padding:26px 30px;
    margin-bottom:24px;
    box-shadow:0 4px 20px rgba(27,58,75,.06);
    animation:slideDown .25s ease-out;
}

@keyframes slideDown{
    from{opacity:0;transform:translateY(-10px)}
    to{opacity:1;transform:translateY(0)}
}

.claude-progress.hidden{display:none}

.cp-header{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    margin-bottom:16px;
}

.cp-title{
    font-family:'Libre Baskerville',serif;
    font-size:1.05rem;
    color:var(--navy);
    font-weight:700;
}

.cp-timer{
    font-family:'Consolas',monospace;
    font-size:.95rem;
    color:var(--text-muted);
    font-weight:600;
}

.cp-bar{
    width:100%;
    height:6px;
    background:#F0EDE4;
    border-radius:6px;
    overflow:hidden;
    margin-bottom:16px;
}

.cp-bar-fill{
    height:100%;
    background:linear-gradient(90deg,#7C3AED,#A78BFA);
    width:0%;
    transition:width .6s ease-out;
    border-radius:6px;
}

.cp-status{
    font-size:.88rem;
    color:var(--navy);
    font-weight:600;
    margin-bottom:18px;
}

.cp-steps{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-bottom:18px;
}

.cp-step{
    font-size:.85rem;
    color:var(--text-muted);
    display:flex;
    align-items:center;
    gap:10px;
    transition:color .15s;
}

.cp-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:#D8D4CA;
    flex-shrink:0;
    transition:all .25s;
}

.cp-step.active{
    color:#5B21B6;
    font-weight:600;
}

.cp-step.active .cp-dot{
    background:#7C3AED;
    box-shadow:0 0 0 4px rgba(124,58,237,.2);
    animation:pulse 1.4s infinite;
}

.cp-step.done{
    color:#2E7D32;
}

.cp-step.done .cp-dot{
    background:#2E7D32;
}

@keyframes pulse{
    0%,100%{box-shadow:0 0 0 4px rgba(124,58,237,.2)}
    50%{box-shadow:0 0 0 8px rgba(124,58,237,.05)}
}

.cp-result{
    background:#E8F5E9;
    border-left:4px solid #2E7D32;
    color:#2E7D32;
    padding:16px 20px;
    border-radius:8px;
    font-size:.9rem;
    line-height:1.6;
    margin-bottom:14px;
}

.cp-result.error{
    background:#FBE9E5;
    border-left-color:#A63D2F;
    color:#A63D2F;
}

.cp-result.hidden{display:none}

.cp-result-list{
    margin:10px 0 0 0;
    padding-left:20px;
    list-style:disc;
}

.cp-result-slug{
    font-family:'Consolas',monospace;
    background:rgba(255,255,255,.5);
    padding:2px 6px;
    border-radius:4px;
    font-size:.82rem;
    text-transform:capitalize;
}

.cp-raw{
    margin-top:10px;
    background:#fff;
    padding:10px;
    border-radius:6px;
    font-family:'Consolas',monospace;
    font-size:.75rem;
    max-height:200px;
    overflow:auto;
    color:#333;
    white-space:pre-wrap;
    word-break:break-word;
}

.cp-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    padding-top:6px;
}

@media (max-width:720px){
    .claude-fetch-panel{flex-direction:column;align-items:flex-start}
    .cfp-right{width:100%}
    .cfp-btn{width:100%;justify-content:center}
    .claude-progress{padding:20px}
}

/* ============================================================
   SECTION PAGE — clean layout
   ============================================================ */

.sec-hero{
    position:relative;
    background:linear-gradient(135deg,#14395c 0%,#2C5568 60%,#14395c 100%);
    color:#fff;
    padding:90px 0 80px;
    overflow:hidden;
}

.sec-hero-bg{
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 80% 20%, rgba(166,61,47,.18) 0%, transparent 55%),
        radial-gradient(circle at 10% 80%, rgba(255,255,255,.06) 0%, transparent 50%);
    pointer-events:none;
}

.sec-hero-inner{
    position:relative;
    z-index:2;
    max-width:1280px;
    margin:0 auto;
    padding:0 32px;
}

.sec-hero-kicker{
    display:inline-block;
    font-size:.72rem;
    font-weight:600;
    letter-spacing:.18em;
    text-transform:uppercase;
    color:#8FB0C0;
    margin-bottom:14px;
}

.sec-hero h1{
    font-size:3.4rem;
    font-weight:900;
    color:#fff;
    line-height:1.1;
    margin:0 0 12px;
    letter-spacing:-.02em;
}

.sec-hero-sub{
    font-family:'Caveat',cursive;
    font-size:1.6rem;
    color:#7FD1AE;
    margin:0;
    font-weight:500;
}

/* Main wrapper */
.sec-wrap{
    max-width:1280px;
    margin:0 auto;
    padding:50px 32px 80px;
}

/* Head bar with (+) */
.sec-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:32px;
    padding-bottom:16px;
    border-bottom:2px solid #E8E4DA;
    flex-wrap:wrap;
}

.sec-bar h2{
    font-size:1.6rem;
    font-weight:700;
    color:#14395c;
    margin:0;
}

/* Card grid */
.sec-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
    gap:24px;
}

/* Card */
.sec-card{
    background:#fff;
    border:1px solid #E8E4DA;
    border-radius:14px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    transition:all .18s;
    position:relative;
}

.sec-card:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 30px rgba(20,57,92,.1);
    border-color:transparent;
}

.sec-card-img{
    width:100%;
    height:190px;
    object-fit:cover;
    display:block;
    background:linear-gradient(135deg,#cfe0ea,#a9c7d6);
}

.sec-card-body{
    padding:22px 22px 20px;
    display:flex;
    flex-direction:column;
    flex:1;
    position:relative;
}

.sec-tag{
    display:inline-block;
    align-self:flex-start;
    font-size:.66rem;
    font-weight:700;
    letter-spacing:.06em;
    text-transform:uppercase;
    padding:4px 12px;
    border-radius:20px;
    background:#E8F3EA;
    color:#2c6b41;
    margin-bottom:14px;
}

.sec-card-body h3{
    font-size:1.15rem;
    font-weight:700;
    color:#14395c;
    line-height:1.35;
    margin:0 0 12px;
    padding-right:36px;
}

.sec-card-body h3 a{
    color:inherit;
    text-decoration:none;
    transition:color .15s;
}

.sec-card-body h3 a:hover{
    color:#1f7a41;
}

.sec-meta{
    font-size:.8rem;
    color:#6b7684;
    margin-bottom:12px;
    display:flex;
    flex-wrap:wrap;
    gap:4px;
}

.sec-body{
    font-size:.92rem;
    line-height:1.6;
    color:#4a4a4a;
    margin:0 0 16px;
    flex:1;
}

.sec-card-foot{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-top:16px;
    border-top:1px solid #F0EDE4;
    margin-top:auto;
    gap:10px;
}

.sec-author{
    font-size:.72rem;
    color:#6b7684;
    font-style:italic;
}

.sec-readmore{
    font-size:.82rem;
    font-weight:600;
    color:#A63D2F;
    text-decoration:none;
    padding:5px 10px;
    border-radius:6px;
    transition:all .15s;
    white-space:nowrap;
}

.sec-readmore:hover{
    background:#A63D2F;
    color:#fff;
}

.sec-arrow{
    font-size:1rem;
    color:#A63D2F;
    font-weight:700;
    text-decoration:none;
    transition:transform .15s;
}

.sec-arrow:hover{
    transform:translateX(4px);
}

.sec-empty{
    text-align:center;
    color:#6b7684;
    font-style:italic;
    padding:60px 20px;
    background:#F9F9F6;
    border-radius:14px;
    border:1px dashed #E8E4DA;
}

/* Responsive */
@media (max-width:900px){
    .sec-hero{padding:70px 0 60px}
    .sec-hero h1{font-size:2.4rem}
    .sec-hero-sub{font-size:1.3rem}
    .sec-wrap{padding:36px 20px 60px}
    .sec-grid{grid-template-columns:1fr}
}

@media (max-width:520px){
    .sec-hero h1{font-size:1.9rem}
    .sec-hero-inner{padding:0 20px}
    .sec-wrap{padding:28px 16px 50px}
}

/* Section hero — actual background image */
.sec-hero{
    position:relative;
    background:linear-gradient(135deg,#14395c 0%,#2C5568 60%,#14395c 100%);
    color:#fff;
    padding:90px 0 80px;
    overflow:hidden;
    min-height:320px;
    display:flex;
    align-items:center;
}

.sec-hero-bg{
    position:absolute;
    inset:0;
    background-image:url('/images/banner.jpg');
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    z-index:1;
}

.sec-hero-bg::after{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(90deg,
        rgba(20,57,92,.92) 0%,
        rgba(20,57,92,.78) 45%,
        rgba(20,57,92,.35) 100%);
}

.sec-hero-inner{
    position:relative;
    z-index:2;
}


/* Active navigation state */
.main-nav a.active{
    color:#1f7a41;
    font-weight:700;
    position:relative;
}

.main-nav a.active::after{
    content:'';
    position:absolute;
    left:0;
    right:0;
    bottom:-6px;
    height:2px;
    background:#1f7a41;
    border-radius:2px;
}

/* On mobile dropdown, style active differently */
@media (max-width:1200px){
    .main-nav a.active{
        background:#E8F3EA;
        color:#1f7a41;
        border-bottom-color:transparent;
    }

    .main-nav a.active::after{
        display:none;
    }
}



/* ============================================================
   ITEM DETAIL PAGE
   ============================================================ */

.item-hero{
    position:relative;
    min-height:460px;
    display:flex;
    align-items:flex-end;
    overflow:hidden;
}

.item-hero-bg{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    z-index:1;
    filter:brightness(.75);
}

.item-hero-scrim{
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,rgba(20,57,92,.35) 0%,rgba(20,57,92,.9) 100%);
    z-index:2;
}

.item-hero-inner{
    position:relative;
    z-index:3;
    max-width:1000px;
    margin:0 auto;
    padding:0 32px 90px;
    width:100%;
    color:#fff;
    text-align:center;
}

.item-hero-tag{
    display:inline-block;
    background:rgba(255,255,255,.15);
    backdrop-filter:blur(8px);
    border:1px solid rgba(255,255,255,.3);
    color:#fff;
    padding:8px 20px;
    border-radius:22px;
    font-size:.72rem;
    font-weight:700;
    letter-spacing:.14em;
    text-transform:uppercase;
    margin-bottom:22px;
    text-decoration:none;
    transition:all .15s;
}

.item-hero-tag:hover{
    background:rgba(255,255,255,.28);
    color:#fff;
}

.item-hero-inner h1{
    font-size:3.2rem;
    font-weight:900;
    color:#fff;
    line-height:1.15;
    margin:0 0 22px;
    letter-spacing:-.01em;
    text-shadow:0 3px 24px rgba(0,0,0,.5);
}

.item-hero-meta{
    display:flex;
    gap:22px;
    justify-content:center;
    flex-wrap:wrap;
    font-size:1rem;
    color:#EAF2F7;
    font-weight:500;
    text-shadow:0 2px 12px rgba(0,0,0,.4);
}

.item-hero-meta span{display:inline-block}

/* Body card that overlaps hero */
.item-wrap{
    max-width:1000px;
    margin:20px auto 90px;
    padding:0 24px;
    position:relative;
    z-index:5;
}

.item-body-card{
    background:#fff;
    border:1px solid #E8E4DA;
    border-radius:16px;
    padding:50px 60px;
    box-shadow:0 24px 60px rgba(20,57,92,.14);
}

.item-tag{
    display:inline-block;
    background:#E8F3EA;
    color:#2c6b41;
    font-size:.7rem;
    font-weight:700;
    letter-spacing:.06em;
    text-transform:uppercase;
    padding:5px 14px;
    border-radius:20px;
    margin-bottom:22px;
}

.item-meta-row{
    font-size:.95rem;
    color:#333;
    margin-bottom:10px;
    line-height:1.55;
}

.item-meta-row strong{
    color:#14395c;
    font-weight:700;
    margin-right:6px;
}

.item-meta-row a{
    color:#1f7a41;
    word-break:break-all;
    text-decoration:underline;
}

.item-text{
    font-size:1.06rem;
    line-height:1.85;
    color:#2c2c2c;
    margin:26px 0;
}

.item-bullets{
    list-style:none;
    padding:0;
    margin:26px 0;
    border-left:4px solid #A63D2F;
    padding-left:24px;
}

.item-bullets li{
    padding:10px 0;
    font-size:1rem;
    line-height:1.65;
    color:#2c2c2c;
    position:relative;
}

.item-bullets li::before{
    content:'▸';
    position:absolute;
    left:-20px;
    color:#A63D2F;
    font-weight:700;
}

.item-foot{
    margin-top:38px;
    padding-top:24px;
    border-top:1px solid #E8E4DA;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:14px;
    font-size:.85rem;
    color:#6b7684;
}

.item-foot strong{
    color:#14395c;
    font-weight:600;
}

/* Related */
.item-related{
    margin-top:70px;
}

.item-related-head{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    margin-bottom:26px;
    padding-bottom:14px;
    border-bottom:2px solid #E8E4DA;
    flex-wrap:wrap;
    gap:10px;
}

.item-related-head h2{
    font-size:1.6rem;
    color:#14395c;
    margin:0;
    font-weight:700;
}

.item-related-head a{
    font-size:.85rem;
    font-weight:600;
    color:#1f7a41;
    text-decoration:none;
}

.item-related-head a:hover{text-decoration:underline}

.item-related-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:24px;
}

.item-rel-card{
    background:#fff;
    border:1px solid #E8E4DA;
    border-radius:14px;
    overflow:hidden;
    text-decoration:none;
    color:inherit;
    transition:all .15s;
    display:block;
}

.item-rel-card:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 32px rgba(20,57,92,.12);
    border-color:transparent;
}

.item-rel-img{
    height:160px;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

.item-rel-body{
    padding:18px 20px 20px;
}

.item-rel-body h4{
    font-size:1.05rem;
    font-weight:700;
    color:#14395c;
    margin:0 0 10px;
    line-height:1.35;
}

.item-rel-date{
    font-size:.75rem;
    color:#6b7684;
    margin-bottom:8px;
}

.item-rel-body p{
    font-size:.86rem;
    line-height:1.55;
    color:#4a4a4a;
    margin:0;
}

/* Responsive */
@media (max-width:720px){
    .item-hero{min-height:340px}
    .item-hero-inner{padding:0 20px 70px}
    .item-hero-inner h1{font-size:2rem}
    .item-hero-meta{font-size:.88rem;gap:14px}
    .item-body-card{padding:30px 24px;border-radius:12px}
    .item-text{font-size:1rem}
    .item-wrap{margin:-50px auto 60px}
    .item-related-grid{grid-template-columns:1fr}
}

.btn-add {
    width: 28px;
    height: 28px;
    font-size: 16px;
    font-weight: 400;
    padding: 0;
    line-height: 1;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.btn-add:hover {
    transform: scale(1.12);
    opacity: 0.75;
}



.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}


.section-head h2 {
    font-size: 19px;
    margin: 0;
    color: var(--navy);
}

.head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.head-actions>a {
    font-size: 10px;
    color: #2478c6;
    font-weight: 600;
}

.add-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

        place-items: center;
    background: var(--brick);
    color: #fff;
    font-size: 16px;
    font-weight: 400;

    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,.12);
    transition: transform .22s ease,opacity .22s ease,box-shadow .22s ease;
}

.add-btn:hover{transform:scale(1.1);opacity:.82;box-shadow:0 3px 8px rgba(0,0,0,.16)}

.content-grid.two {
    grid-template-columns: repeat(2,1fr);
}
.content-grid {
    display: grid;
    gap: 12px;
}
.review-card {
    display: grid;
    grid-template-columns: 42% 58%;
}
.content-card, .review-card, .gov-card {
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 7px rgba(18,43,62,.06);
}
.review-card img {
    width: 100%;
    height: 100%;
    min-height: 175px;
    object-fit: cover;
}
.review-body {
    padding: 17px;
}
.rating {
    font-size: 11px;
    color: #d28d15;
    font-weight: 700;
}

.rating span {
    font-size: 11px;
    color: #84909a;
    margin-left: 5px;
}

.review-body h3 {
    font-size: 17px;
    margin: 8px 0;
}

.content-card p, .review-body p {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
    margin: 0 0 9px;
}
.content-card a, .review-body a, .gov-card>a {
    font-size: 10px;
    color: #2478c6;
    font-weight: 700;
}


.government-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
}

.gov-card {
    padding: 14px;
}
.gov-title {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-bottom: 9px;
}
.gov-icon {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #e8f1f7;
    color: var(--navy);
    display: grid;
    place-items: center;
    font-weight: 700;
}

.gov-title small {
    font-size: 11px;
    letter-spacing: .7px;
    color: #7a8790;
    font-weight: 700;
}
.gov-title h3 {
    font-size: 15px;
    margin: 2px 0 0;
}

.gov-card ul {
    padding-left: 17px;
    margin: 0 0 12px;
}



.gov-card li {
    
    
    margin-bottom: 4px;

    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}

::marker {
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
    text-transform: none;
    text-indent: 0px !important;
    text-align: start !important;
    text-align-last: auto !important;
}

.content-card a, .review-body a, .gov-card>a {
    font-size: 10px;
    color: #2478c6;
    font-weight: 700;
}

.review-body a, .gov-card a{
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
}



@media(max-width:767px){
    .gx-head{
        flex-wrap: wrap;
    }
    .content-grid.two {
    grid-template-columns: repeat(1,1fr);
}
.review-card {
    display: grid;
    grid-template-columns: 1fr;
}
.government-grid {
    display: grid;
    grid-template-columns: repeat(1,1fr);
    gap: 12px;
}

.gx-promo-sign {
    right: 13px;
    
    bottom: 8px;
    top: unset !important;
}
}


.gx-btn--green{
    cursor: pointer;
}


/* Checkbox-based hamburger (no JS) */
.nav-check{
    display:none;
}

.nav-check:checked ~ .nav-toggle span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
}
.nav-check:checked ~ .nav-toggle span:nth-child(2){
    opacity:0;
}
.nav-check:checked ~ .nav-toggle span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
}

@media (max-width:1200px){
    .nav-check:checked ~ .main-nav{
        display:flex;
    }
}


section.block {
    padding: 52px 0;
}

.wrap {
    max-width: 1280px;
    margin: 0 auto;
    
}

.ig-head-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 22px;
}

.ig-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ig-follow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 7px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg,#f9ce34,#ee2a7b 55%,#6228d7);
}

.ig-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ig-card {
    border-radius: 14px;
    overflow: hidden;
    background: #0e1620;
    position: relative;
    aspect-ratio: 9/13;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ig-reel-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.45);
    border-radius: 6px;
    padding: 4px 6px;
    display: flex;
    align-items: center;
}

.ig-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ig-play svg {
    width: 18px;
    height: 18px;
    margin-left: 3px;
}

.ig-card .caption {
    position: relative;
    padding: 14px;
    color: #fff;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 65%, transparent 100%);
}

.ig-card .caption .cap-title {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.3;
}

@media (max-width: 980px) {
    .ig-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 560px) {
    .ig-grid {
        grid-template-columns: 1fr;
    }
}


.ig-card iframe{
        background: white;
    max-width: 540px;
    width: calc(100% - 0px) !important;
    border-radius: 3px;
    border: 1px solid rgb(219, 219, 219);
    box-shadow: none;
    display: block;
    margin: 0px 0px 12px;
    min-width: auto !important;
    padding: 0px;

}


.comment-popover{
   top: 140px !important;
    left: 80px !important;
}




 .auth-form textarea{
    width:100%;
 }

 .auth-form .btn-primary{
    width:auto !important;
 }
 #contribution-form label, .auth-form label{
    text-transform: capitalize;
 }

 @media(max-width:767px){
    .item-wrap{
        margin-top: 20px;
    }
   .gov-card .gov-title{
    flex-wrap: wrap;
}
 }

img.new-logo {
    width: 80px;
}

 


/* featured band (replaces hero) */
.band{padding:30px 0 26px;background:linear-gradient(#f2f5f0,#f9f9f5)}
.band-h{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:14px}.band-h h2{font-size:30px}
.band-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:18px}
.big{display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid var(--bd);border-radius:14px;overflow:hidden;box-shadow:0 2px 10px rgba(26,58,92,.07)}
.big .ph{min-height:270px}.big .in{padding:22px}.big h3{font-size:22px;margin:6px 0 8px}.big p{color:var(--mu);font-size:14px;margin-bottom:12px}
.label{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--green)}
.bar{height:8px;background:#e5eadf;border-radius:8px;overflow:hidden;margin:6px 0 4px}.bar i{display:block;height:100%;background:var(--green)}
.side{display:grid;gap:18px}
.mini{background:#fff;border:1px solid var(--bd);border-radius:14px;padding:18px 20px;box-shadow:0 2px 10px rgba(26,58,92,.07)}.mini h3{font-size:17px;margin:4px 0 4px}.mini p{font-size:13.5px;color:var(--mu)}
.btn{display:inline-block;background:var(--green);color:#fff;padding:9px 16px;border-radius:6px;font-weight:600;font-size:14px}
.ph{background:linear-gradient(160deg,#9db9c8,#476f86)}.ph1{background:linear-gradient(170deg,#c8d3cf,#6f8f80 60%,#38564d)}.ph2{background:linear-gradient(#c9dae6,#4b7690)}.ph3{background:linear-gradient(#d8ccA0,#6f8b4e)}.ph4{background:linear-gradient(#9fcaa6,#3f7f4c)}.ph5{background:linear-gradient(135deg,#d8874a,#5d8a3a)}


@media(max-width:900px){.band-grid,.big,.cols,.rev{grid-template-columns:1fr}.icons .wrap{grid-template-columns:repeat(3,1fr)}.reels,.gov,.biz,.grp{grid-template-columns:repeat(2,1fr)}.news{grid-template-columns:1fr}nav{display:none}.rc{grid-template-columns:1fr}.rc .ph{height:120px}.ev{grid-template-columns:56px 1fr}.ev .ph{display:none}}



.panel {
    background: #fff;
    border: 1px solid var(--bd);
    border-radius: 14px;
    padding: 6px 22px 18px;
    box-shadow: 0 2px 10px rgba(26,58,92,.07);
}
.panel h3 {
    font-size: 19px;
    padding-top: 16px;
}
.panel ul {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}
.panel li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--bd);
    font-size: 14px;
}
.panel li span {
    color: #6b7684;
    font-size: 13px;
    white-space: nowrap;
}


.ph.ph2 {
    background: url(/images/road.jpg);
    background-size: cover;
}