/* ============================================
   PARENT CATEGORY PAGE STYLES (Prefix: rx-)
   Based on Apple B2B Design Plan
   ============================================ */

/* --- GLOBAL LAYOUT --- */
.rx-cat-page section {
    width: 100%;
    margin: 0;
    padding: 100px 0;
    position: relative;
    box-sizing: border-box;
}

.rx-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.rx-section-header {
    margin-bottom: 60px;
    text-align: center;
}

.rx-section-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.rx-section-subtitle {
    font-size: 1.25rem;
    color: #86868b;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
}

/* --- 1. HERO SECTION (Immersive) --- */
.rx-hero-fullscreen {
    height: 90vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    overflow: hidden;
    background: #000;
    color: #fff;
}

.rx-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.rx-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rx-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.rx-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    padding: 0 24px;
}

.rx-hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rx-hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: -0.01em;
    color: #f5f5f7;
    max-width: 800px;
    margin: 0 auto;
}

.rx-hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
    color: #fff;
    font-weight: 500;
    animation: rx-bounce 2s infinite;
}

.rx-scroll-text {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@keyframes rx-bounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 10px);
    }
}

/* --- 2. SYSTEMS OVERVIEW (Horizontal Scroll) --- */
.rx-section-systems {
    background: #fbfbfd;
}

/* Scroll Wrapper similar to Apple */
.rx-scroll-strip-container {
    width: 100%;
    overflow-x: auto;
    padding: 0 max(24px, calc((100vw - 1200px)/2));
    /* Align start with content */
    padding-bottom: 40px;
    /* Space for shadow */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.rx-scroll-strip-container::-webkit-scrollbar {
    display: none;
}

.rx-scroll-strip {
    display: flex;
    gap: 24px;
    width: max-content;
    padding-right: 15vw;
    /* End spacer */
}

/* Navigation Buttons (Optional, hidden on touch usually) */
.rx-nav-btn {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    z-index: 50;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    opacity: 0;
    /* JS can toggle this */
    pointer-events: none;
}

.rx-scroll-strip-container:hover .rx-nav-btn {
    opacity: 1;
    pointer-events: auto;
}

.rx-nav-prev {
    left: 40px;
}

.rx-nav-next {
    right: 40px;
}

/* Snap Card */
.rx-snap-card {
    scroll-snap-align: start;
    width: 400px;
    height: 500px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #f0f0f5;
    transition: transform 0.3s ease;
}

.rx-snap-card:hover {
    transform: translateY(-5px);
}

.rx-card-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.rx-card-visual {
    width: 100%;
    height: 100%;
    position: relative;
}

.rx-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.rx-snap-card:hover .rx-card-visual img {
    transform: scale(1.05);
}

.rx-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
    transition: opacity 0.3s;
}

.rx-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    color: #fff;
    z-index: 2;
}

.rx-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rx-card-cta {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 98px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s;
}

.rx-snap-card:hover .rx-card-cta {
    background: #fff;
    color: #000;
}

/* --- 3. CORE CAPABILITIES (Grid) --- */
.rx-section-capabilities {
    background: #fff;
}

.rx-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .rx-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .rx-grid-4 {
        grid-template-columns: 1fr;
    }
}

.rx-cap-card {
    background: #f5f5f7;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: left;
}

.rx-cap-icon {
    width: 48px;
    height: 48px;
    background: #1d1d1f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.rx-cap-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.rx-cap-desc {
    font-size: 1rem;
    color: #424245;
    line-height: 1.5;
}

/* --- 4. MANUFACTURING (Split) --- */
.rx-section-manufacturing {
    background: #1d1d1f;
    color: #fff;
    padding: 120px 0;
}

.rx-split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

@media (max-width: 900px) {
    .rx-split-layout {
        flex-direction: column-reverse;
    }
}

.rx-col-text,
.rx-col-media {
    flex: 1;
}

.rx-col-media img {
    border-radius: 20px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.rx-label-small {
    color: #C02C4A;
    /* Brand Red */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: block;
}

.rx-man-content h3 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
    color: #fff;
}

.rx-man-content p {
    font-size: 1.2rem;
    color: #a1a1a6;
    line-height: 1.6;
}

/* --- 5. SCENARIOS (Visual Grid) --- */
.rx-section-scenarios {
    background: #fff;
}

.rx-scenarios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 600px) {
    .rx-scenarios-grid {
        grid-template-columns: 1fr;
    }
}

.rx-scene-card {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.rx-scene-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.5s, transform 0.5s;
}

.rx-scene-card:hover img {
    opacity: 0.6;
    transform: scale(1.05);
}

.rx-scene-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    color: #fff;
}

.rx-scene-title {
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.rx-scene-desc {
    font-size: 1rem;
    opacity: 0.8;
}

/* --- 6. PERSONAS (Tailored For) --- */
.rx-section-personas {
    background: #f5f5f7;
}

.rx-personas-flex {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.rx-persona-item {
    flex: 1 1 300px;
    max-width: 350px;
    text-align: center;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.rx-persona-role {
    color: #C02C4A;
    font-size: 1.25rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.rx-persona-desc {
    color: #424245;
    font-size: 1rem;
}

/* --- 7. SUBCAT LINKS (List) --- */
.rx-section-subcat-grid {
    background: #fff;
    border-top: 1px solid #e5e5e5;
}

.rx-grid-header {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.5rem;
    color: #86868b;
}

.rx-subcat-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.rx-subcat-link-item {
    padding: 16px 32px;
    border: 1px solid #e5e5e5;
    border-radius: 98px;
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.rx-subcat-link-item:hover {
    background: #f5f5f7;
    border-color: #d2d2d7;
}

.rx-link-arrow {
    color: #C02C4A;
}

/* --- 8. CTA --- */
.rx-section-cta {
    background: linear-gradient(135deg, #1d1d1f 0%, #3a3a3c 100%);
    color: #fff;
    text-align: center;
    padding: 120px 20px;
}

.rx-cta-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 40px;
    color: #fff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.rx-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.rx-btn-primary,
.rx-btn-secondary {
    padding: 18px 40px;
    border-radius: 98px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
}

.rx-btn-primary {
    background: #C02C4A;
    color: #fff;
}

.rx-btn-primary:hover {
    background: #a82540;
    transform: translateY(-2px);
    color: #fff;
}

.rx-btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.rx-btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* FAQ Overrides if reused */
.rx-section-faq {
    background: #fff;
}

.rx-faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.rx-faq-item {
    margin-bottom: 30px;
    text-align: left;
}

.rx-faq-q {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1d1d1f;
}

.rx-faq-a {
    font-size: 1.1rem;
    color: #424245;
    line-height: 1.6;
}