/*
Theme Name: GeneratePress Taiyari.in
Theme URI: https://taiyari.in
Author: Adarsh Sachan
Author URI: https://www.linkedin.com/in/adarsh-sachan-01/
Template: generatepress
Version: 1.0.2
Text Domain: generatepress-job-child
*/

/* ================================================================
   2. TAIYARI CA WIDGET MODERN CSS (UPDATED FOR ADVANCED LOOK)
   ================================================================ */
.ca-home-widget {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    margin: 60px auto;
    max-width: 900px;
    border: 1px solid #f1f5f9;
}

.ca-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

#ca-main-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

#ca-sub-title {
    color: #64748b;
    font-size: 14px;
    margin: 5px 0 0;
}

/* LANG SWITCHER */
.lang-switcher {
    background: #f1f5f9;
    padding: 5px;
    border-radius: 12px;
    display: flex;
    gap: 5px;
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: #64748b;
    transition: 0.3s;
}

.lang-btn.active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* LIST ITEMS (ADVANCED LOOK) */
.ca-entry-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ca-item-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 15px;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    border: 1px solid #f1f5f9;
    position: relative;
}

.ca-item-card:hover {
    background: #ffffff;
    border-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

/* Advanced Date Box */
.ca-date-block {
    min-width: 55px;
    height: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-right: 18px;
}

.ca-day { 
    display: block; 
    font-size: 22px; 
    font-weight: 800; 
    color: #0f172a; 
    line-height: 1;
}

.ca-month { 
    font-size: 10px; 
    font-weight: 800; 
    color: #2563eb; 
    text-transform: uppercase; 
    margin-top: 2px;
}

/* Info Section */
.ca-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* New Category Badge */
.ca-cat-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 5px;
    display: inline-block;
    letter-spacing: 0.5px;
}

/* Category Colors */
.ca-cat-badge.sports { color: #ea580c; }
.ca-cat-badge.world { color: #7c3aed; }
.ca-cat-badge.national { color: #dc2626; }

.ca-item-info h3 { 
    font-size: 15px; 
    margin: 0; 
    color: #1e293b; 
    line-height: 1.4; 
    font-weight: 600;
}

/* Arrow Icon */
.ca-arrow-icon {
    font-size: 24px;
    color: #cbd5e1;
    margin-left: 10px;
    font-weight: 300;
    transition: 0.2s;
}

.ca-item-card:hover .ca-arrow-icon {
    color: #2563eb;
    transform: translateX(3px);
}

/* FOOTER BUTTON */
.ca-action-footer { 
    margin-top: 25px; 
    text-align: right; 
}

.view-all-btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
}

.view-all-btn:hover { 
    background: #1e40af; 
    transform: translateY(-2px); 
}

/* LOADER ANIMATION */
#ca-loader { color: #2563eb; font-weight: 700; }

/* ================================================================
   3. MOBILE RESPONSIVE FIXES
   ================================================================ */
@media (max-width: 768px) {
    /* Hero Section */
    .taiyari-menu {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .taiyari-btn {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }
    .taiyari-btn svg {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* Widget Section */
    .ca-widget-header { 
        flex-direction: column; 
        align-items: flex-start; 
    }
    .lang-switcher { 
        width: 100%; 
        margin-top: 15px;
    }
    .lang-btn { 
        flex: 1; 
    }
    .ca-item-card {
        padding: 12px;
    }
    .ca-date-block {
        min-width: 48px;
        height: 48px;
        margin-right: 12px;
    }
    .ca-day { font-size: 18px; }
}

/* =========================================
   TAIYARI PRO LAYOUT - EXACT MATCHING CSS (SINGLE POST)
   ========================================= */

/* 1. Main Container */
.tp-container {
    max-width: 100%;
    margin: 20px auto;
    font-family: 'Inter', sans-serif;
    color: #334155;
    background: #ffffff;
}

/* 2. SPLIT HEADER (Title Left | Meta Right) */
.tp-header-grid {
    display: grid;
    grid-template-columns: 65% 30%;
    gap: 5%;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

/* Left Side */
.tp-badge {
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    border: 1px solid #dbeafe;
}

.tp-title {
    font-size: 38px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    letter-spacing: -1px;
}

/* Right Side (Meta Box) */
.tp-meta-card {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #2563eb;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.tp-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
}
.tp-meta-row:last-child { margin-bottom: 0; }
.tp-meta-row.highlight { color: #0f172a; }

.tp-icon { font-size: 18px; width: 24px; text-align: center; }

/* 3. HERO IMAGE */
.tp-hero-image {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.tp-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.tp-hero-image:hover img { transform: scale(1.02); }

/* 4. CONTENT BODY */
.tp-content {
    font-size: 19px;
    line-height: 1.8;
    color: #334155;
}

.tp-content p { margin-bottom: 25px; }

/* Headings */
.tp-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.tp-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 35px;
}

/* Tables */
.tp-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 35px 0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
}

.tp-content th {
    background: #1e293b;
    color: #ffffff;
    padding: 15px;
    font-size: 14px;
    text-transform: uppercase;
    text-align: left;
    font-weight: 700;
}

.tp-content td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 16px;
}
.tp-content tr:nth-child(even) { background: #f8fafc; }

/* Lists */
.tp-content ul {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.tp-content ul li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 15px;
}

.tp-content ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 2px;
    width: 26px;
    height: 26px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 50%;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 26px;
}

/* Footer */
.tp-footer {
    margin-top: 60px;
    padding: 20px;
    background: #f1f5f9;
    border-radius: 8px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    font-weight: 600;
}

/* 5. HIDE DEFAULT THEME ELEMENTS */
.entry-header .entry-title, 
.post-header .post-title,
.single-post .post-thumbnail,
header.entry-header { 
    display: none !important; 
}

/* 6. MOBILE RESPONSIVE (SINGLE POST) */
@media (max-width: 768px) {
    .tp-header-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .tp-title { font-size: 30px !important; }
}

/* =========================================
   SIDEBAR / WIDGET AREA DESIGN
   ========================================= */

/* 1. Widget Container (Card Style) */
.widget-area .widget, #secondary .widget, .sidebar .widget, .wp-block-search {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease;
}

/* Hover Effect */
.widget-area .widget:hover, #secondary .widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* 2. Widget Title (Heading) */
.widget-title, .widget h2, .widget h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
    padding-left: 15px;
}

/* Blue Accent Line */
.widget-title::before, .widget h2::before, .widget h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 14px;
    width: 4px;
    background: #3b82f6;
    border-radius: 4px;
}

/* 3. List Items (Categories/Recent Posts) */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 12px 0;
    border-bottom: 1px dashed #e2e8f0;
    position: relative;
}

.widget ul li:last-child {
    border-bottom: none;
}

/* Links Styling */
.widget ul li a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Link Hover Effect */
.widget ul li a:hover {
    color: #3b82f6;
    padding-left: 5px;
}

/* 4. Search Box Styling */
.wp-block-search__input, .search-field {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #f1f5f9;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-weight: 500;
    transition: 0.3s;
}

.wp-block-search__input:focus, .search-field:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
}

.wp-block-search__button, .search-submit {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    transition: 0.3s;
}

.wp-block-search__button:hover, .search-submit:hover {
    background: #3b82f6;
}

/* Live Updates Widget */
.live-updates-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.live-header {
    background: #ef4444;
    color: #fff;
    padding: 12px 15px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.live-list li {
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    line-height: 1.4;
}

.live-list li a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    flex: 1;
}

.live-list li a:hover { color: #ef4444; }

/* Blinking Badge */
.blink-badge {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    animation: blinker 1.5s linear infinite;
    margin-left: 10px;
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* Categories Pills Design */
.cat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cat-pill {
    background: #f1f5f9;
    color: #475569;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    flex-grow: 1;
    text-align: center;
}

.cat-pill:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* =========================================
   CREATIVE SIDEBAR ENHANCEMENTS
   ========================================= */

/* 1. PREMIUM PROMO CARD (Gradient Box) */
.promo-card {
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

/* Background Decoration (Circle) */
.promo-card::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.promo-icon {
    font-size: 40px;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}

.promo-card h3 {
    color: #fff !important;
    font-size: 20px;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.promo-card p {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.promo-btn {
    background: #fff;
    color: #3b82f6 !important;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    background: #f8fafc;
}

/* 2. STYLED TAGS (Cloud ko Buttons banana) */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tagcloud a {
    background: #f1f5f9;
    color: #475569 !important;
    padding: 6px 14px !important;
    border-radius: 20px;
    font-size: 12px !important;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.tagcloud a:hover {
    background: #3b82f6;
    color: #fff !important;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

/* 3. STICKY LAST WIDGET */
@media (min-width: 769px) {
    .widget-area .widget:last-child {
        position: sticky;
        top: 20px;
        z-index: 10;
    }
}

@media (max-width: 768px) {
    /* Hide Default Mobile Menu Button */
    button.menu-toggle,
    .mobile-menu-control-wrapper,
    #mobile-header .menu-toggle {
        display: none !important;
    }
}

/* =========================================
   TAIYARI LITE PRO (Clean & Modern)
   ========================================= */
@media (max-width: 768px) {
    /* --- 1. MAIN BAR CONTAINER --- */
    .taiyari-lite-nav {
        position: fixed; bottom: 0; left: 0; width: 100%;
        z-index: 999999; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }

    .lite-bar {
        background: #ffffff;
        height: 65px;
        display: flex; justify-content: space-between; align-items: center;
        padding: 0 10px;
        box-shadow: 0 -5px 25px rgba(0,0,0,0.06);
        border-top: 1px solid #f1f5f9;
        padding-bottom: env(safe-area-inset-bottom);
        position: relative; z-index: 20;
    }

    /* --- 2. NAVIGATION ITEMS --- */
    .nav-btn {
        flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
        text-decoration: none; cursor: pointer;
        color: #94a3b8;
        transition: 0.2s;
    }
    
    .nav-btn svg {
        width: 22px; height: 22px; margin-bottom: 4px;
        stroke: #94a3b8; stroke-width: 2px;
        transition: 0.2s;
    }

    .nav-btn span { font-size: 10px; font-weight: 500; letter-spacing: 0.3px; }

    /* Active/Hover State */
    .nav-btn:active, .nav-btn:hover { color: #2563eb; }
    .nav-btn:active svg, .nav-btn:hover svg { stroke: #2563eb; transform: translateY(-2px); }

    /* --- 3. CENTER 'TEST' BUTTON (Floating) --- */
    .center-floater {
        position: relative; top: -25px;
        display: flex; flex-direction: column; align-items: center;
        text-decoration: none; flex: 1;
    }

    .floater-inner {
        width: 56px; height: 56px;
        background: #2563eb;
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
        border: 4px solid #ffffff;
    }

    .floater-inner svg { stroke: #ffffff; width: 26px; height: 26px; }
    
    .floater-text {
        color: #2563eb; font-weight: 800; font-size: 11px; margin-top: 4px;
    }

    /* Click Effect on Test Button */
    .center-floater:active .floater-inner { transform: scale(0.95); background: #1d4ed8; }

    /* --- 4. BOTTOM SHEETS (Drawers) --- */
    .bottom-sheet {
        position: fixed; bottom: 0; left: 0; width: 100%;
        background: #ffffff;
        border-top-left-radius: 24px; border-top-right-radius: 24px;
        padding: 20px 20px 85px 20px;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
        transform: translateY(120%);
        transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
        z-index: 10;
    }

    .bottom-sheet.active { transform: translateY(0); }

    /* Sheet Header */
    .sheet-header {
        display: flex; justify-content: space-between; align-items: center;
        margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9;
    }
    .sheet-header span { font-size: 16px; font-weight: 700; color: #1e293b; }
    .close-btn {
        background: #f1f5f9; border: none; width: 30px; height: 30px;
        border-radius: 50%; color: #64748b; font-size: 20px; line-height: 1; cursor: pointer;
    }

    /* --- 5. EXAM GRID STYLE --- */
    .sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
    
    .grid-box {
        background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
        padding: 15px 5px; display: flex; flex-direction: column; align-items: center;
        text-decoration: none; color: #334155; transition: 0.2s;
    }
    .grid-box:active { background: #eff6ff; border-color: #bfdbfe; }
    .g-icon { font-size: 24px; margin-bottom: 5px; }
    .g-text { font-size: 12px; font-weight: 600; }

    /* --- 6. LEGAL LIST STYLE --- */
    .list-menu { display: flex; flex-direction: column; gap: 8px; }
    
    .list-row {
        padding: 12px 15px; background: #f8fafc; border-radius: 10px;
        text-decoration: none; color: #475569; font-size: 14px; font-weight: 500;
        display: flex; align-items: center; gap: 10px;
        border: 1px solid transparent;
    }
    .list-row:active { background: #f1f5f9; color: #2563eb; }

    /* Body padding to prevent content overlap */
    body { padding-bottom: 80px !important; }
}

/* Desktop Hide */
@media (min-width: 769px) {
    .taiyari-lite-nav { display: none !important; }
}

/* =========================================
   TAIYARI.IN UNIQUE 404 STYLING
   ========================================= */

/* 1. Main Wrapper */
.tp-unique-404 {
    padding: 80px 20px;
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.tp-404-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* 2. Hero Section (Image + Message) */
.tp-404-hero {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
    text-align: left;
}

.tp-hero-left { flex: 1; }
.tp-hero-right { flex: 1.2; }

/* 404image.webp Styling */
.tp-main-img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.1);
}

.tp-err-code {
    font-size: 100px;
    font-weight: 900;
    color: #e2e8f0;
    line-height: 1;
    display: block;
    margin-bottom: 5px;
    letter-spacing: -4px;
}

.tp-404-hero h1 {
    font-size: 42px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.2;
}

.tp-404-hero p {
    font-size: 19px;
    color: #64748b;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* 3. Search Box Styling */
.tp-404-search-box form {
    display: flex;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 6px;
    border-radius: 14px;
    max-width: 450px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.tp-404-search-box input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    outline: none;
    font-size: 16px;
    color: #334155;
}

.tp-404-search-box button {
    background: #2563eb;
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.tp-404-search-box button:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

/* 4. Colorful CTA Grid */
.tp-404-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tp-cta-card {
    display: flex;
    align-items: center;
    padding: 25px;
    border-radius: 20px;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Individual Card Hover Effects */
.card-blue:hover { border-color: #3b82f6; background: #eff6ff; }
.card-green:hover { border-color: #22c55e; background: #f0fdf4; }
.card-orange:hover { border-color: #f59e0b; background: #fffbeb; }

.tp-cta-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.card-icon {
    font-size: 45px;
    margin-right: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.05));
}

.card-info h3 {
    margin: 0;
    font-size: 20px;
    color: #1e293b;
    font-weight: 800;
}

.card-info p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* 5. Mobile Responsive */
@media (max-width: 850px) {
    .tp-404-hero { 
        flex-direction: column; 
        text-align: center; 
        gap: 30px;
    }
    .tp-404-search-box form { margin: 0 auto; }
    .tp-err-code { font-size: 70px; }
    .tp-404-hero h1 { font-size: 32px !important; }
}

/* =========================================
   SMART APP-STYLE HEADER (CLEAN & UNIFORM)
   ========================================= */

/* 1. Header Container (Clean Dark Theme) */
.site-header, .main-navigation {
    background: #0f172a !important; /* Dark Slate BG */
    border-bottom: 1px solid rgba(255,255,255,0.05); /* Very subtle separator */
}

/* 2. Menu Links (Sab ek jaise dikhenge) */
.main-navigation a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px; /* Thoda readable size */
    color: #94a3b8 !important; /* Soft Grey Text */
    padding: 10px 20px !important; /* Comfortable spacing */
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 4px;
    border-radius: 12px; /* Soft Rounded Squares (App Style) */
}

/* 3. Hover Effect (Soft Glassy Glow) */
.main-navigation li:hover > a {
    background-color: rgba(255, 255, 255, 0.08); /* Glassy White BG */
    color: #ffffff !important; /* Bright White Text */
    transform: translateY(0); /* No movement, just clean color change */
}

/* 4. ACTIVE PAGE (Selected Tab Style) */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    background-color: rgba(37, 99, 235, 0.15) !important; /* Translucent Blue BG */
    color: #3b82f6 !important; /* Bright Blue Text */
    font-weight: 700;
}

/* 5. RESET CTA BUTTON (Jo pehle button tha, ab normal link ban jayega) */
.ty-cta-btn a {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    margin-left: 0 !important;
}
/* Agar CTA par hover ho to same effect aaye */
.ty-cta-btn a:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    transform: none !important;
}

/* 6. SUB-MENU (DROPDOWN) - Modern Floating Card */
.main-navigation ul ul {
    top: 110%; /* Thoda gap */
    background: #ffffff !important; /* White Dropdown */
    border-radius: 16px;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.3); /* Deep Shadow */
    padding: 8px;
    border: 1px solid #e2e8f0;
    min-width: 200px;
}

.main-navigation ul ul a {
    color: #475569 !important; /* Dark Text for Light BG */
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 500;
}

.main-navigation ul ul a:hover {
    background: #f1f5f9 !important; /* Light Grey Hover */
    color: #2563eb !important; /* Blue Text */
    padding-left: 15px !important; /* Slight Slide Effect */
}
/* =========================================
   PREMIUM CONTACT PAGE DESIGN
   ========================================= */

/* Main Wrapper */
.contact-premium-wrapper {
    max-width: 1000px; margin: 0 auto; padding: 20px;
    font-family: 'Inter', sans-serif;
}

/* 1. Header Section */
.contact-header { text-align: center; margin-bottom: 50px; }
.c-badge {
    background: #eff6ff; color: #2563eb; font-size: 11px; font-weight: 800;
    padding: 6px 12px; border-radius: 20px; letter-spacing: 1px;
}
.contact-header h1 {
    font-size: 42px; font-weight: 900; color: #0f172a; margin: 15px 0;
}
.c-highlight { color: #2563eb; }
.contact-header p { font-size: 16px; color: #64748b; line-height: 1.6; }

/* 2. Main Grid (Box) */
.contact-container {
    display: flex;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

/* --- LEFT SIDE: INFO BOX --- */
.contact-info-box {
    flex: 1;
    background: #0f172a;
    color: #fff;
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.contact-info-box h3 { color: #fff; font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.contact-info-box p { color: #cbd5e1; font-size: 14px; margin-bottom: 40px; }

/* Info Items */
.c-item { display: flex; align-items: center; margin-bottom: 30px; position: relative; z-index: 2; }
.c-icon {
    width: 45px; height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-right: 15px;
}
.c-text strong { display: block; font-size: 14px; color: #fff; margin-bottom: 2px; }
.c-text span, .c-text a { font-size: 13px; color: #94a3b8; text-decoration: none; }
.c-text a:hover { color: #38bdf8; }

/* Background Decoration Circles */
.c-circle-1 {
    position: absolute; width: 150px; height: 150px;
    background: #2563eb; border-radius: 50%;
    top: -50px; right: -50px; opacity: 0.3;
}
.c-circle-2 {
    position: absolute; width: 200px; height: 200px;
    background: #38bdf8; border-radius: 50%;
    bottom: -80px; left: -80px; opacity: 0.2;
}

/* --- RIGHT SIDE: FORM AREA --- */
.contact-form-area {
    flex: 1.5;
    padding: 50px;
    background: #fff;
}
.contact-form-area h3 { font-size: 24px; font-weight: 800; color: #0f172a; margin-bottom: 30px; }

/* 🌟 AUTOMATIC FORM STYLING (Works with Contact Form 7) 🌟 */

/* Inputs & Textarea */
.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap textarea,
.form-placeholder input,
.form-placeholder textarea { 
    width: 100%;
    padding: 15px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #334155;
    margin-bottom: 20px;
    transition: 0.3s;
    outline: none;
    font-family: inherit;
}

/* Input Focus Effect */
.wpcf7-form-control-wrap input:focus,
.wpcf7-form-control-wrap textarea:focus {
    background: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Submit Button */
.wpcf7-submit, button[type="submit"] {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 15px 35px;
    font-size: 14px; font-weight: 700; text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.wpcf7-submit:hover, button[type="submit"]:hover {
    background: #1e40af;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .contact-header h1 { font-size: 32px; }
    .contact-container { flex-direction: column; }
    .contact-info-box { padding: 40px 20px; }
    .contact-form-area { padding: 40px 20px; }
}

/* =========================================
   PREMIUM LEGAL PAGE STYLING
   ========================================= */

/* 1. Main Container (Paper Look) */
.legal-doc-wrapper {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    font-family: 'Inter', sans-serif;
}

/* 2. Header Section */
.legal-header {
    text-align: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 30px;
    margin-bottom: 30px;
}
.legal-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}
.last-updated {
    font-size: 13px;
    color: #64748b;
    background: #f8fafc;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

/* 3. Content Styling */
.legal-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 20px;
}

/* Headings (H2) */
.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

/* Lists */
.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}
.legal-content li {
    font-size: 16px;
    color: #475569;
    margin-bottom: 10px;
    list-style-type: disc;
}
.legal-content strong {
    color: #0f172a;
}

/* Links */
.legal-content a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}
.legal-content a:hover {
    text-decoration: underline;
}

/* Special Notice Box */
.notice-box {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 15px;
    color: #1e40af;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .legal-doc-wrapper {
        padding: 20px;
        margin: 20px 10px;
    }
    .legal-header h1 {
        font-size: 28px;
    }
}

/* =========================================
   CUSTOM LAYOUT DESIGN (Taiyari.in)
   ========================================= */

/* 1. HERO SECTION (.abt-hero) */
.abt-hero {
    text-align: center;
    padding: 80px 20px;
    background: #f8fafc;
    border-radius: 24px;
    margin-bottom: 50px;
    border: 1px solid #e2e8f0;
}
.hero-badge {
    background: #eff6ff; color: #2563eb; 
    font-size: 11px; font-weight: 800; padding: 5px 12px; 
    border-radius: 20px; letter-spacing: 1px;
}
.abt-hero h1 {
    font-size: 42px; font-weight: 900; color: #0f172a;
    line-height: 1.2; margin: 20px 0;
}
.abt-hero .highlight { color: #2563eb; }
.abt-hero p {
    font-size: 18px; color: #64748b; max-width: 700px; margin: 0 auto 30px;
}

/* BUTTON (.abt-cta) */
.abt-cta-box { margin-top: 30px; }
.abt-cta {
    background: #0f172a; color: #fff !important;
    padding: 15px 40px; border-radius: 50px;
    font-weight: 700; text-decoration: none;
    display: inline-block; transition: 0.3s;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}
.abt-cta:hover {
    background: #2563eb; transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
}

/* 2. ABOUT SITE (.abt-site) */
.abt-site {
    max-width: 900px; margin: 0 auto 80px; padding: 0 20px;
    text-align: center;
}
.abt-site h2 { font-size: 32px; font-weight: 800; color: #0f172a; margin-bottom: 20px; }
.abt-site p { font-size: 17px; color: #475569; line-height: 1.7; margin-bottom: 20px; }

.site-list {
    list-style: none; padding: 0; display: flex; 
    justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 30px;
}
.site-list li {
    background: #fff; border: 1px solid #cbd5e1;
    padding: 10px 20px; border-radius: 10px; font-size: 14px; color: #334155;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

/* 3. FOUNDER SECTION (.st-founder) */
.st-founder {
    background: #1e293b;
    color: #fff;
    border-radius: 30px;
    padding: 50px;
    margin-bottom: 80px;
    position: relative; overflow: hidden;
}
.founder-grid {
    display: flex; align-items: center; gap: 50px;
}

/* Image Styling */
.founder-visual { flex: 1; position: relative; }
.founder-visual img {
    width: 100%; border-radius: 20px;
    border: 4px solid #38bdf8;
    transform: rotate(-3deg);
    transition: 0.3s;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.st-founder:hover .founder-visual img { transform: rotate(0deg) scale(1.02); }

/* Text Styling */
.founder-text { flex: 1.2; }
.tiny-tag { color: #38bdf8; font-weight: 800; font-size: 12px; letter-spacing: 1px; }
.founder-text h3 { font-size: 36px; font-weight: 800; margin: 10px 0 20px; color: #fff; }
.founder-text p { font-size: 16px; line-height: 1.8; color: #cbd5e1; margin-bottom: 20px; }

.founder-sign {
    border-top: 1px solid #334155; padding-top: 20px; margin-top: 20px;
}
.founder-sign strong { display: block; font-size: 18px; color: #fff; }
.founder-sign span { font-size: 13px; color: #94a3b8; text-transform: uppercase; }

/* 4. TEAM SECTION (.st-team) */
.st-team { text-align: center; margin-bottom: 60px; }
.team-intro h2 { font-size: 32px; font-weight: 800; color: #0f172a; }
.team-intro p { color: #64748b; margin-bottom: 40px; }

.team-wrapper {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.team-member {
    background: #fff; padding: 20px; border-radius: 16px;
    border: 1px solid #e2e8f0; transition: 0.3s;
}
.team-member:hover {
    transform: translateY(-10px);
    border-color: #2563eb;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.1);
}

/* Round Team Images */
.team-member img {
    width: 90px; height: 90px; object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #e2e8f0;
}
.team-member h4 { margin: 0; font-size: 18px; font-weight: 700; color: #1e293b; }
.team-member span { font-size: 13px; color: #2563eb; font-weight: 600; text-transform: uppercase; }

/* MOBILE RESPONSIVE FIXES */
@media (max-width: 768px) {
    .abt-hero h1 { font-size: 30px; }
    .founder-grid { flex-direction: column; text-align: center; }
    .founder-visual img { transform: rotate(0deg); max-width: 80%; margin: 0 auto 20px; }
    .site-list { flex-direction: column; }
    .st-founder { padding: 30px 20px; }
}

/* =========================================
   MODERN COMMENT BOX & POST NAVIGATION
   ========================================= */

/* 1. MODERN COMMENT BOX */
#comments {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

/* Comment Form Card */
.comment-respond {
    background: #f8fafc;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

.comment-reply-title {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    display: block;
    margin-bottom: 20px;
}
.comment-reply-title small a { display: none; }

/* Inputs & Textarea */
.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input {
    width: 100%;
    border: 2px solid #e2e8f0;
    background: #fff;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 15px;
    color: #334155;
    outline: none;
    transition: 0.3s;
    margin-bottom: 15px;
    font-family: inherit;
}

/* Focus Effect */
.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Submit Button */
.form-submit .submit {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    width: 100%;
}
.form-submit .submit:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* 2. EXISTING COMMENTS LIST */
.comment-list { padding: 0; list-style: none; }
.comment-body {
    background: #fff;
    border: 1px solid #f1f5f9;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.comment-author .avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    float: left;
    margin-right: 15px;
    border: 2px solid #eff6ff;
}

.fn { font-style: normal; font-weight: 800; color: #0f172a; font-size: 15px; }
.comment-meta { font-size: 11px; color: #94a3b8; margin-bottom: 10px; }
.comment-content p { font-size: 14px; line-height: 1.6; color: #475569; margin: 0; }

/* Reply Button */
.reply { text-align: right; margin-top: 10px; }
.comment-reply-link {
    font-size: 11px; font-weight: 700; color: #2563eb;
    background: #eff6ff; padding: 4px 12px; border-radius: 20px;
    text-decoration: none;
}

/* 3. POST NAVIGATION (PREV / NEXT) */
.taiyari-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px dashed #e2e8f0;
}

.nav-box {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 16px;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.nav-box:hover {
    border-color: #3b82f6;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.nav-box.prev { text-align: left; }
.nav-box.next { text-align: right; }

.nav-label {
    font-size: 11px; font-weight: 700; color: #94a3b8;
    text-transform: uppercase; margin-bottom: 5px;
}

.nav-title {
    font-size: 15px; font-weight: 700; color: #1e293b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile Nav Stack */
@media (max-width: 600px) {
    .taiyari-post-nav { grid-template-columns: 1fr; gap: 15px; }
    .nav-box { padding: 15px; }
    .comment-respond { padding: 20px; }
}

/* =========================================
   TABLE HEADER COLOR FIX
   ========================================= */
.tp-content th {
    background-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    text-align: center !important;
    border: 1px solid #1e40af !important;
}

/* Data Cells (Normal) */
.tp-content td {
    color: #334155 !important;
    background-color: #ffffff !important;
}

/* Zebra Striping */
.tp-content tr:nth-child(even) td {
    background-color: #f8fafc !important;
}

/* =========================================
   MOBILE ONLY STYLES (Max Width 600px)
   ========================================= */
@media (max-width: 600px) {
    /* 1. Container & Padding */
    .tp-container {
        padding: 15px 12px !important;
    }

    /* 2. Main Title (H1) */
    .tp-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    /* 3. Headings inside Post (H2, H3) */
    .tp-content h2 {
        font-size: 18px !important;
        margin-top: 25px !important;
        margin-bottom: 10px !important;
        font-weight: 700 !important;
    }
    .tp-content h3 {
        font-size: 16px !important;
        font-weight: 700 !important;
    }

    /* 4. Paragraph Text */
    .tp-content p {
        font-size: 15px !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
        text-align: left;
    }

    /* 5. Lists */
    .tp-content ul, .tp-content ol {
        padding-left: 20px !important;
        margin-bottom: 15px !important;
    }
    .tp-content li {
        font-size: 15px !important;
        margin-bottom: 6px !important;
        line-height: 1.5 !important;
    }

    /* 6. TABLE OPTIMIZATION */
    .tp-content table {
        display: table !important;
        width: 100% !important;
        table-layout: auto !important;
        border-collapse: collapse !important;
    }
    
    .tp-content th, .tp-content td {
        white-space: normal !important;
        word-wrap: break-word !important;
        font-size: 11px !important;
        padding: 5px 2px !important;
        line-height: 1.3 !important;
        border: 1px solid #cbd5e1;
        vertical-align: middle;
    }
    
    /* Header ko thoda alag dikhane ke liye */
    .tp-content th {
        background: #f1f5f9;
        font-weight: 700;
        font-size: 11px !important;
        text-align: center;
    }

    /* 7. Image Adjustment */
    .tp-hero-image img, .tp-content img {
        border-radius: 8px !important;
        margin: 10px 0 !important;
        height: auto !important;
    }
}

/* =========================================
   TAIYARI MODERN DASHBOARD FULL CSS
   ========================================= */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #ec4899;
    --bg-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --shadow-soft: 0 10px 30px -10px rgba(0,0,0,0.08);
}

.taiyari-modern-wrapper { 
    background: var(--bg-light); 
    min-height: 100vh; 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}
/* =========================================
   1. PREMIUM HERO SECTION (FIXED & POLISHED)
   ========================================= */
.premium-hero { 
    position: relative; 
    padding: 100px 20px 120px; /* Thoda space badhaya */
    text-align: center; 
    overflow: hidden; 
    background: #ffffff; 
    border-bottom-left-radius: 50px; /* Rounding badhayi */
    border-bottom-right-radius: 50px;
    box-shadow: 0 20px 60px -20px rgba(0,0,0,0.05); /* Soft Shadow added */
}

/* Background Shapes (Blur Blobs) */
.hero-bg-shapes .shape { 
    position: absolute; 
    border-radius: 50%; 
    filter: blur(80px); 
    z-index: 0; 
    opacity: 0.2; /* Thoda visible kiya */
}
.s1 { width: 350px; height: 350px; background: #3b82f6; top: -100px; left: -50px; animation: floatShape 8s infinite alternate; }
.s2 { width: 300px; height: 300px; background: #ec4899; bottom: -50px; right: -50px; animation: floatShape 10s infinite alternate-reverse; }

@keyframes floatShape { from { transform: translate(0,0); } to { transform: translate(20px, 40px); } }

.hero-inner { position: relative; z-index: 2; max-width: 850px; margin: auto; }

/* Badge */
.badge-new { 
    background: #eff6ff; 
    color: #2563eb; 
    padding: 6px 18px; 
    border-radius: 50px; 
    font-size: 12px; 
    font-weight: 800; 
    text-transform: uppercase; 
    display: inline-block;
    margin-bottom: 25px;
    letter-spacing: 1px;
    border: 1px solid #dbeafe;
}

/* Heading */
.hero-inner h1 { 
    font-size: clamp(36px, 5vw, 64px); /* Bada Font */
    font-weight: 900; 
    color: #0f172a; 
    margin-bottom: 20px; 
    letter-spacing: -2px; 
    line-height: 1.1;
}

.text-gradient { 
    background: linear-gradient(135deg, #2563eb, #ec4899); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.hero-inner p {
    font-size: 20px;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* --- MODERN SEARCH BAR (FIXED) --- */
.modern-search { 
    max-width: 600px; 
    margin: 0 auto 40px; 
    display: flex; 
    align-items: center;
    background: #ffffff; 
    padding: 6px; 
    border-radius: 60px; /* Full Pill Shape */
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); 
    border: 1px solid #e2e8f0; 
    position: relative;
    z-index: 5;
    transition: 0.3s;
}

/* Focus Effect (Jab click karein) */
.modern-search:focus-within {
    border-color: #2563eb;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.search-input-wrap { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    padding-left: 25px; 
}

.search-icon { 
    margin-right: 15px; 
    opacity: 0.6; 
    font-size: 20px; 
}

.search-input-wrap input { 
    border: none; 
    outline: none; 
    padding: 12px 0; 
    width: 100%; 
    font-size: 17px; 
    color: #0f172a;
    background: transparent;
}

.modern-search button { 
    background: #2563eb; 
    color: #ffffff; 
    border: none; 
    padding: 14px 35px; /* Button sizing fix */
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 15px;
    cursor: pointer; 
    transition: all 0.3s ease; 
    margin-left: 10px;
}

.modern-search button:hover { 
    background: #1e40af; 
    transform: translateY(-1px); 
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* TRENDING TAGS */
.trending-topics { 
    display: flex; 
    justify-content: center; 
    gap: 10px; 
    align-items: center; 
    flex-wrap: wrap; 
}

.trending-topics .label { 
    font-size: 12px; 
    font-weight: 800; 
    color: #94a3b8; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

.topic-tag { 
    font-size: 13px; 
    color: #475569; 
    background: #f1f5f9;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600; 
    text-decoration: none;
    transition: 0.2s;
    border: 1px solid transparent;
}

.topic-tag:hover { 
    background: #fff; 
    border-color: #2563eb;
    color: #2563eb; 
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* --- MOBILE RESPONSIVE FIX --- */
@media (max-width: 600px) {
    .premium-hero { 
        padding: 60px 15px 40px !important; 
        border-radius: 0 0 30px 30px;
    }
    
    .hero-inner h1 { font-size: 32px; margin-bottom: 15px; }
    .hero-inner p { font-size: 16px; margin-bottom: 25px; }
    
    .modern-search { 
        padding: 5px; 
        margin-bottom: 25px;
        flex-direction: row; /* Ensure row layout on mobile */
    }
    
    .search-input-wrap { padding-left: 15px; }
    .search-input-wrap input { font-size: 15px; width: 100%; } /* Prevent overflow */
    
    .modern-search button { 
        padding: 10px 20px; 
        font-size: 14px;
        border-radius: 40px;
    }
    
    .trending-topics { gap: 8px; }
    .topic-tag { font-size: 11px; padding: 5px 12px; }
    
    /* Background shapes chote mobile par */
    .s1 { width: 200px; height: 200px; top: -50px; left: -50px; }
    .s2 { width: 150px; height: 150px; }
}

/* 2. SMART STICKY NAVIGATION (Glassmorphism) */
.smart-nav-outer { 
    position: sticky; 
    top: 20px;
    z-index: 1000; 
    padding: 0 15px; 
    margin-top: -40px;
}

.smart-nav-inner { 
    background: var(--glass-bg); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    padding: 10px 15px; 
    border-radius: 20px; 
    display: flex; 
    align-items: center; 
    box-shadow: var(--shadow-soft); 
    gap: 15px; 
    overflow-x: auto; 
    scrollbar-width: none;
    border: 1px solid rgba(255,255,255,0.6); 
    max-width: 900px;
    margin: 0 auto;
}
.smart-nav-inner::-webkit-scrollbar { display: none; }

.nav-group { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.v-line { width: 1px; height: 24px; background: #cbd5e1; flex-shrink: 0; }

/* Filter Buttons (Pills) */
.l-pill, .cat-pill { 
    border: 1px solid transparent; 
    background: transparent; 
    padding: 8px 16px; 
    border-radius: 10px; 
    font-size: 14px; 
    font-weight: 600; 
    cursor: pointer; 
    color: var(--text-muted); 
    white-space: nowrap; 
    transition: all 0.2s ease; 
}

.l-pill:hover, .cat-pill:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

.l-pill.active, .cat-pill.active { 
    background: var(--white); 
    color: var(--primary); 
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
    border: 1px solid #e2e8f0;
}

/* Date Input Styling */
.styled-date { 
    border: 1px solid #e2e8f0; 
    padding: 8px 12px; 
    border-radius: 10px; 
    font-size: 13px; 
    outline: none; 
    color: var(--text-main); 
    background: var(--white);
    font-family: inherit;
    cursor: pointer;
}

/* =========================================
   HERO MOBILE COMPACT FIX (MERGED VERSION)
   ========================================= */
@media (max-width: 600px) {
    /* Container ko chota kiya */
    .premium-hero {
        padding: 40px 15px 30px !important;
        border-bottom-left-radius: 25px;
        border-bottom-right-radius: 25px;
    }
    
    .taiyari-hero {
        padding: 40px 15px 30px !important;
        border-bottom-left-radius: 25px;
        border-bottom-right-radius: 25px;
    }

    /* Heading size control */
    .hero-inner h1,
    .hero-content h1 {
        font-size: 26px !important;
        margin-bottom: 10px;
        line-height: 1.2;
    }

    /* Paragraph Text */
    .hero-inner p,
    .hero-content p {
        font-size: 14px !important;
        margin-bottom: 20px;
        line-height: 1.4;
        padding: 0 5px;
    }

    /* Search Bar Compact */
    .modern-search,
    .taiyari-search {
        padding: 4px;
        margin-bottom: 20px;
        border-radius: 12px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    }
    
    .search-input-wrap input,
    .taiyari-search input {
        font-size: 14px;
        padding: 8px;
    }
    
    .modern-search button,
    .taiyari-search button {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 10px;
    }

    /* Tags Styling */
    .trending-topics,
    .taiyari-tags { 
        gap: 6px; 
        margin-bottom: 10px; 
    }
    
    .trending-topics .label,
    .taiyari-tags span { 
        font-size: 11px; 
    }
    
    .topic-tag,
    .t-tag {
        font-size: 11px; 
        padding: 3px 8px; 
    }

    /* OVERLAP FIX */
    .smart-nav-outer {
        margin-top: -25px !important;
    }
    
    /* Filters ko Scrollable Banao */
    .smart-nav-inner {
        padding: 8px 10px;
        gap: 10px;
        justify-content: flex-start;
        overflow-x: auto;
    }
    
    /* Filter pills chote kiye */
    .l-pill, .cat-pill, .styled-date {
        font-size: 12px;
        padding: 5px 10px;
        height: auto;
    }
    .v-line { height: 15px; }
}

/* =========================================
   HOMEPAGE HERO (PREMIUM STYLE MATCH)
   ========================================= */

/* 1. Main Container (Background & Shape) */
.taiyari-hero {
    position: relative;
    padding: 80px 20px 60px;
    text-align: center;
    background: #ffffff;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05); 
}

/* 2. Heading (Typography) */
.hero-content h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 15px;
    line-height: 1.1;
    letter-spacing: -1px;
}

/* Subtitle */
.hero-content p {
    font-size: 18px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.5;
}

/* 3. Modern Search Bar */
.taiyari-search {
    max-width: 550px;
    margin: 0 auto 30px;
    display: flex;
    background: #ffffff;
    padding: 6px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    z-index: 2;
}

.taiyari-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 15px;
    font-size: 16px;
    color: #0f172a;
    background: transparent;
}

.taiyari-search button {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.taiyari-search button:hover {
    background: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* 4. Tags (Pills Style) */
.taiyari-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.taiyari-tags span {
    font-size: 13px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
}

.t-tag {
    background: #eff6ff;
    color: #2563eb;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
    border: 1px solid transparent;
}

.t-tag:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

/* =========================================
   FEED SECTION GRID
   ========================================= */
.feed-section { max-width: 900px; margin: auto; padding: 40px 20px; }

.modern-slim-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr);
    gap: 15px; 
}

/* Tablet View (2 Cards) */
@media (max-width: 1024px) {
    .modern-slim-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile View (1 Card - Full Width) */
@media (max-width: 600px) {
    .modern-slim-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .feed-section {
        padding: 20px 10px;
    }
}

/* =========================================
   CA PREMIUM SECTION
   ========================================= */

/* --- SECTION CONTAINER (Full Width) --- */
.ca-premium-section {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: 'Segoe UI', sans-serif;
}

/* --- HEADER --- */
.ca-section-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 30px; border-bottom: 2px solid #f1f5f9; padding-bottom: 15px;
}
.header-content h2 {
    font-size: 28px; font-weight: 800; color: #0f172a; margin: 0;
}
.header-content p {
    color: #64748b; margin: 5px 0 0; font-size: 14px;
}

/* GLOBAL TOGGLE SWITCH */
.global-lang-switch {
    background: #f1f5f9; padding: 4px; border-radius: 8px; display: flex;
}
.g-btn {
    border: none; background: transparent; padding: 6px 16px;
    font-size: 13px; font-weight: 700; color: #64748b;
    border-radius: 6px; cursor: pointer; transition: 0.3s;
}
.g-btn.active {
    background: #fff; color: #2563eb; box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* --- GRID LAYOUT --- */
.ca-premium-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    position: relative; z-index: 1;
}

/* --- CARD WRAPPER --- */
.ca-card-wrap {
    position: relative;
    height: 400px;
    background: transparent;
    z-index: 1;
}
.ca-card-wrap:hover { z-index: 100; }

/* --- 1. NORMAL CARD DESIGN --- */
.ca-card-inner {
    background: #fff;
    border: 1px solid #e2e8f0; border-radius: 16px;
    overflow: hidden;
    height: 100%; width: 100%;
    position: absolute; top: 0; left: 0;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

/* IMAGE (Zero Padding) */
.ca-img-box {
    width: 100%; height: 180px;
    margin: 0; padding: 0;
    border-bottom: 1px solid #f1f5f9;
}
.ca-img-box img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

/* CONTENT BODY */
.ca-body-box { padding: 18px; display: flex; flex-direction: column; height: calc(100% - 180px); }

/* Sub Category Pill */
.sub-cat-btn {
    display: inline-block; background: #eff6ff; color: #2563eb;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    padding: 4px 10px; border-radius: 6px; margin-bottom: 12px;
    align-self: flex-start;
}

/* TITLE (Full No Wrap) */
.ca-title-main {
    font-size: 16px; font-weight: 700; color: #1e293b;
    line-height: 1.5; margin: 0 0 15px 0;
}

/* FOOTER */
.ca-footer-info {
    margin-top: auto; display: flex; justify-content: space-between; align-items: center;
    border-top: 1px dashed #e2e8f0; padding-top: 12px;
}
.ca-date-txt { font-size: 12px; color: #94a3b8; font-weight: 600; }
.info-btn {
    width: 28px; height: 28px; border-radius: 50%;
    background: #f8fafc; border: 1px solid #cbd5e1; color: #64748b;
    font-family: serif; font-style: italic; font-weight: bold;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* --- 2. BIG HOVER POPUP (Magic Box) --- */
.ca-hover-popup {
    position: absolute;
    top: -20px; left: -20px; right: -20px;
    min-height: calc(100% + 60px);
    background: #0f172a;
    color: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden; transform: scale(0.95);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    display: flex; flex-direction: column;
}

/* Show on Hover */
.ca-card-wrap:hover .ca-hover-popup {
    opacity: 1; visibility: visible; transform: scale(1); pointer-events: auto;
}

/* Hover Content Style */
.popup-cat { color: #38bdf8; font-size: 11px; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; }
.popup-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 15px; border-bottom: 1px solid #334155; padding-bottom: 10px; line-height: 1.4; }
.popup-desc { 
    font-size: 14px; color: #cbd5e1; line-height: 1.6; 
    flex-grow: 1; overflow-y: auto; max-height: 300px; margin-bottom: 20px; 
}
/* Scrollbar for popup */
.popup-desc::-webkit-scrollbar { width: 4px; }
.popup-desc::-webkit-scrollbar-thumb { background: #475569; border-radius: 4px; }

.popup-cta {
    background: #38bdf8; color: #0f172a; text-align: center; padding: 12px;
    border-radius: 10px; font-weight: 700; text-decoration: none;
    transition: 0.2s;
}
.popup-cta:hover { background: #fff; }

/* --- VIEW ALL BUTTON --- */
.ca-section-footer { text-align: center; margin-top: 40px; }
.premium-view-btn {
    display: inline-block; background: #2563eb; color: #fff;
    padding: 14px 35px; border-radius: 50px; font-weight: 600;
    text-decoration: none; box-shadow: 0 10px 20px -5px rgba(37,99,235,0.4);
    transition: 0.3s;
}
.premium-view-btn:hover {
    transform: translateY(-3px); box-shadow: 0 15px 25px -5px rgba(37,99,235,0.5); background: #1d4ed8;
}

/* --- LANGUAGE TOGGLE LOGIC (CSS Based) --- */
/* Default: Show English, Hide Hindi */
.lang-hi { display: none; }
.lang-en { display: block; }

/* When Parent has 'show-hindi' class: Swap them */
#ca-global-widget.show-hindi .lang-en { display: none; }
#ca-global-widget.show-hindi .lang-hi { display: block; }

/* RESPONSIVE */
@media (max-width: 1100px) { .ca-premium-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .ca-premium-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .ca-premium-grid { grid-template-columns: 1fr; } }

/* =========================================
   CIRCULAR CATEGORY GRID
   ========================================= */
.category-grid-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

/* Single Item Styling */
.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 80px;
    transition: 0.3s;
}

.cat-item:hover .cat-icon-box {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #2563eb;
}

.cat-icon-box {
    width: 65px;
    height: 65px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    margin-bottom: 10px;
    transition: 0.3s ease;
}

.cat-icon-box img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.cat-name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .category-grid {
        gap: 15px;
    }
    .cat-item {
        width: 70px;
    }
    .cat-icon-box {
        width: 55px;
        height: 55px;
    }
    .cat-icon-box img {
        width: 26px;
        height: 26px;
    }
    .cat-name {
        font-size: 12px;
    }
}

/* =========================================
   EXAM CARDS GRID (5 CARDS PER ROW)
   ========================================= */
.cards-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 12px !important;
    padding: 0 10px !important;
    width: 100%;
    box-sizing: border-box;
}

/* Laptop (Standard 13-14 inch screens) - 4 Cards */
@media (max-width: 1400px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Tablet (iPad etc) - 3 Cards */
@media (max-width: 1100px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Mobile Landscape / Small Tablet - 2 Cards */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile Portrait - 1 Card (Full Width) */
@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================
   GLOBAL APP LAYOUT
   ========================================= */
.txyf-app { font-family: 'Inter', sans-serif; background: #f8fafc; padding: 20px 0; color: #1e293b; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* =========================================
   SMART VERTICAL LEADERBOARD DESIGN
   ========================================= */

/* Main Container */
.txyf-smart-leaderboard {
    text-align: center;
    padding: 30px 10px;
    background: #fff;
    font-family: 'Inter', sans-serif;
}
.txyf-smart-leaderboard h3 {
    font-size: 20px; font-weight: 800; color: #1e293b; margin-bottom: 25px;
}

/* Flex Container */
.lb-flex-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 10px;
}

/* CARD DESIGN (Vertical Layout) */
.lb-smart-card {
    background: #ffffff;
    width: 140px;
    padding: 20px 10px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    position: relative;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.lb-smart-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }

/* --- 1. IMAGE AREA --- */
.avatar-box { position: relative; margin-bottom: 5px; }

.user-circle {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

.user-circle img { width: 100%; height: 100%; object-fit: cover; }
.u-initial { font-size: 24px; font-weight: 800; color: #64748b; text-transform: uppercase; }

/* Top Ranks Styling */
.top-rank-1 .user-circle { border-color: #fbbf24; background: #fffbeb; }
.top-rank-1 .u-initial { color: #d97706; }

.crown-icon {
    position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
    font-size: 24px; animation: float 2s infinite ease-in-out;
}
@keyframes float { 0%,100%{top:-22px} 50%{top:-28px} }

/* --- 2. NAME --- */
.u-name {
    font-size: 14px; font-weight: 700; color: #1e293b;
    width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* --- 3. RANK BADGE (Below Name) --- */
.u-rank-badge {
    font-size: 11px; font-weight: 800;
    padding: 3px 10px; border-radius: 20px;
    background: #f1f5f9; color: #64748b;
    border: 1px solid #e2e8f0;
}
/* Colors for Top 3 Ranks */
.top-rank-1 .u-rank-badge { background: #fbbf24; color: #fff; border-color: #fbbf24; }
.top-rank-2 .u-rank-badge { background: #94a3b8; color: #fff; border-color: #94a3b8; }
.top-rank-3 .u-rank-badge { background: #d97706; color: #fff; border-color: #d97706; }

/* --- 4. SCORE & PERCENT (Bottom Stats) --- */
.u-stats {
    display: flex; flex-direction: column; gap: 2px;
    margin-top: 5px; padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
    width: 100%;
}

.u-raw-score { font-size: 11px; color: #64748b; font-weight: 500; }
.u-percent { font-size: 16px; font-weight: 800; color: #2563eb; }

/* Toggle Container */
.lb-toggle-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 30px;
    display: inline-flex;
    border: 1px solid #e2e8f0;
}

/* Buttons */
.lb-toggle-btn {
    padding: 8px 25px;
    border-radius: 25px;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.lb-toggle-btn:hover {
    color: #3b82f6;
}

/* Active State */
.lb-toggle-btn.active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-weight: 700;
}

/* Animation for Cards appearing */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.anim-card {
    animation: fadeInUp 0.5s ease-out both;
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 768px) {
    .lb-flex-container {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-left: 15px; padding-bottom: 20px;
    }
    .lb-flex-container::-webkit-scrollbar { display: none; }
    
    /* Card Chota for Mobile */
    .lb-smart-card { width: 110px; padding: 15px 5px; }
    .user-circle { width: 45px; height: 45px; }
    .u-initial { font-size: 18px; }
    .u-name { font-size: 12px; }
    .u-percent { font-size: 14px; }
}

/* =========================================
   SMART COMPACT CARD STYLE
   ========================================= */
.test-card-smart, .test-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    position: relative;
}

.test-card-smart:hover, .test-card:hover { 
    transform: translateY(-8px); 
    border-color: #3b82f6; 
    box-shadow: 0 15px 30px rgba(59,130,246,0.12); 
}

/* Logo Kariigari */
.card-logo, .sq-logo { 
    width: 70px; 
    height: 70px; 
    background: #f1f5f9; 
    border-radius: 18px; 
    margin-bottom: 15px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    font-size: 30px;
    transition: 0.3s;
}

.card-logo img, .sq-logo img { width: 100%; height: 100%; object-fit: cover; }
.test-card-smart:hover .card-logo { transform: rotate(-5deg) scale(1.1); }

/* Typography */
.card-title { 
    font-weight: 800; 
    font-size: 15px; 
    color: #1e293b; 
    margin: 0 0 12px 0; 
    line-height: 1.4; 
    height: 42px; 
    overflow: hidden; 
}

.card-meta { 
    font-size: 11px; 
    color: #64748b; 
    font-weight: 700; 
    background: #f1f5f9; 
    padding: 4px 12px; 
    border-radius: 50px; 
    display: inline-flex;
    gap: 8px;
}

/* =========================================
   HOMEPAGE SPECIFIC GRID FIX
   ========================================= */

/* Desktop: 5 Cards per row */
.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 25px;
    width: 100%;
}

/* Tablet (Laptop/iPad): 3 Cards */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Small Tablet / Large Mobile: 2 Cards */
@media (max-width: 800px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile: 1 Card */
@media (max-width: 500px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================
   MOBILE FILTER BUTTON CUSTOMIZATION
   ========================================= */
@media (max-width: 768px) {
    .mobile-filter-toggle {
        display: flex !important;
        justify-content: center;
        margin: 15px 0 !important;
    }

    .mobile-filter-toggle button {
        padding: 8px 20px !important;
        font-size: 13px !important;
        height: auto !important;
        width: auto !important;
        background: #2563eb !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 50px !important;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mobile-filter-toggle button:active {
        transform: scale(0.95);
        background: #1e40af !important;
    }
}

/* =========================================
   SECTION HEADER STYLING (Available Tests)
   ========================================= */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

/* Heading Styling */
.section-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    position: relative;
    padding-left: 15px;
}

/* Blue Accent Line (Side me) */
.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    background: #2563eb;
    border-radius: 10px;
}

/* "Showing X Tests" Text Styling */
.section-header p {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 6px 15px;
    border-radius: 20px;
    margin: 0;
    border: 1px solid #e2e8f0;
}

/* Mobile Adjustment */
@media (max-width: 600px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* =========================================
   FINAL FIXES & CLEANUP
   ========================================= */

/* Avatar & Crown Kariigari */
.avatar-box { position: relative; margin-bottom: 15px; }
.user-img { 
    width: 65px; 
    height: 65px; 
    background: #3b82f6; 
    color: #fff; 
    border-radius: 50%; 
    margin: 0 auto; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 24px; 
    font-weight: 800; 
    border: 4px solid #fff; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.crown-icon { 
    position: absolute; 
    top: -22px; 
    left: 50%; 
    transform: translateX(-50%); 
    font-size: 26px; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.rank-badge { 
    position: absolute; 
    bottom: -8px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: #1e293b; 
    color: #fff; 
    padding: 2px 10px; 
    border-radius: 10px; 
    font-size: 10px; 
    font-weight: 900; 
}

/* Rank Medals */
.top-rank-1 { border: 2px solid #fbbf24; background: linear-gradient(180deg, #fff 0%, #fff9e6 100%); }
.top-rank-1 .user-img { background: #fbbf24; box-shadow: 0 0 20px rgba(251,191,36,0.4); }
.top-rank-2 { border: 2px solid #94a3b8; }
.top-rank-3 { border: 2px solid #b45309; }

.u-name { font-weight: 800; font-size: 14px; color: #1e293b; margin-top: 5px; }
.u-score { font-size: 18px; font-weight: 900; color: #3b82f6; }

/* --- HERO & FILTERS --- */
.hero-section { background: #fff; border-bottom: 1px solid #eee; padding: 40px 0; text-align: center; margin-bottom: 30px; border-radius: 0 0 30px 30px; }
.search-bar { max-width: 500px; margin: 20px auto; display: flex; border: 2px solid #e2e8f0; border-radius: 50px; overflow: hidden; }
.search-bar input { flex: 1; padding: 12px 20px; border: none; outline: none; }
.search-bar button { padding: 0 25px; background: #3b82f6; color: #fff; border: none; font-weight: 700; cursor: pointer; }

/* Additional Mobile Optimization */
@media (max-width: 768px) {
    .cards-grid.pc-four-cols { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
}