/* ============================================
   SOHOC CUSTOM HOMEPAGE - Flatsome Child
   Prefix: .sohoc-* (không ảnh hưởng Flatsome)
   ============================================ */

.sohoc-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
}

.sohoc-page * {
    box-sizing: border-box;
}

/* ============ HERO BANNER ============ */
.sohoc-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #1e40af 100%);
    color: #ffffff;
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.sohoc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(96, 165, 250, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(147, 197, 253, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.sohoc-hero .container {
    position: relative;
    z-index: 1;
}

.sohoc-hero-content {
    padding: 20px 0;
}

.sohoc-hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff !important;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.sohoc-hero-sub {
    font-size: 17px;
    color: #cbd5e1;
    margin: 0 0 32px;
}

.sohoc-hero-buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.sohoc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    cursor: pointer;
    line-height: 1;
}

.sohoc-btn-light {
    background: #ffffff;
    color: #1e40af !important;
}

.sohoc-btn-light:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.sohoc-btn-outline {
    background: transparent;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4);
}

.sohoc-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.sohoc-hero-stats {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
}

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

.sohoc-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 4px;
}

.sohoc-stat span {
    font-size: 13px;
    color: #cbd5e1;
}

.sohoc-hero-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ============ SECTION COMMON ============ */
.sohoc-section {
    padding: 50px 0;
}

.sohoc-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 24px;
}

.sohoc-section-title-plain {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.sohoc-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.sohoc-view-all {
    color: #2563eb !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: color 0.2s;
}

.sohoc-view-all:hover {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
}

.sohoc-empty {
    text-align: center;
    color: #94a3b8;
    padding: 30px;
    background: #f8fafc;
    border-radius: 8px;
}

/* ============ 3 FEATURE CARDS ============ */
.sohoc-main-cards {
    margin-top: -40px;
    position: relative;
    z-index: 2;
    padding-top: 0;
    padding-bottom: 40px;
}

.sohoc-feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.sohoc-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.sohoc-card-purple { background: linear-gradient(160deg, #f5f3ff 0%, #ffffff 100%); }
.sohoc-card-blue   { background: linear-gradient(160deg, #eff6ff 0%, #ffffff 100%); }
.sohoc-card-green  { background: linear-gradient(160deg, #ecfdf5 0%, #ffffff 100%); }

.sohoc-feature-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.sohoc-feature-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sohoc-feature-head h3 {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 700;
    color: #1e293b;
}

.sohoc-feature-sub {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.sohoc-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.sohoc-feature-list li {
    padding: 0;
    font-size: 14px;
}

.sohoc-feature-list li a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 6px;
    color: #475569 !important;
    text-decoration: none !important;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sohoc-feature-list li a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #1e293b !important;
    transform: translateX(4px);
}

.sohoc-feature-list li a svg {
    flex-shrink: 0;
    margin-top: 2px;
    transition: transform 0.2s ease;
}

.sohoc-feature-list li a:hover svg {
    transform: scale(1.15);
}

.sohoc-feature-list li a span {
    flex: 1;
    line-height: 1.5;
}

.sohoc-feature-list small {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.sohoc-feature-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: opacity 0.2s, transform 0.2s;
    align-self: flex-start;
}

.sohoc-feature-btn:hover {
    opacity: 0.9;
    transform: translateX(2px);
}

/* ============ CÔNG CỤ NỔI BẬT ============ */
.sohoc-tools-row {
    margin-top: 10px;
}

.sohoc-tool-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 14px;
    text-align: center;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sohoc-tool-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
    transform: translateY(-3px);
}

.sohoc-tool-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.sohoc-tool-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 14px;
    line-height: 1.4;
    flex: 1;
}

.sohoc-tool-btn {
    display: inline-block;
    padding: 7px 18px;
    border: 1px solid #2563eb;
    color: #2563eb !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
}

.sohoc-tool-btn:hover {
    background: #2563eb;
    color: #ffffff !important;
}

/* ============ TEST CARDS ============ */
.sohoc-test-card,
.sohoc-course-card,
.sohoc-article-card {
    display: block;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none !important;
    color: inherit !important;
    height: 100%;
}

.sohoc-test-card:hover,
.sohoc-course-card:hover,
.sohoc-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.sohoc-test-thumb,
.sohoc-course-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}

.sohoc-test-thumb img,
.sohoc-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sohoc-no-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.sohoc-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.sohoc-badge-hot        { background: #ef4444; }
.sohoc-badge-new        { background: #f59e0b; }
.sohoc-badge-bestseller { background: #dc2626; }

.sohoc-test-body,
.sohoc-course-body {
    padding: 16px;
}

.sohoc-test-body h4,
.sohoc-course-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sohoc-test-body p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sohoc-test-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #94a3b8;
    flex-wrap: wrap;
}

.sohoc-test-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============ ARTICLE CARDS ============ */
.sohoc-article-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.sohoc-article-thumb {
    flex-shrink: 0;
    width: 110px;
    overflow: hidden;
    background: #f1f5f9;
}

.sohoc-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sohoc-article-body {
    padding: 14px 14px 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}

.sohoc-article-body h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sohoc-article-date {
    font-size: 12px;
    color: #94a3b8;
}

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

/* Tablet */
@media (max-width: 991px) {
    .sohoc-hero-title { font-size: 34px; }
    .sohoc-hero { padding: 50px 0 70px; }
    .sohoc-hero-stats { gap: 24px; }
    .sohoc-section { padding: 40px 0; }
}

/* Mobile */
@media (max-width: 767px) {
    .sohoc-hero { padding: 40px 0 50px; }
    .sohoc-hero-title { font-size: 28px; }
    .sohoc-hero-sub { font-size: 15px; margin-bottom: 24px; }

    .sohoc-hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .sohoc-btn { width: 100%; }

    .sohoc-hero-stats {
        gap: 18px;
        justify-content: space-between;
    }
    .sohoc-stat strong { font-size: 18px; }
    .sohoc-stat span { font-size: 11px; }
    .sohoc-stat svg { width: 22px; height: 22px; }

    .sohoc-main-cards { margin-top: -20px; }
    .sohoc-feature-card { padding: 22px; }
    .sohoc-feature-head h3 { font-size: 17px; }

    .sohoc-section-title,
    .sohoc-section-title-plain { font-size: 19px; }

    .sohoc-section { padding: 30px 0; }

    .sohoc-tool-card { padding: 16px 10px; }
    .sohoc-tool-icon { width: 48px; height: 48px; }
    .sohoc-tool-icon svg { width: 26px; height: 26px; }
    .sohoc-tool-title { font-size: 13px; }

    .sohoc-article-thumb { width: 90px; }
    .sohoc-article-body { padding: 12px; }
    .sohoc-article-body h4 { font-size: 13px; }
}

/* Mobile nhỏ */
@media (max-width: 479px) {
    .sohoc-hero-title { font-size: 24px; }
    .sohoc-hero-stats { gap: 12px; }
    .sohoc-stat { gap: 8px; }
}
