/* ==========================================================================
   CTFG Visual Restyle — Match civictech.guide look & feel
   Overrides loaded after style.css, listing.css, and main-color.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TYPOGRAPHY
   -------------------------------------------------------------------------- */

body,
p,
.text-widget span,
.footer-links li a,
.listing-details-sidebar li,
.copyrights span {
    font-family: 'Archivo', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.site-title a,
.widget h3,
.listing-item-content h3,
.listing-item-content h3 a {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

#navigation a,
.header-widget a,
.header-widget div,
small {
    font-family: 'Montserrat', sans-serif;
}

/* --------------------------------------------------------------------------
   2. HEADER — Pixel-perfect match to civictech.guide
   -------------------------------------------------------------------------- */

.ctfg-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e8e8ef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 999;
}

.ctfg-header-inner {
    background-color: #ffffff !important;
    border-bottom: none !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
}

.ctfg-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 32px;
    gap: 24px;
}

/* Logo — uses the actual Brandmark from civictech.guide */
.ctfg-logo {
    flex-shrink: 0;
}

.ctfg-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.ctfg-logo-img {
    height: 40px;
    width: auto;
    display: block;
}

/* Search bar in header */
.ctfg-header-search {
    flex: 1;
    max-width: 380px;
    margin: 0 auto;
}

.ctfg-search-form {
    display: flex;
    align-items: center;
    border: 2px solid #e0dff5;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #f9f9fc;
}

.ctfg-search-form:focus-within {
    border-color: #574FD9;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(87, 79, 217, 0.1);
}

.ctfg-search-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 9px 14px !important;
    font-family: 'Archivo', sans-serif !important;
    font-size: 14px !important;
    color: #19191E !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    height: auto !important;
    line-height: 1.4 !important;
}

.ctfg-search-input::placeholder {
    color: #9998b3;
    font-size: 14px;
}

.ctfg-search-btn {
    background: #574FD9 !important;
    border: none !important;
    color: #ffffff !important;
    padding: 9px 14px !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.ctfg-search-btn:hover {
    background: #1F1A73 !important;
}

/* Navigation */
.ctfg-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ctfg-nav-link {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #19191E !important;
    text-decoration: none !important;
    padding: 8px 14px;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.ctfg-nav-link:hover {
    color: #574FD9 !important;
    background-color: #f1f0ff;
}

.ctfg-nav-link.active {
    color: #574FD9 !important;
    font-weight: 600 !important;
}

.ctfg-submit-btn {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background-color: #574FD9 !important;
    text-decoration: none !important;
    padding: 10px 22px !important;
    border-radius: 24px;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    display: inline-block;
    line-height: 1.2;
    border: none;
}

.ctfg-submit-btn:hover {
    background-color: #1F1A73 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(87, 79, 217, 0.3);
}

/* Hide old header elements that might bleed through */
#header .left-side,
#header .right-side,
#header .header-widget,
#header>.container {
    display: none !important;
}

/* Responsive header */
@media (max-width: 900px) {
    .ctfg-header-content {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 12px;
    }

    .ctfg-header-search {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }

    .ctfg-nav {
        gap: 4px;
    }

    .ctfg-nav-link {
        font-size: 12px !important;
        padding: 6px 8px;
    }

    .ctfg-submit-btn {
        font-size: 12px !important;
        padding: 8px 16px !important;
    }
}

@media (max-width: 600px) {
    .ctfg-logo-img {
        height: 32px;
    }

    .ctfg-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   3. TITLEBAR / GRADIENT BAR
   -------------------------------------------------------------------------- */

#titlebar.gradient {
    background: linear-gradient(135deg, #574FD9 0%, #1F1A73 100%);
}

/* --------------------------------------------------------------------------
   4. BUTTONS & LINKS
   -------------------------------------------------------------------------- */

a {
    color: #574FD9;
    transition: color 0.2s ease;
}

a:hover {
    color: #1F1A73;
}

a.button,
button.button,
input[type="submit"],
input[type="button"] {
    background-color: #574FD9;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

a.button:hover,
button.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: #1F1A73;
}

a.button.border {
    color: #574FD9;
    border-color: #574FD9;
    border-radius: 6px;
}

a.button.border:hover {
    background-color: #574FD9;
    color: #fff;
}

/* --------------------------------------------------------------------------
   5. SEARCH & FILTER BAR
   -------------------------------------------------------------------------- */

.main-search-input {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(87, 79, 217, 0.08);
    border: 1px solid #e0dff5;
}

.main-search-input input {
    font-family: 'Space Grotesk', sans-serif;
}

.main-search-input button {
    background-color: #574FD9;
    border-radius: 0 8px 8px 0;
}

.main-search-input button:hover {
    background-color: #1F1A73;
}

/* Inline filter bar */
.ctfg-filter-bar {
    background: #ffffff;
    border: 1px solid #e8e8ef;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ctfg-filter-bar .main-search-input {
    border: none;
    box-shadow: none;
    margin-bottom: 16px;
    background: #f7f7fb;
    border-radius: 10px;
    padding: 0;
}

.ctfg-filter-bar .main-search-input-item input {
    background: transparent !important;
    font-size: 15px !important;
    padding: 12px 18px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    color: #152237 !important;
}

.ctfg-filter-bar .main-search-input-item input::placeholder {
    color: #9998b3;
}

.ctfg-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.ctfg-filter-row .col-md-4 {
    flex: 1;
    min-width: 180px;
    max-width: 100%;
    padding: 0;
}

.ctfg-filter-row select,
.ctfg-filter-row .chosen-container {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 14px !important;
}

.ctfg-filter-row .chosen-container-multi .chosen-choices {
    border: 1px solid #e0dff5 !important;
    border-radius: 8px !important;
    background: #f7f7fb !important;
    padding: 6px 10px !important;
    min-height: 38px !important;
}

.ctfg-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f5;
}

.ctfg-filter-actions select {
    border: 1px solid #e0dff5 !important;
    border-radius: 8px !important;
    background: #f7f7fb !important;
    padding: 8px 14px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 14px !important;
    color: #574FD9 !important;
}

.ctfg-filter-actions .button {
    padding: 10px 32px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION (civictech.guide style)
   -------------------------------------------------------------------------- */

.ctfg-hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #e0f7ef 40%, #b2e8d4 70%, #7edcb5 100%);
    padding: 56px 0 48px;
    position: relative;
    overflow: hidden;
}

/* Decorative geometric shapes */
.ctfg-hero-section::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 60%;
    width: 280px;
    height: 280px;
    background: rgba(1, 181, 131, 0.12);
    transform: rotate(25deg);
    z-index: 0;
    border-radius: 4px;
}

.ctfg-hero-section::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 10%;
    width: 120px;
    height: 120px;
    background: rgba(1, 181, 131, 0.10);
    transform: rotate(-15deg);
    z-index: 0;
    border-radius: 4px;
}

.ctfg-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* Heading */
.ctfg-hero-heading {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 2.6rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.18;
    margin: 0 0 40px 0;
    letter-spacing: -0.02em;
    font-style: italic;
}

/* Stats 2×2 grid */
.ctfg-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 48px;
}

.ctfg-stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #574FD9;
    line-height: 1.2;
}

.ctfg-stat-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 4px;
}

.ctfg-stat-desc {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #4d4d4a;
    line-height: 1.45;
}

.ctfg-stat-desc a {
    color: #152237 !important;
    text-decoration: underline !important;
    font-weight: 500;
}

.ctfg-stat-desc a:hover {
    color: #574FD9 !important;
}

/* Newsletter card */
.ctfg-newsletter-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
    margin-top: 40px;
}

.ctfg-newsletter-title {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 4px 0;
}

.ctfg-newsletter-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: #4d4d4a;
    margin: 0 0 20px 0;
}

.ctfg-newsletter-input-wrapper {
    margin-bottom: 14px;
}

.ctfg-newsletter-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0dff5;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: #152237;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.ctfg-newsletter-input:focus {
    border-color: #574FD9;
}

.ctfg-newsletter-input::placeholder {
    color: #9998b3;
}

.ctfg-newsletter-btn {
    width: 100%;
    padding: 13px 24px;
    background: #574FD9;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ctfg-newsletter-btn:hover {
    background: #1F1A73;
    transform: translateY(-1px);
}

.ctfg-newsletter-arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.ctfg-newsletter-btn:hover .ctfg-newsletter-arrow {
    transform: translateX(3px);
}

/* Hero responsive */
@media (max-width: 900px) {
    .ctfg-hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 24px;
    }

    .ctfg-hero-heading {
        font-size: 2rem;
    }

    .ctfg-newsletter-card {
        margin-top: 0;
        max-width: 400px;
    }
}

@media (max-width: 640px) {
    .ctfg-hero-section {
        padding: 36px 0 32px;
    }

    .ctfg-hero-heading {
        font-size: 1.6rem;
    }

    .ctfg-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ctfg-hero-inner {
        padding: 0 16px;
    }
}

/* Results count */
.ctfg-results-count {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #6b6b80;
    margin-bottom: 20px;
}

.ctfg-results-count strong {
    color: #152237;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. CARD GRID
   -------------------------------------------------------------------------- */

.ctfg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.ctfg-card {
    background: #ffffff;
    border: 1px solid #e8e8ef;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.ctfg-card:hover {
    box-shadow: 0 8px 30px rgba(87, 79, 217, 0.12);
    transform: translateY(-2px);
}

.ctfg-card a {
    text-decoration: none !important;
    color: inherit !important;
}

/* Card cover image */
.ctfg-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ctfg-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ctfg-card:hover .ctfg-card-img img {
    transform: scale(1.03);
}

.ctfg-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f0ff 0%, #e8e8ef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9998b3;
    font-size: 36px;
}

/* Card body */
.ctfg-card-body {
    padding: 16px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ctfg-card-title {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 8px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ctfg-card-title a {
    color: #000000 !important;
}

.ctfg-card-title a:hover {
    color: #574FD9 !important;
}

.ctfg-card-location {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    color: #6b6b80;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ctfg-card-location i {
    color: #574FD9;
    font-size: 12px;
}

.ctfg-card-desc {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #152237;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    flex: 1;
}

/* Card tags */
.ctfg-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.ctfg-card-tag {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 12px;
    font-weight: 500;
    color: #574FD9;
    background: #f1f0ff;
    border-radius: 6px;
    padding: 3px 10px;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.ctfg-card-tag:hover {
    background: #574FD9;
    color: #ffffff !important;
}

.ctfg-card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f5;
}

.ctfg-card-cat {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 11px;
    font-weight: 500;
    color: #6b6b80;
    background: #f7f7fb;
    border-radius: 4px;
    padding: 2px 8px;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.ctfg-card-cat:hover {
    color: #574FD9 !important;
}

/* Card footer with URL */
.ctfg-card-footer {
    padding: 0 20px 14px;
    font-size: 12px;
}

.ctfg-card-footer a {
    color: #574FD9 !important;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ctfg-card-footer a:hover {
    color: #1F1A73 !important;
}

/* Grid responsive */
@media (max-width: 1024px) {
    .ctfg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .ctfg-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ctfg-hero {
        padding: 32px 16px 24px;
    }

    .ctfg-hero h2 {
        font-size: 1.5rem;
    }

    .ctfg-card-body {
        padding: 14px 16px 16px;
    }
}

/* Constrain content to match hero width */
.ctfg-homepage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.ctfg-homepage .sidebar {
    display: none;
}

/* Override old list-layout styles */
.ctfg-homepage .listings-container.list-layout .listing-item {
    display: none;
}

/* --------------------------------------------------------------------------
   8. FOOTER (civictech.guide style)
   -------------------------------------------------------------------------- */

/* Hide old footer wrapper */
#footer {
    display: none !important;
}

/* ---- Newsletter subscribe bar ---- */
.ctfg-footer-subscribe {
    background: transparent;
    padding: 28px 0;
    border-bottom: 2px dashed #b2e8d4;
}

.ctfg-footer-subscribe-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.ctfg-footer-subscribe-heading {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    color: #000000;
    margin: 0;
    white-space: nowrap;
}

.ctfg-footer-subscribe-form {
    flex: 1;
    min-width: 280px;
}

.ctfg-footer-subscribe-input-wrap {
    display: flex;
    background: #ffffff;
    border: 1.5px solid #e0dff5;
    border-radius: 10px;
    overflow: hidden;
    height: 44px;
}

.ctfg-footer-subscribe-input {
    flex: 1;
    border: none;
    padding: 0 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: #152237;
    background: transparent;
    outline: none;
}

.ctfg-footer-subscribe-input::placeholder {
    color: #9998b3;
}

.ctfg-footer-subscribe-btn {
    background: #574FD9;
    color: #ffffff;
    border: none;
    padding: 0 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.ctfg-footer-subscribe-btn:hover {
    background: #1F1A73;
}

.ctfg-footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ctfg-footer-social a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #19191E !important;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    font-size: 16px;
    text-decoration: none !important;
}

.ctfg-footer-social a:hover {
    color: #574FD9 !important;
    background: rgba(87, 79, 217, 0.08);
}

/* ---- Main footer nav ---- */
.ctfg-footer {
    background: linear-gradient(135deg, #ffffff 0%, #e0f7ef 40%, #b2e8d4 70%, #7edcb5 100%);
    padding: 0 0 0;
}

.ctfg-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-top: 40px;
}

.ctfg-footer-logo-col {
    display: flex;
    align-items: flex-start;
}

.ctfg-footer-logo {
    height: 80px;
    width: auto;
}

.ctfg-footer-col-title {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 13px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.06em;
    margin: 0 0 16px 0;
}

.ctfg-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ctfg-footer-col ul li {
    margin-bottom: 8px;
}

.ctfg-footer-col ul li a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #152237 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.ctfg-footer-col ul li a:hover {
    color: #574FD9 !important;
}

/* ---- Bottom credits bar ---- */
.ctfg-footer-bottom {
    margin-top: 48px;
    padding: 32px 0;
    border-top: 1px solid #d0e8dd;
}

.ctfg-footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.ctfg-footer-credit h5 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #000000;
    margin: 0 0 8px 0;
}

.ctfg-footer-credit p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    color: #4d4d4a;
    line-height: 1.5;
    margin: 0 0 4px 0;
}

.ctfg-footer-cc {
    height: 28px;
    width: auto;
    margin-bottom: 8px;
}

.ctfg-footer-superbloom {
    height: 60px;
    width: auto;
}

/* Footer responsive */
@media (max-width: 900px) {
    .ctfg-footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

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

    .ctfg-footer-bottom-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .ctfg-footer-subscribe-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 0 16px;
    }

    .ctfg-footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 16px;
    }

    .ctfg-footer-bottom-inner {
        padding: 0 16px;
    }
}

/* Hide old copyrights bar */
.copyrights {
    display: none !important;
}

/* --------------------------------------------------------------------------
   9. CATEGORY PAGE
   -------------------------------------------------------------------------- */

/* Hero */
.ctfg-category-hero {
    background: linear-gradient(135deg, #ffffff 0%, #e0f7ef 40%, #b2e8d4 70%, #7edcb5 100%) !important;
    padding: 48px 32px 40px !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.ctfg-category-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.ctfg-category-breadcrumb {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 13px !important;
    color: #6b6b80 !important;
    margin-bottom: 16px !important;
    text-align: center !important;
}

.ctfg-category-breadcrumb a {
    color: #6b6b80 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.ctfg-category-breadcrumb a:hover {
    color: #574FD9 !important;
}

.ctfg-category-breadcrumb span {
    color: #152237 !important;
    font-weight: 500;
}

h1.ctfg-category-title {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 2.6rem !important;
    font-weight: 700 !important;
    font-style: italic !important;
    color: #152237 !important;
    line-height: 1.15 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    text-align: center !important;
    border: none !important;
}

.ctfg-category-desc {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 15px !important;
    color: #4d4d4a !important;
    line-height: 1.65 !important;
    text-align: center !important;
}

.ctfg-category-desc p {
    margin: 0 0 12px 0 !important;
}

.ctfg-category-desc a {
    color: #574FD9 !important;
}

.ctfg-category-desc strong {
    color: #152237 !important;
}

/* Category page container */
.ctfg-category-page {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 32px 40px !important;
}

/* Results bar */
.ctfg-category-results-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #e8e8ef;
    margin-bottom: 0;
}

.ctfg-category-results-count {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: #6b6b80;
}

.ctfg-category-results-count strong {
    color: #152237;
}

/* Subcategory tabs */
.ctfg-category-tabs {
    display: flex !important;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8ef;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: wrap;
}

.ctfg-category-tabs::-webkit-scrollbar {
    display: none;
}

.ctfg-category-tab {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #574FD9 !important;
    text-decoration: none !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
    display: inline-block !important;
}

.ctfg-category-tab:hover {
    background: rgba(87, 79, 217, 0.08) !important;
}

.ctfg-category-tab.active {
    background: #574FD9 !important;
    color: #ffffff !important;
}

/* Card grid - 3 column */
.ctfg-card-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin-bottom: 32px !important;
}

/* Enhanced card meta */
.ctfg-card-enhanced {
    display: flex !important;
    flex-direction: column !important;
}

.ctfg-card-enhanced .ctfg-card-img {
    height: 220px !important;
}

.ctfg-card-url-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 0;
    gap: 8px;
}

.ctfg-card-url {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    color: #574FD9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.ctfg-card-url i {
    margin-right: 4px;
    font-size: 10px;
}

.ctfg-card-status-icons {
    display: flex;
    gap: 6px;
    font-size: 13px;
    color: #9998b3;
}

.ctfg-card-meta-enhanced {
    padding: 0 16px 16px;
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}

.ctfg-card-meta-row {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    color: #6b6b80;
    line-height: 1.4;
}

.ctfg-card-meta-row i {
    width: 14px;
    margin-top: 2px;
    color: #9998b3;
    flex-shrink: 0;
    text-align: center;
    font-size: 11px;
}

.ctfg-card-meta-links {
    color: #574FD9;
}

/* Pagination wrapper */
.ctfg-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

/* Category responsive */
@media (max-width: 992px) {
    .ctfg-card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .ctfg-category-hero {
        padding: 32px 16px 28px !important;
    }

    h1.ctfg-category-title {
        font-size: 1.8rem !important;
    }

    .ctfg-category-page {
        padding: 0 16px 32px !important;
    }

    .ctfg-card-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --------------------------------------------------------------------------
   10. PROFILE PAGE
   -------------------------------------------------------------------------- */

.ctfg-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px 40px;
}

/* Status banner */
.ctfg-profile-banner {
    background: #fff3cd;
    color: #664d03;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    text-align: center;
    margin-bottom: 24px;
    margin-top: 20px;
}

.ctfg-profile-banner a {
    color: #574FD9 !important;
    font-weight: 600;
    margin-left: 6px;
}

/* Two-column grid */
.ctfg-profile-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    margin-top: 24px;
}

/* Left column */
.ctfg-profile-url {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    color: #6b6b80;
    margin-bottom: 8px;
}

.ctfg-profile-url i {
    margin-right: 6px;
    color: #9998b3;
}

.ctfg-profile-url a {
    color: #6b6b80 !important;
    text-decoration: none !important;
}

.ctfg-profile-url a:hover {
    color: #574FD9 !important;
}

.ctfg-profile-name {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 2.4rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.15;
    margin: 0 0 16px 0;
}

.ctfg-profile-claimed {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #01B583;
    vertical-align: middle;
    margin-left: 8px;
}

.ctfg-profile-intro {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    color: #4d4d4a;
    line-height: 1.6;
    margin-bottom: 24px;
}

.ctfg-profile-intro p {
    margin: 0;
}

/* Meta info items */
.ctfg-profile-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.ctfg-profile-meta-item {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: #152237;
}

.ctfg-profile-meta-item i {
    width: 18px;
    color: #9998b3;
    margin-right: 8px;
    text-align: center;
}

/* Action buttons */
.ctfg-profile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ctfg-profile-visit-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 28px;
    background: #574FD9;
    color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    border-radius: 24px;
    text-decoration: none !important;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
}

.ctfg-profile-visit-btn:hover {
    background: #1F1A73;
}

.ctfg-profile-social-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ctfg-profile-social-icons a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #19191E !important;
    font-size: 16px;
    text-decoration: none !important;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.ctfg-profile-social-icons a:hover {
    color: #574FD9 !important;
    background: rgba(87, 79, 217, 0.08);
}

.ctfg-profile-claim-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 24px;
    background: transparent;
    color: #574FD9 !important;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    border: 2px solid #574FD9;
    border-radius: 24px;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.ctfg-profile-claim-btn:hover {
    background: #574FD9;
    color: #ffffff !important;
}

/* Report */
.ctfg-profile-report {
    margin-bottom: 24px;
}

.ctfg-profile-report a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    color: #9998b3 !important;
    text-decoration: none !important;
    border: 1px solid #e0dff5;
    padding: 4px 12px;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.ctfg-profile-report a:hover {
    color: #574FD9 !important;
    border-color: #574FD9;
}

/* Description */
.ctfg-profile-description {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    color: #152237;
    line-height: 1.7;
    margin-bottom: 28px;
}

.ctfg-profile-description a {
    color: #574FD9 !important;
    text-decoration: underline !important;
}

.ctfg-profile-description p {
    margin-bottom: 12px;
}

/* Sections (founders, parent) */
.ctfg-profile-section {
    margin-bottom: 20px;
}

.ctfg-profile-section h4 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 13px;
    font-weight: 400;
    color: #6b6b80;
    margin: 0 0 4px 0;
}

.ctfg-profile-section p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    color: #152237;
    margin: 0;
}

.ctfg-profile-section a {
    color: #574FD9 !important;
    text-decoration: underline !important;
}

/* Resource links bar */
.ctfg-profile-links-bar {
    display: flex;
    gap: 0;
    border-top: 1px solid #e8e8ef;
    border-bottom: 1px solid #e8e8ef;
    margin: 24px 0;
    padding: 0;
}

.ctfg-profile-links-bar a {
    flex: 1;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: #152237 !important;
    text-decoration: none !important;
    padding: 12px 8px;
    border-right: 1px solid #e8e8ef;
    transition: color 0.2s ease;
}

.ctfg-profile-links-bar a:last-child {
    border-right: none;
}

.ctfg-profile-links-bar a:hover {
    color: #574FD9 !important;
}

/* Contact form */
.ctfg-profile-contact {
    margin-top: 24px;
    padding: 20px;
    background: #f7f7fb;
    border-radius: 12px;
}

.ctfg-profile-contact h4 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 15px;
    font-weight: 600;
    color: #152237;
    margin: 0 0 12px 0;
}

.ctfg-profile-contact-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e0dff5;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: #152237;
    background: #ffffff;
    outline: none;
    margin-bottom: 10px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.ctfg-profile-contact-input:focus {
    border-color: #574FD9;
}

/* Embed */
.ctfg-profile-embed {
    margin-top: 24px;
    max-height: 500px;
    overflow-y: auto;
    border-radius: 10px;
}

/* ---- Right column ---- */
.ctfg-profile-cover {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ctfg-profile-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.ctfg-profile-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.ctfg-profile-gallery a {
    border-radius: 8px;
    overflow: hidden;
}

.ctfg-profile-gallery img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.ctfg-profile-gallery img:hover {
    transform: scale(1.05);
}

/* Metadata table */
.ctfg-profile-details {
    margin-bottom: 28px;
}

.ctfg-profile-detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f5;
    gap: 12px;
}

.ctfg-profile-detail-row:last-child {
    border-bottom: none;
}

.ctfg-profile-detail-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    color: #6b6b80;
    min-width: 110px;
    flex-shrink: 0;
}

.ctfg-profile-detail-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: #152237;
}

.ctfg-profile-detail-value a {
    color: #574FD9 !important;
    text-decoration: underline !important;
}

/* Sidebar sections */
.ctfg-profile-sidebar-section {
    margin-bottom: 24px;
}

.ctfg-profile-sidebar-section h4 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 14px;
    font-weight: 400;
    color: #6b6b80;
    margin: 0 0 8px 0;
}

.ctfg-profile-sidebar-section ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.ctfg-profile-sidebar-section ul li {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: #152237;
    margin-bottom: 6px;
    line-height: 1.5;
}

.ctfg-profile-sidebar-section ul li a {
    color: #574FD9 !important;
    text-decoration: underline !important;
}

/* Sidebar meta */
.ctfg-profile-sidebar-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e8e8ef;
}

.ctfg-profile-sidebar-meta span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    color: #9998b3;
}

/* Profile responsive */
@media (max-width: 900px) {
    .ctfg-profile-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ctfg-profile-right {
        order: -1;
    }

    .ctfg-profile-name {
        font-size: 1.8rem;
    }

    .ctfg-profile {
        padding: 0 16px 32px;
    }
}

@media (max-width: 640px) {
    .ctfg-profile-name {
        font-size: 1.5rem;
    }

    .ctfg-profile-links-bar {
        flex-wrap: wrap;
    }

    .ctfg-profile-links-bar a {
        flex: none;
        width: 50%;
        border-bottom: 1px solid #e8e8ef;
    }
}

/* --------------------------------------------------------------------------
   10. PAGINATION
   -------------------------------------------------------------------------- */

.pagination .page-item.active .page-link,
.pagination .page-link:hover {
    background-color: #574FD9;
    border-color: #574FD9;
}

.pagination .page-link {
    color: #574FD9;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
}

/* --------------------------------------------------------------------------
   10. CHECKBOXES, FORM ELEMENTS
   -------------------------------------------------------------------------- */

.checkboxes input[type="checkbox"]:checked+label:before {
    background-color: #574FD9;
    border-color: #574FD9;
}

.chosen-container .chosen-results li.highlighted {
    background-color: #574FD9;
}

/* --------------------------------------------------------------------------
   11. SELECTION & SCROLLBAR
   -------------------------------------------------------------------------- */

::selection {
    background-color: rgba(87, 79, 217, 0.2);
    color: #19191E;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f0ff;
}

::-webkit-scrollbar-thumb {
    background: #574FD9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1F1A73;
}

/* --------------------------------------------------------------------------
   12. BACK TO TOP
   -------------------------------------------------------------------------- */

#backtotop a {
    background-color: #574FD9;
    border-radius: 6px;
}

#backtotop a:hover {
    background-color: #1F1A73;
}

/* --------------------------------------------------------------------------
   13. INFO BOXES & MISCELLANEOUS
   -------------------------------------------------------------------------- */

.info-box {
    border-top-color: #574FD9;
}

mark.color {
    background-color: #574FD9;
}

.category-small-box:hover {
    background-color: #574FD9;
}

.category-small-box i {
    color: #574FD9;
}

/* Loading overlay tint */
.loadingoverlay {
    background-color: rgba(25, 25, 30, 0.7) !important;
}