/*
Theme Name: Pariksha Khabar
Theme URI: https://parikshakhabar.in
Description: Ultramodern Dark Glassmorphism Theme for Exam Updates and Job Portals.
Author: Pariksha Khabar
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --bg: #09090b; 
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary: #06b6d4; 
    --accent: #8b5cf6; 
    --grad-1: linear-gradient(135deg, #06b6d4, #8b5cf6);
    --grad-2: linear-gradient(135deg, #f43f5e, #f97316); 
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

.ambient-glow {
    position: fixed; border-radius: 50%; filter: blur(120px); z-index: -1; opacity: 0.35;
    animation: floatGlow 15s infinite alternate ease-in-out;
}
.glow-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: var(--primary); }
.glow-2 { bottom: -10%; right: -10%; width: 60vw; height: 60vw; background: var(--accent); }

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
}

nav {
    display: flex; justify-content: space-between; align-items: center; padding: 20px 5%;
    background: rgba(9, 9, 11, 0.6); backdrop-filter: blur(20px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--glass-border);
}
.logo { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 10px; color:#fff; text-decoration:none; }
.logo i { background: var(--grad-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }
.btn-join { background: var(--grad-1); color: #fff !important; padding: 10px 24px; border-radius: 50px; font-weight: 600; box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3); text-decoration: none; display: inline-block; }

header.hero { text-align: center; padding: 100px 20px 80px; max-width: 900px; margin: 0 auto; }
.hero-badge { display: inline-block; background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 8px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-bottom: 24px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; margin-bottom: 24px; line-height: 1.1; }
.hero h1 span { background: var(--grad-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }

.layout-grid { max-width: 1300px; margin: 0 auto; padding: 0 5%; display: grid; grid-template-columns: 2.2fr 1fr; gap: 40px; margin-bottom: 100px; }
@media(max-width: 1024px) { .layout-grid { grid-template-columns: 1fr; } }

.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 30px; display: flex; align-items: center; gap: 12px; }
.section-title i { background: var(--grad-2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

.card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 24px; backdrop-filter: blur(12px); transition: all 0.4s; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,0.15); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.card-header { display: flex; justify-content: space-between; margin-bottom: 16px; }
.card h3 { font-size: 1.25rem; margin-bottom: 12px; color: #fff; }
.card h3 a { color:#fff; text-decoration:none; }
.card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 24px; flex-grow: 1; }
.btn-outline { display: block; text-align: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--text); padding: 12px 15px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; transition: 0.3s; }
.card:hover .btn-outline { background: var(--text); color: var(--bg); }

.sidebar { display: flex; flex-direction: column; gap: 30px; }
.widget { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 24px; }
.widget-list { list-style: none; }
.widget-list li { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--glass-border); display: flex; gap: 16px; align-items: center; }
.widget-list li a { color: var(--text); text-decoration: none; }
.widget-list li a:hover { color: var(--primary); }

.single-content { background: var(--glass-bg); padding:40px; border-radius:var(--radius-lg); border: 1px solid var(--glass-border); }
.single-content p { margin-bottom: 20px; font-size: 1.1rem; color: #d4d4d8; }

footer { text-align: center; padding: 40px; border-top: 1px solid var(--glass-border); margin-top: 50px; color: var(--text-muted); }

/* Bulletproof Mobile Gradient Fix */
@media (max-width: 768px) {
    .ambient-glow {
        filter: blur(50px) !important; 
        opacity: 0.55 !important; 
    }
    .glow-1 {
        width: 120vw !important; 
        height: 120vw !important;
        top: -5% !important;
        left: -20% !important;
    }
    .glow-2 {
        width: 130vw !important; 
        height: 130vw !important;
        bottom: 5% !important;
        right: -20% !important;
    }
}


/* Glass Postcards Stack Styling */
.column-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.postcard-stack {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.glass-postcard {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.glass-postcard:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.postcard-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.glass-postcard h3 {
    font-size: 0.98rem;
    line-height: 1.4;
    font-weight: 600;
}

.glass-postcard h3 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.glass-postcard h3 a:hover {
    color: var(--primary);
}

.postcard-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    margin-top: 4px;
    display: inline-block;
}

.postcard-link:hover {
    text-decoration: underline;
}




/* Glass Postcards with Thumbnail Styles */
.sarkari-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.column-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.box-header {
    padding: 16px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--glass-border);
}

.postcard-stack {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.glass-postcard {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.postcard-thumb {
    margin: 0 0 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.postcard-thumb img {
    transition: transform 0.4s ease;
}

.glass-postcard:hover .postcard-thumb img {
    transform: scale(1.05);
}

.glass-postcard:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.postcard-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0 16px;
}

.glass-postcard h3 {
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600;
    padding: 6px 16px 0 16px;
}

.glass-postcard h3 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.glass-postcard h3 a:hover {
    color: var(--primary);
}

.postcard-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    margin: 10px 16px 16px 16px;
    display: inline-block;
}

.postcard-link:hover {
    text-decoration: underline;
}





/* Bulletproof Side-by-Side Mobile Menu Scroll */
@media (max-width: 768px) {
    nav {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 15px 5% !important;
    }
    .logo {
        font-size: 1.3rem !important;
        text-align: center !important;
    }
    .nav-links {
        width: 100% !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        display: flex !important;
        justify-content: flex-start !important;
        scrollbar-width: none !important;
    }
    .nav-links::-webkit-scrollbar {
        display: none !important;
    }
    /* Forces WordPress generated menu list to stay strictly in one horizontal row */
    .nav-links ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 18px !important;
        list-style: none !important;
        padding: 0 10px !important;
        margin: 0 auto !important;
    }
    .nav-links ul li {
        display: inline-block !important;
        flex-shrink: 0 !important;
        float: none !important;
    }
    .nav-links ul li a {
        display: inline-block !important;
        font-size: 0.88rem !important;
        white-space: nowrap !important;
    }
    /* Emergency safety net to hide any stray join buttons */
    .btn-join {
        display: none !important;
    }
}



/* NUCLEAR OPTION: Permanent Eradication of Join / Telegram Elements */
.btn-join, 
a[href*="telegram"], 
a[href*="join"], 
li[class*="join"],
li[class*="telegram"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
}


/* ==========================================================
   DYNAMIC ENGAGEMENT & ANIMATION UPGRADES
   ================================================---------- */

/* 1. Smooth Fade-In Up Entrance Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    animation: fadeInUp 0.8s ease-out forwards;
}

.column-wrapper {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-fill-mode: both;
}

/* Stagger the columns so they load sequentially */
.sarkari-grid .column-wrapper:nth-child(1) { animation-delay: 0.1s; }
.sarkari-grid .column-wrapper:nth-child(2) { animation-delay: 0.2s; }
.sarkari-grid .column-wrapper:nth-child(3) { animation-delay: 0.3s; }

sidebar {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    animation-fill-mode: both;
}


/* 2. Live Pulsing Indicator for Section Headers */
.box-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.box-header::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}


/* 3. High-End Glass Postcard Neon Glow on Hover */
.glass-postcard {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.glass-postcard:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.15), 0 0 20px rgba(139, 92, 246, 0.1);
}


/* 4. Subtle Shimmer Effect on Thumbnails */
.postcard-thumb img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
    filter: brightness(0.95);
}

.glass-postcard:hover .postcard-thumb img {
    transform: scale(1.06);
    filter: brightness(1.05);
}





/* ==========================================================
   ADVANCED ENGAGEMENT: TICKER BAR & NEW BADGES
   ================================================---------- */

/* 1. Live Scrolling Ticker Bar */
.ticker-container {
    max-width: 1300px;
    margin: 0 auto 40px auto;
    padding: 0 5%;
}

.ticker-wrapper {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.08);
}

.ticker-badge {
    background: var(--grad-1);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
}

.ticker-text {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.ticker-text p {
    display: inline-block;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    animation: tickerScroll 25s linear infinite;
    margin: 0;
}

@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}


/* 2. Pulsing "NEW" Badge on Glass Postcards */
.glass-postcard {
    position: relative; /* Ensures absolute positioning works inside */
}

.postcard-new-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f43f5e, #f97316);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 2px 10px rgba(244, 63, 94, 0.4);
    animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}





/* Trending Section Grid Styling */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

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

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



/* ==========================================================
   MOBILE LAYOUT FIX: Vertical Sections & Swipeable Cards
   ================================================---------- */
@media (max-width: 768px) {
    /* Stack the Results, Admit Card, and Jobs sections vertically */
    .sarkari-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    
    .column-wrapper {
        width: 100% !important;
    }

    /* Turn the postcard stack inside each section into a horizontal swipeable row */
    .postcard-stack {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 14px !important;
        padding: 16px !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .postcard-stack::-webkit-scrollbar {
        display: none !important;
    }

    /* Fix individual postcard width so they snap nicely while swiping */
    .glass-postcard {
        min-width: 260px !important;
        max-width: 260px !important;
        scroll-snap-align: start !important;
        flex-shrink: 0 !important;
    }

    /* Also apply horizontal scrolling to the Trending section at the bottom */
    .trending-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 14px !important;
        padding: 16px !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .trending-grid::-webkit-scrollbar {
        display: none !important;
    }

    .trending-grid .glass-postcard {
        min-width: 260px !important;
        max-width: 260px !important;
        scroll-snap-align: start !important;
        flex-shrink: 0 !important;
    }
}