/* --- 1. Variables & Base Setup --- */
:root {
    --card-radius: 20px;
    --accent-color: #6366f1; 
    --transition-premium: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-image: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.8s ease;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.06);
}

@keyframes revealUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* --- 2. Animation & Reveal Logic --- */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- 3. Updated Centered Hero Section --- */
.premium-hero {
    min-height: 80vh; /* Changed from height to min-height for better mobile scaling */
    display: flex;
    flex-direction: column; /* Stack content and visual vertically */
    align-items: center;    /* Center horizontally */
    justify-content: center; /* Center vertically */
    text-align: center;      /* Align text to center */
    padding: 120px 20px 60px; /* Padding for nav clearance and spacing */
}

.hero-content { 
    flex: none; /* Remove the flex: 1.2 weight */
    max-width: 900px; /* Limit width for better readability when centered */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.7rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    line-height: 1.1;
    color: #1a1a1a;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero-title span {
    font-family: 'Dancing Script', cursive;
    color: var(--accent-color);
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #666;
    max-width: 650px; /* Increased max-width for centered layout */
    margin-top: 1.5rem;
    line-height: 1.6;
    margin-left: auto;  /* Helper to center the paragraph block */
    margin-right: auto; /* Helper to center the paragraph block */
}

/* --- Centering the Sphere --- */
.hero-visual {
    margin-top: 4rem; /* Space between text and sphere */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.glass-sphere {
    width: 180px;
    height: 180px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* --- 4. Section Headers & Controls --- */
.content-section { padding: 60px 0; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.header-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.line-decorator {
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(to right, #e2e8f0, transparent);
    margin-left: 20px;
    margin-bottom: 12px;
}

.slider-controls { display: flex; gap: 12px; }

.swiper-button-next-custom, .swiper-button-prev-custom,
.swiper-button-next-trending, .swiper-button-prev-trending {
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: #1a1a1a;
    transition: 0.3s;
    user-select: none;
}

.swiper-button-next-custom:hover, .swiper-button-next-trending:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

/* --- 5. Latest Entries (Premium Cards) --- */
.latest-swiper { padding-bottom: 20px; }

.premium-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-premium);
    cursor: pointer;
}

.premium-card:hover { transform: translateY(-10px); }

/* Card Image Logic */
.card-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
    margin-bottom: 1.2rem;
    transition: var(--transition-premium);
    background: #000;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    mix-blend-mode: multiply;
    opacity: 0.15;
    z-index: 1;
    transition: var(--transition-premium);
    pointer-events: none;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.9);
    transition: var(--transition-image);
}

/* Hover States for Card */
.premium-card:hover .card-image-wrapper { box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

.premium-card:hover .card-overlay { 
    opacity: 0; 
    transform: scale(1.1); 
}

.premium-card:hover .card-image-wrapper img { 
    transform: scale(1.12); 
    filter: grayscale(0%) brightness(1); 
}

/* Hover State: Title Color Change */
.premium-card:hover .title-limit a {
    color: var(--accent-color);
}

.premium-card:hover .category-tag { color: #1a1a1a; }
.premium-card:hover .arrow { transform: translateX(5px); color: var(--accent-color); }

/* Card Typography */
.card-body { padding: 0; flex-grow: 1; display: flex; flex-direction: column; }

.meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.category-tag { color: var(--accent-color); transition: 0.3s; }

.title-limit {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em; 
    margin-bottom: 8px;
}

.title-limit a { 
    text-decoration: none; 
    color: #1a1a1a; 
    transition: color 0.4s ease; /* Smooth transition for title color */
}

.excerpt-limit {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3em; 
    margin-bottom: 12px;
}

.premium-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 800;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.arrow { margin-left: 6px; transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }

/* --- 6. Trending Section --- */
.trending-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 0;
}

.trending-card-single { position: relative; padding: 0 40px; }

.rank-indicator {
    position: absolute;
    top: -15px;
    left: 0;
    z-index: 1;
}

.rank-indicator span {
    font-size: 5.5rem;
    font-weight: 900;
    color: var(--accent-color);
    opacity: 0.12;
    line-height: 1;
}

.trending-flex-container {
    display: flex;
    gap: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    border-radius: 28px;
    padding: 35px;
    align-items: center;
    transition: var(--transition-premium);
    z-index: 2;
    position: relative;
}

.trending-image-box {
    flex: 0 0 45%;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.trending-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition-image);
}

/* Hover States for Trending Container */
.trending-card-single:hover .trending-flex-container {
    background: #fff;
    box-shadow: 0 30px 60px rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.1);
}

.trending-card-single:hover .trending-image-box img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Trending Title Color Hover */
.trending-card-single:hover .post-title a {
    color: var(--accent-color);
}

.trending-details { flex: 1; }

.trending-details .post-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.trending-details .post-title a { 
    text-decoration: none; 
    color: #1a1a1a; 
    transition: color 0.4s ease; 
}

.trending-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.trending-meta .date { font-size: 0.85rem; color: #666; font-weight: 600; }
.views-count { font-size: 0.8rem; font-weight: 800; color: var(--accent-color); text-transform: uppercase; letter-spacing: 1px; }

/* --- 7. Global Actions & Buttons --- */
.explore-container { display: flex; justify-content: center; margin-top: 2rem; }

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0.9rem 2.2rem;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    transition: var(--transition-premium);
}

.btn-explore:hover {
    transform: translateY(-3px);
    background: var(--accent-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* --- 8. Responsive Design --- */
@media (max-width: 991px) {
    .trending-flex-container { flex-direction: column; padding: 20px; text-align: center; }
    .trending-image-box { width: 100%; flex: none; height: 200px; }
}


