/* ==========================================================================
   All About Insights — Editorial Theme
   Modern editorial look. Loaded after Bootstrap so it wins on equal specificity.
   ========================================================================== */

:root {
    --ink: #12141C;          /* headings / cool near-black       */
    --text: #3B4150;         /* body copy (cool slate)           */
    --muted: #6C7280;        /* secondary text                   */
    --bg: #FFFFFF;           /* page background (clean white)     */
    --surface: #F4F6FC;      /* light section bg (cool blue tint) */
    --surface-2: #E9ECF7;    /* slightly deeper surface           */
    --border: #E2E6F1;       /* hairlines / dividers (cool)      */

    --primary: #4B5EE3;      /* brand periwinkle blue (from logo) */
    --primary-600: #3B4CC7;  /* hover / darker                    */
    --primary-050: #EDEEFC;  /* tint background                   */

    --dark: #171A2B;         /* deep navy (ties to brand blue)    */
    --dark-2: #20243A;

    --display: "Source Serif 4", Georgia, "Times New Roman", serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(20, 22, 27, .06), 0 2px 8px rgba(20, 22, 27, .05);
    --shadow-md: 0 6px 24px rgba(20, 22, 27, .10);
    --container: 1180px;
}

/* ------------------------------------------------------------------ Base */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--body);
    color: var(--text);
    background: var(--bg);
    font-size: 1.02rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--display);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.01em;
    font-optical-sizing: auto;
}

/* Professional, unified heading scale (fluid, capped) */
h1 {
    font-size: clamp(2rem, 1.32rem + 2.4vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: .65rem;
}
h2 { font-size: clamp(1.5rem, 1.18rem + 1.5vw, 2rem); line-height: 1.2; }
h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1.02rem; }
h6 { font-size: .92rem; }

p { color: var(--text); }

a { color: var(--primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--primary-600); }

img { max-width: 100%; height: auto; }

.container { max-width: var(--container); }

::selection { background: var(--primary); color: #fff; }

/* Utility: brand accents that override Bootstrap's default primary */
.text-primary { color: var(--primary) !important; }
.bg-primary { background: var(--primary) !important; }

/* Section eyebrow / kicker */
.eyebrow {
    display: inline-block;
    font-family: var(--body);
    font-weight: 800;
    font-size: .74rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: .5rem;
}

/* ------------------------------------------------------------- Navbar */
.navbar.bg-light {
    background: rgba(255, 255, 255, .88) !important;
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(20,22,27,.02);
    position: sticky;
    top: 0;
    z-index: 1030;
    padding-top: .55rem;
    padding-bottom: .55rem;
}

.navbar .navbar-nav .nav-link {
    color: var(--ink) !important;
    font-family: var(--body);
    font-weight: 700;
    font-size: .93rem;
    letter-spacing: .01em;
    padding: .4rem .2rem;
    position: relative;
}

.navbar .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width .22s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus { color: var(--primary) !important; }
.navbar .navbar-nav .nav-link:hover::after { width: 100%; }

/* CTA button in navbar + generic theme button */
.btn-theme,
.navbar .btn {
    background: var(--primary) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: .5rem 1.25rem !important;
    font-family: var(--body);
    font-weight: 700 !important;
    font-size: .9rem;
    letter-spacing: .01em;
    box-shadow: var(--shadow-sm);
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.btn-theme:hover,
.navbar .btn:hover {
    background: var(--primary-600) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: #fff !important;
}

/* --------------------------------------------------- Headings / type scale */
.h1fnt {
    font-family: var(--display);
    font-size: clamp(2rem, 1.32rem + 2.4vw, 2.6rem) !important;
    font-weight: 700 !important;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: .65rem;
}

.h2fnt {
    font-family: var(--display);
    font-size: clamp(1.25rem, 2vw, 1.6rem) !important;
    font-weight: 700 !important;
    color: var(--ink);
    margin-bottom: 1.5rem !important;
}

.fntdecoration {
    font-family: var(--body);
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 760px;
    margin: 0 auto 1.5rem;
}

/* Section title with accent underline */
.main-heading, .main-subheading { font-family: var(--display); color: var(--ink); }

.heading-text-underline {
    position: relative;
    display: inline-block;
    padding-bottom: .5rem;
    margin-bottom: 1.25rem;
}
.heading-text-underline::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 46px; height: 3px;
    background: var(--primary);
    border-radius: 3px;
}
.xl-bold { font-weight: 800 !important; }

/* --------------------------------------------------- Featured / hero card */
.hero-featured a img,
.image-aspect-ratio,
.image-ratio-19-6 {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}
.image-ratio-19-6 { aspect-ratio: 1.9 / 1; }

/* Image hover zoom wrapper effect (applies to linked images in cards) */
a > img.image-aspect-ratio,
a > img.image-ratio-19-6 { transition: transform .4s ease, box-shadow .3s ease; }

.main-heading {
    font-size: clamp(1.5rem, 2.6vw, 2rem) !important;
    line-height: 1.2;
    color: var(--ink) !important;
    transition: color .18s ease;
}
a:hover .main-heading { color: var(--primary) !important; }

/* --------------------------------------------------- Article/blog cards */
.blog-heading-2 {
    font-family: var(--display);
    font-size: 1.16rem;
    font-weight: 700;
    line-height: 1.3;
    display: block;
    transition: color .18s ease;
}
a.blog-heading-2.text-dark:hover,
.blog-heading-2.text-dark:hover { color: var(--primary) !important; }
a.blog-heading-2.text-light:hover { color: #fff !important; opacity: .85; }

/* line clamps */
.text-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.text-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card images get a soft frame + hover lift when inside a link */
.rounded.shadow, .img-fluid.rounded { border-radius: var(--radius) !important; }
.shadow { box-shadow: var(--shadow-sm) !important; }
a:hover > img.rounded.shadow { transform: translateY(-3px); box-shadow: var(--shadow-md) !important; }

/* --------------------------------------------------- Homepage bands */
/* The homepage alternates .bg-dark and .bg-light section bands.            */
.bg-dark {
    background: var(--dark) !important;
    border-radius: var(--radius) !important;
}
.bg-dark h3, .bg-dark .blog-heading-2 { color: #fff !important; }
.bg-light {
    background: var(--surface) !important;
}
.bg-light.py-4, .bg-light.py-5 { border: 1px solid var(--border); border-radius: var(--radius) !important; }

/* --------------------------------------------------- Trending sidebar */
.col-lg-4 h4.fw-bold {
    font-family: var(--display);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink);
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 1rem !important;
}

/* trending item */
.col-lg-4 a .row.align-items-center { padding: .35rem 0; border-radius: var(--radius-sm); transition: background .18s ease; }
.col-lg-4 a:hover .row.align-items-center { background: var(--surface); }
.col-lg-4 a .rounded-2 { border-radius: var(--radius-sm) !important; aspect-ratio: 1/1; object-fit: cover; }
.col-lg-4 a p.fw-bold, .col-lg-4 a span.text-dark {
    font-size: .95rem;
    line-height: 1.35;
    transition: color .18s ease;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.col-lg-4 a:hover p.fw-bold, .col-lg-4 a:hover span.text-dark { color: var(--primary) !important; }

/* --------------------------------------------------- Widgets (categories) */
.widget { margin-bottom: 2rem; }
.widget_title, .widget .widget_title {
    font-family: var(--display);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink);
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 1rem;
}

/* Reset the old heavy blue block styling to a clean editorial list */
.widget_categories ul, .widget_nav_menu ul { list-style: none; margin: 0; padding: 0; }
.widget_categories li, .widget_nav_menu li { margin: 0; }
.widget_categories a, .widget_nav_menu a {
    background: #fff !important;
    color: var(--ink) !important;
    display: block !important;
    font-family: var(--body);
    font-size: .96rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 0 .5rem !important;
    padding: .85rem 1rem !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    position: relative;
    z-index: 1;
    transition: all .18s ease;
}
.widget_categories a::before, .widget_nav_menu a::before { display: none !important; }
.widget_categories a:hover, .widget_nav_menu a:hover {
    background: var(--primary-050) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    transform: translateX(2px);
}
.widget_categories a .fa-arrow-right { color: var(--muted); transition: transform .18s ease, color .18s ease; }
.widget_categories a:hover .fa-arrow-right { color: var(--primary); transform: translateX(3px); }

/* --------------------------------------------------- Article body */
.article-body { font-size: 1.08rem; line-height: 1.8; color: var(--text); }
.article-body > img,
.txtdec .p-lg-4 > .mb-3 > img {
    width: 100%;
    border-radius: var(--radius);
    margin: 0 0 1.5rem;
    box-shadow: var(--shadow-sm);
}
.article-body h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 2rem 0 .9rem; }
.article-body h3 { font-size: 1.35rem; margin: 1.6rem 0 .7rem; }
.article-body h4 { font-size: 1.15rem; margin: 1.3rem 0 .6rem; }
.article-body p { margin: 0 0 1.15rem; }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.1rem; }
.article-body li { margin-bottom: .45rem; }
.article-body img { height: auto; border-radius: var(--radius-sm); }
.article-body blockquote {
    border-left: 4px solid var(--primary);
    background: var(--surface);
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--ink);
    font-style: italic;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .96rem; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: .7rem .9rem; text-align: left; }
.article-body thead th { background: var(--surface-2); color: var(--ink); }

/* The article container card */
.txtdec .bg-light.shadow {
    background: #fff !important;
    border: 1px solid var(--border);
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* --------------------------------------------------- Static / prose pages */
.prose-page { max-width: 820px; margin: 3rem auto; padding: 0 1rem; }
.prose-page h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 1rem; }
.prose-page h2 { font-size: 1.5rem; margin: 2rem 0 .8rem; }
.prose-page h3 { font-size: 1.2rem; margin: 1.5rem 0 .6rem; }
.prose-page p, .prose-page li { color: var(--text); }
.prose-page address { font-style: normal; color: var(--muted); }
.prose-page a { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------- About page */
.about-hero {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 3.5rem 0 3rem;
    margin-bottom: 3rem;
}
.about-hero h1 { max-width: 800px; }
.about-lead {
    font-size: 1.22rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 730px;
    margin-top: .85rem;
}
.about-section { max-width: 960px; margin: 0 auto 3.25rem; padding: 0 1rem; }
.about-section > h2 { margin-bottom: 1rem; }
.about-section p { font-size: 1.06rem; line-height: 1.8; }
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 1.1rem;
    margin-top: 1.6rem;
}
.about-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.35rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.about-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.about-icon {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--primary-050);
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: .9rem;
}
.about-card h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.about-card p { font-size: .96rem; color: var(--muted); margin: 0; line-height: 1.6; }
.about-values { display: grid; gap: 1.3rem; margin-top: 1.6rem; }
.value-item { display: flex; gap: 1rem; align-items: flex-start; }
.value-item > i { color: var(--primary); font-size: 1.25rem; margin-top: .2rem; flex: none; width: 1.7rem; text-align: center; }
.value-item h3 { font-size: 1.12rem; margin-bottom: .25rem; }
.value-item p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.65; }
.about-cta {
    max-width: 960px;
    margin: 0 auto 4rem;
    text-align: center;
    background: var(--dark);
    color: #fff;
    border-radius: var(--radius);
    padding: 2.75rem 1.5rem;
}
.about-cta h2 { color: #fff; }
.about-cta p { color: #C7CBD3; max-width: 560px; margin: .6rem auto 1.6rem; }
.about-cta .btn-theme { display: inline-block; }

/* --------------------------------------------------- Homepage AI search */
.ai-search {
    background: linear-gradient(135deg, #3646B8 0%, #4B5EE3 48%, #7180F2 100%);
    padding: 1.65rem 0 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #fff;
}
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .34);
    color: #fff;
    font-family: var(--body);
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: .3rem .8rem;
    border-radius: 999px;
    margin-bottom: .65rem;
}
.ai-search-title {
    max-width: 780px;
    margin: .1rem auto 1rem;
    font-size: clamp(1.28rem, 1rem + 1.25vw, 1.6rem);
    line-height: 1.2;
    color: #fff;
}
.ai-search-box {
    display: flex;
    align-items: center;
    gap: .5rem;
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .45rem .45rem .45rem 1.1rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .18s ease, border-color .18s ease;
}
.ai-search-box:focus-within { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); }
.ai-search-box > i { color: var(--muted); font-size: 1rem; flex: none; }
.ai-search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: var(--body);
    font-size: 1.02rem;
    color: var(--ink);
    padding: .55rem 0;
}
.ai-search-box button {
    flex: none;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: .7rem 1.5rem;
    font-family: var(--body);
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s ease, transform .16s ease;
}
.ai-search-box button:hover { background: var(--primary-600); }
.ai-search-box button:disabled { opacity: .65; cursor: default; }
.ai-suggestions {
    margin-top: .75rem;
    display: flex; gap: .5rem;
    justify-content: center; flex-wrap: wrap; align-items: center;
    font-size: .9rem; color: rgba(255, 255, 255, .85);
}
.ai-chip {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    padding: .35rem .9rem;
    font-family: var(--body);
    font-size: .85rem;
    color: #fff;
    cursor: pointer;
    transition: all .16s ease;
}
.ai-chip:hover { border-color: #fff; color: var(--primary-600); background: #fff; }

.ai-results { max-width: 820px; margin: 2rem auto 0; text-align: left; }
.ai-answer-card {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.3rem 1.5rem;
    box-shadow: var(--shadow-sm);
}
.ai-answer-label {
    font-family: var(--body);
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary);
    margin-bottom: .6rem;
    display: flex; align-items: center; gap: .45rem;
}
.ai-answer-card p { margin: 0 0 .8rem; font-size: 1.02rem; line-height: 1.75; color: var(--text); }
.ai-answer-card p:last-child { margin-bottom: 0; }
.ai-answer-error { border-left-color: var(--muted); color: var(--muted); }
.ai-loading { color: var(--muted); display: flex; align-items: center; gap: .5rem; font-size: .95rem; padding: .4rem 0; }
.ai-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); display: inline-block; animation: aiblink 1.2s infinite both; }
.ai-dot:nth-child(2) { animation-delay: .2s; }
.ai-dot:nth-child(3) { animation-delay: .4s; }
@keyframes aiblink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }

.ai-blogs { margin-top: 1.9rem; }
.ai-blogs-title { font-size: 1.3rem; margin-bottom: 1rem; }
.ai-blogs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 1rem; }
.ai-blog-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ai-blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.ai-blog-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ai-blog-body { padding: .9rem 1rem 1.1rem; }
.ai-blog-body h3 { font-size: 1.05rem; line-height: 1.3; margin: 0 0 .35rem; color: var(--ink); }
.ai-blog-card:hover .ai-blog-body h3 { color: var(--primary); }
.ai-blog-sum {
    font-size: .9rem; color: var(--muted); line-height: 1.55; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 575.98px) {
    .ai-search-box button { padding: .7rem 1.05rem; }
    .ai-search { padding: 2.25rem 0 2.5rem; }
}

/* --------------------------------------------------- Footer */
.footer-bg {
    background: var(--dark) !important;
    color: #9AA1AC;
    border-top: 3px solid var(--primary);
    margin-top: 4rem;
}
.footer-logo { width: 150px; height: auto; margin-bottom: 1.1rem; }
.footer-tagline { color: #9AA1AC; font-size: .95rem; line-height: 1.7; max-width: 340px; margin-bottom: 1.35rem; }
.footer-title {
    font-family: var(--body);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #fff;
    margin-bottom: 1.1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a {
    color: #9AA1AC !important;
    font-size: .95rem;
    text-decoration: none;
    transition: color .18s ease, padding-left .18s ease;
}
.footer-links a:hover { color: #fff !important; padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .65rem; margin-bottom: .85rem; font-size: .93rem; line-height: 1.6; color: #9AA1AC; }
.footer-contact li i { color: var(--primary); margin-top: .2rem; flex: none; }
.footer-contact a { color: #9AA1AC !important; text-decoration: none; }
.footer-contact a:hover { color: #fff !important; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.footer-social a:hover { transform: translateY(-2px); background: var(--primary); border-color: var(--primary); }
.footer-social a img { width: 17px; height: 17px; object-fit: contain; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 1.25rem 0 1.75rem;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: .5rem;
    font-size: .85rem; color: #7E858F;
}
.footer-bottom a { color: #9AA1AC !important; text-decoration: none; }
.footer-bottom a:hover { color: #fff !important; }

/* --------------------------------------------------- Responsive polish */
@media (max-width: 991.98px) {
    .navbar .navbar-nav { padding: .5rem 0; }
    .navbar .d-none.d-lg-block { display: none; }
}
@media (max-width: 575.98px) {
    body { font-size: .98rem; }
    h1, .h1fnt { font-size: 1.85rem !important; line-height: 1.18; }
    h2 { font-size: 1.4rem; }
}
