/* =========================================================
   CareerInTrades UI Upgrade V2 - Homepage Data Platform
   System: Grid + Card + SEO Layout + Responsive
   Version: 2.1 FINAL
========================================================= */


/* =========================
   GLOBAL CONTAINER
========================= */
.cit-container{
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.cit-section{
    padding: 64px 0;
    border-top: 1px solid rgba(226, 232, 240, 0.75);
}

.cit-home-v2,
.cit-section-muted{
    background: #f8fafc;
}

.cit-section-white{
    background: #ffffff;
}

.cit-section h2{
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #0f172a;
    line-height: 1.3;
}

.cit-section-intro{
    max-width: 760px;
    margin: 0 0 20px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================
   HERO SECTION
========================= */
.cit-hero{
    background: linear-gradient(135deg, #0f2a5f, #1d4ed8);
    color: #fff;
    padding: 72px 0;
}

.cit-hero-layout{
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
    align-items: center;
    gap: 56px;
}

.cit-hero-eyebrow{
    margin: 0 0 12px;
    color: #bfdbfe;
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cit-hero h1{
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    color: #ffffff;
}

.cit-hero-content > p:not(.cit-hero-eyebrow){
    font-size: 18px;
    opacity: 0.9;
    margin-top: 10px;
    max-width: 800px;
    color: #dbeafe;
}

.cit-trust-card{
    padding: 26px;
    border: 1px solid rgba(191, 219, 254, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    color: #0f172a;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.cit-trust-label{
    margin: 0 0 18px !important;
    color: #1e3a8a !important;
    font-size: 14px !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cit-trust-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #e2e8f0;
}

.cit-trust-grid div{
    min-height: 104px;
    padding: 18px;
    background: #ffffff;
}

.cit-trust-grid strong,
.cit-trust-grid span{
    display: block;
}

.cit-trust-grid strong{
    color: #2563eb;
    font-size: 28px;
    line-height: 1.1;
}

.cit-trust-grid span{
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
}

.cit-trust-sources{
    margin: 16px 0 0 !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

.cit-hero-buttons{
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cit-btn{
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.2s ease;
}

.cit-btn.primary{
    background: #ffffff;
    color: #1d4ed8;
}

.cit-btn.secondary{
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
}

.cit-btn:hover{
    transform: translateY(-1px);
}


/* =========================
   GRID SYSTEM
========================= */
.cit-grid-4{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

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

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


/* =========================
   CARD SYSTEM
========================= */
.cit-card{
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 22px;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.2s ease;
    display: block;
}

.cit-card:hover{
    transform: translateY(-2px);
    border-color: #c7d2fe;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.cit-card h3{
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.cit-card p{
    font-size: 14px;
    color: #64748b;
    margin-top: 6px;
}

.cit-career-data-card{
    min-height: 100%;
}

.cit-card-metrics{
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.cit-card-metrics div{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.cit-card-metrics dt{
    color: #64748b;
    font-size: 12px;
}

.cit-card-metrics dd{
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.cit-card-cta{
    display: block;
    margin-top: 18px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
}


/* =========================
   HOME STATE DIRECTORY
========================= */
.cit-home-state-grid{
    margin-top: 0;
}

.cit-home-state-actions{
    margin-top: 24px;
    text-align: center;
}

.cit-directory-btn{
    display: inline-block;
    padding: 11px 18px;
    border-radius: 8px;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cit-directory-btn:hover,
.cit-directory-btn:focus{
    background: #1e40af;
    color: #ffffff;
    transform: translateY(-1px);
}


/* =========================
   FLOW SECTION
========================= */
.cit-flow .cit-card{
    background: #f9fafb;
}


/* =========================
   AUTHORITY SECTION
========================= */
.cit-authority{
    background: #f3f4f6;
    text-align: center;
    padding: 36px 0;
}

.cit-authority p{
    max-width: 800px;
    margin: 0 auto;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
}


.cit-section h2{
    margin-bottom: 12px;
}

.cit-section h2 + .cit-grid-4,
.cit-section h2 + .cit-grid-3,
.cit-section h2 + .cit-grid-2{
    margin-top: 10px;
}


/* =========================
   RESPONSIVE DESIGN
========================= */

/* Tablet */
@media (max-width: 1024px){

    .cit-hero-layout{
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .cit-grid-4{
        grid-template-columns: repeat(2, 1fr);
    }

    .cit-grid-3{
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Mobile */
@media (max-width: 768px){

    .cit-section{
        padding: 26px 0;
    }

    .cit-hero{
        padding: 55px 0 35px;
    }

    .cit-hero h1{
        font-size: 32px;
    }

    .cit-grid-4,
    .cit-grid-3,
    .cit-grid-2{
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cit-card{
        padding: 12px;
    }

    .cit-section h2{
        font-size: 22px;
    }
}


/* Small Mobile */
@media (max-width: 480px){

    .cit-hero h1{
        font-size: 26px;
    }

    .cit-trust-grid{
        grid-template-columns: 1fr;
    }

    .cit-trust-grid div{
        min-height: auto;
    }
}
