/* ===== category_top v0.1 ===== */

/* Hero */
.ct-hero {
    background: linear-gradient(135deg, #1a2a3a 0%, #2c4157 100%);
    padding: 50px 0 40px;
    text-align: center;
}
.ct-hero-title {
    font-size: 2em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}
.ct-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

/* Group Nav (sticky) */
.ct-group-nav-wrap {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}
.ct-group-nav {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0;
}
.ct-group-nav::-webkit-scrollbar {
    display: none;
}
.ct-group-nav-item {
    flex-shrink: 0;
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}
.ct-group-nav-item:hover,
.ct-group-nav-item.active {
    color: #1a2a3a;
    border-bottom-color: #ff3008;
    text-decoration: none;
}

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

/* Group */
.ct-group {
    margin-bottom: 40px;
}
.ct-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a2a3a;
}
.ct-group-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a2a3a;
    margin: 0;
}
.ct-group-title a {
    color: inherit;
    text-decoration: none;
}
.ct-group-title a:hover {
    color: #ff3008;
}
.ct-group-more {
    font-size: 0.85rem;
    color: #ff3008;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.ct-group-more:hover {
    text-decoration: underline;
    color: #cc2606;
}

/* Cards Grid */
.ct-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Card */
.ct-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ct-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}
.ct-card-img {
    position: relative;
    padding-top: 56%;
    overflow: hidden;
    background: #eee;
}
.ct-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.ct-card:hover .ct-card-img img {
    transform: scale(1.05);
}
.ct-card-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ct-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px;
    line-height: 1.5;
}
.ct-card-counts {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.ct-card-count {
    font-size: 0.78rem;
    color: #888;
}
.ct-card-count i {
    margin-right: 3px;
    font-size: 0.72rem;
    color: #aaa;
}

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

/* Skyscraper Sticky Button */
.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;
}

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

@media (max-width: 767px) {
    .ct-hero {
        padding: 35px 16px 30px;
    }
    .ct-hero-title {
        font-size: 1.5em;
    }
    .ct-group-nav-item {
        padding: 12px 14px;
        font-size: 0.82rem;
    }
    .ct-main {
        padding: 24px 0 10px;
    }
    .ct-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .ct-card-body {
        padding: 10px 12px;
    }
    .ct-card-title {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    .ct-card-counts {
        gap: 8px;
    }
    .ct-card-count {
        font-size: 0.72rem;
    }
    .ct-group-header {
        margin-bottom: 14px;
    }
    .ct-group-title {
        font-size: 1.15rem;
    }
    .ct-group {
        margin-bottom: 30px;
    }
    .ct-form-section {
        padding: 36px 0 30px;
    }
    .ct-form-title {
        font-size: 1.3rem;
    }
    .sticky-cta-btn {
        display: none;
    }
}
