/* =============================================
   PREMIUM HOMEPAGE REDESIGN (BENTO GRID)
   ============================================= */

/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: 1em;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 8px 8px;
}

.skip-link:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

/* HERO BENTO GRID */
.premium-hero-section {
    padding: 40px 0;
    background: transparent;
}

.premium-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-auto-rows: 240px;
    gap: 24px;
}

.premium-hero-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.premium-hero-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.premium-hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-hero-card:hover img {
    transform: scale(1.05);
}

.premium-hero-card-main {
    grid-row: span 2;
}

.premium-hero-card-side {
    grid-row: span 1;
}

.premium-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.premium-hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inset 0 0 50px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.premium-category-badge {
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.premium-hero-title-main {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', system-ui, sans-serif;
}

.premium-hero-title-side {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.premium-hero-meta {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    gap: 15px;
    align-items: center;
}

.premium-hero-meta i {
    margin-right: 5px;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 992px) {
    .premium-hero-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .premium-hero-card-main {
        height: 450px;
    }

    .premium-hero-card-side {
        height: 280px;
    }

    .premium-hero-title-main {
        font-size: 26px;
    }
}

/* =============================================
   CATEGORIES SECTION (GLASSMORPHISM / SLEEK)
   ============================================= */
.premium-categories-section {
    padding: 20px 0 60px;
}

.premium-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

@media (max-width: 480px) {
    .premium-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

.premium-section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-left: 20px;
}

.premium-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 6px;
    background: linear-gradient(to bottom, var(--primary), var(--danger));
    border-radius: 4px;
}

.premium-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 24px;
}

.premium-category-item {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.premium-category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 91, 149, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.premium-category-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(107, 91, 149, 0.12);
    border-color: rgba(107, 91, 149, 0.15);
}

.premium-category-item:hover::before {
    opacity: 1;
}

.premium-category-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(107, 91, 149, 0.1) 0%, rgba(107, 91, 149, 0.02) 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.5);
}

.premium-category-item:hover .premium-category-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 25px rgba(107, 91, 149, 0.4);
}

.premium-category-item h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
    z-index: 2;
    transition: color 0.3s ease;
}

.premium-category-item p {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    z-index: 2;
    background: var(--bg);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
}

/* =============================================
   PREMIUM NEWS GRID
   ============================================= */
.premium-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.premium-news-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-decoration: none;
    height: 100%;
}

.premium-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.premium-news-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.premium-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.premium-news-card:hover .premium-news-image img {
    transform: scale(1.08);
}

.premium-news-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.premium-news-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.premium-news-card:hover .premium-news-title {
    color: var(--primary);
}

.premium-news-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.premium-news-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Large Featured Card */
.premium-news-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: linear-gradient(to right, white 50%, #f8f9fc 100%);
}

.premium-news-featured .premium-news-image {
    height: 400px;
}

.premium-news-featured .premium-news-content {
    padding: 40px;
    justify-content: center;
}

.premium-news-featured .premium-news-title {
    font-size: 28px;
    margin-bottom: 16px;
}

.premium-news-featured .premium-news-excerpt {
    font-size: 16px;
}

@media (max-width: 992px) {
    .premium-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .premium-news-featured {
        grid-template-columns: 1fr;
    }

    .premium-news-featured .premium-news-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .premium-news-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   PREMIUM LEAFLETS SECTION (SLIDER)
   ============================================= */
.premium-leaflets-section {
    padding: 40px 0 60px;
    background: transparent;
}

.premium-view-all {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    background: rgba(107, 91, 149, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
}

.premium-view-all:hover {
    background: var(--primary);
    color: white;
    transform: translateX(4px);
}

.leaflets-slider-wrapper {
    margin: 0 -15px;
    padding: 10px 15px 30px;
}

.leaflets-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(0, 0, 0, 0.05);
}

.leaflets-slider::-webkit-scrollbar {
    height: 6px;
}

.leaflets-slider::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.leaflets-slider::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

.premium-leaflet-card {
    min-width: 240px;
    width: 240px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-leaflet-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(107, 91, 149, 0.2);
}

.leaflet-cover-wrapper {
    width: 100%;
    aspect-ratio: 2/3;
    position: relative;
    overflow: hidden;
    background: #f8f9fc;
}

.leaflet-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.premium-leaflet-card:hover .leaflet-cover {
    transform: scale(1.05);
}

.leaflet-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.leaflet-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.leaflet-badge.new {
    background: linear-gradient(135deg, #00b09b, #96c93d);
}

.leaflet-badge.ending {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.leaflet-shop-logo {
    position: absolute;
    bottom: -15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.leaflet-shop-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.leaflet-content {
    padding: 25px 20px 20px;
    background: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.leaflet-shop-name {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.leaflet-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.leaflet-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.premium-badge {
    background: linear-gradient(135deg, var(--accent), #ff9a44);
    color: white;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 10px;
    vertical-align: middle;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 480px) {
    .premium-leaflet-card {
        min-width: 200px;
        width: 200px;
    }
}

/* =============================================
   TEXT HERO SECTION (NO IMAGES)
   ============================================= */
.text-hero-section {
    padding: 30px 0 0;
    background: transparent;
}

.text-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    min-height: 280px;
}

.text-hero-main {
    border-radius: 16px;
    padding: 25px 25px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.text-hero-main::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.text-hero-main:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.text-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    align-self: flex-start;
}

.text-hero-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-family: 'Inter', system-ui, sans-serif;
}

.text-hero-excerpt {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.92;
    margin-bottom: 15px;
    max-width: 600px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-hero-meta {
    display: flex;
    gap: 18px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.85;
}

.text-hero-meta i {
    margin-right: 5px;
    opacity: 0.75;
}

/* Side posts */
.text-hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.text-hero-side-item {
    background: white;
    border-radius: 18px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    flex: 1;
}

.text-hero-side-item:hover {
    transform: translateX(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(107, 91, 149, 0.15);
}

.text-hero-side-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.text-hero-side-content {
    flex: 1;
    min-width: 0;
}

.text-hero-side-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
}

.text-hero-side-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-hero-side-item .text-hero-meta {
    color: var(--text-secondary);
    font-size: 12px;
    opacity: 1;
}

/* Featured text-only — full width, vertical layout */
.premium-news-featured {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    gap: 0;
    background: white;
}

.premium-news-featured .premium-news-content {
    padding: 32px 40px;
}

.premium-news-featured .premium-news-title {
    font-size: 24px !important;
    margin-bottom: 12px;
}

.premium-news-featured .premium-news-excerpt {
    font-size: 15px;
}

/* Section view all button */
.section-view-all {
    padding: 10px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.section-view-all:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* =============================================
   RESPONSIVE - TEXT HERO
   ============================================= */
@media (max-width: 992px) {
    .text-hero-grid {
        grid-template-columns: 1fr;
    }

    .text-hero-title {
        font-size: 26px;
    }

    .premium-news-featured {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .text-hero-main {
        padding: 28px 24px;
    }

    .text-hero-title {
        font-size: 22px;
    }

    .text-hero-side-item {
        padding: 16px;
    }
}