@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Questrial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #111759;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    padding-right: 15px;
}

.nav-menu a::after {
    content: "▾";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.nav-menu a:hover {
    color: #45fbbf;
}

/* Dropdown Menu Styles */
.nav-menu li.has-dropdown .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #111759;
    min-width: 250px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li.dropdown-open .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-menu .sub-menu li:last-child {
    border-bottom: none;
}

.nav-menu .sub-menu li a {
    padding: 12px 20px;
    display: block;
    color: white;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.nav-menu .sub-menu li a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #45fbbf;
}

.nav-menu .sub-menu li a::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Questrial', sans-serif;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background-color: white;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #111759;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 99;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px 0;
}

.mobile-menu a:hover {
    color: #45fbbf;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.claims-btn {
    background-color: #45fbbf;
    color: #111759;
    padding: 8px 20px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.claims-btn:hover {
    background-color: #3de8a8;
}

.login-links {
    font-size: 14px;
}

.login-links a {
    color: white;
    text-decoration: none;
}

.login-links a:hover {
    color: #45fbbf;
}

/* Search Bar Styles */
.search-section {
    background-color: #f0eeff;
    padding: 20px 0;
    position: sticky;
    top: 70px;
    z-index: 99;
    border-bottom: 1px solid #e9ecef;
}

.search-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-label {
    font-size: 16px;
    font-weight: 500;
    color: #111759;
    white-space: nowrap;
}

.search-input {
    flex: 1;
    min-width: 300px;
    padding: 10px 15px;
    border: 1px solid #5546ff;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Questrial', sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: #5546ff;
    box-shadow: 0 0 0 2px rgba(85, 70, 255, 0.1);
}

.search-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-btn {
    background-color: #6c757d;
    color: white;
    padding: 8px 16px;
    border: 1px solid #6c757d;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Questrial', sans-serif;
}

.search-btn:hover {
    background-color: #5546ff;
    border-color: #5546ff;
}

/* TCO Heading Styles */
.tco-pr-heading {
    font-size: 24px;
    font-weight: 600;
    color: #111759;
    margin-bottom: 30px;
    font-family: 'Questrial', sans-serif;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.resource-section {
    margin-bottom: 60px;
}

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

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #111759;
}

.menu-icon {
    font-size: 20px;
    cursor: pointer;
    color: #5546ff;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.resource-card {
    background: white;
    border-radius: 8px;
    overflow: visible;
    transition: transform 0.2s ease;
}

.resource-card:hover {
    transform: translateY(-2px);
}

.resource-image {
    width: 100%;
    height: 160px;
    background-color: #d6d8db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #6c757d;
    border-radius: 3px;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.resource-content {
    padding: 15px;
}

.resource-title {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
}

.resource-title a {
    color: inherit;
    text-decoration: none;
}

.resource-title a:hover {
    color: #5546ff;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        margin-right: 2em;
    }

    .header-buttons {
        order: 3;
    }

    .search-content {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        min-width: auto;
    }

    .search-buttons {
        justify-content: flex-start;
    }

    .resource-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .header-content {
        flex-wrap: wrap;
    }

    .logo img {
        height: 30px;
    }

    .mobile-menu-toggle {
        order: 2;
        flex: 0 0 auto;
        margin-right: 0;
    }

    .header-buttons {
        order: 3;
        flex: 1 1 100%;
        background-color: #6c757d;
        margin: 15px -20px -15px -20px;
        padding: 15px 20px;
        justify-content: space-between;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .search-btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .search-btn {
        flex: 1;
    }
}

/* TCO Four Up Grid Styles - Featured Image and Title Only */
.tco-pr-fourupgrid .wp-block-latest-posts__featured-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 3px;
    margin-bottom: 15px;
}

.tco-pr-fourupgrid .wp-block-latest-posts__featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.tco-pr-fourupgrid .wp-block-latest-posts__post-title {
    font-size: 14px !important;
    color: #6c757d;
    font-weight: 400 !important;
    text-decoration: none;
    font-family: 'Questrial', sans-serif !important;
    line-height: 1.1 !important;
}

.tco-pr-fourupgrid .wp-block-latest-posts__post-title:hover {
    color: #5546ff;
}

.tco-pr-fourupgrid .wp-block-latest-posts__post-title strong {
    font-weight: 400 !important;
    font-family: 'Questrial', sans-serif !important;
    font-size: inherit !important;
}

/* Search Form Styles */
.search-form {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.search-form .search-label {
    font-size: 16px;
    font-weight: 500;
    color: #111759;
    white-space: nowrap;
}

.search-form .search-input {
    flex: 1;
    min-width: 300px;
    padding: 10px 15px;
    border: 1px solid #5546ff;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Questrial', sans-serif;
}

.search-form .search-input:focus {
    outline: none;
    border-color: #5546ff;
    box-shadow: 0 0 0 2px rgba(85, 70, 255, 0.1);
}

/* Responsive adjustments for search form */
@media (max-width: 1100px) {
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form .search-input {
        min-width: auto;
    }
}


/* PR Search Results Styles - Grouped by Category */
.tco-pr-search-results {
    font-family: 'Questrial', sans-serif;
}

.search-results-count {
    font-size: 16px;
    color: #111759;
    margin-bottom: 40px;
    font-weight: 500;
}

.search-results-grouped {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.search-results-category {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 30px;
}

.search-results-category:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.category-title {
    font-size: 24px;
    font-weight: 600;
    color: #111759;
    margin: 0 0 10px 0;
    font-family: 'Questrial', sans-serif;
}

.category-description {
    color: #6c757d;
    margin-bottom: 25px;
    font-style: italic;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-result-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-result-image {
    flex: 0 0 150px;
}

.search-result-image img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 3px;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.search-result-title a {
    color: #111759;
    text-decoration: none;
}

.search-result-title a:hover {
    color: #5546ff;
}

.search-result-date {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
}

.search-result-excerpt {
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    font-size: 14px;
}

.search-result-link {
    color: #5546ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.search-result-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .search-result-item {
        flex-direction: column;
    }
    
    .search-result-image {
        flex: none;
    }
    
    .search-result-image img {
        height: 120px;
    }
}


/* === Query Loop: Resource Card Styles (Vega 2025-09-15) === */
.wp-block-query .wp-block-post-template {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
    padding: 0;
    margin: 0;
}
@media (min-width: 640px) {
    .wp-block-query .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .wp-block-query .wp-block-post-template { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Card */
.wp-block-query .wp-block-post-template > li,
.wp-block-query .wp-block-post {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.04);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.wp-block-query .wp-block-post-template > li:hover,
.wp-block-query .wp-block-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.10), 0 24px 48px rgba(0,0,0,.06);
}

/* Featured image */
.wp-block-post-featured-image,
.wp-block-post-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}
.wp-block-post-featured-image a,
.wp-block-post-featured-image img {
    border-radius: 12px;
}
.wp-block-query .wp-block-post-template > li .wp-block-post-featured-image {
    padding: 12px;
}

/* Body */
.wp-block-query .wp-block-post-template > li .card-body {
    padding: 0 16px 18px 16px;
}
/* If no wrapper exists, apply to direct children */
.wp-block-query .wp-block-post-template > li > *:not(.wp-block-post-featured-image) { padding-left: 16px; padding-right:16px; }

/* Tags/Categories as boxes */
.wp-block-post-terms,
.wp-block-post-terms__separator {
    margin-top: 6px;
}
.wp-block-post-terms a {
    display: inline-block;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    color: #0b0e3a;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    padding: 8px 10px;
    border-radius: 10px;
    margin: 8px 8px 0 0;
    text-decoration: none;
    white-space: nowrap;
}
.wp-block-post-terms a:hover { background:#eef2ff; border-color:#c7d2fe; }

/* Title */
.wp-block-post-title {
    font-size: 18px;
    line-height: 1.25;
    margin-top: 10px;
    margin-bottom: 6px;
}
.wp-block-post-title a { color: #111827; text-decoration: none; }
.wp-block-post-title a:hover { text-decoration: underline; }

/* Excerpt */
.wp-block-post-excerpt { color:#374151; font-size:14px; margin: 8px 0 10px; }

/* Learn More button (green capsule) */
.wp-block-read-more,
a.wp-block-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    background: #39d98a; /* Coterie green */
    color: #0b1020;       /* dark text */
    margin: 8px 0 14px;
    transition: background .15s ease, transform .15s ease;
}
.wp-block-read-more:hover,
a.wp-block-read-more:hover { background:#2fc57c; transform: translateY(-1px); color:#0b1020; }
.wp-block-read-more:focus-visible { outline: 2px solid #97b3ff; outline-offset: 2px; }

/* Reset default list spacing that Gutenberg may inject */
.wp-block-post-template.is-flex-container { gap: 24px; }


/* === Query Loop: Resource Card Styles (Vega 2025-09-15 • refined) === */
.wp-block-query .wp-block-post-template {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
    padding: 0;
    margin: 0;
}
@media (min-width: 640px) {
    .wp-block-query .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .wp-block-query .wp-block-post-template { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Card container */
.wp-block-query .wp-block-post-template > li,
.wp-block-query .wp-block-post {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.04);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
}
.wp-block-query .wp-block-post-template > li:hover,
.wp-block-query .wp-block-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.10), 0 24px 48px rgba(0,0,0,.06);
}

/* Featured image: equal padding and 4:3 ratio */
.wp-block-post-featured-image { 
    margin: 0; 
    padding: 16px; 
}
.wp-block-post-featured-image a,
.wp-block-post-featured-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

/* Body padding */
.wp-block-query .wp-block-post-template > li > *:not(.wp-block-post-featured-image) {
    padding-left: 16px; 
    padding-right: 16px; 
}

/* Order the interior blocks so tags appear above the title */
.wp-block-query .wp-block-post-template > li .wp-block-post-terms { order: 10; }
.wp-block-query .wp-block-post-template > li .wp-block-post-title { order: 20; }
.wp-block-query .wp-block-post-template > li .wp-block-post-excerpt { order: 30; }
.wp-block-query .wp-block-post-template > li .wp-block-read-more { order: 40; }

/* Tags/Categories as boxes */
.wp-block-post-terms { margin-top: 8px; }
.wp-block-post-terms a {
    display: inline-block;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    color: #0b0e3a;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    padding: 8px 10px;
    border-radius: 10px;
    margin: 8px 8px 0 0;
    text-decoration: none;
    white-space: nowrap;
}
.wp-block-post-terms a:hover { background:#eef2ff; border-color:#c7d2fe; }

/* Title treatments */
.wp-block-post-title {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 8px;
    margin-bottom: 6px;
}
.wp-block-post-title a { color: #111827; text-decoration: none; }
.wp-block-post-title a:hover { text-decoration: underline; }

/* Excerpt */
.wp-block-post-excerpt { color:#374151; font-size:14px; margin: 4px 0 10px; }

/* Learn More button (green capsule) */
.wp-block-read-more,
a.wp-block-read-more {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    background: #39d98a; /* Coterie green */
    color: #0b1020;       /* dark text */
    margin: 8px 0 16px;
    transition: background .15s ease, transform .15s ease;
}
.wp-block-read-more:hover,
a.wp-block-read-more:hover { background:#2fc57c; transform: translateY(-1px); color:#0b1020; }
.wp-block-read-more:focus-visible { outline: 2px solid #97b3ff; outline-offset: 2px; }
