/* ════════════════════════════════════════
   ICT BRAND STYLES v11 — Clean & Scoped
════════════════════════════════════════════ */

/* ── SCOPED BODY TEXT (only within post content) ─────────────────────────── */
.wp-block-post-content p:not([style*="color"]),
.wp-block-post-content li:not([style*="color"]),
.wp-block-post-content span:not([style*="color"]){
    color:#333333!important;
}
.wp-block-post-content h1:not([style*="color"]),
.wp-block-post-content h2:not([style*="color"]),
.wp-block-post-content h3:not([style*="color"]),
.wp-block-post-content h4:not([style*="color"]),
.wp-block-post-content h5:not([style*="color"]),
.wp-block-post-content h6:not([style*="color"]){
    color:#000000!important;
}

/* ── LINKS (scoped to post content) ───────────────────────────────────── */
.wp-block-post-content a:not([style*="color"]):not(.wp-block-button__link){
    color:#333333!important;
    text-decoration:none!important;
}
.wp-block-post-content a:not([style*="color"]):not(.wp-block-button__link):hover{
    color:#215387!important;
}

/* ── PAGE CONTENT OVERRIDES ─────────────────────────────────────────────── */
.wp-block-post-content>.alignfull,
.wp-block-post-content>.alignwide{
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
}
.wp-block-post-content{
    padding-left:0!important;
    padding-right:0!important;
    background-color:#ffffff!important;
}
.entry-header, .entry-footer, .page-header{
    display:none!important;
}
.wp-block-group.alignfull+.wp-block-group.alignfull{
    margin-top:0!important;
}

/* Prevent theme background from appearing as dark gaps between blocks */
body,
.wp-site-blocks,
main.wp-block-group{
    background-color:#ffffff!important;
}

.wp-block-post-content > *{
    margin-top:0!important;
    margin-bottom:0!important;
}

/* WordPress spacers - make them transparent */
.wp-block-spacer,
.wp-block-spacer > div{
    background-color:transparent!important;
}

/* ── HEADER (clean scoped) ───────────────────────────────────────────── */
header.wp-block-template-part{
    position:sticky!important;
    top:0!important;
    z-index:9999!important;
}

.ict-site-header-wrap{
    background:#ffffff!important;
    border-bottom:1px solid #eceff3!important;
}

.ict-site-header-row{
    min-height:78px;
    gap:22px!important;
}

.ict-site-header-wrap .wp-block-site-logo img{
    height:34px!important;
    width:auto!important;
}

.ict-header-nav{
    flex:1 1 auto;
    justify-content:center;
}

.ict-header-nav .wp-block-navigation__container{
    gap:2px 10px!important;
}

.ict-header-nav .wp-block-navigation-item__content{
    font-family:var(--wp--preset--font-family--inter)!important;
    font-size:15px!important;
    font-weight:500!important;
    color:#000000!important;
    text-decoration:none!important;
    padding:10px 12px!important;
    border-bottom:2px solid transparent!important;
    border-radius:6px;
    transition:all .2s ease;
}

.ict-header-nav .wp-block-navigation-item__content:hover,
.ict-header-nav .current-menu-item > .wp-block-navigation-item__content,
.ict-header-nav .current-menu-ancestor > .wp-block-navigation-item__content{
    color:#215387!important;
    border-bottom-color:#215387;
}

.ict-header-nav .wp-block-navigation__submenu-container{
    border:1px solid #e2e8f0!important;
    border-radius:12px!important;
    box-shadow:0 18px 40px rgba(0,0,0,.12)!important;
    padding:8px!important;
    min-width:220px!important;
}

.ict-header-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content{
    padding:9px 12px!important;
    border-bottom:none!important;
}

.ict-header-actions{
    gap:12px!important;
    flex-shrink:0;
}

.ict-header-actions p{
    margin:0!important;
}

.ict-header-actions p a{
    color:#111827!important;
    font-size:14px!important;
    font-weight:500!important;
}

.ict-header-actions p a:hover{
    color:#215387!important;
}

.ict-btn-dark .wp-block-button__link{
    background:#0a0a0a!important;
    color:#ffffff!important;
    border-radius:10px!important;
    border:none!important;
    font-family:var(--wp--preset--font-family--inter)!important;
    font-size:14px!important;
    font-weight:600!important;
    padding:12px 20px!important;
    line-height:1!important;
    box-shadow:none!important;
}

.ict-btn-dark .wp-block-button__link:hover{
    background:#215387!important;
    transform:translateY(-1px);
}

/* ── FOOTER (scoped) ─────────────────────────────────────────────────── */
.ict-site-footer-wrap{
    background:#f8fafc!important;
    border-top:1px solid #e5e7eb!important;
}

.ict-site-footer-wrap p,
.ict-site-footer-wrap li{
    color:#475569!important;
}

.ict-site-footer-wrap a{
    color:#334155!important;
    text-decoration:none!important;
}

.ict-site-footer-wrap a:hover{
    color:#215387!important;
}

.ict-site-footer-wrap h6{
    color:#000000!important;
    letter-spacing:.1em;
    text-transform:uppercase;
    font-size:12px!important;
    font-weight:700!important;
    margin-bottom:14px!important;
}

.ict-footer-grid{
    align-items:flex-start!important;
}

.ict-footer-links{
    list-style:none!important;
    margin:0!important;
    padding:0!important;
}

.ict-footer-links li{
    margin-bottom:10px!important;
}

.ict-footer-links li a{
    font-size:14px!important;
}

.ict-footer-bottom p{
    margin:0!important;
}

/* ── RESPONSIVE HEADER ─────────────────────────────────────────────────── */
@media(max-width:1000px){
    .ict-site-header-row{
        min-height:70px;
    }
    .ict-header-actions{
        display:none!important;
    }
    .ict-header-nav .wp-block-navigation__responsive-container-open{
        display:flex!important;
    }
}

@media(max-width:782px){
    .ict-site-header-wrap{
        padding-left:14px!important;
        padding-right:14px!important;
    }
    .ict-site-header-row{
        min-height:64px;
    }
    .ict-site-header-wrap .wp-block-site-logo img{
        height:30px!important;
    }
    .ict-header-nav .wp-block-navigation__responsive-container{
        padding-top:24px!important;
        background:#1f232b!important;
        color:#e5e7eb!important;
    }
    .ict-header-nav .wp-block-navigation__responsive-container .wp-block-navigation__container{
        gap:0!important;
    }
    .ict-header-nav .wp-block-navigation__responsive-container .wp-block-navigation-item__content{
        color:#e5e7eb!important;
        border-bottom:1px solid rgba(255,255,255,.08)!important;
        border-radius:0!important;
        padding:14px 0!important;
    }
    .ict-header-nav .wp-block-navigation__responsive-container .wp-block-navigation-item__content:hover{
        color:#ffffff!important;
    }
    .ict-header-nav .wp-block-navigation__responsive-container .wp-block-navigation__submenu-container{
        background:transparent!important;
        border:none!important;
        box-shadow:none!important;
        padding:6px 0 6px 12px!important;
        margin:0!important;
    }
    .ict-header-nav .wp-block-navigation__responsive-container .wp-block-navigation__submenu-container .wp-block-navigation-item__content{
        padding:10px 0 10px 6px!important;
        border-bottom:none!important;
        display:flex!important;
        align-items:center;
        color:#d1d5db!important;
    }
    .ict-header-nav .wp-block-navigation__responsive-container .wp-block-navigation__submenu-container .wp-block-navigation-item__content::before{
        content:"•";
        margin-right:10px;
        color:#e5e7eb;
        font-size:18px;
        line-height:1;
    }
    .ict-site-footer-wrap{
        padding-left:16px!important;
        padding-right:16px!important;
    }
    .ict-footer-bottom{
        flex-direction:column!important;
        align-items:flex-start!important;
        gap:10px;
    }
}

/* ── HERO SECTION ─────────────────────────────────────────────────────────── */
.ict-hero-modern.wp-block-cover{
    min-height:85vh!important;
    margin-top:0!important;
    padding-top:0!important;
    position:relative;
    overflow:hidden;
}
.ict-hero-modern .wp-block-cover__background{
    display:none!important;
}
.ict-hero-modern .wp-block-cover__inner-container{
    padding-top:0!important;
    padding-bottom:0!important;
    max-width:1400px;
    position:relative;
    z-index:2;
}

/* Subpage hero (smaller than homepage, consistent across inner pages) */
.ict-hero-subpage.wp-block-cover{
    min-height:62vh!important;
}
.ict-hero-subpage .wp-block-cover__inner-container{
    max-width:1240px;
    margin:0 auto;
    position:relative;
    z-index:2;
}
.ict-hero-subpage .wp-block-cover__inner-container::before{
    content:'';
    position:absolute;
    top:20%;
    left:8%;
    width:220px;
    height:220px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(33,83,135,0.10) 0%, rgba(33,83,135,0) 72%);
    filter:blur(12px);
    pointer-events:none;
}
.ict-hero-subpage .wp-block-cover__inner-container::after{
    content:'';
    position:absolute;
    right:10%;
    bottom:10%;
    width:180px;
    height:180px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(33,83,135,0.07) 0%, rgba(33,83,135,0) 74%);
    pointer-events:none;
}

/* Hero background gradient */
.ict-hero-modern::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:linear-gradient(180deg, #ffffff 0%, #fafbfc 50%, #f5f7fa 100%);
    z-index:0;
}

/* Hero grid overlay */
.ict-hero-modern .wp-block-cover__inner-container::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background-image:
        linear-gradient(rgba(33,83,135,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33,83,135,0.02) 1px, transparent 1px);
    background-size:80px 80px;
    opacity:0.5;
    z-index:0;
    pointer-events:none;
}

/* Hero chart container */
.ict-hero-chart{
    animation:chartFadeIn 1.2s ease-out;
    position:relative;
}

@keyframes chartFadeIn{
    from{opacity:0;transform:translateY(30px) scale(0.95);}
    to{opacity:1;transform:translateY(0) scale(1);}
}

/* Chart line animation */
.ict-hero-chart path[stroke*="#215387"]{
    stroke-dasharray:1000;
    stroke-dashoffset:1000;
    animation:chartLine 2s ease-out 0.5s forwards;
}

@keyframes chartLine{
    to{stroke-dashoffset:0;}
}

/* Floating orb */
.ict-hero-modern .wp-block-cover__inner-container::after{
    content:'';
    position:absolute;
    width:350px;
    height:350px;
    top:10%;
    right:15%;
    border-radius:50%;
    background:radial-gradient(circle, rgba(33,83,135,0.06) 0%, rgba(33,83,135,0) 70%);
    filter:blur(50px);
    z-index:0;
    pointer-events:none;
    animation:orbFloat 12s ease-in-out infinite;
}

@keyframes orbFloat{
    0%, 100%{transform:translate(0, 0) scale(1);}
    33%{transform:translate(25px, -20px) scale(1.05);}
    66%{transform:translate(-15px, 20px) scale(0.95);}
}

/* Performance card */
.ict-performance-card{
    animation:cardFloat 4s ease-in-out infinite;
    backdrop-filter:blur(8px);
}

@keyframes cardFloat{
    0%, 100%{transform:translateY(0);}
    50%{transform:translateY(-10px);}
}

/* Stats animation */
.ict-stat-item{
    display:inline-block;
}

/* ── BUTTONS ───────────────────────────────────────────────────────────── */
.ict-btn-blue .wp-block-button__link,
.wp-block-post-content .wp-block-button:not(.ict-btn-outline):not(.ict-btn-solid):not(.ict-btn-ghost):not(.ict-btn-dark) .wp-block-button__link{
    background:#215387!important;
    color:#ffffff!important;
    border-radius:8px!important;
    font-weight:600!important;
    font-family:var(--wp--preset--font-family--inter)!important;
    padding:14px 32px!important;
    border:none!important;
    box-shadow:0 4px 12px rgba(33,83,135,.25)!important;
    transition:all .25s cubic-bezier(.4,0,.2,1);
    letter-spacing:0.02em;
}
.ict-btn-blue .wp-block-button__link:hover,
.wp-block-post-content .wp-block-button:not(.ict-btn-outline):not(.ict-btn-solid):not(.ict-btn-ghost):not(.ict-btn-dark) .wp-block-button__link:hover{
    background:#1a4070!important;
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(33,83,135,.35)!important;
}

.ict-btn-outline .wp-block-button__link{
    background:transparent!important;
    border:2px solid #215387!important;
    color:#215387!important;
    border-radius:8px!important;
    font-weight:600!important;
    font-family:var(--wp--preset--font-family--inter)!important;
    padding:14px 32px!important;
    box-shadow:none!important;
    transition:all .25s cubic-bezier(.4,0,.2,1);
}
.ict-btn-outline .wp-block-button__link:hover{
    background:#f0f7ff!important;
    transform:translateY(-2px);
}

/* Keep CTA section readable on blue backgrounds */
.wp-block-post-content .wp-block-group[style*="background-color:#215387"] .ict-btn-outline .wp-block-button__link{
    color:#ffffff!important;
    border-color:#ffffff!important;
    background:transparent!important;
}
.wp-block-post-content .wp-block-group[style*="background-color:#215387"] .ict-btn-outline .wp-block-button__link:hover{
    color:#215387!important;
    background:#ffffff!important;
}

.ict-btn-solid .wp-block-button__link{
    background:transparent!important;
    border:2px solid #215387!important;
    color:#215387!important;
    border-radius:8px!important;
    font-weight:600!important;
    font-family:var(--wp--preset--font-family--inter)!important;
    padding:14px 32px!important;
    transition:all .25s cubic-bezier(.4,0,.2,1);
}
.ict-btn-solid .wp-block-button__link:hover{
    background:#215387!important;
    color:#ffffff!important;
    transform:translateY(-2px);
}

/* ── CARDS (scoped) ──────────────────────────────────────────────────── */
.ict-card-modern{
    background:#ffffff;
    border:1px solid #e2e8f0;
    border-radius:16px;
    padding:32px 28px;
    transition:all .3s cubic-bezier(.4,0,.2,1);
    box-shadow:0 2px 8px rgba(0,0,0,.04);
}
.ict-card-modern:hover{
    border-color:#215387;
    box-shadow:0 8px 24px rgba(33,83,135,.12);
    transform:translateY(-4px);
}

.ict-card-accent{
    background:#ffffff;
    border-left:4px solid #215387;
    border-radius:8px;
    padding:32px 28px;
    box-shadow:0 2px 8px rgba(0,0,0,.04);
    transition:all .3s cubic-bezier(.4,0,.2,1);
}
.ict-card-accent:hover{
    box-shadow:0 8px 24px rgba(33,83,135,.15);
    transform:translateY(-2px);
}

/* ── FEATURED READING BLOCK (homepage) ───────────────────────────────────── */
.ict-featured-reading{
    position:relative;
    padding:0;
}
.ict-featured-reading::before{
    content:'';
    position:absolute;
    top:-18px;
    left:0;
    width:120px;
    height:2px;
    background:#215387;
    opacity:.75;
}
.ict-featured-reading__kicker{
    margin:0 0 10px;
    color:#215387;
    font-size:12px;
    font-weight:700;
    letter-spacing:.16em;
    text-transform:uppercase;
}
.ict-featured-reading__title{
    margin:0;
    color:#111111;
    font-size:clamp(28px, 3.2vw, 42px);
    line-height:1.2;
    font-weight:800;
    letter-spacing:-0.01em;
}
.ict-featured-reading__intro{
    margin:16px 0 0;
    color:#333333;
    font-size:18px;
    line-height:1.7;
    max-width:980px;
}
.ict-featured-reading__line{
    height:1px;
    background:#e5e7eb;
    margin:24px 0 18px;
}
.ict-featured-reading__grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px 30px;
}
.ict-featured-reading__item{
    display:flex;
    align-items:center;
    gap:14px;
    min-height:84px;
    background:#f8fafc;
    border-radius:12px;
    padding:10px 12px;
    transition:all .25s cubic-bezier(.4,0,.2,1);
}
.ict-featured-reading__item:hover{
    background:#f1f5f9;
    transform:translateY(-1px);
}
.ict-featured-reading__thumb{
    width:90px;
    height:52px;
    border:2px solid #d4af37;
    border-radius:7px;
    background:linear-gradient(180deg,#fffdf5 0%,#f8f1d8 100%);
    color:#111111;
    font-size:11px;
    font-weight:700;
    letter-spacing:0.05em;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}
.ict-featured-reading__item p{
    margin:0;
    color:#111111;
    font-size:17px;
    line-height:1.35;
    font-weight:600;
}

/* ── SCROLL ANIMATIONS ───────────────────────────────────────────────────── */
.ict-fade-up{
    opacity:0;
    transform:translateY(30px);
    transition:all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.ict-fade-up.ict-visible{
    opacity:1;
    transform:translateY(0);
}

.ict-animated-divider{
    position:relative;
    height:2px;
    background:linear-gradient(90deg, transparent, #215387, transparent);
    transform:scaleX(0);
    transition:transform 1s ease-out;
}
.ict-animated-divider.ict-visible{
    transform:scaleX(1);
}

/* ── MOBILE HERO ─────────────────────────────────────────────────────── */
@media(max-width:782px){
    .ict-featured-reading{
        padding:0;
    }
    .ict-featured-reading__title{
        font-size:clamp(26px, 8.2vw, 34px);
    }
    .ict-featured-reading__intro{
        font-size:16px;
        line-height:1.6;
    }
    .ict-featured-reading__grid{
        grid-template-columns:1fr;
        gap:10px;
    }
    .ict-featured-reading__item{
        min-height:70px;
        gap:12px;
    }
    .ict-featured-reading__thumb{
        width:78px;
        height:46px;
        font-size:10px;
    }
    .ict-featured-reading__item p{
        font-size:16px;
    }
    .ict-hero-subpage.wp-block-cover{min-height:54vh!important}
    .ict-hero-modern{min-height:70vh!important}
    .ict-hero-modern .wp-block-columns{
        flex-direction:column!important;
    }
    .ict-hero-modern .wp-block-column[style*="55%"],
    .ict-hero-modern .wp-block-column[style*="45%"]{
        flex-basis:100%!important;
        padding:40px 24px!important;
    }
    .ict-hero-chart{
        min-height:300px!important;
    }
    .ict-performance-card{
        width:140px!important;
        bottom:10px!important;
        right:10px!important;
        padding:12px!important;
    }
    .ict-performance-card p{
        font-size:10px!important;
    }
    .ict-performance-card p[style*="18px"]{
        font-size:14px!important;
    }
}
