/*
Theme Name: AIWithShehara
Theme URI: https://aiwithshehara.com
Author: Vijay Tomar
Description: Custom theme for AIWithShehara experiment platform
Version: 1.1
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #0f172a;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Global boxed layout for theme + Elementor */
body .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1200px;
}

body .entry-content,
body .site-main,
body .site-content {
    width: 100%;
}

.site-header {
    padding: 18px 0;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: #CCFF00;
    backdrop-filter: blur(8px);
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0f172a;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #0a3ab8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.logo-name {
    font-family: Inter;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: -0.45px;
    color: #002FA7;
    /* font-size: 34px; */
    /* font-weight: 600; */
    /* letter-spacing: -0.3px; */
}

.site-nav .menu,
.site-nav .menu > div > ul {
    display: flex;
    list-style: none;
    gap: 42px;
    align-items: center;
}

.menu-item{
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.31px;
    color: #002FA7;
}
.site-nav .menu li a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;

    color: #002FA7;
    text-decoration: none;
    font-weight: 500;

     transition: 
        background 1s cubic-bezier(0.25, 1, 0.5, 1),
        padding 0.6s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;

    text-decoration: none;
    font-size: 19px;
}
.menu li a:hover {
    background: #002FA7;
    color: #ffffff;

    box-shadow: 0 6px 14px rgba(0, 47, 167, 0.25);
    transform: translateY(-1px);
}

/* .site-nav .menu li a:hover {
    color: #0f172a;
} */

.hero {
    text-align: center;
    padding: 100px 20px 100px;
    margin-bottom: 22px;
}

.hero.hero-gradient {
    background: linear-gradient(120deg, rgba(0, 47, 167, 0.18) 0%, rgba(255, 255, 255, 0.6) 45%, rgba(204, 255, 0, 0.32) 100%);
    border-bottom: none;
    padding: 80px 20px 80px;
}

.hero.hero-articles {
    padding: 110px 20px 90px;
}

.title-articles {
    font-size: clamp(44px, 5.4vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.8px;
    color: #002FA7;
    max-width: 960px;
    margin: 0 auto 22px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f2f6ff;
    border: 1px solid #dbe4ff;
    color: #1d4ed8;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 34px;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(29, 78, 216, 0.08);
}

.hero-badge .badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dbe4ff;
}

.hero-badge .badge-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.hero h1 {
    font-family: Inter;
    font-size: clamp(42px, 6.2vw, 76px);
    /* font-weight: 800; */
    line-height: 1.05;
    letter-spacing: -2.2px;
    color: #002FA7;
    /* max-width: 900px; */
    margin: 0 auto 24px;
}

.title-home{
    font-size: clamp(42px, 6.2vw, 76px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2.2px;
    color: #061638;
    max-width: 750px;
    margin: 0 auto 24px;
}
.title-experiments{
    font-size: clamp(40px, 4.2vw, 60px);
    font-weight: 700;
    line-height: 75px;
    letter-spacing: 0.2637px;
    color: #002FA7;
    max-width: 896px;
    margin: 0 auto 16px;
}
.hero-description {
    max-width: 620px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.65;
    color: #4b6581;
}
.hero.hero-gradient .hero-description {
    max-width: 669px;
    font-size: 20px;
    line-height: 32.5px;
    letter-spacing: -0.4492px;
    color: #4A5565;
}

.hero.hero-gradient .hero-badge {
    height: 48px;
    padding: 0 20px;
    background: rgba(0, 47, 167, 0.05);
    border: 2px solid rgba(0, 47, 167, 0.1);
    color: #002FA7;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    box-shadow: none;
    margin-bottom: 24px;
}

.hero.hero-gradient .hero-badge .badge-icon {
    width: 18px;
    height: 18px;
    border-radius: 0;
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero.hero-gradient .hero-badge .badge-icon svg {
    width: 18px;
    height: 18px;
}


.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #002FA7;
    color: #FFFFFF;
    padding: 16px 36px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 38px;
    transition: transform 0.8s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.7s ease;
}

/* Hover effect */
.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    color: #002FA7;
    background: #CCFF00;
}

.button-icon {
    display: inline-flex;
    align-items: center;
}

.button-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(198, 255, 0, 0.45);
}

.help-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: #1e293b;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 200;
    transition: background 0.2s;
}

.help-button:hover {
    background: #0f172a;
}

.experiments-section {
    padding: 72px 0 100px;
    /* background: #f8fafc; */
}

.experiments-featured {
    padding: 8px 0 24px;
    /* background: #f8fafc; */
}

.experiments-grid-featured {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
}

.section-header-start {
    margin-bottom: 32px;
}

.section-header-start h2 {
    font-size: clamp(44px, 3.5vw, 56px);
    line-height: 1.08;
    margin-bottom: 14px;
}

.section-header-start p {
    font-size: clamp(16px, 1.45vw, 22px);
    line-height: 1.35;
}

.section-header {
    text-align: center;
    margin-bottom: 44px;
}

.section-header h2 {
    font-size: clamp(42px, 3.8vw, 56px);
    font-weight: 800;
    letter-spacing: -1.4px;
    color: #002FA7;
    margin-bottom: 12px;
    line-height: 1.08;
}
.section-header h3 {
    font-family: Inter;
    font-weight: 700;
    font-style: Bold;
    font-size: 36px;
    line-height: 40px;
    letter-spacing: 0.37px;
    text-align: center;
}

.section-header p {
    font-size: clamp(16px, 1.45vw, 40px);
    line-height: 1.35;
    color: #3f5a78;
}

.experiments-filter-box {
    border: 2px solid #f3f4f6;
    border-radius: 24px;
    padding: 34px 34px 30px;
    background: #ffffff;
    box-shadow: inset 0 0 12px rgba(0, 47, 167, 0.11);
    margin-bottom: 58px;
    overflow: visible;
}

.experiments-filter-field {
    position: relative;
}

.experiments-filter-header {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    gap: 14px;
}

.experiments-filter-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(0, 47, 167, 0.05);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #002FA7;
}

.experiments-filter-icon svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.experiments-filter-header h3 {
    /* font-size: clamp(28px, 2.8vw, 40px);
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #061638;
    margin-right: auto; */
    font-family: Inter;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: -0.4492px;
    color: #101828;

}

.experiments-reset {
    font-size: 14px;
    text-decoration: none;
    color: #0a3ab8;
    font-weight: 600;
}

.experiments-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.experiments-filter-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #364153;
}

/* --- Custom Select --- */
.custom-select-native {
    display: none;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1.5px solid #002FA7;
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #002FA7;
    gap: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.custom-select-trigger:hover {
    background: #f0f4ff;
}

.custom-select.is-open .custom-select-trigger {
    border-color: #002FA7;
    box-shadow: 0 0 0 3px rgba(0, 47, 167, 0.1);
    background: #ffffff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.custom-select-chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    color: #002FA7;
}

.custom-select.is-open .custom-select-chevron {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% - 1.5px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid #002FA7;
    border-top: none;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 47, 167, 0.12), 0 4px 10px rgba(0, 0, 0, 0.06);
    z-index: 200;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-select.is-open .custom-select-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.custom-select-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #002FA7;
    cursor: pointer;
    background: none;
    border: none;
    border-radius: 0;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.custom-select-option:last-child {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

.custom-select-option:hover,
.custom-select-option.is-focused {
    background: #f0f4ff;
}

.custom-select-option.is-selected {
    font-weight: 700;
}

.custom-select-check {
    display: flex;
    align-items: center;
    width: 18px;
    flex-shrink: 0;
    color: #002FA7;
    opacity: 0;
}

.custom-select-option.is-selected .custom-select-check {
    opacity: 1;
}

.experiments-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.articles-section {
    padding: 30px 0 20px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.tools-section .section-header {
    margin-bottom: 26px;
}

/* ============================================================
   TOOLS PAGE
   ============================================================ */

/* --- Section headers --- */
.tools-featured-section {
    padding: 56px 0 0;
}

.tools-all-section {
    padding: 40px 0 80px;
}

.tools-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.tools-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #CCFF00;
    border-radius: 8px;
    flex-shrink: 0;
}

.tools-section-icon svg {
    width: 16px;
    height: 16px;
    fill: #002FA7;
}

.tools-section-title {
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 800;
    color: #002FA7;
    letter-spacing: -0.4px;
    margin: 0;
}

/* --- Grids --- */
.tools-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 16px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

/* --- Tool Card --- */
.tool-card {
    border: 1px solid #002FA7;
    border-radius: 20px;
    background: #ffffff;
    padding: 20px 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.6s ease, transform 0.35s ease;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow:
        inset 0 4px 14px 9px rgba(0, 47, 167, 0.00),
        0 20px 40px rgba(15, 23, 42, 0.12),
        0 10px 30px rgba(204, 255, 0, 0.18),
        0 0 50px rgba(204, 255, 0, 0.14);
}

.tool-card-featured {
    padding: 24px 28px 22px;
    border-radius: 24px;
}

/* Header row */
.tool-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.tool-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-card-featured .tool-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
}

.tool-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tool-card-icon-fallback {
    font-size: 22px;
    font-weight: 800;
    color: #002FA7;
    text-transform: uppercase;
}

.tool-card-meta {
    flex: 1;
    min-width: 0;
}

.tool-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #061638;
    margin: 0 0 6px;
    line-height: 1.2;
}

.tool-card-featured .tool-card-name {
    font-size: 18px;
}

.tool-card-name a {
    color: inherit;
    text-decoration: none;
}

.tool-card-name a:hover {
    color: #002FA7;
}

.tool-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tool-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 4px 10px;
    border-radius: 999px;
}

.tool-badge-category {
    background: #eef2ff;
    color: #1d4ed8;
}

.tool-badge-pricing {
    background: #f8fafc;
    color: #4a5568;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

/* Description */
.tool-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #3f566f;
    margin: 0;
    flex: 1;
}

.tool-card-featured .tool-card-desc {
    font-size: 15px;
}

/* Footer */
.tool-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    margin-top: auto;
}

.tool-card-experiments {
    font-size: 13px;
    color: #6b7280;
}

.tool-card-experiments strong {
    color: #002FA7;
    font-weight: 700;
}

.tool-card-visit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #002FA7;
    text-decoration: none;
    background: transparent;
    border-radius: 999px;
    padding: 7px 14px 7px 10px;
    transform: translateY(0) scale(1);
    transition: all 0.3s ease;
}

.tool-card-visit svg {
    display: inline-flex;
    align-items: center;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-card-visit {
    background: #CF0;
    color: #002FA7;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 14px rgba(0, 47, 167, 0.15);
}

.tool-card:hover .tool-card-visit svg {
    transform: translateX(4px);
}

/* .article-card {
    border: 1px solid #002FA7;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 4px 14px 9px rgba(0, 47, 167, 0.12);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow:
        inset 0 4px 14px 9px rgba(0, 47, 167, 0.12),
        0 20px 40px rgba(15, 23, 42, 0.12),
        0 0 40px rgba(200, 255, 0, 0.25);
} */
.article-card {
    border: 1px solid #002FA7;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;

    box-shadow:
        inset 0 4px 14px 9px rgba(0, 47, 167, 0.12),   /* visible */
        0 6px 16px rgba(15, 23, 42, 0.00),            /* hidden */
        0 0 40px rgba(200, 255, 0, 0.00);             /* hidden glow */

    transition: box-shadow 0.6s ease, transform 0.35s ease;
}

.article-card:hover {
    transform: translateY(-6px);

    box-shadow:
        inset 0 4px 14px 9px rgba(0, 47, 167, 0.00),
        0 20px 40px rgba(15, 23, 42, 0.12),
        0 10px 30px rgba(204, 255, 0, 0.18),
        0 0 50px rgba(204, 255, 0, 0.14);
}

.article-card:hover .article-pill {
    transform: translateY(-2px) scale(1.05) rotate(6deg);
}

.article-card .card-image {
    height: 200px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.article-pill {
    display: inline-flex;
    align-items: center;
    background: #eef2ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    transform: translateY(0) scale(1) rotate(0deg);
    transition: transform 0.4s ease-in-out;
}

.article-readtime {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-readtime .clock-icon {
    flex-shrink: 0;
    color: #94a3b8;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 14px; /* spacing from content */
    border-top: 1px solid rgba(0, 47, 167, 0.15); /* subtle divider */
}

.article-author {
    font-size: 12px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-author .person-icon {
    flex-shrink: 0;
    color: #94a3b8;
}

.article-author::before {
    content: none;
    width: 0;
    height: 0;
    border-radius: 0;
    background: transparent;
    display: inline-block;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #002FA7;
    text-decoration: none;
    background: transparent;
    border-radius: 999px;
    padding: 7px 14px 7px 10px;
    transform: translateY(0) scale(1);
    transition: all 0.3s ease;
}

.article-link .button-icon {
    display: inline-flex;
    align-items: center;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.article-card:hover .article-link {
    background: #CF0;
    color: #002FA7;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 14px rgba(0, 47, 167, 0.15);
}

.article-card:hover .article-link .button-icon {
    transform: translateX(4px);
}

.articles-cta {
    padding: 36px 0 80px;
}

.articles-cta-card {
    background: #CCFF00;
    border-radius: 40px;
    padding: 48px 40px;
    color: #002FA7;
    text-align: center;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.articles-cta-card h3 {
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.2px;
    color: #002FA7;
    margin-bottom: 14px;
}

.articles-cta-card p {
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.65;
    letter-spacing: -0.2px;
    color: #101828;
    max-width: 520px;
    margin: 0 auto 28px;
}

.articles-cta-button {
    background: #002FA7;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.articles-cta-button:hover {
    background: #CCFF00;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 47, 167, 0.25);
}

.featured-experiment-card {
    border: 1px solid #002FA7;
    border-radius: 45px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 519px;
    height: 590px;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.featured-experiment-card:hover {
    box-shadow:
        0 20px 40px rgba(15, 23, 42, 0.12),
        0 0 40px rgba(200, 255, 0, 0.25);
    border-color: #CCFF00;
    transform: translateY(-8px);
}
.experiment-card {
    border: 1px solid #002FA7 !important;
    border-radius: 35px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease !important;
}

.experiment-card:hover {
    box-shadow:
        0 20px 40px rgba(15, 23, 42, 0.12),
        0 0 40px rgba(200, 255, 0, 0.25) !important;
    border-color: #CCFF00 !important;
    transform: translateY(-8px) !important;
}

.featured-experiment-card-image-wrap {
    position: relative;
    height: 283px;
    width: 519px;
}
.card-image-wrap {
    position: relative;
}

.card-image {
    display: block;
    overflow: hidden;
    flex-shrink: 0;
}

.featured-experiment-card-image-wrap .card-image {
    height: 283px;
    width: 519px;
}

.card-image-wrap .card-image {
    /* height: 283px; */
    width: 519px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-status-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: #061638;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transform: translateY(0) scale(1) rotate(0deg);
    transition:
        transform 0.45s ease-in-out,
        box-shadow 0.45s ease-in-out;
}

.experiment-card:hover .card-status-badge,
.featured-experiment-card:hover .card-status-badge {
    transform: translateY(-3px) scale(1.05) rotate(10deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.card-status-badge.status-popular {
    background: #c6ff00;
}

.card-status-badge.status-recommended {
    background: #ffffff;
}

.card-status-badge.status-new {
    background: #0a3ab8;
    color: #ffffff;
}

.card-body {
    padding: 20px 35px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.card-tag {
    display: inline-block;
    background: #f3f6fb;
    color: #1d4ed8;
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
}

.card-title {
    font-size: clamp(20px, 1.6vw, 24px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.2px;
    margin-bottom: 10px;
}

.card-title a {
    text-decoration: none;
    color: #002FA7;
    font-weight: 700;
    font-size: 26px;
}

.card-excerpt {
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.55;
    color: #3f566f;
    margin-bottom: 16px;
    flex: 1;
}

.card-link {
    margin-top: auto;

    background: transparent;
    color: #002FA7;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    width: 100%;
    justify-content: flex-start;

    transition:
        background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-link::before {
    content: '';
    flex: 1;
}

.card-link::after {
    content: '';
    flex: 0;
    transition: flex-grow 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.experiment-card:hover .card-link,
.featured-experiment-card:hover .card-link {
    background: #ccff00;
    color: #002FA7;
    gap: 12px;
}

.experiment-card:hover .card-link::after,
.featured-experiment-card:hover .card-link::after {
    flex-grow: 1;
}

.link-text {
    display: inline-block;
}

.card-link .button-icon {
    opacity: 1;
    transform: translateX(0);
    transition:
        opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.experiment-card:hover .button-icon,
.featured-experiment-card:hover .button-icon {
    opacity: 1;
    transform: translateX(0);
}


.experiments-empty-state {
    grid-column: 1 / -1;
    border: 1px dashed #c9d3df;
    border-radius: 20px;
    padding: 34px;
    text-align: center;
    color: #3f566f;
    background: #fff;
}

.articles-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 40px;
    border: 1.5px dashed rgba(0, 47, 167, 0.25);
    border-radius: 24px;
    background: rgba(0, 47, 167, 0.02);
    text-align: center;
}

.articles-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(0, 47, 167, 0.06);
    border: 1px solid rgba(0, 47, 167, 0.12);
    margin-bottom: 8px;
}

.articles-empty-title {
    font-size: 22px;
    font-weight: 700;
    color: #002FA7;
    letter-spacing: -0.3px;
    margin: 0;
}

.articles-empty-description {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
    max-width: 380px;
    margin: 0;
}

.experiments-grid.is-loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.site-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 0 0 24px;
}

.footer-newsletter {
    padding: 26px 0 52px;
}

.footer-newsletter-card {
    max-width: 768px;
    margin: 0 auto;
    background: #c6ff00;
    border-radius: 40px;
    min-height: 342.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 38px 32px;
    text-align: center;
}

.footer-newsletter-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(0, 47, 167, 0.1);
    color: #c6ff00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-newsletter-icon .badge-sparkle {
    width: 28px;
    height: 28px;
}

.footer-newsletter-card h3 {
    color: #002FA7;
    font-weight: 700;
    font-style: Bold;
    font-size: 30px;
    line-height: 36px;
    letter-spacing: 0.4px;
    text-align: center;
}

.footer-newsletter-card p {
    color: #002FA7;
    max-width: 760px;

    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    line-height: 29.25px;
    letter-spacing: -0.44px;
    text-align: center;

}

.footer-newsletter-form {
    width: 100%;
    max-width: 600px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0;
}

.footer-newsletter-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid #002FA7;
    outline: 0;
    background: rgb(198, 255, 0);
    color: #002FA7;
    font-size: 18px;
    font-weight: 500;
    border-radius: 999px;
    padding: 16px 20px;
}

.footer-newsletter-form input::placeholder {
    color: #002FA7;
    opacity: 1;
}

.footer-newsletter-form button {
    border: 0;
    background: #002FA7;
    color: #FFFFFF;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 36px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-newsletter-form button:hover {
    background: #CCFF00;
    color: #002FA7;
    border: 1px solid #002FA7;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(204, 255, 0, 0.35);
}

/* ── Newsletter inline wrap ── */
.nl-card-wrap {
    margin-top: 16px;
}

/* ── Toast container (fixed, positioned by modifier class) ── */
.nl-toast-container {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    width: calc(100% - 32px);
    pointer-events: none;
}

.nl-toast--top-right    { top: 24px;    right: 24px; }
.nl-toast--top-left     { top: 24px;    left: 24px;  }
.nl-toast--bottom-right { bottom: 24px; right: 24px; }
.nl-toast--bottom-left  { bottom: 24px; left: 24px;  }

/* Toast cards are invisible until .nl-card--visible is added */
.nl-toast-container .nl-card {
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nl-toast--bottom-right .nl-card,
.nl-toast--bottom-left  .nl-card {
    transform: translateY(10px);
}

.nl-toast-container .nl-card.nl-card--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Card base ── */
.nl-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 16px 16px 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    text-align: left;
}

.nl-card__icon {
    flex-shrink: 0;
    margin-top: 2px;
    line-height: 0;
}

.nl-card__body {
    flex: 1;
    min-width: 0;
}

.nl-card__title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.nl-card__desc {
    font-size: 14px;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

.nl-card__link {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #002FA7;
    text-decoration: none;
}

.nl-card__link:hover {
    text-decoration: underline;
}

.nl-card__close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    margin-left: 4px;
    transition: color 0.15s ease;
}

.nl-card__close:hover {
    color: #0f172a;
}

.footer-main {
    padding: 58px 0 42px;
    border-top: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
}

.footer-column h4 {
    font-size: 20px;
    margin-bottom: 22px;
    color: #002FA7;
}

.footer-brand-col .footer-logo-wrap {
    margin-bottom: 22px;
}

.footer-about {
    font-size: 16px;
    line-height: 1.6;
    color: #3f566f;
    max-width: 340px;
}

.footer-menu {
    list-style: none;
}

.footer-menu li + li {
    margin-top: 16px;
}

.footer-menu li a {
    color: #3f566f;
    text-decoration: none;
    font-size: 16px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #dbe2ea;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #002FA7;
    background: rgb(198, 255, 0);
}

.footer-socials a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 22px;
    text-align: center;
}

.footer-bottom p {
    color: #4b6581;
    font-size: 17px;
}

/* Single Post/CPT Detail */
.single-entry-page {
    background: #f8fafc;
    padding: 54px 0 86px;
}

.single-entry {
    max-width: 900px;
    margin: 0 auto;
}

.single-entry-header {
    text-align: center;
    margin-bottom: 26px;
}

.single-entry-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.single-entry-date {
    font-size: 14px;
    color: #4b6581;
    padding: 7px 12px;
    border: 1px solid #dce5ef;
    border-radius: 999px;
    background: #ffffff;
}

.single-entry-pill {
    font-size: 14px;
    color: #0a3ab8;
    padding: 7px 12px;
    border-radius: 999px;
    background: #edf2fb;
}

.single-entry-title {
    font-size: clamp(34px, 4vw, 60px);
    line-height: 1.08;
    letter-spacing: -1px;
    color: #061638;
}

.single-entry-excerpt {
    margin: 14px auto 0;
    max-width: 760px;
    font-size: 20px;
    line-height: 1.5;
    color: #3f566f;
}

.single-entry-cover {
    margin: 24px 0 30px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #dbe5ef;
}

.single-entry-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.single-entry-content {
    background: #ffffff;
    border: 1px solid #dbe5ef;
    border-radius: 20px;
    padding: 30px 34px;
    color: #1f3a57;
    font-size: 18px;
    line-height: 1.75;
}

.single-entry-content > * + * {
    margin-top: 1em;
}

.single-entry-content h2,
.single-entry-content h3,
.single-entry-content h4 {
    color: #061638;
    line-height: 1.25;
}

.single-entry-content a {
    color: #0a3ab8;
}

.single-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Single Page Figma Layout */
.single-entry-page {
    padding-top: 38px;
}

.single-entry {
    max-width: none;
}

.single-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3e5b7c;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 30px;
}

.single-hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 44px;
    align-items: center;
    margin-bottom: 56px;
}

.single-hero-copy .single-entry-title {
    margin-bottom: 18px;
}

.single-hero-copy .single-entry-excerpt {
    margin: 0;
    max-width: 780px;
    font-size: 24px;
    line-height: 1.42;
}

.single-hero-grid .single-entry-cover {
    margin: 0;
    border-radius: 26px;
}

.single-entry-content-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.single-entry-content {
    border-radius: 24px;
}

.single-recommended-section {
    max-width: 980px;
    margin: 54px auto 0;
    background: #eef2f8;
    border-radius: 30px;
    border: 1px solid #dbe4ee;
    padding: 30px;
}

.single-recommended-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.single-recommended-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e0e8f0;
    color: #0a3ab8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.single-recommended-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.single-recommended-head h2 {
    font-size: 52px;
    letter-spacing: -0.7px;
    color: #061638;
}

.single-recommended-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.single-recommended-card {
    border: 1px solid #d8e2ec;
    border-radius: 22px;
    overflow: hidden;
    background: #f8fafc;
}

.single-recommended-thumb {
    display: block;
    height: 230px;
}

.single-recommended-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-recommended-body {
    padding: 16px 18px 20px;
}

.single-recommended-tag {
    display: inline-block;
    background: #edf1f7;
    color: #0a3ab8;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.single-recommended-body h3 {
    font-size: 41px;
    line-height: 1.25;
}

.single-recommended-body h3 a {
    color: #061638;
    text-decoration: none;
}

/* ============================================================
   HAMBURGER NAV (shared across all breakpoints)
   ============================================================ */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    z-index: 60;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #002FA7;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ============================================================
   BREAKPOINT: ≤ 1024px  (Tablet landscape / small laptop)
   ============================================================ */
@media (max-width: 1024px) {
    .container {
        /* width: 100%;
        max-width: 1440px; */
        padding: 0 50px;
    }

    body .elementor-section.elementor-section-boxed > .elementor-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .logo-name {
        font-size: 18px;
    }

    .site-nav .menu,
    .site-nav .menu > div > ul {
        gap: 20px;
    }

    .site-nav .menu li a {
        font-size: 15px;
        padding: 6px 12px;
    }


    /* Grids → 2 columns */
    .experiments-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .experiments-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .experiments-grid-featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .featured-experiment-card {
        border-radius: 32px;
        width: 100%;
        height: auto;
    }

    .featured-experiment-card-image-wrap,
    .featured-experiment-card-image-wrap .card-image {
        width: 100%;
        height: 240px;
    }

    .articles-cta-card {
        padding: 36px 28px;
        border-radius: 32px;
    }

    /* Footer */
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    /* Single page */
    .single-hero-grid {
        grid-template-columns: 1fr;
        gap: 26px;
        margin-bottom: 40px;
    }

    .single-hero-copy .single-entry-excerpt {
        font-size: 20px;
    }

    .single-entry-content {
        padding: 24px;
    }

    .single-recommended-head h2 {
        font-size: 32px;
    }

    .single-recommended-body h3 {
        font-size: 22px;
    }

    /* Tools */
    .tools-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Detail page */
    .detail-inner {
        max-width: 100%;
    }
}

/* ============================================================
   BREAKPOINT: ≤ 768px  (Tablet portrait / large phone)
   ============================================================ */
@media (max-width: 768px) {

    /* --- Nav: show hamburger, hide inline nav --- */
    .nav-toggle {
        display: flex;
    }

    .site-header {
        position: sticky;
        top: 0;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #CCFF00;
        border-bottom: 2px solid rgba(0, 47, 167, 0.15);
        box-shadow: 0 8px 24px rgba(0, 47, 167, 0.12);
        z-index: 50;
        padding: 12px 20px 20px;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav .menu,
    .site-nav .menu > div > ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        width: 100%;
    }

    .site-nav .menu li,
    .site-nav .menu > div > ul li {
        width: 100%;
    }

    .site-nav .menu li a {
        display: block;
        width: 100%;
        font-size: 16px;
        padding: 11px 14px;
        border-radius: 12px;
    }


    /* --- Layout --- */
    .hero {
        padding: 60px 20px 60px;
    }

    .hero.hero-articles {
        padding: 70px 20px 60px;
    }

    .hero-button {
        width: 100%;
        justify-content: center;
    }

    .hero-badge {
        font-size: 13px;
    }

    .hero-description {
        font-size: 16px;
    }

    /* Grids → 2 columns on tablet */
    .experiments-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .experiments-grid-featured {
        grid-template-columns: 1fr;
    }

    .featured-experiment-card {
        border-radius: 28px;
        width: 100%;
        height: auto;
    }

    .featured-experiment-card-image-wrap,
    .featured-experiment-card-image-wrap .card-image {
        width: 100%;
        height: 220px;
    }

    .section-header-start h2 {
        font-size: clamp(32px, 5vw, 44px);
    }

    /* Tools */
    .tools-featured-grid,
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Filter */
    .experiments-filter-box {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .experiments-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    /* Card */
    .card-body {
        padding: 16px 22px 22px;
    }

    /* CTA */
    .articles-cta-card {
        padding: 32px 24px;
        border-radius: 28px;
    }

    /* Footer */
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .footer-newsletter-card {
        padding: 28px 22px;
    }

    /* Single / Detail page */
    .single-hero-grid {
        grid-template-columns: 1fr;
    }

    .detail-hero { height: 300px; }
    .detail-inner { margin-top: -50px; }

    .detail-header-card,
    .detail-content,
    .detail-cta {
        padding: 24px 22px;
    }

    .detail-title {
        font-size: clamp(22px, 5vw, 34px);
        letter-spacing: -0.4px;
    }

    .detail-meta-sep { margin: 0 10px; }
}

/* ============================================================
   BREAKPOINT: ≤ 640px  (Phone)
   ============================================================ */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    body .elementor-section.elementor-section-boxed > .elementor-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Header */
    .logo-name {
        font-size: 17px;
    }

    /* Hero */
    .hero {
        padding: 50px 16px 54px;
    }

    .hero h1 {
        letter-spacing: -1.2px;
    }

    .hero-button {
        width: 100%;
        justify-content: center;
    }

    .title-articles {
        font-size: clamp(28px, 8vw, 44px);
    }

    .hero.hero-articles {
        padding: 60px 16px 50px;
    }

    .hero.hero-gradient .hero-description {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Experiments */
    .experiments-section {
        padding: 40px 0 60px;
    }

    .experiments-filter-box {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .experiments-filter-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .experiments-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .experiments-grid-featured {
        grid-template-columns: 1fr;
    }

    .featured-experiment-card {
        border-radius: 20px;
        width: 100%;
        height: auto;
    }

    .featured-experiment-card-image-wrap,
    .featured-experiment-card-image-wrap .card-image {
        width: 100%;
        height: 200px;
    }

    .section-header-start h2 {
        font-size: clamp(28px, 7vw, 36px);
    }

    /* Tools */
    .tools-featured-grid,
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tools-featured-section,
    .tools-all-section {
        padding-top: 32px;
    }

    /* Articles */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .articles-section {
        padding: 20px 0 16px;
    }

    .articles-cta {
        padding: 20px 0 56px;
    }

    .articles-cta-card {
        padding: 28px 20px;
        border-radius: 24px;
    }

    .articles-cta-button {
        width: 100%;
        justify-content: center;
    }

    /* Card */
    .card-image {
        height: 180px;
    }

    .card-body {
        padding: 14px 18px 20px;
    }

    /* Footer */
    .footer-newsletter {
        padding: 16px 0 32px;
    }

    .footer-newsletter-card {
        border-radius: 24px;
        padding: 24px 18px;
        min-height: auto;
    }

    .footer-newsletter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .footer-newsletter-form input {
        font-size: 15px;
    }

    .footer-newsletter-form button {
        width: 100%;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding: 32px 0 24px;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .footer-bottom p {
        font-size: 14px;
    }

    /* Single page */
    .single-entry-page {
        padding: 24px 0 48px;
    }

    .single-entry-title {
        font-size: clamp(26px, 8vw, 38px);
    }

    .single-entry-excerpt {
        font-size: 15px;
    }

    .single-entry-content {
        padding: 18px 16px;
        font-size: 16px;
        line-height: 1.65;
    }

    .single-back-link {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .single-hero-copy .single-entry-excerpt {
        font-size: 16px;
    }

    .single-recommended-section {
        padding: 18px 16px;
        border-radius: 20px;
    }

    .single-recommended-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .single-recommended-head h2 {
        font-size: 26px;
    }

    .single-recommended-thumb {
        height: 180px;
    }

    .single-recommended-body h3 {
        font-size: 20px;
    }

    /* Detail page */
    .detail-hero { height: 240px; }

    .detail-inner {
        margin-top: -40px;
    }

    .detail-wrap {
        padding: 0 16px 60px;
    }

    .detail-header-card,
    .detail-content,
    .detail-cta {
        padding: 20px 18px;
        border-radius: 18px;
    }

    .detail-cta-button {
        width: 100%;
        justify-content: center;
    }

    .detail-meta-sep { display: none; }
    .detail-meta { gap: 10px; }
}

/* ============================================================
   BREAKPOINT: ≤ 480px  (Small phone — iPhone SE, Galaxy A)
   ============================================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .site-header {
        padding: 14px 0;
    }

    .logo-name {
        font-size: 15px;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
    }

    .hero {
        padding: 40px 14px 46px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 14px;
        height: auto;
    }

    /* Grids stay 1-col */
    .articles-grid,
    .experiments-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .experiments-grid-featured {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .featured-experiment-card {
        border-radius: 18px;
        width: 100%;
        height: auto;
    }

    .featured-experiment-card-image-wrap,
    .featured-experiment-card-image-wrap .card-image {
        width: 100%;
        height: 180px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-brand-col {
        grid-column: auto;
    }

    .articles-cta-card {
        padding: 22px 16px;
        border-radius: 20px;
    }

    .articles-cta-card h3 {
        font-size: 20px;
    }

    .detail-hero { height: 200px; }

    .detail-inner {
        margin-top: -32px;
    }

    .detail-header-card,
    .detail-content,
    .detail-cta {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .detail-title {
        font-size: clamp(20px, 6vw, 28px);
    }
}

/* ============================================================
   DETAIL PAGE THEME SYSTEM
   ============================================================ */

.detail-page {
    background: #f8fafc;
    min-height: 100vh;
}

/* --- Hero --- */
.detail-hero {
    position: relative;
    height: 420px;
    overflow: hidden;
    background: #061638;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
}

.detail-hero-bg--fallback {
    background: linear-gradient(135deg, #002FA7 0%, #061638 100%);
}

.detail-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(6, 22, 56, 0.45) 0%,
        rgba(0, 47, 167, 0.35) 40%,
        rgba(6, 22, 56, 0.78) 100%
    );
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 56px;
}

.detail-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1px;
    transition: color 0.25s ease, gap 0.25s ease;
}

.detail-back-link:hover {
    color: #CCFF00;
    gap: 10px;
}

/* --- Wrap & Inner --- */
.detail-wrap {
    padding: 0 20px 80px;
}

.detail-inner {
    max-width: 1000px;
    margin: -80px auto 0;
    position: relative;
    z-index: 3;
}

/* --- Header Card --- */
.detail-header-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #002FA7;
    box-shadow:
        inset 0 4px 14px 9px rgba(0, 47, 167, 0.08),
        0 8px 24px rgba(0, 47, 167, 0.1);
    padding: 36px 40px;
    margin-bottom: 24px;
}

.detail-category-pill {
    margin-bottom: 16px;
}

.detail-title {
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.8px;
    color: #002FA7;
    margin-bottom: 14px;
}

.detail-excerpt {
    font-size: 17px;
    line-height: 1.65;
    color: #4b6581;
    margin-bottom: 24px;
}

.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 0;
    padding-top: 20px;
    border-top: 1px solid #e8eef8;
}

.detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.detail-meta-item svg {
    color: #94a3b8;
    flex-shrink: 0;
}

.detail-meta-sep {
    width: 1px;
    height: 14px;
    background: #d1dbe8;
    margin: 0 14px;
    display: inline-block;
}

/* --- Content --- */
.detail-content {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #dbe5ef;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    padding: 36px 40px;
    color: #1f3a57;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.detail-content > * + * {
    margin-top: 1em;
}

.detail-content h2,
.detail-content h3,
.detail-content h4 {
    color: #002FA7;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 1.6em;
    margin-bottom: 0.4em;
}

.detail-content h2 { font-size: clamp(20px, 2vw, 26px); }
.detail-content h3 { font-size: clamp(17px, 1.6vw, 22px); }

.detail-content a {
    /* color: #002FA7; */
    text-decoration: underline;
    text-underline-offset: 3px;
}

.detail-content ul,
.detail-content ol {
    padding-left: 22px;
}

.detail-content li + li {
    margin-top: 6px;
}

.detail-content img {
    max-width: 100%;
    border-radius: 12px;
    height: auto;
    display: block;
}

.detail-content blockquote {
    border-left: 3px solid #002FA7;
    padding: 12px 20px;
    margin: 0;
    color: #4b6581;
    font-style: italic;
    background: rgba(0, 47, 167, 0.03);
    border-radius: 0 8px 8px 0;
}

/* --- Highlight Box --- */
.detail-highlight {
    border-radius: 16px;
    padding: 24px 28px;
    border: 1px solid #dbe5ef;
    background: #f8fafc;
    margin: 1.4em 0;
}

.detail-highlight--takeaway {
    background: rgba(0, 47, 167, 0.04);
    border-color: rgba(0, 47, 167, 0.18);
}

.detail-highlight--learn {
    background: rgba(204, 255, 0, 0.08);
    border-color: rgba(0, 47, 167, 0.15);
}

.detail-highlight-title {
    font-size: 15px;
    font-weight: 700;
    color: #002FA7;
    margin-bottom: 12px;
    margin-top: 0;
}

.detail-highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-highlight-list li {
    padding-left: 20px;
    position: relative;
    font-size: 15px;
    color: #1f3a57;
    line-height: 1.6;
}

.detail-highlight-list li + li {
    margin-top: 8px;
}

.detail-highlight-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #CCFF00;
    border: 1px solid rgba(0, 47, 167, 0.2);
}

/* --- CTA --- */
.detail-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    margin-bottom: 20px;
}

.detail-cta-icon .badge-sparkle {
    width: 28px;
    height: 28px;
}

.detail-cta-icon .badge-sparkle path {
    stroke: #ffffff;
}

.detail-cta {
    background: #002FA7;
    border-radius: 24px;
    padding: 44px 40px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 47, 167, 0.25);
}

.detail-cta-title {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 700;
    letter-spacing: -0.4px;
    margin: 0 0 12px;
    color: #ffffff;
}

.detail-cta-desc {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    max-width: 480px;
    margin: 0 auto 28px;
}

.detail-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #CCFF00;
    color: #002FA7;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.detail-cta-button:hover {
    background: #d6ff33;
    box-shadow: 0 6px 20px rgba(204, 255, 0, 0.35);
    transform: translateY(-2px);
}

/* Detail page responsive is handled in the main breakpoint blocks above */

/* ============================================================
   HEADER SEARCH
   ============================================================ */

.header-search {
    position: relative;
    flex: 0 1 320px;
    margin: 0 20px;
}

.header-search .search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.header-search .search-field {
    width: 100%;
    padding: 10px 42px 10px 16px;
    border: 2px solid rgba(0, 47, 167, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.header-search .search-field::placeholder {
    color: #64748b;
}

.header-search .search-field:focus {
    border-color: #002FA7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 47, 167, 0.12);
}

/* Submit button — pill style matching card-link */
.header-search .search-submit {
    display: none;
    /* position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    height: 34px;
    border: none;
    border-radius: 999px;
    background: #002FA7;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0;
    font-weight: 600;
    padding: 0 12px;
    overflow: hidden;
    width: 34px;
    transition:
        background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease,
        transform 0.3s ease; */
}

.header-search .search-submit::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21'/%3E%3C/svg%3E") no-repeat center / contain;
}

.header-search .search-submit:hover {
    width: 90px;
    font-size: 13px;
    padding: 0 16px;
    background: #ccff00;
    color: #002FA7;
    box-shadow: 0 6px 16px rgba(0, 47, 167, 0.2);
    transform: translateY(-50%) translateY(-1px);
}

.header-search .search-submit:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23002FA7' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21'/%3E%3C/svg%3E");
}

/* ============================================================
   SEARCHWP LIVE SEARCH DROPDOWN
   ============================================================ */

/* Container */
.searchwp-live-search-results {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    box-shadow:
        0 20px 40px rgba(15, 23, 42, 0.10),
        0 0 40px rgba(200, 255, 0, 0.12) !important;
    padding: 10px !important;
    max-height: 420px !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
    margin-top: 8px !important;
}

/* Scrollbar */
.searchwp-live-search-results::-webkit-scrollbar {
    width: 6px;
}
.searchwp-live-search-results::-webkit-scrollbar-track {
    background: transparent;
}
.searchwp-live-search-results::-webkit-scrollbar-thumb {
    background: rgba(0, 47, 167, 0.15);
    border-radius: 3px;
}

/* Each result item */
.searchwp-live-search-result {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.searchwp-live-search-result a {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 14px 0px !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    /* color: #0f172a !important; */
    transition:
        background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease,
        transform 0.3s ease !important;
}

.searchwp-live-search-result a:hover {
    background: #f2f6ff !important;
    box-shadow: 0 4px 12px rgba(0, 47, 167, 0.08) !important;
    transform: translateY(-1px) !important;
}

/* Thumbnail in results */
.searchwp-live-search-result img {
    width: 52px !important;
    height: 52px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    border: 1px solid #e2e8f0 !important;
}

/* Text wrapper */
.searchwp-live-search-result .searchwp-live-search-result--title,
.searchwp-live-search-result .search-result-title,
.searchwp-live-search-result strong,
.searchwp-live-search-result a > span:first-of-type {
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #002FA7 !important;
    line-height: 1.3 !important;
    display: block !important;
    margin-bottom: 4px !important;
}

/* Description / excerpt */
.searchwp-live-search-result .searchwp-live-search-result--excerpt,
.searchwp-live-search-result .search-result-excerpt,
.searchwp-live-search-result p {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Divider between items */
.searchwp-live-search-result + .searchwp-live-search-result {
    border-top: 1px solid #f1f5f9 !important;
}

/* No results message */
.searchwp-live-search-no-results {
    padding: 24px 16px !important;
    text-align: center !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: #94a3b8 !important;
}

/* Loading spinner */
.searchwp-live-search-results-loading::after {
    border-color: rgba(0, 47, 167, 0.15) !important;
    border-top-color: #002FA7 !important;
}

/* ---- Responsive: 1024px ---- */
@media (max-width: 1024px) {
    .header-search {
        flex: 0 1 240px;
        margin: 0 14px;
    }

    .header-search .search-field {
        font-size: 14px;
        padding: 9px 40px 9px 14px;
    }
}

/* ---- Responsive: 768px ---- */
@media (max-width: 768px) {
    .header-search {
        flex: 0 0 auto;
        width: calc(100% - 100px - 44px);
        margin: 0;
        order: 1;
    }

    .header-inner {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .logo-wrap {
        order: 0;
        flex-shrink: 0;
    }

    .logo-name {
        display: none;
    }

    .nav-toggle {
        order: 2;
        flex-shrink: 0;
    }

    .header-search .search-field {
        font-size: 14px;
        padding: 9px 38px 9px 14px;
    }

    .header-search .search-submit {
        width: 30px;
        height: 30px;
    }

    .header-search .search-submit:hover {
        width: 30px;
        font-size: 0;
        padding: 0 12px;
    }

    .searchwp-live-search-results {
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        border-radius: 16px !important;
    }
}

/* ---- Responsive: 480px ---- */
@media (max-width: 480px) {
    .header-search {
        width: calc(100% - 60px - 40px);
    }

    .header-search .search-field {
        font-size: 13px;
        padding: 8px 36px 8px 12px;
    }

    .header-search .search-submit {
        width: 28px;
        height: 28px;
        right: 3px;
    }

    .header-search .search-submit::before {
        width: 14px;
        height: 14px;
    }
}
.searchwp-live-search-result--img{
    display: none;
}