
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #f8fafc;
    --card-bg: #ffffff;
    --accent: #2563eb; /* Royal Blue */
    --accent-alt: #f59e0b; /* Amber */
    --accent-glow: rgba(37, 99, 235, 0.1);
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --glass-border: rgba(0, 0, 0, 0.06);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background: var(--bg-dark);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
}

h1, h2, h3, h4, .card-title {
    color: var(--text-primary);
}

p {
    color: var(--text-muted);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-size: 1.5rem;
}

.live-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- NAVIGATION --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 8%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent);
    z-index: 2000;
    transition: width 0.1s ease-out;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent);
    text-decoration: none;
    z-index: 1010;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin-left: auto; /* Push to the right */
}

.nav-links li {
    position: relative;
    padding: 1.2rem 0;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links li a::after {
    content: ''; 
    display: inline-block;
    width: 4px;
    height: 4px;
    border-right: 1.2px solid rgba(15, 23, 42, 0.4);
    border-bottom: 1.2px solid rgba(15, 23, 42, 0.4);
    transform: rotate(45deg);
    margin-bottom: 3px;
    transition: var(--transition);
}

.nav-links li:last-child {
    margin-left: 1.5rem;
}

.nav-links li a:only-child::after, .nav-links li a.btn-primary::after {
    display: none;
}

.nav-links li a:hover {
    color: var(--accent);
}

/* --- DROPDOWNS --- */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 240px;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    list-style: none;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease-out;
    z-index: 2000;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.nav-links li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links li:hover > a::after {
    transform: rotate(-135deg);
    margin-bottom: -1px;
}

.dropdown li a {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: none; /* Removed force uppercase */
}

.dropdown li a:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--accent) !important;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.7rem 2.2rem;
    border-radius: 100px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 1010;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 10px;
    transition: var(--transition);
}

/* --- HERO --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 8% 5rem;
    gap: 4rem;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-img {
    flex: 0.8;
}

.card img, .hero-img img, .user-img {
    background: #f1f5f9; /* Lighter fallback color */
    display: block;
}

img {
    content-visibility: auto; /* Browser optimization */
    max-width: 100%;
    height: auto;
}

/* --- SECTIONS & GRID --- */
.container {
    padding-left: 8%;
    padding-right: 8%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-lg {
    padding: 10rem 0;
}

.section-padding {
    padding: 6rem 0;
}

.cta-block {
    background: var(--bg-dark);
    border: 1px solid var(--accent);
    padding: 6rem;
    border-radius: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .section-lg { padding: 5rem 0; }
    .section-padding { padding: 3rem 0; }
    .cta-block { padding: 3rem 1.5rem; border-radius: 24px; }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: #ffffff;
        width: 100%;
        height: 100vh;
        padding: 6rem 2rem;
        transition: 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
        align-items: flex-start;
        gap: 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .nav-links li:last-child {
        margin-left: 0;
        border-bottom: none;
        padding-top: 2rem;
    }

    .nav-links li a {
        padding: 1.5rem 0;
        width: 100%;
        justify-content: space-between;
        font-size: 1.2rem;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0,0,0,0.02);
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .nav-links li.active-mobile .dropdown {
        max-height: 500px;
        padding-bottom: 1.5rem;
    }

    .dropdown li a {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        opacity: 0.7;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-header h2 span {
    color: var(--accent);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

.card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
}

.card p {
    color: var(--text-muted);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    color: var(--text-primary); /* Ensure text stays correct on hover */
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-content {
    flex: 1;
}

.card-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    margin-top: auto;
}

/* --- REVIEWS --- */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.review-card:hover { border-color: var(--accent-alt); }

.user-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    border: 2px solid var(--accent-alt);
}

.user-name {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* --- MARKET TICKER --- */
.market-ticker {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.6rem 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.ticker-content {
    display: flex;
    overflow: hidden;
    padding-left: 2rem;
}

.ticker-status {
    background: #ffffff;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-primary);
    position: relative;
    z-index: 20;
    border-right: 1px solid var(--glass-border);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: pulse-ring 1.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    gap: 3rem;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.ticker-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.ticker-price {
    color: var(--text-primary);
}

.ticker-change {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.ticker-change.up {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.ticker-change.down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pause on hover for better UX */
.market-ticker:hover .ticker-track {
    animation-play-state: paused;
}


/* --- FOOTER --- */
.footer {
    background: #f1f5f9;
    padding: 6rem 8% 4rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    border-top: 1px solid var(--glass-border);
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links ul li a:hover { color: var(--accent); }

/* --- ANIMATIONS (Reveal on Scroll) --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Grid Children */
.grid > .reveal, .review-grid > .reveal, .learning-step {
    transition-delay: calc(var(--order) * 100ms);
}

/* Page Entrance */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content, .section-header {
    animation: fadeInUp 1.2s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

/* Float Animation for Images */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero-img img, .card:hover img {
    animation: float 6s ease-in-out infinite;
}

.card:hover img {
    animation-play-state: running;
}

.card img {
    animation-play-state: paused;
}

/* --- MOBILE --- */
@media (max-width: 1024px) {
    .navbar { padding: 1.2rem 5%; }
    .hero { flex-direction: column; text-align: center; padding-top: 6rem; }
    .hero-content { order: 2; }
    .hero-img { order: 1; max-width: 400px; margin: 0 auto 2rem; }
    .footer { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 1.5rem;
        padding-top: 6rem;
        z-index: 1005;
        visibility: hidden;
        opacity: 0;
        overflow-y: auto;
        transform: translateY(-20px);
        transition: all 0.4s ease;
    }

    .nav-links li { width: 100%; text-align: center; }
    .nav-links li a { justify-content: center; }

    /* Mobile Dropdown (Accordion) */
    .dropdown {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        background: rgba(0, 0, 0, 0.03) !important;
        border: none !important;
        box-shadow: none !important;
        display: none !important;
        padding: 0.5rem 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin: 0.5rem 0;
        border-radius: 12px;
    }

    .nav-links li.active-mobile .dropdown {
        display: block !important;
    }

    .dropdown li {
        width: 100%;
        text-align: left;
    }

    .dropdown li a {
        padding: 0.8rem 2rem !important;
        font-size: 1.1rem !important;
        color: var(--text-primary) !important;
        display: block !important;
        width: 100%;
    }

    .nav-links li a::after {
        content: '+';
        font-weight: 300;
        border: none;
        transform: none;
        width: auto;
        height: auto;
        margin-left: 10px;
    }

    .nav-links li.active-mobile > a::after {
        content: '−';
        transform: none;
    }

    .nav-links.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links li a { font-size: 1.6rem; font-weight: 700; }
    .hero-content h1 { font-size: 2.6rem; }
    .container { padding-left: 20px; padding-right: 20px; }
    .section-header h2 { font-size: 2.2rem; }
}

/* --- NEXTBITCOINS INSPIRED COMPONENTS --- */

/* Featured Slider (Low Cap Coins Style) */
.featured-news-slider {
    padding: 4rem 8%;
    background: #f1f5f9;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.slider-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.slider-header .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.slider-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}

.news-slider-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none; /* Firefox */
}

.news-slider-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.news-slide-item {
    flex: 0 0 300px;
    text-align: center;
    transition: var(--transition);
}

.news-slide-item a {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-slide-item .date {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-slide-item:hover {
    transform: translateY(-5px);
}

.news-slide-item:hover a {
    color: var(--accent);
}

/* Modern Blog Grid (NextBitcoins Style) */
.blog-modern-container {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 3rem;
    padding-top: 2rem;
}

.blog-main-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.blog-post-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 0;
    text-align: left; /* Changed to left-aligned for better readability in small cards */
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-post-card .blog-img-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.blog-post-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-post-card:hover img {
    transform: scale(1.05);
}

.blog-post-card:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.blog-category {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-alt);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.blog-title a:hover {
    color: var(--accent);
}

.blog-meta-full {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-share {
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: auto;
}

.share-icon {
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.03);
    border: 1px solid var(--glass-border);
}

.share-icon:hover {
    color: var(--accent);
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.tab-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tab {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.tab.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.recent-post-thumb {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 8px;
    flex-shrink: 0;
}

.recent-post-content a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    line-height: 1.4;
}

.recent-post-content span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .blog-modern-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-main-content {
        grid-template-columns: 1fr;
    }
    
    .blog-post-card {
        padding: 1.5rem;
    }

    .blog-post-card .blog-img-wrapper {
        height: 220px; /* Slightly taller on mobile for better visibility */
    }
    
    .blog-title {
        font-size: 1.25rem;
    }

    .featured-news-slider {
        padding: 3rem 20px;
    }

    .news-slide-item {
        flex: 0 0 260px; /* Slightly narrower items on mobile */
    }

    .slider-header h2 {
        font-size: 1rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .blog-post-card .blog-img-wrapper {
        height: 180px;
    }
    
    .news-slide-item {
        flex: 0 0 220px;
    }
}

/* --- RESPONSIVE GRIDS --- */
.pulse-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

@media (max-width: 992px) {
    .pulse-grid {
        grid-template-columns: 1fr;
    }
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .section-header h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .grid {
        grid-template-columns: 1fr !important;
    }

    .card {
        padding: 1.5rem !important;
    }
}

.battle-grid {
    display: grid; 
    grid-template-columns: 1fr auto 1fr; 
    gap: 3rem; 
    align-items: center; 
    max-width: 1100px; 
    margin: 0 auto;
}

@media (max-width: 992px) {
    .battle-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .battle-grid > div:nth-child(2) {
        display: none; /* Hide the center VS text on mobile as cards stack */
    }
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

@media (max-width: 992px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.blog-show-grid {
    display: grid; 
    grid-template-columns: 3fr 1fr; 
    gap: 4rem; 
    align-items: start;
}

@media (max-width: 1024px) {
    .blog-show-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-show-grid aside {
        position: static !important;
        width: 100%;
    }
}

.breadcrumb-nav {
    margin: 1.5rem auto;
}

@media (max-width: 768px) {
    .breadcrumb-nav {
        margin: 1rem auto;
        padding: 0 20px;
    }
    
    .breadcrumb {
        font-size: 0.8rem !important;
    }
}
/* --- PAGINATION --- */
.pagination-container {
    margin-top: 2rem;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    padding: 0;
    align-items: center;
}

.page-item {
    display: flex;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.page-link:hover {
    background: var(--bg-dark);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
}

@media (max-width: 480px) {
    .page-link {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}
