/* --- VARIABLES & RESET --- */
:root {
    /* Light Mode (Default) */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #0f172a;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --radius: 12px;
    --accent: #f59e0b;
    --dropdown-bg: #ffffff;
    
    /* Status Colors */
    --success-bg: #dcfce7;
    --success-text: #10b981;
    --error-bg: #fee2e2;
    --error-text: #ef4444;
    --loading-bg: #f1f5f9;
    --loading-text: #64748b;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --secondary: #f8fafc;
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --text-main: #e2e8f0;
    --text-light: #94a3b8;
    --border: #334155;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
    --dropdown-bg: #1e293b;

    /* Status Colors Dark */
    --success-bg: #064e3b;
    --success-text: #34d399;
    --error-bg: #7f1d1d;
    --error-text: #f87171;
    --loading-bg: #334155;
    --loading-text: #cbd5e1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Inter', system-ui, sans-serif; 
    background: var(--bg-body); 
    color: var(--text-main); 
    line-height: 1.6; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    transition: background 0.3s, color 0.3s;
}
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 4rem 0; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.hidden-mobile { display: inline-block; }

/* --- HEADER & NAV --- */
header { 
    background: var(--bg-card); 
    border-bottom: 1px solid var(--border); 
    padding: 0.8rem 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    transition: background 0.3s;
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.2rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 10px; z-index: 1002; white-space: nowrap; }

/* --- DESKTOP NAVIGATION (Min-Width 993px) --- */
@media (min-width: 993px) {
    .nav-links { display: flex; gap: 20px; align-items: center; }
    
    .nav-item { 
        font-weight: 500; color: var(--text-main); 
        position: relative; cursor: pointer; font-size: 0.95rem; padding: 10px 0; 
    }
    .nav-item:hover { color: var(--primary); }

    /* Desktop Dropdown (Hover Logic) */
    .dropdown { position: relative; display: inline-block; }
    
    .dropdown-content {
        display: none; /* Hidden by default on desktop */
        position: absolute;
        background-color: var(--dropdown-bg);
        min-width: 260px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        border-radius: 12px;
        border: 1px solid var(--border);
        padding: 0.5rem 0;
        z-index: 100;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        max-height: 80vh;
        overflow-y: auto;
        opacity: 0;
    }

    /* Show on Hover */
    .dropdown:hover .dropdown-content { 
        display: block; 
        opacity: 1; 
        animation: fadeIn 0.2s forwards; 
    }

    .mobile-menu-btn { display: none; }
    .hidden-mobile { display: inline; }
}

/* --- MOBILE NAVIGATION (Max-Width 992px) --- */
@media (max-width: 992px) {
    .header-actions { margin-left: auto; gap: 10px; }
    .mobile-menu-btn { display: block; background: none; border: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; z-index: 1003; }
    .hidden-mobile { display: none; }

    /* Mobile Menu Container */
    .nav-links {
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 1.5rem 2rem 1.5rem;
        transform: translateX(100%); /* Hidden to right */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
        display: flex; /* Always flex, just hidden by transform */
    }

    .nav-links.active {
        transform: translateX(0); /* Slide in */
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }

    .nav-item {
        font-size: 1.1rem;
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid var(--border);
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: var(--text-main);
    }

    /* Mobile Dropdown (Accordion Logic) */
    .dropdown { width: 100%; display: block; }
    
    .dropdown-content {
        display: block; /* Always display block on mobile... */
        max-height: 0; /* ...but hide using height */
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        background: var(--bg-body);
        border-radius: 8px;
        padding-left: 10px; /* Indent sub-items */
    }

    /* OPEN STATE (Toggled by JS) */
    .dropdown.open .dropdown-content {
        max-height: 1000px; /* Big enough number to show all content */
        opacity: 1;
        margin-top: 5px;
        margin-bottom: 10px;
        border-left: 2px solid var(--primary); /* Visual indicator */
    }

    /* Rotate Arrow */
    .nav-item i { transition: transform 0.3s; }
    .dropdown.open .nav-item i { transform: rotate(180deg); color: var(--primary); }
}

/* Shared Dropdown Link Styles */
.dropdown-content a {
    color: var(--text-main);
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: 0.2s;
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: var(--bg-body); color: var(--primary); padding-left: 25px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1002;
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-btn:hover { color: var(--primary); }

.btn-donate {
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
}
.btn-donate:hover { background: #d97706; transform: translateY(-2px); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* --- RESPONSIVE HEADER (Mobile/Tablet) --- */
@media (max-width: 992px) {
    
    /* 1. Mobile Menu Container */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem 2rem 2rem; /* Top padding for header space */
        transform: translateX(100%); /* Hide to right */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001; /* Below logo/hamburger */
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0); /* Slide in */
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }

    /* 2. Mobile Nav Items */
    .nav-item {
        font-size: 1.2rem;
        width: 100%;
        padding: 15px 0; /* Larger touch target */
        border-bottom: 1px solid var(--border);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* 3. Mobile Dropdown (Accordion Style) */
    .dropdown {
        width: 100%;
        display: block;
    }

    .dropdown-content {
        position: static; /* Flow naturally in the list */
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-body); 
        padding: 0;
        
        /* THE FIX: Override display:none from desktop */
        display: block; 
        
        /* Animation Logic */
        max-height: 0; 
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        width: 100%;
        border-radius: 8px;
        margin-top: 0;
    }

    /* Open State */
    .dropdown.open .dropdown-content {
        max-height: 1200px; /* Large enough to fit all items */
        border: 1px solid var(--border);
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .dropdown-content a {
        padding: 15px 20px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    /* Rotate arrow on open */
    .dropdown.open .nav-item i {
        transform: rotate(180deg);
    }
    .nav-item i { transition: transform 0.3s; }

    /* 4. Hamburger & Actions */
    .mobile-menu-btn { display: block; }
    .hidden-mobile { display: none; }
}

/* Fix for very small phones */
@media (max-width: 360px) {
    .logo { font-size: 1rem; }
    .header-actions { gap: 8px; }
}

/* --- HERO & CARDS --- */
.hero { background: var(--bg-body); padding: 5rem 0 3rem; text-align: center; transition: background 0.3s; }
.hero h1 { font-size: 2.5rem; color: var(--secondary); margin-bottom: 1.5rem; line-height: 1.2; }
.hero p { color: var(--text-light); max-width: 700px; margin: 0 auto 1.5rem; }
.hero-sub { color: var(--text-light); opacity: 0.9; font-size: 0.95rem; }

/* --- CHECKER BOX (Desktop Defaults) --- */
.checker-box {
    max-width: 700px;
    margin: 0 auto 2rem;
    background: var(--bg-card);
    padding: 8px;
    border-radius: 50px;
    border: 1px solid var(--border);
    display: flex;
    box-shadow: var(--shadow);
    align-items: center; /* Ensures input and button align vertically */
}
.checker-box input { 
    flex: 1; 
    border: none; 
    outline: none; 
    padding: 1rem 1.5rem; 
    font-size: 1.1rem; 
    background: transparent;
    color: var(--text-main); 
    min-width: 0; /* Prevents flexbox overflow issues */
}
.checker-box input::placeholder { color: var(--text-light); opacity: 0.7; }
.checker-box button { 
    background: var(--primary); 
    color: white; 
    border: none; 
    padding: 0.8rem 2.5rem; /* Adjusted padding */
    border-radius: 40px; 
    font-weight: 600; 
    font-size: 1rem; 
    cursor: pointer; 
    transition: 0.2s; 
    white-space: nowrap; /* Prevents text wrap on desktop */
}
.checker-box button:hover { opacity: 0.9; }

/* --- RESULTS GRID --- */
.results-grid { display: flexbox; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; max-width: 900px; margin: 0 auto; }

.result-card { 
    background: var(--bg-card);
    padding: 1rem 1.5rem; 
    border-radius: 12px; 
    border: 1px solid var(--border); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.status-badge { padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }
.status-badge.loading { background: var(--loading-bg); color: var(--loading-text); }
.status-badge.available { background: var(--success-bg); color: var(--success-text); }
.status-badge.taken { background: var(--error-bg); color: var(--error-text); }

/* --- TOOL CARDS --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.tool-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow); }
.tool-icon { font-size: 2.5rem; margin-bottom: 1rem; display: inline-block; }

.tool-card { 
    background: var(--bg-card); 
    padding: 2rem; 
    border-radius: var(--radius); 
    border: 1px solid var(--border); 
    transition: 0.3s; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center;
    height: 100%;
}
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tool-card h3 { color: var(--secondary); margin-bottom: 0.5rem; }
.tool-card p { color: var(--text-light); margin-bottom: 1.5rem; }

.btn-brand { width: 100%; padding: 0.8rem 1rem; border-radius: 50px; color: white; font-weight: 700; font-size: 0.95rem; border: none; cursor: pointer; display: inline-block; margin-top: auto; }
.btn-brand:hover { opacity: 0.9; }

.brand-tiktok { background: #000000; }
[data-theme="dark"] .brand-tiktok { background: #ffffff; color: black; }
.brand-insta { background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D); }
.brand-twitter { background: #000000; }
[data-theme="dark"] .brand-twitter { background: #ffffff; color: black; }
.brand-roblox { background: #ef4444; }

/* --- SEO CONTENT SECTIONS --- */
/* --- SEO CONTENT SECTIONS (Responsive Update) --- */
.content-box { 
    background: var(--bg-card); 
    padding: 2.5rem; 
    border-radius: var(--radius); 
    border: 1px solid var(--border); 
    margin-bottom: 2rem; 
}
.content-box h2 { 
    color: var(--secondary); 
    margin-bottom: 1rem; 
    padding-bottom: 0.5rem; 
    border-bottom: 1px solid var(--border);
}

/* --- NEW CUSTOM NUMBERED LIST (HOW TO) --- */
.step-list { 
    list-style: none; 
    counter-reset: step; 
    padding: 0; 
    margin-bottom: 2rem;
}
.step-list li { 
    position: relative; 
    padding-left: 3.5rem; 
    margin-bottom: 1.5rem; 
}
.step-list li::before { 
    counter-increment: step; 
    content: counter(step); 
    position: absolute; 
    left: 0; 
    top: -2px; 
    width: 32px; 
    height: 32px; 
    background: var(--primary); 
    color: white; 
    border-radius: 50%; 
    text-align: center; 
    line-height: 32px; 
    font-weight: bold; 
    font-size: 0.9rem;
}
.step-list li h4 { 
    color: var(--secondary); 
    margin-bottom: 0.3rem; 
    font-size: 1.05rem; 
}
.step-list li p { 
    color: var(--text-light); 
    font-size: 0.95rem; 
}

.faq-item { 
    border: 1px solid var(--border); 
    border-radius: 8px; 
    margin-bottom: 1rem; 
    overflow: hidden; 
}
.faq-item summary { 
    padding: 1rem; 
    background: var(--bg-body);
    font-weight: 600; 
    cursor: pointer; 
    color: var(--text-main);
}
.faq-item div { 
    padding: 1rem; 
    color: var(--text-light); 
    background: var(--bg-card);
}

/* --- RECOMMENDED TOOLS SECTION --- */
.rec-tools-bg {
    background: var(--bg-body);
    border-top: 1px solid var(--border);
}

/* --- CONTACT PAGE SPECIFIC STYLES --- */
        
        /* Split Layout Grid */
        .contact-wrapper {
            display: grid;
            grid-template-columns: 1fr 1.5fr;
            gap: 2rem;
            align-items: start;
        }

        /* Left Side: Info Card */
        .contact-info-card {
            background: var(--primary);
            color: white;
            padding: 2.5rem;
            border-radius: var(--radius);
            position: relative;
            overflow: hidden;
        }

        /* Decorative circle in background */
        .contact-info-card::before {
            content: '';
            position: absolute;
            bottom: -50px;
            right: -50px;
            width: 150px;
            height: 150px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
        }

        .info-item {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            margin-bottom: 2rem;
        }

        .info-item i {
            background: rgba(255, 255, 255, 0.2);
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        .info-item h4 { margin-bottom: 0.2rem; font-size: 1.1rem; }
        .info-item a { color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; }
        .info-item a:hover { color: white; text-decoration: underline; }
        .info-item p { color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 3rem;
        }
        .social-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            transition: 0.3s;
            border: 1px solid rgba(255,255,255,0.2);
        }
        .social-btn:hover { background: white; color: var(--primary); transform: translateY(-3px); }

        /* Right Side: Form */
        .contact-form-box {
            background: var(--bg-card);
            padding: 2.5rem;
            border-radius: var(--radius);
            border: 1px solid var(--border);
            box-shadow: var(--shadow);
        }

        .form-group { margin-bottom: 1.5rem; }
        .form-label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--secondary); font-size: 0.95rem; }
        
        .form-input, .form-select { 
            width: 100%; 
            padding: 0.9rem; 
            border: 1px solid var(--border); 
            border-radius: 8px; 
            background: var(--bg-body); 
            color: var(--text-main); 
            font-family: inherit; 
            font-size: 1rem;
            transition: 0.2s;
        }
        
        .form-input:focus, .form-select:focus { 
            outline: none; 
            border-color: var(--primary); 
            box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); 
        }

        /* Responsive */
        @media (max-width: 768px) {
            .contact-wrapper { grid-template-columns: 1fr; }
            .contact-info-card { padding: 2rem; }
        }

/* --- DONATE PAGE --- */
.donate-hero { 
    background: #fffbeb;
    padding: 4rem 0; 
    text-align: center; 
    border-bottom: 1px solid #fcd34d; 
}
[data-theme="dark"] .donate-hero {
    background: #2a1c05;
    border-bottom: 1px solid #b45309;
}

.donate-options { display: flex; justify-content: center; gap: 15px; margin: 2rem 0; }
.coffee-btn { background: #FFDD00; color: #000; padding: 15px 30px; border-radius: 8px; font-weight: 800; display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.payment-icons { font-size: 2rem; color: #64748b; gap: 15px; display: flex; justify-content: center; margin-top: 1rem; }

.transparency-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.t-card { 
    background: var(--bg-card);
    padding: 1.5rem; 
    border-radius: 12px; 
    border: 1px solid var(--border); 
    text-align: center; 
}

/* --- FOOTER --- */
footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 4rem 0 2rem; margin-top: auto; transition: background 0.3s; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.footer-col h4 { color: var(--secondary); margin-bottom: 1.2rem; font-size: 1.1rem; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: var(--text-light); font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--primary); text-decoration: underline; }
.footer-disclaimer { border-top: 1px solid var(--border); padding-top: 2rem; text-align: center; font-size: 0.85rem; color: var(--text-light); }

/* --- RESPONSIVE (MOBILE FIXES) --- */
@media (max-width: 768px) {
    .hidden-mobile { display: none; }
    .mobile-menu-btn { display: block; }
    
    .nav-links {
        position: fixed; top: 60px; left: 0; width: 100%;
        background: var(--bg-card);
        flex-direction: column; padding: 2rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%); transition: transform 0.3s ease-in-out;
        box-shadow: var(--shadow); gap: 1.5rem; align-items: flex-start;
    }

    .nav-links.active { transform: translateY(0); }
    .dropdown { width: 100%; }
    .dropdown-content { position: static; box-shadow: none; border: none; padding-left: 1rem; background: transparent; display: block; }
    .dropdown > a { font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; display: block;}

    .header-actions { gap: 10px; }
    .btn-donate { padding: 0.5rem; border-radius: 50%; }
    .hero h1 { font-size: 2rem; }
    .transparency-grid { grid-template-columns: 1fr; }

    /* CONTENT BOX RESPONSIVE UPDATE */
    .content-box {
        padding: 1.5rem; /* Reduced from 2.5rem */
        margin-bottom: 1.5rem;
    }
    .content-box h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    /* --- CHECKER BOX MOBILE FIX --- */
    .checker-box {
        flex-direction: column; /* Stack items */
        padding: 1rem;
        border-radius: 24px; /* Reduce corner radius slightly for rectangle shape */
        gap: 1rem; /* Space between input and button */
    }
    
    .checker-box input {
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }
    
    .checker-box button {
        width: 100%;
        padding: 1rem;
        border-radius: 50px; /* Keep pill shape for button */
    }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* --- SHARE SECTION --- */
.share-container {
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 2rem 1rem;
    background: var(--bg-body);
    border-top: 1px solid var(--border);
    text-align: center;
    border-radius: var(--radius);

    /* HIDDEN BY DEFAULT */
    display: none;
}

.share-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.share-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.share-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.share-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* Brand Colors */
.share-fb { background-color: #1877F2; }
.share-x { background-color: #000000; }
.share-wa { background-color: #25D366; }
.share-copy { background-color: var(--text-light); }

/* Dark Mode Adjustments */
[data-theme="dark"] .share-x { 
    background-color: #ffffff; 
    color: black; 
}
[data-theme="dark"] .share-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

/* Tooltip for Copy */
.share-btn.copied::after {
    content: "Copied!";
    position: absolute;
    top: -35px;
    background: var(--secondary);
    color: var(--bg-card);
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    animation: fadeIn 0.2s;
}

/* --- RECAPTCHA --- */
.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    margin-top: -1rem; /* Pull it closer to the search bar */
    animation: fadeIn 0.5s;
}

/* --- BLOG SECTION --- */
.blog-header {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    margin-bottom: 2rem; 
    flex-wrap: wrap; 
    gap: 1rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.blog-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--bg-body);
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.8rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-footer {
    margin-top: auto;
}

/* Updated Read More Button - More Noticeable */
.read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.8rem 1.2rem;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.read-more:hover {
    background-color: var(--bg-body);
    color: var(--text-main);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* View More Articles Button Styling */
.btn-view-all {
    background: var(--bg-card);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.btn-view-all:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Dark Mode Support */
[data-theme="dark"] .blog-card {
    background-color: var(--bg-card);
    border-color: var(--border);
}
[data-theme="dark"] .read-more {
    background-color: rgba(255,255,255,0.05);
    border-color: var(--border);
}
[data-theme="dark"] .read-more:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* RESPONSIVE BLOG SECTION */
@media (max-width: 768px) {
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .blog-header > div {
        width: 100%;
    }

    /* Make the 'View More Articles' button full width on mobile */
    .btn-view-all {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
}

/* --- SEO BREADCRUMBS --- */
.breadcrumb-nav {
    padding: 1rem 0 0 0;
    font-size: 0.9rem;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.breadcrumb-list li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-list a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-list a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.breadcrumb-list .separator {
    margin: 0 8px;
    color: var(--border);
    font-size: 0.8rem;
}

/* Dark Mode Support for Breadcrumbs */
[data-theme="dark"] .breadcrumb-list a {
    color: var(--text-light);
}
[data-theme="dark"] .breadcrumb-list a:hover {
    color: var(--primary);
}

/* --- FOOTER SOCIALS --- */
.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 0.5rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-body);
    color: var(--text-light);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    font-size: 1rem;
}

.footer-socials a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* --- GOOGLE TRANSLATE STYLING --- */
#google_translate_element {
    margin-top: 0.5rem;
}

/* Hide Google Translate Top Bar */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
} 
body {
    top: 0px !important; 
}

/* Customize the dropdown look slightly */
.goog-te-gadget-simple {
    background-color: var(--bg-body) !important;
    border: 1px solid var(--border) !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    font-family: 'Inter', sans-serif !important;
}

.goog-te-gadget-simple span {
    color: var(--text-main) !important;
    font-weight: 500 !important;
}

.goog-te-gadget-icon {
    display: none !important; /* Hide Google Icon for cleaner look */
}

/* ALERTS (Success/Error Messages) */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.alert-success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-text);
}

.alert-error {
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-text);
}

/* --- FAVORITES SYSTEM --- */
#favorites-area {
    margin-top: 1rem;
    animation: fadeIn 0.3s;
}

.fav-tag {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.fav-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.fav-tag i {
    font-size: 0.8rem;
    opacity: 0.7;
    padding: 4px;
    border-radius: 50%;
}

.fav-tag i:hover {
    background: rgba(255,255,255,0.2);
    opacity: 1;
}

/* Save Button inside Result Card */
.btn-save-fav {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.btn-save-fav:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(245, 158, 11, 0.1);
}

@media (max-width: 480px) {
    /* Extra Small Devices */
    .content-box {
        padding: 1.2rem;
        border-radius: 16px;
    }
    .hero h1 { font-size: 1.8rem; }
}

/* --- CTA BOX (Call to Action) --- */
.check-cta-box {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-body) 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Subtle accent border for CTA */
.check-cta-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    /* Fix Step List spacing on mobile */
    .step-list li {
        padding-left: 3rem; /* Reduce indentation */
    }
    .step-list li::before {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 0.85rem;
    }

    /* CTA Box Mobile */
    .check-cta-box {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .check-cta-box h2 {
        font-size: 1.5rem;
    }
    
    /* Make the CTA button full width on mobile for easier tapping */
    .check-cta-box .btn-donate {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}

/* --- 1. GLOBAL MOBILE FIXES --- */
html, body {
    max-width: 100%;
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

/* --- 2. ADJUST GRID FOR MOBILE --- */
/* Allows cards to shrink below 300px on small phones */
@media (max-width: 400px) {
    .grid-3, .results-grid, .share-grid {
        grid-template-columns: 1fr !important; /* Force single column */
    }
    
    .tool-card, .blog-card, .result-card {
        min-width: 0; /* Allow flex items to shrink */
    }
    
    .container {
        padding: 0 15px; /* Reduce padding slightly on very small screens */
    }
}

/* --- 3. RECAPTCHA RESPONSIVE FIX --- */
/* Google Recaptcha is fixed at 304px. This scales it down for small screens */
@media (max-width: 350px) {
    .recaptcha-wrapper {
        transform: scale(0.85); /* Shrink to 85% */
        transform-origin: center;
        margin-bottom: 1rem;
    }
}

/* Fix for long URLs or text breaking layout */
p, h1, h2, h3, h4, h5, h6, span, a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}