:root { 
    --primary-vibrant: linear-gradient(135deg, #3f4eee 0%, #a855f7 100%);
    --header-bg: #3f4eee;
    --tool-gradient: linear-gradient(145deg, #1e293b, #0f172a);
    --accent-glow: 0 0 20px rgba(63, 78, 238, 0.5);
    --gold: #fcd34d;
}
/* 1. Remove default browser gaps */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body { background-color: #f3f4f6; color: #1e293b; margin:0; font-family: 'Inter', sans-serif; overflow-x: hidden; width: 100%; }

/* --- HEADER & MEGA MENU --- */
header { background: var(--header-bg); height: 75px; position: sticky; top: 0; z-index: 9999; box-shadow: 0 4px 20px rgba(0,0,0,0.15); width: 100%; }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; height: 100%; padding: 0 20px; position: relative; }
.nav { display: flex; height: 100%; }
.nav-item { position: relative; display: flex; align-items: center; height: 100%; }
.nav-item > a { color: #fff; text-decoration: none; padding: 0 25px; height: 100%; display: flex; align-items: center; font-size: 14px; font-weight: 700; text-transform: uppercase; transition: 0.3s; }
.nav-item:hover > a { background: #fff; color: var(--header-bg); box-shadow: inset 0 -5px 0 var(--gold); }
.nav-item::before { content: ''; position: absolute; bottom: -20px; left: 0; width: 100%; height: 25px; z-index: 1001; display: none; }
.nav-item:hover::before { display: block; }

.mega-menu { 
    position: absolute; top: 75px; left: 50%; transform: translateX(-50%); 
    width: 1000px; background: #fff; border-radius: 0 0 16px 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3); display: none; 
    border-top: 2px solid var(--gold); animation: slideIn 0.2s ease-out; z-index: 1000;
}
.nav-item:hover .mega-menu { display: block; }
.mega-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 40px; }
.mega-col h4 { color: #3f4eee; margin-bottom: 15px; font-size: 14px; border-bottom: 2px solid #f1f5f9; padding-bottom: 8px; text-transform: uppercase; }
.mega-col a { display: block; padding: 8px 0; color: #475569; text-decoration: none; font-size: 14px; font-weight: 600; }
.mega-col a:hover { color: #3f4eee; background: #f8fafc; border-radius: 4px; }

/* --- CONTENT LAYOUT --- */
.page-wrapper { display: flex; max-width: 1400px; margin: 0 auto; gap: 25px; padding: 40px 20px; align-items: flex-start; justify-content: center; }
.sidebar-ad { width: 200px; flex-shrink: 0; position: sticky; top: 100px;height: 600px; }
.ad-box { height: 600px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 11px; text-align: center; }
/* Ensure the sidebar itself doesn't have internal spacing */
.ad-box {
    min-width: 200px;
    min-height: 600px; /* Forces the box to stay open */
    display: block !important;
        background: rgba(255, 255, 255, 0.02); /* Slight tint so you can see the box */
        justify-content: center;
         align-items: flex-start;

}




.main-content { flex-grow: 1; max-width: 900px; min-width: 0; }
.tool-card, .content-section { background: var(--tool-gradient); border: 1px solid #334155; border-radius: 28px; padding: 50px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); color: #f1f5f9; margin-bottom: 35px; }
.tool-badge { display: inline-block; background: var(--primary-vibrant); color: #fff; padding: 10px 25px; border-radius: 50px; font-size: 13px; font-weight: 800; margin-bottom: 25px; box-shadow: var(--accent-glow); }
.btn-main { background: var(--primary-vibrant) !important; color: #fff !important; height: 60px; border-radius: 14px; font-weight: 800; border:none; width: 100%; cursor: pointer; transition: 0.4s; font-size: 18px; text-transform: uppercase; }
.btn-main:hover { transform: translateY(-3px); box-shadow: var(--accent-glow); }
.live-preview-box { background: white; color: #000; padding: 35px; border-radius: 18px; margin-top: 25px; border: 6px solid #3f4eee; overflow-x: auto; }

/* --- INTERACTIVE TOOL COMPONENTS --- */
.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input, 
.input-group select {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    color: #fff;
    height: 55px;
    padding: 0 18px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
    outline: none;
}

/* Hover & Focus Effects */
.input-group input:hover, 
.input-group select:hover {
    border-color: #475569;
}

.input-group input:focus, 
.input-group select:focus {
    border-color: #6366f1;
    background: #1e293b;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Specific styling for the color picker input */
.input-group input[type="color"] {
    padding: 5px;
    cursor: pointer;
    overflow: hidden;
}

/* Customizing the Textarea output */
.html-output {
    width: 100%;
    height: 120px;
    background: #000 !important;
    color: #10b981 !important;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin-top: 20px;
    resize: none;
}
/* --- ENHANCED SEO CONTENT STYLING --- */
.seo-content-wrapper {
    line-height: 1.8;
    font-size: 16px;
    color: #cbd5e1; /* Soft light gray for readability */
}

/* Headings inside content */
.seo-content-wrapper h2 {
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 800;
    line-height: 1.2;
}

.seo-content-wrapper h3 {
    color: #f8fafc;
    font-size: 24px;
    margin: 40px 0 15px 0;
    display: flex;
    align-items: center;
    border-left: 4px solid #a855f7; /* Purple accent bar */
    padding-left: 15px;
}

/* Paragraph spacing */
.seo-content-wrapper p {
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Interactive List Items */
.seo-content-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.seo-content-wrapper li {
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.seo-content-wrapper li:hover {
    background: rgba(168, 85, 247, 0.1); /* Subtle purple glow */
    transform: translateX(10px);
    border-color: #a855f7;
}

.seo-content-wrapper li::before {
    content: "✦";
    color: #fcd34d; /* Gold star */
    margin-right: 15px;
    font-weight: bold;
}

/* Interactive Hyperlinks */
.seo-content-wrapper a {
    position: relative;
    color: #a855f7;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.seo-content-wrapper a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #fcd34d;
    transition: width 0.3s ease;
}

.seo-content-wrapper a:hover {
    color: #fcd34d;
}

.seo-content-wrapper a:hover::after {
    width: 100%;
}

/* Emphasized Text */
.seo-content-wrapper strong {
    color: #fff;
    font-weight: 700;
}

/* Footer Container Styles */
footer {
    background-color: #0f172a; /* Deep dark blue to match your theme */
    color: #fff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Grid Layout: 4 columns on desktop, auto-stacking on mobile */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

/* Column Headings */
footer h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
}

/* Accent line under headings (optional but looks premium) */
footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: #3f4eee; /* Your brand blue */
}

/* Link Styling */
footer a {
    display: block;
    color: #94a3b8; /* Muted slate color */
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    line-height: 1.4;
}

/* Hover Effects */
footer a:hover {
    color: #3f4eee; /* Change to brand blue on hover */
    transform: translateX(5px); /* Subtle slide to the right */
}

/* Bottom Copyright Section */
.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    opacity: 0.6;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Mobile Responsiveness for Small Screens */
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Single column on phones */
        gap: 30px;
    }
    
    footer h4 {
        margin-bottom: 15px;
    }
}
/* New style for the full-width inputs (Address & CTA) */
.input-full {
    grid-column: span 2;
}
@media (max-width: 1100px) {
    .input-full { grid-column: span 1; }
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .page-wrapper { flex-direction: column; align-items: center; padding: 20px 10px; width: 100%; }
    .sidebar-ad { display: none; }
    .main-content { width: 100%; max-width: 100%; }
    .mega-menu { width: 95vw; position: fixed; top: 120px; }
    .mega-inner { grid-template-columns: 1fr 1fr; padding: 20px; }
}
@media (max-width: 768px) {
    header { height: auto; padding: 10px 0; }
    .header-inner { flex-direction: column; gap: 10px; }
    .nav { width: 100%; flex-direction: column; height: auto; gap: 5px; }
    .nav-item { width: 100%; background: rgba(0,0,0,0.1); border-radius: 8px; }
    .nav-item > a { padding: 15px 0; justify-content: center; width: 100%; }
    .mega-menu { position: fixed; top: 200px; height: 50vh; overflow-y: auto; width: 90%; left: 5%; transform: none; }
    .mega-inner { grid-template-columns: 1fr; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr !important; text-align: center; gap: 40px; }
    .tool-card, .content-section { padding: 30px 20px; border-radius: 16px; }
    h1 { font-size: 28px !important; }
}

/* --- FOOTER --- */
footer { background: var(--header-bg) !important; color: #fff !important; padding: 80px 20px 40px; margin-top: 60px; border-top: 10px solid #a855f7; width: 100%; text-align: center; /* Centers text-level elements */
 }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; text-align: center; justify-items: center;}
.footer-grid h4 { color: #fff; font-size: 20px; margin-bottom: 30px; border-bottom: 2px solid var(--gold); padding-bottom: 8px;     margin: 10px auto;display: inline-block; }
.footer-grid a { color: rgba(255,255,255,0.9); text-decoration: none; font-size: 15px; display: block; margin-bottom: 15px; transition: 0.3s; }
.footer-grid a:hover { color: var(--gold); padding-left: 12px; }
@keyframes slideIn { from { opacity: 0; transform: translate(-50%, 15px); } to { opacity: 1; transform: translate(-50%, 0); } }





@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stacks columns on mobile */
    }
}