/* Mobile-First CSS Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
    background: #f8fafc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Mobile Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 8px 0;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Consistent height across all devices to prevent CLS */
    height: 60px;
    min-height: 60px;
    max-height: 60px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

.nav-logo h2 {
    color: #667eea;
    font-weight: 700;
    font-size: 1.25rem; /* Reduced from 1.5rem to 1.25rem */
    margin: 0; /* Remove default margin */
    line-height: 1.2;
}

.nav-logo i {
    margin-right: 8px;
}

.nav-menu {
    position: fixed;
    left: -100%;
    top: 60px; /* Keep this consistent with navbar height */
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 0; /* Reduced padding */
    gap: 1rem; /* Reduced gap */
    display: flex;
}

.nav-menu.active {
    left: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 16px; /* Reduced padding */
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 8px; /* Reduced margin */
    font-size: 0.9rem; /* Slightly smaller font */
}

.nav-link:hover {
    background: #f1f5f9;
    color: #667eea;
}

.telegram-btn {
    background: linear-gradient(135deg, #0088cc, #00b4db);
    color: white !important;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    margin: 8px 16px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: #333;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 16px 40px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff10"><polygon points="0,0 1000,0 1000,100"/></svg>');
    background-size: cover;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    color: #ffd700;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 32px;
    opacity: 0.9;
    line-height: 1.5;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-bottom: 40px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
}

/* Coming Soon Button Styling */
.download-btn.coming-soon {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    color: white !important;
    border: none;
    position: relative;
    overflow: hidden;
}

.download-btn.coming-soon:hover {
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
}

.download-btn.coming-soon::before {
    content: '⭐';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 12px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Mobile Apps Section */
.featured-apps {
    padding: 60px 16px;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1a1a1a;
}

.search-container {
    margin-bottom: 32px;
    text-align: center;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 14px 20px;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s ease;
    background: #f8fafc;
}

.search-input:focus {
    border-color: #667eea;
    background: white;
}

.apps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.app-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.app-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    /* Prevent layout shift for images */
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    /* Prevent image loading flash */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-icon img.loaded {
    opacity: 1;
}

.app-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
    text-align: center;
}

.app-card p {
    color: #64748b;
    margin-bottom: 16px;
    font-size: 0.875rem;
    text-align: center;
    line-height: 1.5;
}

.bonus-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 20px;
    text-align: center;
    background: #ecfdf5;
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.download-btn {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    font-size: 0.875rem;
    width: 100%;
}

.download-btn:hover {
    background: linear-gradient(135deg, #047857, #059669);
    transform: translateY(-1px);
}

.download-btn i {
    margin-right: 8px;
}

/* Mobile Categories */
.categories {
    padding: 60px 16px;
    background: #f8fafc;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.category-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 16px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.category-card i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-card p {
    opacity: 0.9;
    font-size: 0.75rem;
}

/* Mobile About Section */
.about {
    padding: 60px 16px;
    background: white;
}

.about-content {
    text-align: center;
}

.about-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.about-text p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.6;
}

.features {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature:hover {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.feature i {
    font-size: 1.5rem;
    color: #667eea;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.feature h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1a1a1a;
}

.feature p {
    color: #64748b;
    margin: 0;
    font-size: 0.875rem;
}

.about-graphic {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: pulse 2s ease-in-out infinite;
}

.about-graphic i {
    font-size: 4rem;
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Mobile Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 40px 16px 20px;
}

.footer-content {
    display: grid;
    gap: 32px;
    margin-bottom: 32px;
    text-align: center;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #667eea;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
}

.footer-section p {
    color: #94a3b8;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.875rem;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #334155;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.social-links a:hover {
    background: #667eea;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skeleton Loading States to Prevent CLS */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 16px;
    margin: 8px 0;
    border-radius: 4px;
}

.skeleton-text:nth-child(1) { width: 80%; }
.skeleton-text:nth-child(2) { width: 60%; }
.skeleton-text:nth-child(3) { width: 90%; }

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Reserved space for dynamic content */
.apps-grid.loading {
    min-height: 800px; /* Reserve space for content */
}

.apps-grid .app-card.skeleton {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
}

.apps-grid .app-card.skeleton .app-icon {
    background: #e2e8f0;
    animation: skeleton-loading 1.5s infinite;
}

.apps-grid .app-card.skeleton .skeleton-text {
    background: #e2e8f0;
    animation: skeleton-loading 1.5s infinite;
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Desktop Optimizations */
@media (min-width: 640px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        max-width: 500px;
    }
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
    
    .navbar {
        padding: 8px 0; /* Consistent with mobile */
        height: 60px; /* Same height as mobile to prevent CLS */
        min-height: 60px;
        max-height: 60px;
    }
    
    .nav-menu {
        position: static;
        flex-direction: row;
        background: none;
        width: auto;
        box-shadow: none;
        padding: 0;
        gap: 1.5rem; /* Reduced gap */
    }
    
    .nav-link {
        padding: 6px 12px; /* Smaller padding on desktop */
        margin: 0 4px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .blog-hero {
        padding: 80px 16px 50px; /* Adjust for smaller navbar */
    }
    
    .blog-article {
        padding-top: 56px; /* Match desktop navbar height */
    }
    
    .article-header {
        padding: 30px 16px 25px; /* Smaller on desktop */
    }
    
    .about-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
        text-align: left;
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .apps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
        text-align: left;
    }
    
    .hero-stats {
        margin: 0;
    }
}

/* Touch Optimizations */
@media (hover: none) {
    .app-card:hover,
    .category-card:hover,
    .feature:hover {
        transform: none;
    }
    
    .download-btn:active {
        transform: scale(0.98);
    }
    
    .category-card:active {
        transform: scale(0.98);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .app-icon {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

/* Legal Pages Styles */
.legal-content {
    padding: 100px 16px 60px;
    background: #f8fafc;
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.legal-header h1 i {
    color: #667eea;
    font-size: 2.2rem;
}

.last-updated {
    color: #64748b;
    font-size: 0.875rem;
    font-style: italic;
    margin: 0;
}

.legal-body {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.legal-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 32px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-body h2 i {
    color: #667eea;
    font-size: 1.2rem;
}

.legal-body p {
    color: #374151;
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 1rem;
}

.legal-body ul {
    margin: 16px 0 24px 20px;
    color: #374151;
}

.legal-body li {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.legal-body li strong {
    color: #1a1a1a;
    font-weight: 600;
}

.important-notice {
    background: linear-gradient(135deg, #fef3cd, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.important-notice h2 {
    color: #92400e;
    margin-top: 0;
    margin-bottom: 12px;
    border: none;
    padding-bottom: 0;
}

.important-notice p {
    color: #92400e;
    margin-bottom: 0;
    font-weight: 500;
}

.contact-info {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    border: 1px solid #e2e8f0;
}

.contact-info h2 {
    margin-top: 0;
    color: #667eea;
}

.contact-info p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-info i {
    color: #667eea;
    width: 20px;
    text-align: center;
}

.legal-footer {
    background: #1e293b;
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin-top: 32px;
}

.legal-footer p {
    color: #e2e8f0;
    margin-bottom: 8px;
}

.legal-footer strong {
    color: #667eea;
}

/* Mobile Responsive for Legal Pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 80px 16px 40px;
    }
    
    .legal-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .legal-body {
        padding: 24px;
        margin: 0 8px;
    }
    
    .legal-body h2 {
        font-size: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .contact-info p {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Blog Styles */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 16px 60px; /* Reduced padding since navbar is smaller */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300" fill="%23ffffff08"><polygon points="0,0 1000,0 1000,300 0,300"/><circle cx="200" cy="100" r="50" fill="%23ffffff05"/><circle cx="800" cy="200" r="80" fill="%23ffffff05"/></svg>');
    background-size: cover;
}

.blog-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.blog-hero-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 400px;
    margin: 0 auto;
}

.blog-stats .stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-categories {
    padding: 60px 16px 40px;
    background: #f8fafc;
    text-align: center;
}

.blog-categories h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1a1a1a;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.875rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.featured-post {
    padding: 60px 16px;
    background: white;
}

.featured-post h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    color: #1a1a1a;
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #f1f5f9;
}

.featured-image {
    position: relative;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    /* Prevent layout shift */
    aspect-ratio: 16/9;
    background: #f1f5f9;
    opacity: 1; /* Show images by default */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.featured-image img.loaded {
    opacity: 1;
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #667eea;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Special styling for promo codes category */
.post-category[data-category="promocodes"] {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% { 
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

.featured-content {
    padding: 32px;
}

.featured-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.featured-content h3 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-content h3 a:hover {
    color: #667eea;
}

.featured-content p {
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 1rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: #64748b;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.blog-posts {
    padding: 60px 16px;
    background: #f8fafc;
}

.blog-posts h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #1a1a1a;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 1; /* Ensure images are visible by default */
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 24px;
}

.blog-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-content h3 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: #667eea;
}

.blog-content p {
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 0.875rem;
}

.blog-content .post-meta {
    font-size: 0.75rem;
    margin-bottom: 0;
}

.load-more-section {
    text-align: center;
}

.load-more-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.newsletter-signup {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 60px 16px;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.newsletter-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto 16px;
    flex-direction: column;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    outline: none;
    backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    padding: 16px 32px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.newsletter-privacy {
    font-size: 0.75rem;
    opacity: 0.7;
    margin: 0;
}

/* Blog Responsive */
@media (min-width: 640px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .newsletter-form {
        flex-direction: row;
    }
    
    .blog-hero-content h1 {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .featured-article {
        grid-template-columns: 1fr 1fr;
    }
    
    .featured-image img {
        height: 100%;
        min-height: 300px;
    }
    
    .blog-hero-content h1 {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Active nav link for blog */
.nav-link.active {
    background: #667eea;
    color: white !important;
    border-radius: 8px;
}

/* Blog Article Page Styles */
.blog-article {
    padding-top: 60px; /* Reduced to match smaller navbar */
    min-height: 100vh;
    background: #f8fafc;
}

.article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 16px 30px; /* Reduced padding */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 200" fill="%23ffffff08"><polygon points="0,0 1000,0 1000,200 0,200"/><circle cx="150" cy="80" r="30" fill="%23ffffff05"/><circle cx="850" cy="120" r="40" fill="%23ffffff05"/></svg>');
    background-size: cover;
    z-index: 1;
}

.article-header > * {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 16px;
    opacity: 0.9;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: white;
    font-weight: 500;
}

.article-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.article-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 32px;
    font-size: 0.875rem;
    opacity: 0.9;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.featured-image {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    max-width: 800px;
    margin: -40px auto 0;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 48px;
    position: relative;
    z-index: 3;
}

.article-intro {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 16px;
    border-left: 4px solid #667eea;
}

.table-of-contents {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
}

.table-of-contents h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-of-contents ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.table-of-contents a:hover {
    background: #667eea;
    color: white;
    transform: translateX(4px);
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 40px 0 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 32px 0 16px;
}

.article-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #374151;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-content th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    padding: 16px;
    text-align: left;
}

.article-content td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #374151;
}

.article-content tr:hover {
    background: #f8fafc;
}

.highlight-box {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #10b981;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    border-left: 4px solid #10b981;
}

.highlight-box h4 {
    color: #047857;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-box {
    background: linear-gradient(135deg, #fef3cd, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    border-left: 4px solid #f59e0b;
}

.tip-box h4 {
    color: #92400e;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-box {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    border: 1px solid #ef4444;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    border-left: 4px solid #ef4444;
}

.warning-box h4 {
    color: #dc2626;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.promocode-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    padding: 32px;
    margin: 32px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promocode-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23ffffff10"><circle cx="20" cy="20" r="10"/><circle cx="80" cy="80" r="15"/></svg>');
    background-size: 50px 50px;
}

.promocode-section > * {
    position: relative;
    z-index: 2;
}

.promocode-section h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.promocode-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.promocode-box .code {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.2);
    padding: 16px 24px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 16px;
    font-family: 'Courier New', monospace;
    border: 2px dashed rgba(255, 255, 255, 0.5);
}

.promocode-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.promocode-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.cta-section {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
    border: 1px solid #e2e8f0;
}

.cta-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.cta-section p {
    color: #64748b;
    margin-bottom: 24px;
}

.cta-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.related-posts {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #e2e8f0;
}

.related-posts h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.related-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
}

/* Latest Blogs Section */
.latest-blogs {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.latest-blogs .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
    text-align: center;
}

.latest-blogs .section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blogs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.blog-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    /* Prevent layout shift */
    aspect-ratio: 16/9;
    background: #f1f5f9;
    opacity: 1; /* Show images by default */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.blog-card img.loaded {
    opacity: 1;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-content {
    padding: 24px;
}

.blog-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-content h3 i {
    color: #667eea;
    font-size: 1rem;
}

.blog-content p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-meta i {
    font-size: 0.65rem;
}

.more-blogs {
    text-align: center;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Mobile Responsive for Blogs */
@media (max-width: 768px) {
    .latest-blogs {
        padding: 60px 0;
    }
    
    .latest-blogs .section-title {
        font-size: 2rem;
    }
    
    .latest-blogs .section-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }
    
    .blogs-grid {
        gap: 20px;
    }
    
    .blog-card img {
        height: 180px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-content h3 {
        font-size: 1.125rem;
    }
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (min-width: 1024px) {
    .blogs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blog-card img {
        height: 220px;
    }
}

/* Platform Overview Section */
.platform-overview {
    padding: 80px 0;
    background: white;
}

.overview-content {
    display: grid;
    gap: 48px;
    align-items: center;
}

.overview-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

.overview-text p {
    margin-bottom: 24px;
}

.overview-text strong {
    color: #1a1a1a;
    font-weight: 600;
}

.platform-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.stat-info p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

/* App Categories Detail Section */
.app-categories-detail {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.categories-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.category-detail-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
}

.category-header i {
    font-size: 2rem;
    color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
}

.category-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-detail-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 24px;
}

.category-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: #ecfdf5;
    color: #047857;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #10b981;
}

/* Safety and Security Section */
.safety-security {
    padding: 80px 0;
    background: white;
}

.safety-content {
    margin-bottom: 48px;
}

.safety-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 48px;
}

.safety-text p {
    margin-bottom: 24px;
}

.safety-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.safety-card {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
}

.safety-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: white;
}

.safety-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

.safety-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.safety-card p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.responsible-gaming-reminder {
    background: linear-gradient(135deg, #fef3cd, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
}

.reminder-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reminder-content p {
    color: #92400e;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.reminder-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.reminder-link {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.reminder-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Responsive Design for New Sections */
@media (min-width: 768px) {
    .overview-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .platform-stats {
        grid-template-columns: 1fr;
    }
    
    .categories-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .safety-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .safety-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .safety-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.related-card:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.related-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.related-card h4 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-card h4 a:hover {
    color: #667eea;
}

.related-card p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Mobile responsive for blog articles */
@media (max-width: 768px) {
    .blog-hero {
        padding: 80px 16px 40px; /* Adjust for mobile navbar */
    }
    
    .article-header {
        padding: 30px 16px 20px; /* Reduced for mobile */
    }
    
    .article-header h1 {
        font-size: 1.5rem; /* Smaller on mobile */
        line-height: 1.3;
    }
    
    .article-content {
        margin-top: -15px;
        padding: 24px 16px; /* Reduced padding */
        border-radius: 16px;
    }
    
    .article-meta {
        gap: 8px;
        font-size: 0.75rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .promocode-box .code {
        font-size: 1.25rem; /* Smaller on mobile */
        letter-spacing: 1px;
        padding: 12px 16px;
    }
}

@media (min-width: 640px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .article-header h1 {
        font-size: 2.5rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: #0f172a;
        color: #e2e8f0;
    }
    
    .featured-apps {
        background: #1e293b;
    }
    
    .app-card {
        background: #334155;
        border-color: #475569;
    }
    
    .search-input {
        background: #334155;
        border-color: #475569;
        color: #e2e8f0;
    }
    
    .legal-content {
        background: #0f172a;
    }
    
    .legal-body {
        background: #1e293b;
        border-color: #334155;
    }
    
    .legal-body h2 {
        color: #e2e8f0;
        border-color: #334155;
    }
    
    .legal-body p {
        color: #cbd5e1;
    }
    
    .legal-body ul {
        color: #cbd5e1;
    }
    
    .contact-info {
        background: #334155;
        border-color: #475569;
    }
}
