:root {
    --navy: #061b36;
    --navy2: #092a55;
    --red: #ef233c;
    --blue: #1665d8;
    --text: #0a1832;
    --muted: #69758a;
    --line: #e9edf5;
    --bg: #f7f9fc;
    --gold: #f6a900;
    --green: #15a56c
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    color: var(--text);
    background: #fff
}

a {
    text-decoration: none;
    color: inherit
}

.container {
    width: min(1280px, 92%);
    margin: auto
}

.topbar {
    background: linear-gradient(135deg, #04152c, #08264d);
    color: #fff
}

.top-inner {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 28px
}

.logo {
    font-size: 29px;
    font-weight: 900;
    line-height: 1
}

.logo span:first-child {
    color: #ff2738
}

.logo small {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #c7d4e8;
    margin-top: 4px
}

.search {
    flex: 1;
    display: flex;
    max-width: 560px;
    margin-left: auto
}

.search input {
    flex: 1;
    border: 0;
    border-radius: 5px 0 0 5px;
    padding: 14px 18px;
    color: #667
}

.search button,
.btn {
    border: 0;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    padding: 0 22px;
    border-radius: 0 5px 5px 0
}

.social {
    display: flex;
    gap: 12px;
    align-items: center
}

.circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #1d69c8;
    font-size: 13px
}

.newsletter {
    border: 1px solid #71809b;
    border-radius: 5px;
    padding: 12px 20px
}

.nav {
    height: 80px;
    border-bottom: 1px solid var(--line);
    background: #fff
}

.nav .container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase
}

.nav .active {
    color: var(--red)
}

.hero {
    background: linear-gradient(90deg, rgba(4, 20, 43, .97), rgba(7, 37, 76, .86)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="400"><rect fill="%23092a55" width="1200" height="400"/><circle cx="700" cy="270" r="220" fill="%23ffffff" opacity=".05"/><rect x="620" y="120" width="420" height="180" rx="12" fill="%23ffffff" opacity=".05"/></svg>');
    color: #fff;
    padding: 48px 0 26px
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 35px;
    align-items: center
}

.hero h1 {
    font-size: 42px;
    line-height: 1.12;
    margin: 0 0 18px
}

.hero h1 span {
    color: #ff3447
}

.hero p {
    font-size: 17px;
    line-height: 1.6;
    color: #d9e6f6;
    max-width: 590px
}

.hero-search {
    display: flex;
    margin: 26px 0 16px;
    max-width: 650px
}

.hero-search input {
    flex: 1;
    padding: 17px 18px;
    border: 0;
    border-radius: 5px 0 0 5px
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px
}

.tag {
    background: rgba(255, 255, 255, .13);
    padding: 7px 12px;
    border-radius: 16px
}

.feature-cards {
    display: flex;
    gap: 18px
}

.feature {
    width: 30%;
    min-width: 160px;
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
    color: #111;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .28)
}

.feature .cap {
    padding: 11px;
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 900
}

.cap.red {
    background: #e83c45
}

.cap.gold {
    background: #e5a519
}

.cap.blue {
    background: #1764d9
}

.portrait {
    height: 160px;
    background: radial-gradient(circle at 50% 20%, #ffd1a9 0 25%, transparent 26%), linear-gradient(145deg, #d6deec, #a9b7ca);
    display: grid;
    place-items: end center
}

.portrait:after {
    content: '';
    /* width: 92px;
    height: 92px;
    border-radius: 45px 45px 12px 12px; */
    background: #1a386a;
    margin-bottom: 0
}

.feature h3 {
    font-size: 18px;
    text-align: center;
    margin: 12px 8px 3px
}

.feature p {
    text-align: center;
    color: #444;
    font-size: 12px;
    margin: 0 8px 12px;
    line-height: 1.25
}

.worth {
    background: #f7f1ed;
    text-align: center;
    padding: 11px;
    font-size: 13px
}

.worth strong {
    display: block;
    font-size: 20px;
    margin-top: 4px
}

.section {
    padding: 26px 0
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 17px
}

.section-title h2 {
    font-size: 24px;
    margin: 0
}

.view {
    color: #1665d8;
    font-size: 12px;
    font-weight: 800
}

.categories {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px
}

.cat,
.metric,
.toc,
.box,
.side-box,
.article-card,
.profile-card,
.faq,
.subscribe {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(16, 34, 64, .04)
}

.cat {
    text-align: center;
    padding: 18px 8px
}

.cat .icon {
    font-size: 24px;
    color: var(--red)
}

.cat h4 {
    font-size: 13px;
    margin: 8px 0 2px
}

.cat p {
    font-size: 11px;
    color: var(--muted);
    margin: 0
}

.tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 16px
}

.tab {
    padding: 11px 22px;
    border-radius: 4px;
    background: #f0f3f8;
    font-size: 12px;
    font-weight: 800
}

.tab.on {
    background: var(--red);
    color: #fff
}

.profiles {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px
}

.profile-card {
    overflow: hidden;
    text-align: center
}

.thumb {
    height: 112px;
    background: linear-gradient(160deg, #dee7f4, #a8b8cc);
    position: relative
}

/* .thumb:after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 62px;
    height: 76px;
    border-radius: 36px 36px 5px 5px;
    background: #2d4876
} */

.badge {
    position: absolute;
    top: 9px;
    left: 9px;
    background: var(--red);
    color: #fff;
    border-radius: 4px;
    padding: 4px
}

.profile-card h4 {
    font-size: 14px;
    margin: 12px 4px 4px
}

.profile-card small {
    color: #667;
    display: block
}

.profile-card b {
    display: block;
    margin: 8px 0;
    font-size: 15px
}

.profile-card a {
    font-size: 12px;
    color: #1665d8;
    font-weight: 800;
    display: block;
    margin: 0 0 12px
}

.rich-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px
}

.rich-card {
    /* height: 130px; */
    /* display: flex;*/
    align-items: end; 
    /* padding: 18px; */
    /* color: #fff; */


  
     /* background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .15)), linear-gradient(135deg, #536d86, #bdc9d7); */
    font-weight: 900 
}

.articles {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px
}

.article-card {
    overflow: hidden
}

.article-img {
    height: 110px; 
    /* chng to 88 t0 110 */
    background: linear-gradient(140deg, #d6dee8, #71849b)
}

.article-body {
    padding: 13px
}

.label {
    font-size: 10px;
    color: var(--red);
    font-weight: 900
}

.article-body h3 {
    font-size: 15px;
    line-height: 1.3;
    margin: 6px 0 12px
}

.date {
    font-size: 12px;
    color: var(--muted)
}

.affidavit {
    background: linear-gradient(135deg, #071b36, #0b3266);
    color: #fff;
    border-radius: 8px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 25px;
    align-items: center
}

.affidavit h2 {
    margin: 0 0 7px
}

.filters {
    display: flex;
    gap: 9px
}

.filters select,
.filters button {
    height: 42px;
    border-radius: 4px;
    border: 0;
    padding: 0 12px
}

.filters select {
    flex: 1;
    color: #777
}

.subscribe-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px
}

.subscribe,
.faq {
    padding: 22px
}

.email-row {
    display: flex;
    max-width: 400px
}

.email-row input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 5px 0 0 5px;
    padding: 14px
}

.faq select {
    width: 49%;
    margin: 4px 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 4px
}

.footer {
    background: linear-gradient(135deg, #04152c, #08264d);
    color: #fff;
    margin-top: 22px;
    padding: 32px 0
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 35px
}

.footer p,
.footer a {
    color: #cbd7e7;
    font-size: 13px;
    line-height: 1.8
}

.copy {
    text-align: center;
    color: #cbd7e7;
    font-size: 12px;
    margin-top: 20px
}

.crumb {
    font-size: 12px;
    color: #4473aa;
    margin: 22px 0
}

.article-hero {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 30px;
    align-items: center
}

.article-hero h1 {
    font-size: 38px;
    line-height: 1.14;
    margin: 12px 0
}

.author {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #647089;
    align-items: center
}

.hero-person {
    height: 260px;
    background: radial-gradient(circle at 50% 18%, #f6c7a6 0 24%, transparent 25%), linear-gradient(150deg, #eef4fb, #d1dbe8);
    border-radius: 10px;
    position: relative
}

.hero-person:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 135px;
    height: 150px;
    border-radius: 70px 70px 0 0;
    background: #9fb6d3
}

.layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px
}

.share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 15px;
    margin: 16px 0
}

.share button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 5px;
    padding: 10px 17px
}

.metrics {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 16px 0
}

.metric {
    padding: 18px;
    text-align: center
}

.metric strong {
    display: block;
    font-size: 18px
}

.toc {
    padding: 20px;
    margin: 18px 0
}

.toc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-weight: 700;
    color: #32415a
}

.article-content h2 {
    margin-top: 28px
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    text-align: center
}

.timeline b {
    color: #1665d8
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden
}

.data-table th,
.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left
}

.props {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px
}

.prop .article-img {
    height: 100px
}

.you-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px
}

.side-box {
    padding: 20px;
    margin-bottom: 22px
}

.side-box table {
    width: 100%;
    font-size: 13px
}

.side-box td {
    padding: 10px 0;
    border-bottom: 1px solid var(--line)
}

.popular {
    display: flex;
    gap: 12px;
    margin: 12px 0
}

.mini {
    width: 66px;
    height: 58px;
    border-radius: 7px;
    background: linear-gradient(140deg, #dfe7f1, #8698ad);
    flex: none
}

.ad {
    height: 310px;
    display: grid;
    place-items: center;
    background: linear-gradient(#fbfbff, #f0f2fa);
    font-size: 32px;
    font-weight: 800;
    color: #14264b;
    text-align: center
}

.topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.topics span {
    background: #f0f3f8;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 12px
}

@media(max-width:950px) {

    .hero-grid,
    .layout,
    .article-hero,
    .affidavit,
    .subscribe-row {
        grid-template-columns: 1fr
    }

    .feature-cards,
    .profiles,
    .categories,
    .articles,
    .rich-grid,
    .metrics,
    .props,
    .you-grid {
        grid-template-columns: repeat(2, 1fr);
        display: grid
    }

    .feature {
        width: auto
    }

    .nav .container {
        gap: 14px;
        overflow: auto
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .search {
        display: none
    }
}

@media(max-width:560px) {

    .profiles,
    .categories,
    .articles,
    .rich-grid,
    .metrics,
    .props,
    .you-grid {
        grid-template-columns: 1fr
    }

    .hero h1,
    .article-hero h1 {
        font-size: 30px
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .filters {
        flex-direction: column
    }
}

 .portrait img {
    width: 200px;
    height: 161px;
    object-fit: cover;
}
.thumb img {
    width: 130px;
    height: 112px;
    object-fit: cover;
}
.article-img img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.rich-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}
/* NEW REDESIGN STYLES */
.new-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 800;
    color: #1a2538;
}
.new-section-title .view-all {
    font-size: 14px;
    font-weight: 700;
    color: #1a56db;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.featured-grid, .party-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.state-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 40px;
}
.card-new {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    text-align: center;
    display: flex;
    flex-direction: column;
}
.card-new .img-wrap {
    height: 140px;
    background: #f3f4f6;
    display: grid;
    place-items: center;
}
.card-new .img-wrap img {
    max-height: 100%;
    object-fit: contain;
}
.card-new.state-card {
    height: 110px;
    position: relative;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 15px;
    box-shadow: inset 0 -50px 40px -10px rgba(0,0,0,0.8);
    font-weight: 700;
    font-size: 14px;
    border: none;
    justify-content: flex-end;
}
.card-new.state-card.all-states {
    background: #f9fafb;
    color: #4b5563;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}
.card-new.state-card.all-states img {
    height: 60px;
}
.card-content {
    padding: 50px 10px 16px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-new h3 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #111827;
}
.card-new .subtitle {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
}
.card-new .meta {
    font-size: 11px;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}
.card-new .meta img {
    width: 12px;
    height: 12px;
    object-fit: contain;
    position: relative;
    top: 2px;
    left: 2px;
}
.card-btn {
    margin-top: auto;
    display: block;
    width: 100%;
    padding: 8px 0;
    border: 1px solid #1a56db;
    border-radius: 6px;
    color: #1a56db;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}
.card-btn:hover {
    background: #1a56db;
    color: #fff;
}
.party-grid .img-wrap {
    background: #fff;
    padding: 20px;
    height: 120px;
}
.party-grid .img-wrap img {
    max-height: 100%;
}
.explore-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}
.trending-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}
@media(max-width: 1100px) {
    .featured-grid, .party-grid { grid-template-columns: repeat(3, 1fr); }
    .state-grid { grid-template-columns: repeat(3, 1fr); }
    .explore-grid, .trending-grid { grid-template-columns: repeat(4, 1fr); }
}
@media(max-width: 600px) {
    .featured-grid, .party-grid { grid-template-columns: repeat(2, 1fr); }
    .state-grid { grid-template-columns: repeat(2, 1fr); }
    .explore-grid, .trending-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Updated Card Contents */
.featured-card-content, .party-card-content {
    padding: 16px !important;
}

/* NEW HERO DESIGN */
.hero-new {
    position: relative;
    background:url('/wp-content/uploads/2026/07/hero-sec-bg.webp');
    background-color: #04152c;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    padding: 60px 0;
    overflow: visible;
}
.hero-bg-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: url('https://via.placeholder.com/1200x800') center/cover no-repeat;
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    opacity: 0.6;
}
.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
}
.hero-content {
    width: 55%;
    max-width: 600px;
}
.hero-content h1 {
    font-size: 52px;
    line-height: 1.1;
    margin: 0 0 16px;
    font-weight: 800;
}
.hero-content h1 span {
    color: #f97316; /* Orange text */
}
.hero-content h1 .green-text {
    color: #22c55e; /* Green text */
}
.hero-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 24px;
}
.hero-search-wrapper {
    position: relative;
    margin-bottom: 24px;
}
.hero-search {
    display: flex;
    background: #fff;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.hero-search input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    outline: none;
}
.hero-search button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 0 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.hero-search button:hover {
    background: #1d4ed8;
}
.hero-actions {
    display: flex;
    gap: 16px;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.hero-btn.blue-btn {
    background: #3b82f6;
    color: #fff;
    border: 1px solid #3b82f6;
}
.hero-btn.blue-btn:hover {
    background: #2563eb;
}
.hero-btn.outline-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #475569;
}
.hero-btn.outline-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* AJAX Search Results Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
}
.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9 !important;
    text-decoration: none !important;
    color: #0f172a !important;
    transition: background 0.2s;
    box-shadow: none !important;
    background-image: none !important;
}
.search-result-item:hover,
.search-result-item.selected {
    background: #f8fafc;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    background: #e2e8f0;
}
.result-info h4 {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f172a !important;
    text-decoration: none !important;
    box-shadow: none !important;
    border: none !important;
}
.result-info h4 span {
    font-size: 10px;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
}
.result-info small {
    color: #64748b !important;
    font-size: 12px;
    text-decoration: none !important;
    box-shadow: none !important;
    border: none !important;
}
.no-results {
    padding: 16px;
    text-align: center;
    color: #64748b;
}

@media(max-width: 950px) {
    .hero-container {
        justify-content: center;
    }
    .hero-bg-left {
        width: 100%;
        mask-image: none;
        -webkit-mask-image: none;
        opacity: 0.15;
    }
    .hero-content {
        width: 100%;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
}
