:root {
    /* Premium Security Palette */
    --primary: #3b82f6; /* Bright Blue */
    --primary-dark: #2563eb;
    --accent: #06b6d4; /* Cyan glow */
    --dark-bg: #0f172a; /* Slate 900 */
    --darker-bg: #020617; /* Slate 950 */
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --light-border: #e2e8f0;
    --max-width: 1200px;
    --nav-height: 80px;
}

/* Global Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body { 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6; 
    color: var(--text-main); 
    background-color: #f8fafc;
    overflow-x: hidden;
}

a { text-decoration: none; transition: all 0.2s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; user-select: none; }

/* Utilities */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; position: relative; }
.text-center { text-align: center; }

/* Buttons */
.btn { 
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 36px; 
    border-radius: 12px; 
    font-weight: 600; 
    font-size: 1rem;
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-primary { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
    border: none;
}
.btn-primary:hover { 
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.5);
}

.btn-outline { 
    background: rgba(255,255,255, 0.05);
    color: white;
    border: 1px solid rgba(255,255,255, 0.2);
    backdrop-filter: blur(5px);
}
.btn-outline:hover { 
    background: rgba(255,255,255, 0.1);
    border-color: rgba(255,255,255, 0.4);
    transform: translateY(-3px);
}

/* Header */
.site-header { 
    position: fixed; top: 0; width: 100%; z-index: 999;
    background: rgba(15, 23, 42, 0.85); /* Dark semi-transparent */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.header-container { 
    display: flex; justify-content: space-between; align-items: center; 
    height: var(--nav-height); 
}

.logo a { 
    display: flex; align-items: center; gap: 12px; 
    color: white; font-weight: 700; font-size: 1.4rem;
}
.logo img { height: 42px; border-radius: 8px; }

.main-nav ul { display: flex; gap: 40px; align-items: center; }
.main-nav a { 
    color: #cbd5e1; font-weight: 500; font-size: 0.95rem; 
}
.main-nav a:hover { color: white; }
.main-nav .btn-sm { padding: 10px 24px; font-size: 0.9rem; }
.mobile-only-icon { display: none; margin-right: 10px; width: 20px; text-align: center; }

.hamburger { display: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* Hero Section - Dark & Premium */
.hero { 
    position: relative;
    padding: 180px 0 120px;
    background-color: var(--dark-bg);
    overflow: hidden;
    color: white;
    text-align: center;
}

/* Background Animated Gradient Mesh */
.hero::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    animation: pulse 10s infinite;
    pointer-events: none;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

.hero-text h1 { 
    font-size: 4rem; 
    font-weight: 800; 
    line-height: 1.1; 
    letter-spacing: -1px; 
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text .lead { 
    font-size: 1.25rem; 
    color: #94a3b8; 
    max-width: 750px; 
    margin: 0 auto 50px; 
    font-weight: 400;
}

.trust-badges { 
    display: flex; justify-content: center; gap: 40px; margin-top: 60px;
    padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.05);
}
.trust-badges span { 
    display: flex; align-items: center; gap: 10px; 
    color: #cbd5e1; font-size: 0.95rem; 
}
.trust-badges i { color: var(--accent); }

/* Section Title Styling */
.section { padding: 100px 0; }
.section-title { 
    font-size: 2.5rem; 
    font-weight: 700; 
    color: var(--dark-bg); 
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

/* Highlights Grid */
.card-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 40px; 
}

.card { 
    background: white; 
    padding: 50px 40px; 
    border-radius: 24px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--light-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.card-icon { 
    width: 70px; height: 70px; 
    background: #eff6ff;
    color: var(--primary);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    margin-left: auto; margin-right: auto;
}

.card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--dark-bg); letter-spacing: -0.5px; }
.card p { color: var(--text-muted); font-size: 1.1rem; }

/* Screenshots - Universal Infinite Scroll */
.screenshot-gallery {
    display: flex; 
    overflow: hidden; /* Hide scrollbar completely */
    padding: 60px 0;
    justify-content: flex-start;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.screenshot-gallery::-webkit-scrollbar { display: none; }

.gallery-track {
    display: flex;
    gap: 40px;
    width: max-content; 
    animation: scroll 30s linear infinite;
    padding-left: 20px; /* Initial offset so transparent mask doesn't hide first item too much */
}

.gallery-track:hover {
    animation-play-state: paused;
}

.gallery-item {
    min-width: 260px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    border: 6px solid #1e293b;
    position: relative;
    background: #000;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
    border-color: var(--primary);
}

.gallery-item.mobile-dup {
    display: block; /* Always show duplicates */
}

/* Scroll exactly half the width (the width of original set) */
/* 
   Calculation: 
   Item Width: 260px
   Gap: 40px
   Total per item: 300px
   Number of items in a set: 5
   Total Width of one set: 1500px
*/
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1500px); } 
}

/* Mobile specific Adjustments */
@media (max-width: 768px) {
    .screenshot-gallery { padding: 40px 0; }
    .gallery-track { gap: 20px; animation-duration: 20s; }
    
    .gallery-item {
        min-width: 140px; /* Reduced specific size for mobile */
        border-width: 4px;
        border-radius: 12px;
    }
    
    /* 
       Mobile Calc:
       Item: 140px
       Gap: 20px
       Sum: 160px
       Total: 160px * 5 items = 800px
    */
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(-800px); } 
    }
}

.gallery-item::after { 
    /* Glare effect */
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* Features List */
.features-list { 
    background: white; border-radius: 24px; padding: 60px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--light-border);
}
.features-list ul { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px 60px; 
}
.features-list li { 
    font-size: 1.2rem; color: var(--text-main); 
    display: flex; align-items: center; 
}
.features-list i { 
    color: #10b981; margin-right: 20px; 
    background: #d1fae5; padding: 5px; border-radius: 50%;
    font-size: 0.9rem; width: 24px; height: 24px; 
    display: flex; align-items: center; justify-content: center;
}

/* Privacy Dark Section */
#privacy { background: var(--darker-bg); color: white; text-align: center; }
#privacy h2 { color: white; }
.privacy-points { 
    display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; 
    margin-top: 40px; 
}
.privacy-points span { 
    background: rgba(255,255,255,0.1); padding: 10px 20px; 
    border-radius: 50px; border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: white; /* Ensure text visible */
}

/* FAQ Section Styling */
.faq-grid {
    display: grid;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--light-border);
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark-bg);
    margin: 0;
    padding-right: 15px;
    line-height: 1.4;
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0; 
}

/* Open State */
.faq-item.active .faq-question {
    background: #f8fafc;
    color: var(--primary);
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out; /* Smooth transition matching exact height */
    background: white;
}

.faq-answer p {
    padding: 20px; /* Uniform padding */
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Open State styles - Height is handled by JS for perfect smoothness */
.faq-item.active .faq-question {
    background: #f8fafc;
    color: var(--primary);
}
.privacy-points { 
    display: flex; justify-content: center; gap: 50px; 
    margin-top: 50px; flex-wrap: wrap; 
}
.privacy-points span { 
    font-size: 1.3rem; font-weight: 300; 
    position: relative; 
    padding: 0 10px;
}
.privacy-points span:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -30px;
    color: var(--accent);
    opacity: 0.5;
}

/* Blog */
.blog-card { 
    background: white; border-radius: 20px; overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid var(--light-border);
    transition: transform 0.3s; 
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.blog-content { padding: 30px; }
.blog-content h3 { font-size: 1.3rem; margin-bottom: 12px; font-weight: 700; line-height: 1.4; }
.blog-content h3 a { color: var(--dark-bg); }
.blog-content h3 a:hover { color: var(--primary); }
.read-more { font-weight: 600; color: var(--primary); }

/* Footer */
.site-footer { background: var(--darker-bg); color: #94a3b8; padding: 100px 0 40px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-section h3 { color: white; font-size: 1.2rem; margin-bottom: 30px; }
.footer-section ul li { margin-bottom: 15px; }
.footer-section a { color: #94a3b8; font-weight: 400; }
.footer-section a:hover { color: var(--primary); text-decoration: underline; }

/* Social Links Special Styling */
.social-links { list-style: none; padding: 0; }
.social-links li a { display: flex; align-items: center; gap: 10px; transition: color 0.3s; }
.social-links li a i { font-size: 1.2rem; min-width: 25px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); margin-top: 80px; padding-top: 40px; text-align: center; font-size: 0.9rem; }

/* Download Section - Premium Dark CTA */
#download {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
#download::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
#download h2 { color: white; font-size: 3rem; margin-bottom: 20px; font-weight: 800; letter-spacing: -1px; }
#download p { color: #94a3b8; font-size: 1.25rem; max-width: 600px; margin: 0 auto 50px; }
.download-btns { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }


/* Large Buttons */
.btn-lg {
    padding: 20px 45px;
    font-size: 1.15rem;
    border-radius: 16px;
}
.btn-lg i { font-size: 1.4rem; }

/* Mobile Professional Polish */
@media(max-width: 900px) {
    /* Header Polish */
    .header-container { 
        padding: 0 20px; /* Standard gutter */
        height: 70px; 
        display: flex;
        justify-content: space-between; 
        align-items: center;
        width: 100%;
    }
    .site-header { backdrop-filter: blur(20px); background: rgba(15, 23, 42, 0.95); }
    
    .hamburger { 
        display: block; 
        font-size: 1.5rem;
        padding: 10px; /* Larger touch area */
        cursor: pointer;
        color: white;
        z-index: 1002;
        margin-left: auto; /* Absolutely ensure it goes to the right */
    }

    .logo { margin: 0; }
    
    /* Navigation Drawer - Right Side Slide-in */
    .main-nav { 
        position: fixed; 
        top: 0; 
        right: -100%; /* Start hidden off-screen to the right */
        width: 100%; /* Drawer width */
        max-width: 320px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98); /* Solid Slate 900 with transparency */
        padding: 120px 30px 40px 30px; /* Top padding for spacing */
        transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        z-index: 1001;
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
        display: flex;
        flex-direction: column;
        border-left: 1px solid rgba(255,255,255,0.05);
    }

    .main-nav.active { 
        right: 0; /* Slide in to view */
        transform: none; /* Reset transform if inherited */
    }

    /* Overlay for darkening the background */
    .main-nav::before {
        content: '';
        position: fixed;
        top: 0; right: 320px; /* Hidden far left initially */
        width: 100vw; height: 100vh;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        pointer-events: none;
    }
    
    .main-nav.active::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .main-nav ul { 
        display: flex;
        flex-direction: column; 
        gap: 25px; /* Add gap between items */
        width: 100%; 
        padding: 0;
        margin: 0;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: none; /* Remove harsh borders */
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }

    /* Staggered List Animation */
    .main-nav.active li { opacity: 1; transform: translateY(0); }
    .main-nav.active li:nth-child(1) { transition-delay: 0.1s; }
    .main-nav.active li:nth-child(2) { transition-delay: 0.15s; }
    .main-nav.active li:nth-child(3) { transition-delay: 0.2s; }
    .main-nav.active li:nth-child(4) { transition-delay: 0.25s; }

    .main-nav a { 
        font-size: 1.25rem; 
        font-weight: 600; 
        display: flex;
        align-items: center;
        width: 100%; 
        padding: 10px 0;
        color: #94a3b8;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        background: transparent;
        border: none;
        letter-spacing: -0.5px;
    }

    .main-nav a:hover, .main-nav a:active {
        color: white;
        transform: translateX(10px);
    }
    
    .mobile-only-icon { 
        display: flex !important; /* Force flex behavior on the <i> tag */
        align-items: center; 
        justify-content: center;
        width: 40px; 
        height: 40px;
        margin-right: 15px; 
        background: rgba(255,255,255,0.03);
        border-radius: 12px;
        color: var(--primary); 
        font-size: 1.1rem;
        transition: all 0.3s;
        box-shadow: none;
    }
    
    /* Target the FontAwesome glyph directly to handle visual centering */
    .mobile-only-icon::before {
        display: block;
        margin-top: 3px; /* Push the glyph down 3px visually */
    }
    
    .main-nav a:hover .mobile-only-icon {
        background: var(--primary);
        color: white;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }

    /* Special Download Button Style in Mobile Menu */
    li:has(.mobile-download-btn) {
        border-bottom: none;
        padding-top: 30px;
        margin-top: 30px;
        border-top: 1px solid rgba(255,255,255,0.1); /* Separator for download */
    }
    .main-nav .mobile-download-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 1.1rem;
        background: var(--primary);
        border: none;
        border-radius: 14px;
        color: white !important; /* Force white text */
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
    }
    .main-nav .mobile-download-btn:hover {
        padding-left: 24px; /* Reset slide effect for button */
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    }
    .main-nav .mobile-download-btn .mobile-only-icon { 
        color: white; 
        background: transparent; 
        width: auto; 
        height: auto; 
        margin-right: 10px; 
        box-shadow: none; 
    } 
    .main-nav .btn-sm { width: 100%; text-align: center; margin-top: 20px; }
    
    /* Hero Section Fixes */
    .hero { 
        padding: 120px 0 60px; 
        text-align: center; /* Force center on mobile as per request "sahi se banao" */
    }
    .hero-container { text-align: center; } 
    .hero-text h1 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 15px; }
    .hero-text .lead { font-size: 1rem; margin-bottom: 30px; line-height: 1.6; }
    .hero-btns { 
        display: flex; flex-direction: column; width: 100%; gap: 15px; 
        align-items: center; /* Center align buttons */
    }
    .hero-btns .btn { width: 100%; max-width: 350px; } /* Prevent too wide btns */
    
    .trust-badges { 
        flex-direction: row; flex-wrap: wrap; justify-content: center; 
        gap: 20px; margin-top: 40px; padding-top: 30px; 
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .trust-badges span { font-size: 0.85rem; width: auto; }
    
    .section { padding: 60px 0; }
    .section-title { font-size: 1.8rem; margin-bottom: 30px; text-align: center; }
    .text-center .section-title { text-align: center; }
    
    .features-list { padding: 30px 20px; }
    .features-list ul { grid-template-columns: 1fr; gap: 15px; }
    
    /* Privacy Section Fixes */
    .privacy-points { 
        display: flex; flex-direction: column; gap: 10px; margin-top: 30px; 
        align-items: center;
    }
    .privacy-points span { 
        width: 100%; max-width: 300px;
        border-bottom: 1px solid rgba(255,255,255,0.1); 
        padding-bottom: 8px; margin-bottom: 5px;
        font-size: 1.1rem;
    }
    .privacy-points span::after { display: none; }
    
    /* Download Section & Button Overlap Fix */
    #download { padding: 60px 20px; }
    #download h2 { font-size: 2rem; }
    .download-btns { 
        display: flex; flex-direction: column; gap: 15px; 
        align-items: center;
    }
    .download-btns .btn-lg { 
        width: 100%; 
        max-width: 350px; /* Constrain width */
        margin: 0; /* Remove potential side margins */
    }
    
    .card-grid { grid-template-columns: 1fr; gap: 30px; }
    
    /* Blog Grid: 2 Posts per ROW on Mobile */
    .blog-grid { 
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
        gap: 15px;
    }
    /* Smaller blog cards for mobile to fit 2 columns */
    .blog-card { border-radius: 12px; }
    .blog-image { height: 120px; }
    .blog-content { padding: 15px; }
    .blog-content h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.3; }
    .blog-date { font-size: 0.75rem; margin-bottom: 5px; }
    .blog-content p { display: none; } /* Hide description on mobile grid to save space */
    .read-more { font-size: 0.85rem; }
    
    /* Ensure gallery scrolls well */
    .screenshot-gallery { padding: 40px 0; }
    .gallery-item { min-width: 200px; border-width: 4px; border-radius: 15px; }
}


/* Blog Page Styles - Professional Overhaul */
.page-title { 
    font-size: 2.8rem; 
    margin-bottom: 50px; 
    color: var(--dark-bg); 
    font-weight: 800; 
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
}

.blog-card { 
    background: white; 
    border-radius: 16px; 
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.03), 0 4px 6px -4px rgba(0,0,0,0.03);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.blog-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.blog-image { 
    height: 240px; 
    overflow: hidden; 
    position: relative; 
    background: #f1f5f9;
}
.blog-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
}
.blog-card:hover .blog-image img { transform: scale(1.08); }

.blog-content { 
    padding: 24px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-content h3 { 
    font-size: 1.35rem; 
    margin-bottom: 12px; 
    font-weight: 700; 
    line-height: 1.35; 
    letter-spacing: -0.02em;
}
.blog-content h3 a { color: var(--text-main); transition: color 0.2s; }
.blog-content h3 a:hover { color: var(--primary); }

.blog-date { 
    display: flex; 
    align-items: center; 
    gap: 6px;
    font-size: 0.85rem; 
    color: #64748b; 
    margin-bottom: 12px; 
    font-weight: 500;
}
.blog-date i { color: var(--primary); opacity: 0.8; }

.blog-content p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more { 
    font-weight: 600; 
    color: var(--primary); 
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}
.read-more:hover { gap: 8px; }

/* Pagination Professional */
.pagination { margin-top: 80px; text-align: center; display: flex; justify-content: center; gap: 8px; }
.page-link {
    display: flex; align-items: center; justify-content: center;
    width: 45px; height: 45px;
    padding: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.page-link.active, .page-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

/* Single Post */
.single-post-container { max-width: 800px; }
.post-title { font-size: 3rem; margin-bottom: 10px; line-height: 1.2; color: var(--dark-bg); }
.post-meta { color: var(--text-muted); margin-bottom: 30px; font-size: 0.95rem; }
.post-featured-image { margin-bottom: 40px; border-radius: 20px; overflow: hidden; }
.post-body { font-size: 1.15rem; line-height: 1.8; color: var(--text-main); }
.post-body p { margin-bottom: 25px; }
.post-body h2 { font-size: 1.8rem; margin: 40px 0 20px; color: var(--dark-bg); }
.post-body ul { list-style: disc; margin-left: 20px; margin-bottom: 25px; }

.post-navigation { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--light-border); }


/* Fix Hero Buttons Gap similar to Bottom Download Section */
.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}


/* FORCE MOBILE GRID & STYLING - OVERRIDE */
@media(max-width: 768px) {
    /* Page Title Mobile Fix */
    .page-title {
        font-size: 1.8rem !important;
        margin-bottom: 25px !important;
        line-height: 1.2;
    }

    /* Blog View All Page - Mobile Professional Grid */
    .blog-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .blog-card {
        min-height: auto;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
        border: 1px solid #f1f5f9;
        display: flex;
        flex-direction: column;
        border-radius: 10px;
    }
    .blog-image { 
        height: 110px !important; /* Slightly smaller for balance */
    }
    .blog-content {
        padding: 12px !important;
        flex-grow: 1;
        display: flex; 
        flex-direction: column;
        justify-content: space-between;
    }
    .blog-content h3 {
        font-size: 0.9rem !important;
        line-height: 1.35;
        margin-bottom: 6px !important;
        height: 2.7em; /* Limit to 2 lines usually */
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        font-weight: 700;
        color: #1e293b;
    }
    .blog-date {
        font-size: 0.7rem !important;
        margin-bottom: 0 !important;
        opacity: 0.8;
    }
    .blog-content p { display: none !important; }
    .read-more {
        display: none !important; /* Hide "Read More" text on mobile to declutter, whole card is implied click */
    }

    /* Single Post Reading Page - Professional Typography & Layout */
    .section { padding: 100px 0 40px 0 !important; } /* Top padding 100px to clear fixed header */
    .single-post-container { 
        padding: 0 20px !important; 
        max-width: 100% !important; 
        width: 100% !important;
        overflow-x: hidden !important; 
    }
    
    .post-title { 
        font-family: 'Inter', sans-serif;
        font-size: 2rem !important; 
        line-height: 1.25 !important; 
        margin-bottom: 10px !important; 
        color: #0f172a !important; 
        font-weight: 800;
        letter-spacing: -0.03em;
    }
    
    .post-meta { 
        font-size: 0.9rem !important; 
        margin-bottom: 20px !important; 
        color: #64748b !important;
        display: flex; align-items: center; gap: 8px;
    }
    
    /* Elegant rounded image instead of full bleed */
    .post-featured-image { 
        margin: 0 0 30px 0 !important; 
        border: none !important;
        width: 100% !important;
        border-radius: 16px !important;
        overflow: hidden;
        box-shadow: 0 10px 30px -5px rgba(0,0,0,0.15);
    }
    .post-featured-image img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
        display: block;
    }
    
    .post-body { 
        font-family: 'Georgia', serif; /* Serif for better reading experience on mobile */
        font-size: 1.15rem !important; 
        line-height: 1.6 !important; 
        color: #1e293b !important;
    }
    
    .post-body p {
        margin-bottom: 24px !important;
    }
    
    .post-body h2 { 
        font-family: 'Inter', sans-serif;
        font-size: 1.6rem !important; 
        margin-top: 40px !important; 
        margin-bottom: 15px !important; 
        color: #0f172a !important;
        font-weight: 700;
        line-height: 1.3;
    }
    
    .post-body blockquote {
        border-left: 4px solid var(--primary);
        padding-left: 20px;
        margin: 30px 0 !important;
        font-style: italic;
        color: #475569;
        font-size: 1.25rem !important;
    }

    .post-body ul {
        margin-left: 20px !important;
        margin-bottom: 24px !important;
    }
    .post-body li {
        margin-bottom: 10px;
    }
    
    .post-body img { 
        max-width: 100% !important; 
        height: auto !important; 
        border-radius: 12px !important; 
        margin: 30px 0 !important;
    }
}


/* Action Buttons (Admin) */
.btn-sm { 
    padding: 5px 12px; 
    font-size: 0.75rem; 
    border-radius: 6px; 
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
}

.btn-edit {
    background: #f59e0b; /* Amber 500 */
    color: white !important;
    border: none;
    box-shadow: none;
}
.btn-edit:hover {
    background: #d97706; /* Amber 600 */
    transform: none;
    box-shadow: none;
}

.btn-delete {
    background: #ef4444; /* Red 500 */
    color: white !important;
    border: none;
    box-shadow: none;
    margin-left: 5px;
}
.btn-delete:hover {
    background: #dc2626; /* Red 600 */
    transform: none;
    box-shadow: none;
}

.btn-view {
    background: #0ea5e9; /* Sky 500 */
    color: white !important;
    border: none;
    box-shadow: none;
}
.btn-view:hover {
    background: #0284c7; /* Sky 600 */
    transform: none;
    box-shadow: none;
}


/* Contact Page Styling */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: white;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px;
    width: 200px; height: 200px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.3;
}

.contact-info h2 { color: white; font-size: 2rem; margin-bottom: 20px; }
.contact-info p { color: #94a3b8; margin-bottom: 40px; }

.info-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.info-icon { 
    width: 45px; height: 45px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 12px; 
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.info-details h4 { margin-bottom: 5px; font-size: 1.1rem; }
.info-details p { color: #94a3b8; font-size: 0.95rem; margin-bottom: 0; }

.contact-form-container {
    padding: 60px 50px;
}
.contact-form-container h2 { font-size: 2rem; color: var(--text-main); margin-bottom: 30px; }

.form-group { margin-bottom: 25px; position: relative; }
.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 500; 
    color: var(--text-main);
    font-size: 0.95rem;
}
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s;
    background: #f8fafc;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

@media(max-width: 900px) {
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info { padding: 40px 30px; }
    .contact-form-container { padding: 40px 30px; }
}
