/* 1. பொதுவான அமைப்புகள் */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans Tamil', 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: #f1f5f9;
    color: #1e293b;
    line-height: 1.7;
}

/* 2. ஹெடர் (Header) பகுதி */
header {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    color: white;
    padding: 35px 20px;
    text-align: center;
    border-bottom: 4px solid #3b82f6;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 3. நேவிகேஷன் பார் (Navigation Bar) */
nav {
    background-color: #0f172a;
    padding: 15px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

nav a {
    color: #f8fafc;
    text-decoration: none;
    margin: 0 20px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #3b82f6;
}

/* 4. மாடர்ன் ஹீரோ செக்ஷன் (Hero Section) */
.hero-section {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e3a8a 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.05);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 30px;
}

.hero-btn {
    display: inline-block;
    background-color: #ffffff;
    color: #2563eb;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background-color: #0f172a;
    color: #ffffff;
    transform: translateY(-2px);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* 5. மெயின் லேஅவுட் கன்டைனர் */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* 6. பிளாக் போஸ்ட் பகுதி (Main Content) */
.main-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.main-content h2 {
    color: #0f172a;
    font-size: 1.6rem;
    border-left: 6px solid #2563eb;
    padding-left: 12px;
    margin-bottom: 30px;
}

.post-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.post-card h3 {
    color: #1e3a8a;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.post-card p {
    color: #475569;
    font-size: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

/* 7. சைட்பார் & டூல்ஸ் பகுதி (Sidebar) */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tool-box {
    background: white;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.subscribe-box {
    background: linear-gradient(135deg, #fef08a 0%, #fef9c3 100%);
    border: 1px solid #fde047;
}

.tool-box h4 {
    margin-bottom: 15px;
    color: #0f172a;
    font-size: 1.2rem;
}

label {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 12px;
    margin: 8px 0 16px 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: #2563eb;
}

button {
    width: 100%;
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.2s;
}

button:hover {
    background: #1d4ed8;
}

.sub-btn {
    background: #0f172a;
}

.sub-btn:hover {
    background: #1e293b;
}

.result {
    margin-top: 15px;
    padding: 12px;
    background-color: #f0fdf4;
    border-left: 4px solid #22c55e;
    border-radius: 6px;
    font-weight: 700;
    color: #166534;
}

/* 8. கூகுள் விளம்பர பெட்டி (Ad Space) */
.ad-space {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    text-align: center;
    padding: 25px;
    margin: 25px 0;
    color: #64748b;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* 9. பூட்டர் (Footer) */
footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    font-size: 0.95rem;
    border-top: 4px solid #2563eb;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    margin: 0 10px;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
}

/* 10. ரெஸ்பான்சிவ் டிசைன் (Mobile) */
@media (max-width: 768px) {
    .container { grid-template-columns: 1fr; gap: 25px; }
    .hero-content h2 { font-size: 1.8rem; }
    .hero-features { flex-direction: column; align-items: center; gap: 10px; }
    .feature-badge { width: 100%; text-align: center; }
}