/* --- Hero Section Start --- */
.hero-container {
    padding: 40px 30px 30px;
    width: 100%;
    background-color: #f8f8f8;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-section {
    max-width: min(85%, var(--section-max-width));
    width: 100%;
    margin: 0 auto;
    background-color: #1d1d1d;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 25vh;
    transition: max-width 0.4s ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.hero-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 6% 5%;
    z-index: 5;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    max-width: 80%;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
}

/* --- Hero Section End --- */


/* --- Nav Selection Start --- */
.category-selection {
    margin: 30px 0 0;
}

.category-selection-container {
    max-width: min(80%, var(--section-max-width));
    margin: 0 auto;
}

.tabs-nav {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 0;
    border-radius: 12px;
    overflow-x: auto;
    display: flex;
    gap: 0;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid transparent;
    text-decoration: none !important;
    flex: 1;
    justify-content: center;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(167, 28, 28, 0.1), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    color: var(--accent-color);
    background-color: rgba(167, 28, 28, 0.05);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent-color), #d64545);
    color: white;
    box-shadow: 0 4px 12px rgba(167, 28, 28, 0.8);
    border-bottom-color: var(--accent-color);
}

.tab-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(167, 28, 28, 0.4);
}

.tab-btn i {
    font-size: 13px;
    color: inherit;
}

.tabs-nav::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
    z-index: 1;
    display: none;
}

/* PC-Related Tabs */
#pc-related .category-selection-container {
    max-width: min(90%, var(--section-max-width));
}

.category-selection-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-items: center;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    background: #fff;
    text-decoration: none !important;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(105, 7, 197, 0.15),
        0 0 15px rgba(167, 28, 28, 0.2);
}

.category-btn.active {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 20px rgba(105, 7, 197, 0.15),
        0 0 15px rgba(167, 28, 28, 0.2);
    border-color: rgba(255, 0, 0, 0.3);
}

.category-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.category-btn:hover .category-icon {
    background: transparent;
    transform: scale(1.05);
}

.category-btn.active .category-icon {
    background: transparent;
    transform: scale(1.1);
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.category-btn:hover .category-icon img {
    transform: scale(1.05);
}

.category-btn.active .category-icon img {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.2);
}

.category-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.category-btn:hover .category-label {
    color: #222;
}

.category-btn.active .category-label {
    color: var(--accent-color, #6907c5);
    font-weight: 700;
}

/* --- Nav Selection End --- */


/* --- Global Responsive Start --- */
@media (max-width: 1400px) {
    .tab-btn {
        padding: 10px 12px;
        font-size: 12px;
    }

    .category-btn {
        gap: 12px;
    }

    .category-label {
        font-size: 12px;
    }

    .category-icon {
        width: 56px;
        height: 56px;
    }

    .category-icon img {
        width: auto;
    }

    .category-btn.active .category-icon img {
        transform: none;
    }
}

@media (max-width: 992px) {
    .tab-btn {
        padding: 8px 10px;
        font-size: 12px;
        gap: 10px;
    }

    .tab-btn i {
        font-size: 12px;
    }

    .category-selection-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .category-selection-grid .category-btn {
        flex: 0 1 calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
        padding: 12px;
    }

    .category-selection-grid .category-btn:nth-child(4),
    .category-selection-grid .category-btn:nth-child(5) {
        flex: 0 1 calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
    }
}

@media (max-width: 768px) {
    .category-selection-container {
        max-width: min(90%, var(--section-max-width));
    }

    .category-selection {
        margin: 20px 0 0;
    }

    .tabs-nav {
        border-radius: 12px;
    }

    .tab-btn {
        padding: 8px 10px;
        font-size: 11px;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .category-selection-container {
        max-width: min(95%, var(--section-max-width));
    }

    .tabs-nav {
        border-radius: 10px;
    }

    .tab-btn {
        padding: 8px;
        font-size: 10px;
        gap: 6px;
    }

    .tab-btn i {
        font-size: 9px;
    }

    #pc-related .category-selection-container {
        max-width: min(95%, var(--section-max-width));
    }

    .category-selection-grid {
        gap: 6px;
    }

    .category-selection-grid .category-btn {
        padding: 8px;
        gap: 6px;
        border-radius: 12px;
    }

    .category-btn.active {
        transform: none;
    }

    .category-icon {
        width: 42px;
        height: 42px;
    }

    .category-btn .category-icon img {
        border-radius: 8px;
    }

    .category-label {
        font-size: 8px;
    }
}

/* --- Global Responsive End --- */