/* ===== category_layer ver1 ===== */

/* Hero */
.cl-hero {
    background: linear-gradient(135deg, #182b38 0%, #45546c 100%);
    padding: 50px 0 40px;
    text-align: center;
}
.cl-hero-title {
    font-size: 2em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}
.cl-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    margin: 0 0 24px;
}
.cl-hero-stats {
    display: inline-flex;
    gap: 32px;
    padding: 12px 32px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
}
.cl-hero-stat {
    text-align: center;
}
.cl-hero-stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fab549;
    line-height: 1;
}
.cl-hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
    display: block;
}

/* Main */
.cl-main {
    background: #f5f7fa;
    padding: 40px 0 20px;
}

/* Cards Grid */
.cl-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Card */
.cl-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}
.cl-card-img {
    position: relative;
    padding-top: 56%;
    overflow: hidden;
    background: #eee;
}
.cl-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.cl-card:hover .cl-card-img img {
    transform: scale(1.05);
}
.cl-card-body {
    padding: 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.cl-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #182b38;
    margin: 0 0 8px;
    line-height: 1.5;
}
.cl-card-counts {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.cl-card-count {
    font-size: 0.82rem;
    color: #888;
}
.cl-card-count i {
    margin-right: 3px;
    font-size: 0.75rem;
    color: #aaa;
}
.cl-card-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 14px;
    transition: color 0.2s, transform 0.2s;
}
.cl-card:hover .cl-card-arrow {
    color: #fab549;
    transform: translateY(-50%) translateX(3px);
}

/* Other Ways */
.cl-other {
    background: #fff;
    padding: 40px 0;
    border-top: 1px solid #e8e8e8;
}
.cl-other-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #182b38;
    text-align: center;
    margin: 0 0 24px;
}
.cl-other-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.cl-other-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #45546c;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
}
.cl-other-link:hover {
    background: #182b38;
    color: #fff;
    border-color: #182b38;
    text-decoration: none;
}
.cl-other-link i {
    font-size: 16px;
}

/* Form Section */
.cl-form-section {
    padding: 50px 0 40px;
    background: #f0f2f5;
    scroll-margin-top: 80px;
}
.cl-form-header {
    text-align: center;
    margin-bottom: 30px;
}
.cl-form-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #182b38;
    margin: 0 0 10px;
}
.cl-form-sub {
    font-size: 1rem;
    color: #666;
    margin: 0;
}
.cl-form-wrap {
    max-width: 720px;
    margin: 0 auto;
}

/* Sticky CTA (same as category_top) */
.sticky-cta-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    text-decoration: none;
    padding: 1rem 0.75rem;
    border-radius: 8px 0 0 8px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    box-shadow: -2px 2px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
}
.sticky-cta-btn.visible {
    opacity: 1;
    pointer-events: auto;
}
.sticky-cta-btn:hover {
    color: #fff;
    text-decoration: none;
    padding-right: 1rem;
    box-shadow: -4px 2px 20px rgba(231,76,60,0.4);
}
.sticky-cta-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.sticky-cta-sub {
    font-size: 0.7rem;
    opacity: 0.9;
}
.sticky-cta-sub i {
    font-size: 0.6rem;
}

/* Breadcrumb adjustment */
.cl-main + .breadcrumb,
.cl-hero + .breadcrumb {
    margin: 0;
    padding: 0;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .cl-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .cl-hero {
        padding: 35px 16px 30px;
    }
    .cl-hero-title {
        font-size: 1.5em;
    }
    .cl-hero-stats {
        gap: 20px;
        padding: 10px 24px;
    }
    .cl-hero-stat-num {
        font-size: 1.4rem;
    }
    .cl-main {
        padding: 24px 0 10px;
    }
    .cl-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .cl-card {
        flex-direction: row;
    }
    .cl-card-img {
        width: 120px;
        min-width: 120px;
        padding-top: 0;
        height: auto;
    }
    .cl-card-body {
        padding: 12px 16px;
    }
    .cl-card-title {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }
    .cl-card-counts {
        gap: 8px;
    }
    .cl-card-count {
        font-size: 0.75rem;
    }
    .cl-other-links {
        flex-direction: column;
        align-items: center;
    }
    .cl-other-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    .cl-form-section {
        padding: 36px 0 30px;
    }
    .cl-form-title {
        font-size: 1.3rem;
    }
    .sticky-cta-btn {
        display: none;
    }
}
