/* ==========================================================================
   IEP News — Ilhéus em Pauta Theme Stylesheet
   Built on Bootstrap 5 — only custom component styles below
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --iep-primary: #29ABE2;
    --iep-primary-dark: #1a8fc4;
    --iep-dark: #1a1a2e;
    --iep-light: #FFF;
    --bs-primary: #29ABE2;
    --bs-primary-rgb: 41, 171, 226;
    --default-radius: 16px;
    --default-radius-lg: 32px;
}

/* ---------- Global Overrides ---------- */
body {
    font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
    color: #2c3e50;
    background: #fff;
}
#main-content{
    gap: 36px;
    display: flex;
    flex-direction: column;
}
/* Bootstrap container override — max-width 1400px */
@media (min-width: 1200px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1400px;
    }
}

@media (min-width: 1400px) {
    .container-xxl {
        max-width: 1400px;
    }
}

a {
    transition: color 0.2s, background-color 0.2s;
}

/* ---------- Custom Font Weight Utilities ---------- */
.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }
.fw-light { font-weight: 300 !important; }
.ls-1 { letter-spacing: 1px; }
.ls-2 { letter-spacing: 2px; }
.opacity-90 { opacity: 0.9; }
.min-w-0 { min-width: 0; }

/* ---------- Top Bar ---------- */
.iep-topbar {
    background: #65C5FF;
    color: #fff;
    font-size: 0.8125rem;
    padding: 10px 0;
}

.iep-topbar__ticker-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.iep-topbar__live {
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 4px 10px;
    border-radius: 3px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-live 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.iep-topbar__ticker-track {
    display: flex;
    gap: 40px;
    overflow: hidden;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    flex: 1;
    min-width: 0;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.iep-topbar__ticker-item {
    color: #fff;
    white-space: nowrap;
    text-decoration: none;
    font-weight: 400;
}

.iep-topbar__ticker-item:hover {
    text-decoration: underline;
    color: #fff;
}

.iep-topbar__date {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.6);
    padding: 5px 14px;
    border-radius: 0px 20px 20px 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #65c5ff;
    gap: 6px;
    background-color: #FFF;
}

.iep-topbar__social-label {
    font-size: 0.875rem;
    font-weight: 600;
}

.iep-topbar__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    color: #65c5ff;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
    background: #FFF;
}
.iep-topbar__social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
}

/* ---------- Header / Navbar ---------- */
.iep-header {
    z-index: 1030;
}

.iep-header .navbar {
    background: #28A9F6;
    padding: 14px 0;
}

/* Logo */
.iep-logo {
    font-family: 'Work Sans', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 2.5rem !important;
    letter-spacing: -1px;
    color: #fff !important;
    padding: 0;
    margin-right: 24px;
    line-height: 1;
}

/* Nav links */
.iep-nav-main {
    gap: 4px;
}

.iep-header .nav-link {
    font-size: 1rem;
    letter-spacing: 0.01em;
    padding: 8px 20px !important;
    border-radius: 6px;
    transition: background 0.2s;
    color: #fff !important;
}

.iep-header .nav-link:hover,
.iep-header .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
}

/* Search Desktop — large rounded white field */
.iep-search-desktop {
    position: relative;
    flex-shrink: 0;
    margin-left: auto;
}

.iep-search-desktop input {
    width: 220px;
    height: 44px;
    padding: 0 44px 0 18px;
    border: none;
    border-radius: 22px;
    background: #fff;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #333;
    outline: none;
    transition: width 0.3s;
}

.iep-search-desktop input::placeholder {
    color: #aaa;
}

.iep-search-desktop input:focus {
    width: 260px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.iep-search-desktop button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #7AD4F5;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.iep-search-desktop button:hover {
    color: #52B6E6;
}

/* ---------- Ad Sections ---------- */
.iep-ad {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.iep-ad img {
    display: block;
    max-width: 100%;
    height: auto;
}

.iep-ad--placeholder {
    background: #e9ecef;
    border: 1px dashed #ccc;
    border-radius: 8px;
    color: #6c757d;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.iep-ad--header_728x90,
.iep-ad--inline_728x90 {
    width: 728px;
    height: 90px;
    max-width: 100%;
}

.iep-ad--sidebar_300x250,
.iep-ad--sidebar2_300x250 {
    width: 300px;
    height: 250px;
    max-width: 100%;
}

/* ---------- Hero Section ---------- */
.iep-hero__main {
    min-height: 420px;
    height: auto;
    border-radius: var(--default-radius-lg);
}
@media (min-width: 1200px) {
    .iep-hero__main, .iep-hero__main img,
.iep-hero__main-img--placeholder {
        height: 600px !important;
    }
   .iep-hero__main .fs-4 {
        font-size: 3.2rem !important;
        max-width: 73%;
        line-height: 110% !important;
        letter-spacing: -1.2px;
    }
}
.iep-hero__main img,
.iep-hero__main-img--placeholder {
    min-height: 420px;
}

.iep-hero__main-img--placeholder {
    background: linear-gradient(135deg, var(--iep-primary), var(--iep-primary-dark));
}

.iep-hero__main-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding-top: 80px !important;
}

.iep-hero__side-card-placeholder {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.iep-card-gradient {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding-top: 40px !important;
}
.card{
    border-radius: var(--default-radius-lg) !important;
}
.destaque2 {
    background-color: #FFF;
    border-left: 4px solid #005D90 !important;
    padding: 24px 42px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    justify-items: stretch;
    box-shadow: 1px 0px 4px rgba(0, 0, 0, .05);
}
.destaque2 h2 {
    font-weight: lighter;
    font-size: 24px !important;
    color: #1A1C1C !important;
    line-height: 110% !important;
}
.destaque2 .categoria ul{
    font-size: 0.75rem;
    font-weight: 600;
    color: #005D90 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    list-style: none;
    padding: 0;

}
.destaque2 .categoria ul li a{
    text-decoration:none !important;
    color:var(--iep-primary) !important;
}
.destaque3 {
    border-radius: var(--default-radius-lg) !important;
}
.destaque3 a {
    font-weight: lighter;
    font-size: 16px !important;
    color: #FFF !important;
    line-height: 110% !important;
}
.destaque3 .categoria ul{
    font-size: 0.75rem;
    font-weight: 600;
    color: #FFF!important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    list-style: none;
    padding: 0;

}
.destaque3 .categoria ul li a{
    text-decoration:none !important;
    color:#FFF !important;
}
.destaque3 h3 {
    font-weight: lighter;
    font-size: 18px !important;
    color: #FFF!important;
    line-height: 110% !important;
}
/* ---------- Newsletter ---------- */
.iep-newsletter {
    background: var(--iep-primary);
}

.iep-newsletter .form-control:focus {
    border-color: var(--iep-primary-dark);
    box-shadow: 0 0 0 0.2rem rgba(41, 171, 226, 0.25);
}

.iep-newsletter .btn-light {
    color: var(--iep-primary);
    font-weight: 600;
    border: 2px solid #fff;
    transition: all 0.2s;
}

.iep-newsletter .btn-light:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* ---------- Category Badge ---------- */
.iep-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 0px 16px 16px 10px;
    font-size: 0.6875rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    line-height: 1.4;
    text-decoration: none;
    margin-bottom:8px;
}

.iep-badge:hover {
    color: #fff;
    opacity: 0.9;
}

/* ---------- Sidebar Title ---------- */
.iep-sidebar-title {
    letter-spacing: 2px;
    position: relative;
    width: fit-content;
}
.iep-sidebar-title::after {
    content: '\00a0';
    position: absolute;
    bottom: 0px;
    left: 0px;
    height: 1px;
    width: 100%;
    background: #BFC7D1;
}
/* ---------- Card Hover ---------- */
.iep-card-hover {
    transition: box-shadow 0.2s, transform 0.2s;
}

.iep-card-hover:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

/* ---------- Image Placeholder ---------- */
.iep-img-placeholder {
    background: linear-gradient(135deg, #dfe6e9, #b2bec3);
}
#noticias-locais-title, #analise-title {
    color:#1A1C1C !important;
    font-weight: bolder;
    font-size: 2rem !important;    
    letter-spacing: -2px;
}
.iep-home-article {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.iep-home-article h3, .articleAnalise h3 {
    font-size: 24px;
    font-weight: 400;
    line-height: 110%;
}
.iep-home-article p, .articleAnalise p {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.6;
}
.iep-home-article img, .articleAnalise img{
    border-radius: var(--default-radius) !important;
}
/* ---------- Article Body (single post) ---------- */
.iep-single__body {
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.8;
}

.iep-single__body p {
    margin-bottom: 1.25em;
}

.iep-single__body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 2em 0 0.75em;
}

.iep-single__body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5em 0 0.5em;
}

.iep-single__body blockquote {
    border-left: 4px solid var(--iep-primary);
    padding: 16px 24px;
    margin: 1.5em 0;
    background: rgba(41, 171, 226, 0.05);
    font-style: italic;
    font-weight: 400;
    border-radius: 0 8px 8px 0;
}

.iep-single__body ul,
.iep-single__body ol {
    margin: 1em 0;
    padding-left: 2em;
}

.iep-single__body ul {
    list-style: disc;
}

.iep-single__body ol {
    list-style: decimal;
}

.iep-single__body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--default-radius);
}

/* ---------- Footer ---------- */
.iep-footer {
    background: var(--iep-light);
    margin-top: 40px;
}
 .iep-footer a {color:#000 }
.iep-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #000;
    text-decoration: none;
    transition: all 0.2s;
}

.iep-footer__social-link:hover {
    background: var(--iep-primary);
    color: #000;
}

.iep-footer a.text-white-50:hover {
    color: #000 !important;
}

/* ---------- WordPress Pagination Bootstrap Override ---------- */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--default-radius);
    font-size: 0.875rem;
    font-weight: 500;
    background: #fff;
    border: 1px solid #dee2e6;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s;
    margin: 0 2px;
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--iep-primary);
    color: #fff;
    border-color: var(--iep-primary);
}

/* ---------- WordPress Breadcrumb Bootstrap Override ---------- */
.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
}

/* ---------- Bootstrap btn-primary override ---------- */
.btn-primary {
    --bs-btn-bg: #29ABE2;
    --bs-btn-border-color: #29ABE2;
    --bs-btn-hover-bg: #1a8fc4;
    --bs-btn-hover-border-color: #1a8fc4;
    --bs-btn-active-bg: #1580b3;
    --bs-btn-active-border-color: #1580b3;
}

.text-primary {
    color: var(--iep-primary) !important;
}

/* ---------- Offcanvas Mobile Menu ---------- */
.iep-offcanvas {
    background: var(--iep-dark);
    color: #fff;
    max-width: 320px;
}

.iep-offcanvas .offcanvas-header {
    background: var(--iep-primary-dark);
}

.iep-offcanvas .offcanvas-title {
    color: #fff;
    font-size: 1.5rem;
}

.iep-offcanvas .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 16px;
    border-radius: var(--default-radius);
    transition: background 0.2s;
}

.iep-offcanvas .nav-link:hover,
.iep-offcanvas .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.iep-offcanvas .dropdown-menu {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding-left: 16px;
}

.iep-offcanvas .dropdown-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    border-radius:var(--default-radius);
}

.iep-offcanvas .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.iep-offcanvas__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s;
}

.iep-offcanvas__social:hover {
    background: var(--iep-primary);
    color: #fff;
}

/* ==========================================================================
   Subtle Animations
   ========================================================================== */

/* ---------- Keyframes ---------- */
@keyframes iep-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iep-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes iep-shimmer {
    0%, 100% { opacity: 0.85; }
    50%      { opacity: 1; }
}

@keyframes iep-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-2px); }
}

/* ---------- Page load fade-in for hero ---------- */
.iep-hero {
    animation: iep-fade-in 0.6s ease-out both;
}

/* ---------- Reveal on scroll ---------- */
.iep-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.iep-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grouped reveals */
.iep-reveal[data-delay="1"] { transition-delay: 0.08s; }
.iep-reveal[data-delay="2"] { transition-delay: 0.16s; }
.iep-reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- Card image hover zoom ---------- */
.iep-card-hover .card-img-top,
.iep-hero__main img,
article .card-img-top,
.iep-analise-card img,
.iep-hero__side-card img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.iep-card-hover:hover .card-img-top,
.iep-hero__main:hover img,
.iep-analise-card:hover img,
.iep-hero__side-card:hover img {
    transform: scale(1.04);
}

/* Ensure image containers clip overflow */
.iep-card-hover,
.iep-analise-card,
.card {
    overflow: hidden;
}

/* ---------- Enhanced card hover shadow ---------- */
.iep-card-hover,
.card.border-0 {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.iep-card-hover:hover {
    transform: translateY(-3px);
}

/* ---------- Smooth link underline ---------- */
.iep-hero__side-article a,
.iep-card__title a,
article h2 a,
article h3 a,
article h4 a {
    position: relative;
    transition: color 0.25s ease;
}

/* ---------- Badge hover lift ---------- */
.iep-badge {
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.iep-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ---------- Button subtle lift ---------- */
.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease,
                background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

/* ---------- Nav link underline animation ---------- */
.iep-header .nav-link {
    position: relative;
    overflow: hidden;
}

.iep-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.iep-header .nav-link:hover::after,
.iep-header .nav-link.active::after {
    width: 60%;
}

/* ---------- Search focus glow ---------- */
.iep-search-desktop input {
    transition: width 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* ---------- Social icons subtle float on hover ---------- */
.iep-topbar__social-link,
.iep-footer__social-link,
.iep-offcanvas__social {
    transition: transform 0.25s ease, background-color 0.25s ease,
                color 0.25s ease, border-color 0.25s ease;
}

.iep-topbar__social-link:hover,
.iep-footer__social-link:hover,
.iep-offcanvas__social:hover {
    transform: translateY(-2px);
}

/* ---------- Newsletter button pulse on hover ---------- */
.iep-newsletter .btn-light:hover {
    animation: iep-shimmer 1.5s ease-in-out infinite;
}

/* ---------- Mais Lidas rank number hover ---------- */
.iep-mais-lidas__rank,
[class*="iep-mais-lidas"] span.fw-900 {
    transition: transform 0.3s ease, color 0.3s ease;
}

li:hover .iep-mais-lidas__rank,
li:hover > span.fw-900 {
    transform: scale(1.1);
}
aside .list-unstyled li span{
    color:#E2E8F0 !important;
}
/* ---------- Offcanvas smoother ---------- */
.iep-offcanvas {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.iep-offcanvas .nav-link {
    transition: background 0.25s ease, padding 0.25s ease, color 0.25s ease;
}

.iep-offcanvas .nav-link:hover {
    padding-left: 24px;
}

/* ---------- Ticker LIVE pulse (already exists, refined) ---------- */
.iep-topbar__live {
    animation: iep-shimmer 2s ease-in-out infinite;
}

/* ---------- Hero title subtle reveal ---------- */
.iep-hero__main-overlay h1 {
    animation: iep-fade-in-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.iep-hero__main-overlay p,
.iep-hero__main-overlay .iep-hero__main-meta,
.iep-hero__main-overlay > .iep-badge {
    animation: iep-fade-in-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

/* ---------- Reduced motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .iep-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Accessibility: Focus ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--iep-primary);
    outline-offset: 2px;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 991.98px) {
    .iep-hero__main,
    .iep-hero__main img,
    .iep-hero__main-img--placeholder {
        min-height: 320px;
    }
}

@media (max-width: 767.98px) {
    .iep-hero__main,
    .iep-hero__main img,
    .iep-hero__main-img--placeholder {
        min-height: 250px;
    }

    .iep-ad--header_728x90,
    .iep-ad--inline_728x90 {
        width: 100%;
        height: auto;
        min-height: 60px;
    }
}

/* ---------- Contact Page ---------- */
.iep-contact__form-wrap {
    background: #fafbfc;
}

.iep-contact__info-card {
    background: #fff;
    transition: box-shadow 0.2s;
}

.iep-contact__info-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.iep-contact__social {
    color: var(--iep-primary);
    transition: color 0.2s, transform 0.2s;
    display: inline-flex;
}

.iep-contact__social:hover {
    color: var(--iep-primary-dark);
    transform: translateY(-2px);
}

/* ---------- Contact Form 7 Overrides ---------- */
.wpcf7 form {
    font-family: 'Work Sans', system-ui, sans-serif;
}

.wpcf7 .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-family: 'Work Sans', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    color: #2c3e50;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 1rem;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: var(--iep-primary);
    box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.15);
}

.wpcf7 textarea {
    resize: vertical;
    min-height: 140px;
}

.wpcf7 input[type="submit"] {
    display: inline-block;
    padding: 0.65rem 2rem;
    font-family: 'Work Sans', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--iep-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
    letter-spacing: 0.02em;
}

.wpcf7 input[type="submit"]:hover {
    background-color: var(--iep-primary-dark);
    transform: translateY(-1px);
}

.wpcf7 input[type="submit"]:active {
    transform: translateY(0);
}

.wpcf7 .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: -0.75rem;
    margin-bottom: 0.75rem;
    display: block;
}

.wpcf7 .wpcf7-response-output {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 1rem;
    border: none !important;
}

.wpcf7 .wpcf7-mail-sent-ok {
    background-color: #d1e7dd;
    color: #0a3622;
}

.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-spam-blocked,
.wpcf7 .wpcf7-validation-errors {
    background-color: #f8d7da;
    color: #58151c;
}

.wpcf7 .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
    accent-color: var(--iep-primary);
}

/* CF7 loading spinner */
.wpcf7 .ajax-loader {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(41, 171, 226, 0.3);
    border-top-color: var(--iep-primary);
    border-radius: 50%;
    animation: iep-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-left: 0.5rem;
    visibility: hidden;
}

.wpcf7 .ajax-loader.is-active {
    visibility: visible;
}

@keyframes iep-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Print ---------- */
@media print {
    .iep-topbar,
    .iep-header,
    .iep-ad,
    .iep-footer,
    .iep-single__share,
    .col-lg-4 aside {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}
