/* =========================================================
   CareerInTrades Home V2 FULL CSS
   System: Grid + Card + SEO Layout + Responsive
   Version: 2.1 FINAL
========================================================= */


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

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

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


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

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

.cit-hero p{
    font-size: 18px;
    opacity: 0.9;
    margin-top: 10px;
    max-width: 800px;
}

.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: 12px;
}

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

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


/* =========================
   CARD SYSTEM
========================= */
.cit-card{
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    text-decoration: none;
    color: #111827;
    transition: all 0.2s ease;
    display: block;
}

.cit-card:hover{
    transform: translateY(-2px);
    border-color: #c7d2fe;
    box-shadow: 0 6px 18px 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: 13px;
    color: #6b7280;
    margin-top: 6px;
}


/* =========================
   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;
}


/* =========================
   SPACING OPTIMIZATION (CORE FIX)
========================= */
.cit-section{
    padding: 15px 0;
}

.cit-hero{
    padding: 30px 0 30px;
}

.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-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: 30px;
    }

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

    .cit-card{
        padding: 12px;
    }

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


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

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

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