/* Journal Categories Section Styles */
.journal-categories-section {
    padding: 80px 0;
    background: var(--ztc-bg-bg-1, #ffffff);
    position: relative;
}

/* Section Header */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    color: var(--ztc-text-text-2, #1a1a1a);
    font-family: var(--ztc-family-font1, 'Inter');
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--ztc-bg-bg-2, #007bff) 0%, #0056b3 100%);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--ztc-text-text-3, #666666);
    font-family: var(--ztc-family-font1, 'Inter');
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Card */
.category-card {
    background: var(--ztc-bg-bg-1, #ffffff);
    border-radius: 20px;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.category-card:hover {
    transform: translateY(-12px);
    box-shadow: 0px 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--ztc-bg-bg-2, #007bff);
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 86, 179, 0.08) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

/* Category Icon */
.category-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 24px;
}

.category-icon i {
    font-size: 48px;
    color: var(--ztc-bg-bg-2, #007bff);
    z-index: 2;
    position: relative;
    transition: all 0.4s ease;
}

.icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.category-card:hover .category-icon i {
    color: #0056b3;
    transform: scale(1.1);
}

.category-card:hover .icon-bg {
    background: rgba(0, 123, 255, 0.2);
    transform: translate(-50%, -50%) scale(1.2);
}

/* Category Content */
.category-content {
    padding: 0 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-title {
    margin-bottom: 16px;
}

.category-title a {
    color: var(--ztc-text-text-2, #1a1a1a);
    font-family: var(--ztc-family-font1, 'Inter');
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.category-title a:hover {
    color: var(--ztc-bg-bg-2, #007bff);
}

.category-description {
    color: var(--ztc-text-text-3, #666666);
    font-family: var(--ztc-family-font1, 'Inter');
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}

/* Category Stats */
.category-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 16px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    color: var(--ztc-bg-bg-2, #007bff);
    font-family: var(--ztc-family-font1, 'Inter');
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    color: var(--ztc-text-text-3, #666666);
    font-family: var(--ztc-family-font1, 'Inter');
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category Action */
.category-action {
    margin-top: auto;
}

.explore-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    color: var(--ztc-bg-bg-2, #007bff);
    border: 2px solid var(--ztc-bg-bg-2, #007bff);
    border-radius: 12px;
    text-decoration: none;
    font-family: var(--ztc-family-font1, 'Inter');
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.explore-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--ztc-bg-bg-2, #007bff);
    transition: all 0.3s ease;
    z-index: 1;
}

.explore-btn span,
.explore-btn i {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.explore-btn:hover::before {
    left: 0;
}

.explore-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.3);
}

.explore-btn i {
    transition: all 0.3s ease;
}

.explore-btn:hover i {
    transform: translateX(4px);
}

/* Call to Action */
.categories-cta {
    margin-top: 80px;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

.cta-title {
    color: var(--ztc-text-text-2, #1a1a1a);
    font-family: var(--ztc-family-font1, 'Inter');
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.cta-description {
    color: var(--ztc-text-text-3, #666666);
    font-family: var(--ztc-family-font1, 'Inter');
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--ztc-bg-bg-2, #007bff);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-family: var(--ztc-family-font1, 'Inter');
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.2);
}

.cta-btn:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.3);
}

.cta-btn i {
    transition: all 0.3s ease;
}

.cta-btn:hover i {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 991px) {
    .journal-categories-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 36px;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .category-content {
        padding: 0 20px 20px;
    }

    .category-title a {
        font-size: 20px;
    }

    .category-icon {
        height: 100px;
    }

    .category-icon i {
        font-size: 40px;
    }

    .categories-cta {
        margin-top: 60px;
        padding: 40px 30px;
    }

    .cta-title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .journal-categories-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .category-content {
        padding: 0 16px 16px;
    }

    .category-title a {
        font-size: 18px;
    }

    .category-description {
        font-size: 14px;
    }

    .category-icon {
        height: 80px;
    }

    .category-icon i {
        font-size: 32px;
    }

    .icon-bg {
        width: 60px;
        height: 60px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    .explore-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .categories-cta {
        margin-top: 40px;
        padding: 30px 20px;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-description {
        font-size: 15px;
    }

    .cta-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .category-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .stat-number {
        margin-bottom: 0;
        margin-right: 12px;
    }

    .categories-cta {
        padding: 24px 16px;
    }
}

/* Utility Classes */
.mb-40 {
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .mb-40 {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .mb-40 {
        margin-bottom: 24px;
    }
}

/* Animation Enhancements */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.category-card {
    animation: bounceIn 0.6s ease-out;
}

/* Focus States for Accessibility */
.explore-btn:focus,
.cta-btn:focus,
.category-title a:focus {
    outline: 2px solid var(--ztc-bg-bg-2, #007bff);
    outline-offset: 2px;
}

/* Special Hover Effects */
.category-card:hover .stat-number {
    color: #0056b3;
    transform: scale(1.1);
}

.category-card:hover .category-description {
    color: var(--ztc-text-text-2, #1a1a1a);
}