/*
Theme Name: Astra Child - EcoLaw Study
Theme URI: https://study.ecolaw.in
Description: Custom child theme for study.ecolaw.in, built on Astra. Handles all design/layout/CSS. Content is managed separately by writers through the Block Editor.
Author: EcoLaw
Template: astra
Version: 1.0.0
Text Domain: ecolaw-study-child
*/

/* =========================================================
   HOW THIS FILE WORKS
   - This is where you (the site owner/developer) write ALL
     custom CSS. Writers never touch this file.
   - Anything you write here overrides Astra's default styles.
   - Organize your CSS with clear section comments as you add
     more rules, so it stays easy to maintain over time.
   ========================================================= */


/* -----------------------------
   1. GLOBAL RESETS / BASE STYLES
   ----------------------------- */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
}

a {
    color: #1d4ed8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* -----------------------------
   2. HEADINGS
   ----------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; margin-top: 2rem; }
h3 { font-size: 1.35rem; margin-top: 1.5rem; }


/* -----------------------------
   3. CONTENT / SINGLE POST AREA
   (This is what writers' content sits inside — style it once,
   applies everywhere automatically.)
   ----------------------------- */

.entry-content {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.entry-content table th,
.entry-content table td {
    border: 1px solid #e5e7eb;
    padding: 0.6rem 0.9rem;
    text-align: left;
}

.entry-content table th {
    background-color: #f3f4f6;
    font-weight: 600;
}

.entry-content img {
    border-radius: 8px;
    height: auto;
    max-width: 100%;
}

.entry-content blockquote {
    border-left: 4px solid #1d4ed8;
    background: #f8fafc;
    padding: 1rem 1.25rem;
    font-style: italic;
    margin: 1.5rem 0;
}


/* -----------------------------
   4. CUSTOM "NOTE CARD" STYLE
   (Used by the reusable Block Pattern for study notes —
   writers just insert the pattern, this CSS makes it look right.)
   ----------------------------- */

.eco-note-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    background: #fafafa;
    margin: 1.5rem 0;
}

.eco-note-card h4 {
    margin-top: 0;
    color: #1d4ed8;
}


/* -----------------------------
   5. HEADER / NAVIGATION
   ----------------------------- */

.site-header {
    border-bottom: 1px solid #e5e7eb;
}

.main-header-menu .menu-item > a {
    font-weight: 500;
}


/* -----------------------------
   6. FOOTER
   ----------------------------- */

.site-footer {
    background-color: #111827;
    color: #d1d5db;
    padding: 2rem 0;
}

.site-footer a {
    color: #93c5fd;
}


/* -----------------------------
   7. MOBILE RESPONSIVENESS
   ----------------------------- */

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }
    .entry-content { font-size: 1rem; }
}
