/* Category Landing Template - Premium Styling (Disney+ / Apple TV Style) */

:root {
    --accent-color: #ffffff;
    --bg-dark: #17171b;
    --card-border: rgba(255, 255, 255, 0.06);
    --card-bg: rgba(255, 255, 255, 0.02);
}

/* Category Page Container */
.category-landing {
    background-color: var(--bg-dark);
    color: #ffffff;
    min-height: 100vh;
    padding-bottom: 80px;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* 1. Category Hero Slider */
.category-hero-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 480px;
    background: #000;
    overflow: hidden;
}

.category-hero-slider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, transparent 0%, var(--bg-dark) 100%);
    pointer-events: none;
    z-index: 5;
}

.category-slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.category-hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.4) 40%, rgba(0, 0, 0, 0) 100%),
                linear-gradient(0deg, rgba(10, 10, 10, 0.95) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.category-slide-content {
    position: absolute;
    bottom: 80px;
    left: 8%;
    max-width: 650px;
    z-index: 3;
    padding: 0 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, opacity 0.8s ease 0.2s;
}

.category-hero-slide.active .category-slide-content {
    transform: translateY(0);
    opacity: 1;
}

.category-slide-badge {
    display: inline-block;
    background: var(--accent-color);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.category-slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 12px;
    color: #ffffff;
    font-family: 'Product Sans', 'Outfit', sans-serif;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.category-slide-desc {
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.category-slide-actions {
    display: flex;
    gap: 15px;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-btn-primary {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    border-radius: 50px !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 255, 255, 0.25) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 24px !important;
}

.category-btn-primary:hover {
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-2px) scale(1.03);
}

.category-btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.category-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Slider Navigation (Dots & Arrows) */
.category-slider-arrow {
    position: absolute;
    top: 0;
    height: 100%;
    width: 80px;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    box-shadow: none !important;
    transform: none !important;
}

.category-slider-arrow.prev {
    left: 0;
}

.category-slider-arrow.next {
    right: 0;
}

.category-slider-arrow i {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Show arrow circle only when hovering near the side (the arrow container) */
.category-slider-arrow:hover i {
    opacity: 1;
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}


.category-slider-dots {
    position: absolute;
    bottom: 30px;
    right: 8%;
    display: flex;
    gap: 8px;
    z-index: 6;
}

.category-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.category-slider-dot.active {
    background: var(--accent-color);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--accent-color);
}


/* 2. Subcategories Franchise Bar - Capsule Style with Elegant Blur */
.subcategory-shortcut-bar {
    width: 100%;
    position: absolute;
    top: 85px; /* Moved up by 10px to accommodate padding */
    left: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    padding: 10px 1.5rem; /* Vertical padding to prevent clipping of hover transformation and shadow */
}

.subcategory-shortcut-bar::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.subcategory-shortcut-grid {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping */
    gap: 8px;
    margin: 0 auto; /* Center when content fits, align to start and scroll when it overflows */
}

.subcategory-shortcut-card {
    flex: 0 0 auto; /* Prevent cards from shrinking */
}

.subcategory-shortcut-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.subcategory-shortcut-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

.subcategory-shortcut-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    filter: drop-shadow(0 1.5px 3px rgba(0, 0, 0, 0.85)); /* Added drop shadow to make gradient text pop on light background images */
}

.upcoming-indicator {
    font-size: 0.65rem;
    opacity: 0.6;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* Upcoming capsule style */
.upcoming-card {
    opacity: 0.55;
    border-style: dashed;
    cursor: default !important;
}

.upcoming-card:hover {
    transform: none !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* 3. Horizontal Content Rows */
.category-content-rows {
    max-width: 100%;
    margin: 0 auto;
    padding: 2.5rem 0 0 0; /* Added top padding to create beautiful spacing below hero, matching index.html */
}

.category-row-section {
    margin-bottom: 12px;
    width: 100%;
    overflow: hidden;
}

/* Invitaciones row needs overflow visible so envelope cards can peek upward */
.category-row-section:has(.invitation-card) {
    overflow: visible;
    padding-top: 5px; /* Title stays close to hero — space is reserved on the grid itself */
}

/* The gallery-wrapper inside invitations must allow overflow-y so the flap shows above it */
.category-row-section:has(.invitation-card) .gallery-wrapper {
    overflow-x: clip !important; /* Clips only horizontally (hides scroll overflow outside bounds) */
    overflow-y: visible !important; /* Lets the flap paint above the wrapper */
}

/* The gallery grid inside the invitations row carries the top spacing
   so the top flap has room to unfold above the cards without clipping */
.category-row-section:has(.invitation-card) .gallery-grid {
    padding-top: 15px !important;
    /* overflow-x: auto keeps touch swipe scrolling.
       overflow-y: clip lets the flap paint above the grid boundary
       without disrupting the horizontal scroll axis. */
    overflow-x: auto !important;
    overflow-y: clip !important;
    -webkit-overflow-scrolling: touch !important;
}

.category-row-section .gallery-grid {
    padding-top: 5px !important;
    padding-bottom: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.category-row-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
    font-family: 'Product Sans', 'Outfit', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 5%;
}

/* Category Link Header on Home Page */
.category-link {
    text-decoration: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: var(--accent-color);
}

.category-link .arrow-icon {
    font-size: 1.2rem;
    opacity: 0.4;
    transform: translateX(-5px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--accent-color);
}

.category-link:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}


/* 4. Responsive Adaptation */
@media (max-width: 992px) {
    .category-hero-slider {
        height: 55vh;
    }
    
    .category-slide-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .category-hero-slider {
        height: auto;
        aspect-ratio: 16/9;
        min-height: 240px;
    }
    
    .category-hero-slider::after {
        height: 60px;
    }
    
    .category-slide-content {
        bottom: 60px !important; /* Pushed up higher to prevent overlapping dots on mobile */
        left: 4%;
        max-width: 90%;
        padding: 0;
    }
    
    .category-slide-badge {
        font-size: 0.6rem;
        padding: 2px 8px;
        margin-bottom: 8px;
    }
    
    .category-slide-title {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }
    
    .category-slide-desc {
        display: none; /* Hide large desc on mobile sliders */
    }
    
    .category-slide-actions {
        gap: 8px;
    }
    
    .category-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
        border-radius: 6px;
    }
    
    .category-slider-arrow {
        display: none; /* Hide by default on mobile touch viewports */
    }
    
    .category-slider-dots {
        bottom: 12px;
        right: 4%;
    }
    
    .category-slider-dot {
        width: 6px;
        height: 6px;
    }
    
    .category-slider-dot.active {
        width: 15px;
    }
    
    .subcategory-shortcut-bar {
        top: 75px; /* Moved up by 10px to accommodate padding */
        padding: 10px 1.5rem; /* Vertical padding to prevent hover clipping on mobile */
    }
    
    .subcategory-shortcut-grid {
        gap: 8px;
    }
    
    .subcategory-shortcut-card {
        padding: 6px 14px;
    }

    .subcategory-shortcut-card-title {
        font-size: 0.7rem;
        gap: 4px;
    }

    .upcoming-indicator {
        font-size: 0.55rem;
    }
    
    .category-row-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
}

/* 5. Horizontal Cards Support (Netflix / Disney+ style) */
.gallery-item.horizontal-item {
    aspect-ratio: 16/9 !important;
    flex: 0 0 370px !important;
}

@media (max-width: 768px) {
    .gallery-item.horizontal-item {
        flex: 0 0 240px !important;
    }
}

@media (max-width: 1380px) {
    .category-bodas .subcategory-shortcut-bar {
        left: 0;
        transform: none;
        width: 100%;
        justify-content: center; /* Centered instead of flex-start */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar for clean UI */
        padding: 10px 5%; /* Added vertical padding for hover glow */
    }
    .category-bodas .subcategory-shortcut-bar::-webkit-scrollbar {
        display: none;
    }
    .category-bodas .subcategory-shortcut-grid {
        flex-wrap: nowrap;
        justify-content: center; /* Centered instead of flex-start */
        width: max-content;
        padding-right: 0; /* Removed right padding offset */
    }
    .category-bodas .subcategory-shortcut-card {
        flex: 0 0 auto;
    }
}

@media (max-width: 830px) {
    .category-xv .subcategory-shortcut-bar {
        left: 0;
        transform: none;
        width: 100%;
        justify-content: center; /* Centered instead of flex-start */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar for clean UI */
        padding: 10px 5%; /* Added vertical padding for hover glow */
    }
    .category-xv .subcategory-shortcut-bar::-webkit-scrollbar {
        display: none;
    }
    .category-xv .subcategory-shortcut-grid {
        flex-wrap: nowrap;
        justify-content: center; /* Centered instead of flex-start */
        width: max-content;
        padding-right: 0; /* Removed right padding offset */
    }
    .category-xv .subcategory-shortcut-card {
        flex: 0 0 auto;
    }
}

/* 6. Video Cards play icon overlay - Apple TV+ / Disney+ inspired glassmorphism */
.gallery-item .placeholder-img {
    position: relative;
}

.play-icon-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.95;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.play-icon-center i {
    margin-left: 3px; /* visual center offset compensation */
}

.gallery-item:hover .play-icon-center {
    transform: translate(-50%, -50%) scale(1.15);
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.5);
}

/* 7. Capsule Packages Styles (Glassmorphism with Metallic accents matching Packages page header) */
.subcategory-shortcut-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    transform: none !important;
}

.subcategory-shortcut-card:hover {
    transform: translateY(-2px) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15) !important;
}

.subcategory-shortcut-card-title {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-family: 'Outfit', sans-serif !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
}

/* Text colors / metallic gradients matching packages header */
.capsule-silver .subcategory-shortcut-card-title {
    background: linear-gradient(135deg, #e0e0e0 0%, #ffffff 50%, #b0b0b0 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.capsule-gold .subcategory-shortcut-card-title {
    background: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.capsule-platinum .subcategory-shortcut-card-title {
    background: linear-gradient(135deg, #ffffff 0%, #c1d5ee 20%, #7da2d4 50%, #b8d0ef 80%, #ffffff 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.capsule-silver:hover,
.capsule-gold:hover,
.capsule-platinum:hover {
    filter: brightness(1.2) !important;
}

@media (max-width: 991px) {
    .subcategory-shortcut-card {
        padding: 5px 8px !important;
    }
    .subcategory-shortcut-card-title {
        font-size: 0.68rem !important;
    }
}

/* Packages Bar (Between Hero and Content Rows) */
.packages-shortcut-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    position: relative;
    z-index: 5;
    background: transparent;
}
.packages-shortcut-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 1400px;
}
@media (max-width: 768px) {
    .packages-shortcut-bar {
        padding: 1rem 1rem 0.5rem 1rem;
    }
}





/* 8. 3D Pop-Out Envelope (Invitaciones Digitales) */
.invitation-card {
    position: relative !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    perspective: 1000px !important;
    transform-style: preserve-3d !important;
    flex: 0 0 290px !important; /* Horizontally oriented mini envelopes */
    height: 220px !important;    /* Less tall, more horizontal */
    aspect-ratio: auto !important;
    margin: 15px 12px 25px 12px !important;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.invitation-card:hover {
    /* Move card DOWN slightly so the top flap has room to unfold above without clipping */
    transform: translateY(5px) !important;
}

/* Ensure the first envelope card respects the 5vw left margin of the gallery grid row */
.gallery-grid .invitation-card:first-child {
    margin-left: 5vw !important;
}

/* Envelope body container occupying the bottom 80% */
.envelope-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%; /* 176px height */
    /* No preserve-3d: use flat z-index stacking to prevent photo bleeding through paper */
    overflow: visible; /* Let photo escape upward on hover */
}

.envelope-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #eae5d8; /* Inside pocket background color */
    border-radius: 0 0 8px 8px;
    z-index: 1;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1), 0 8px 25px rgba(0, 0, 0, 0.35);
    transform: translateZ(-2px);
}

.envelope-card-photo {
    position: absolute;
    bottom: 6px; /* Tucked inside envelope pocket */
    left: 5%;
    width: 90%;
    height: 95%;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    z-index: 2;
    /* No translateZ — keeps z-index reliable in flat stacking context */
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    /* Clip photo to envelope body bounds: never bleeds through solid paper sides */
    clip-path: inset(0 0 -1px 0 round 4px);
    /*
     * CLOSE SEQUENCE (when cursor leaves):
     * Photo slides back in immediately (0s delay),
     * Flap waits 0.4s for photo to be fully inside before closing.
     * This prevents the "photo visible behind closing flap" artifact.
     */
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0s,
                clip-path 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0s,
                box-shadow 0.5s ease 0s;
}

/* Single Front Pocket representing folded side and bottom paper flaps */
.envelope-front-pocket {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65%;
    background: #dfd9cb;
    clip-path: polygon(0 25%, 50% 55%, 100% 25%, 100% 100%, 0 100%);
    z-index: 3;
    filter: drop-shadow(0 -3px 5px rgba(0, 0, 0, 0.05));
    /* No translateZ – flat stacking guarantees pocket sits on top of photo */
}

.envelope-card-flap {
    position: absolute;
    pointer-events: none;
}

.envelope-card-flap.top-flap {
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    background: #f6f3eb;
    width: 100%;
    height: 58%; /* Folds down over card */
    top: 0;
    left: 0;
    transform-origin: top center;
    z-index: 4;
    transform: rotateX(0deg);
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.1));
    /*
     * CLOSE SEQUENCE: Flap closes with a 0.4s delay,
     * giving the photo time to fully retract first.
     */
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.4s,
                z-index 0s 0.5s;
}

/* Names overlay printed on front bottom */
.envelope-card-names {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 3;
    pointer-events: none;
}

.envelope-card-names h3 {
    font-family: 'Playfair Display', serif !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #5c4e3a !important;
    margin: 0 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase;
    text-shadow: none !important;
    display: inline-block;
    border-bottom: 1px solid rgba(92, 78, 58, 0.25);
    padding-bottom: 2px;
}

/* Wax Seal styling (scaled down for grid) */
.envelope-card-seal {
    position: absolute;
    top: 58%; /* Placed exactly at the tip of the top-flap */
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 38px;
    height: 38px;
    background: radial-gradient(circle, #b82323 0%, #801313 100%);
    border-radius: 48% 52% 50% 50% / 50% 48% 52% 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), 
                inset 0 1px 2px rgba(255, 255, 255, 0.25), 
                inset 0 -1px 2px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.25s, opacity 0.4s ease 0.25s;
}

.seal-inner-mini {
    width: 26px;
    height: 26px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fcebeb;
}

.seal-inner-mini svg {
    filter: drop-shadow(0.5px 0.5px 0.5px rgba(255, 255, 255, 0.2)) 
            drop-shadow(-0.5px -0.5px 0.5px rgba(0, 0, 0, 0.6));
    opacity: 0.85;
}

/* HOVER STATES: Sequenced open — flap opens first, then photo rises */
.invitation-card:hover .envelope-card-photo {
    transform: translateY(-60px) scale(1.02) !important;
    clip-path: inset(-100% 0 -1px 0 round 4px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    /*
     * OPEN SEQUENCE: Photo rises with a 0.2s delay so the flap
     * has time to open first, creating the "letter emerging from envelope" effect.
     */
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
                clip-path 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
                box-shadow 0.7s ease 0.2s !important;
}

.invitation-card:hover .top-flap {
    transform: rotateX(180deg) !important;
    z-index: 1 !important;
    /* Flap opens immediately (0s delay), photo follows after */
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0s, z-index 0s 0.05s !important;
}

.invitation-card:hover .envelope-card-seal {
    transform: translate(-50%, -10%) scale(0.8) !important;
    opacity: 0 !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0s, opacity 0.25s ease 0s !important;
}

/* CLICK/OPEN STATES (locked open during redirect) */
.invitation-card.open .envelope-card-photo {
    transform: translateY(-105px) scale(1.04) !important;
    clip-path: inset(-100% 0 -1px 0 round 4px) !important;
    z-index: 3 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45) !important;
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.05s,
                clip-path 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                z-index 0s !important;
}

.invitation-card.open .top-flap {
    transform: rotateX(180deg) !important;
    z-index: 1 !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.invitation-card.open .envelope-card-seal {
    transform: translate(-50%, -10%) scale(0.8) !important;
    opacity: 0 !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
}

/* Responsive sizes for invitation cards inside grid */
@media (max-width: 768px) {
    .invitation-card {
        flex: 0 0 230px !important; /* Maintain horizontal ratio on mobile */
        height: 175px !important;
        margin: 10px 8px 20px 8px !important;
    }
    
    .envelope-card-photo {
        bottom: 4px;
    }
    
    .envelope-card-names h3 {
        font-size: 0.8rem !important;
    }
    
    .envelope-card-seal {
        width: 32px;
        height: 32px;
    }
    
    .seal-inner-mini {
        width: 22px;
        height: 22px;
    }
    
    .invitation-card:hover .envelope-card-photo {
        transform: translateY(-45px) scale(1.02) !important;
    }
    
    .invitation-card.open .envelope-card-photo {
        transform: translateY(-80px) scale(1.04) !important;
    }
}

/* 9. Category Landing Play Button Custom Capsule Styling */
.category-landing .play-button {
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 50px !important; /* Rounded pill shape */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), 0 0 15px rgba(255, 255, 255, 0.35) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 24px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.category-landing .play-button:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #000000 !important;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-2px) scale(1.03) !important;
}

/* Show category slider arrows on hover if hover is supported */
@media (hover: hover) {
    .category-slider-arrow {
        display: flex !important;
    }
}

/* 10. Podcast Premium Streaming Layout for Category Pages */
.podcast-category-landing .hero-section {
    height: 75vh;
    min-height: 500px;
}

.podcast-category-landing .podcast-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: #d1d1d1;
    font-family: 'Outfit', sans-serif;
}

.podcast-category-landing .meta-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
}

.podcast-category-landing .meta-text {
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
}

.podcast-category-landing .meta-separator {
    color: rgba(255, 255, 255, 0.3);
}

.podcast-category-landing .latest-episode-highlight {
    margin-bottom: 1.8rem;
    text-align: left;
    font-family: 'Outfit', sans-serif;
}

.podcast-category-landing .latest-episode-badge {
    display: inline-block;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-family: 'Outfit', sans-serif;
}

.podcast-category-landing .latest-episode-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    font-family: 'Outfit', sans-serif;
}

.podcast-category-landing .latest-episode-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Outfit', sans-serif;
    margin: 0;
}

.podcast-category-landing .hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-family: 'Outfit', sans-serif;
}

.podcast-category-landing .secondary-btn-streaming {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 50px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 24px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.podcast-category-landing .secondary-btn-streaming:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-2px) scale(1.03) !important;
}

.podcast-category-landing .disney-watermark {
    position: absolute;
    bottom: 30px;
    right: 4%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Outfit', sans-serif;
    pointer-events: none;
    opacity: 0.85;
}

.podcast-category-landing .disney-watermark span {
    font-size: 0.55rem;
    letter-spacing: 4px;
    font-weight: 600;
    margin-top: 4px;
    margin-right: -4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Mobile responsive scaling for streaming layout in category pages */
@media (max-width: 768px) {
    .podcast-category-landing .hero-section {
        height: 65vh;
        min-height: 480px;
    }
    
    .podcast-category-landing .podcast-meta-row {
        gap: 8px;
        margin-bottom: 0.8rem;
        font-size: 0.75rem;
    }
    
    .podcast-category-landing .meta-badge {
        padding: 1px 6px;
        font-size: 0.7rem;
    }
    
    .podcast-category-landing .latest-episode-highlight {
        margin-bottom: 1rem;
    }
    
    .podcast-category-landing .latest-episode-badge {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    
    .podcast-category-landing .latest-episode-title {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
    
    .podcast-category-landing .latest-episode-desc {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .podcast-category-landing .hero-actions {
        gap: 10px;
    }
    
    .podcast-category-landing .play-button,
    .podcast-category-landing .secondary-btn-streaming {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
    }

    .podcast-category-landing .disney-watermark {
        display: none !important; /* Hide watermark on small mobile screens to prevent clutter */
    }
    
    .podcast-category-landing .slide-content {
        bottom: 3.5rem !important; /* Make sure it doesn't overlap mobile dots */
    }
}


/* Podcast Row Title Link Hover Effects */
.category-row-link {
    color: #ffffff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.category-row-link .arrow-icon {
    font-size: 0.8em;
    opacity: 0.7;
    color: #ffffff !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.category-row-link:hover {
    opacity: 0.8;
}

.category-row-link:hover .arrow-icon {
    transform: translateX(6px);
    opacity: 1;
}

/* Category Slider Logo Responsive Scaling */
.slide-logo-large {
    max-height: 105px !important;
    max-width: 280px !important;
    width: auto !important;
    object-fit: contain;
    margin: 0 0 1rem 0 !important;
}

@media (max-width: 768px) {
    .slide-logo-large {
        max-height: 85px !important;
        max-width: 200px !important;
        margin: 0 0 0.8rem 0 !important;
    }
}

/* --- PREMIUM TESTIMONIAL CARDS (Movie Poster Style) --- */
.testimonial-card {
    position: relative;
    flex: 0 0 450px !important;
    height: 250px !important;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #111;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.08) !important;
}

.testimonial-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover .testimonial-bg {
    transform: scale(1.05);
}

.testimonial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.testimonial-card-content {
    position: relative;
    z-index: 2;
    padding: 1.2rem 1.5rem;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
}

.testimonial-quote-icon {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.3rem;
}

.testimonial-text {
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.8rem 0;
    font-style: italic;
    font-weight: 300;
}

.testimonial-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.testimonial-title {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

/* Mobile responsive override */
@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 320px !important;
        height: 220px !important;
    }
    .testimonial-text {
        font-size: 0.72rem;
        line-height: 1.35;
        margin-bottom: 0.5rem;
    }
    .testimonial-author {
        font-size: 0.78rem;
    }
    .testimonial-title {
        font-size: 0.65rem;
    }
}