/* ========================================
   PARABLE KIDS - FULL PRODUCTION CSS
   Mobile Friendly + AdSense Ready
======================================== */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f6f9ff;
    color: #222;
    line-height: 1.6;
}

/* LINKS */
a {
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    opacity: 0.95;
}

/* ========================================
   HEADER HERO BANNER
======================================== */

.site-header {
    background: url("hero_banner2.png") center center no-repeat;
    background-size: cover;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

/* DARK OVERLAY */

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

/* LOGO AREA */

.logo-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 150px;
}

.site-header h1 {
    margin: 0;
    font-size: 42px;
    font-weight: bold;
    color: white;
}

.site-header p {
    margin-top: 8px;
    font-size: 18px;
    color: white;
    opacity: 0.95;
}

/* ========================================
   MOBILE FRIENDLY NAVIGATION
======================================== */

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: #ffffff;
    padding: 14px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

nav a {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    transition: 0.3s;
    white-space: nowrap;
}

nav a:hover {
    background: #f3f8ff;
    color: #2ECC71;
}

/* ========================================
   MAIN CONTAINER
======================================== */

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 30px 0;
}

/* ========================================
   HERO SECTION
======================================== */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 25px;
    background: linear-gradient(135deg, #e8fff1, #e8f3ff);
    border-radius: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-content {
    flex: 1;
    min-width: 280px;
}

.hero-content h1 {
    font-size: 38px;
    color: #1f1f1f;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

.hero-image {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.hero-image img {
    width: 220px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* ========================================
   BUTTONS
======================================== */

.btn,
.hero-btn {
    display: inline-block;
    background: #FF9800;
    color: white;
    padding: 13px 22px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 15px;
    margin-right: 10px;
    border: none;
    cursor: pointer;
}

.btn:hover,
.hero-btn:hover {
    transform: translateY(-2px);
}

.hero-btn.secondary {
    background: #4DA3FF;
}

/* ========================================
   CARDS
======================================== */

.card {
    background: white;
    padding: 22px;
    margin-bottom: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.card h1,
.card h2,
.card h3 {
    margin-bottom: 12px;
    color: #222;
}

.card p {
    color: #555;
}

/* ========================================
   BOOK GRID
======================================== */

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.book-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.book-card img {
    width: 180px;
    margin-bottom: 15px;
    border-radius: 12px;
}

/* ========================================
   BLOG POSTS
======================================== */

.blog-post {
    background: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.blog-post h2,
.blog-post h3 {
    margin-bottom: 10px;
}

.blog-post p {
    margin-bottom: 15px;
}

/* ========================================
   FORMS
======================================== */

form {
    width: 100%;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    background: white;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

button {
    border: none;
}

/* ========================================
   ADMIN PANEL
======================================== */

.admin-dashboard {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.admin-dashboard h1 {
    margin-bottom: 20px;
}

.admin-links a {
    display: block;
    margin-bottom: 12px;
    font-weight: bold;
    color: #333;
}

.admin-links a:hover {
    color: #2ECC71;
}

/* ========================================
   ADSENSE SPACE
======================================== */

.ad-space {
    background: #fafafa;
    border: 1px dashed #ddd;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    margin: 25px 0;
    color: #999;
}

/* ========================================
   MOBILE FRIENDLY FOOTER
======================================== */

footer {
    background: #ffffff;
    margin-top: 50px;
    padding: 50px 20px 30px;
    border-top: 1px solid #eee;
}

.footer-content {
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.footer-content h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: #222;
}

.footer-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 20px;
}

/* FOOTER LINKS */

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 25px 0;
}

.footer-links a {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 10px;
    transition: 0.3s;
}

.footer-links a:hover {
    background: #f3f8ff;
    color: #2ECC71;
}

/* SOCIAL LINKS */

.footer-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 25px;
}

.footer-social a {
    color: #444;
    font-size: 14px;
    font-weight: 600;
}

.footer-social a:hover {
    color: #2ECC71;
}

/* COPYRIGHT */

.footer-copy {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
}

.footer-copy p {
    font-size: 13px;
    color: #888;
    margin: 0 auto;
    text-align: center;
}

/* ========================================
   TABLET VIEW
======================================== */

@media (max-width: 768px) {

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-btn,
    .btn {
        display: block;
        margin: 10px auto;
        width: fit-content;
    }

    nav {
        justify-content: center;
        gap: 10px;
        padding: 12px 10px;
    }

    nav a {
        font-size: 13px;
        padding: 9px 12px;
    }

    footer {
        padding: 40px 16px 25px;
    }

    .footer-content h3 {
        font-size: 24px;
    }

    .footer-content p {
        font-size: 14px;
    }

    .container {
        width: 94%;
    }
}

/* ========================================
   MOBILE VIEW
======================================== */

@media (max-width: 480px) {

    .site-header {
        min-height: 320px;
    }

    .site-header h1 {
        font-size: 28px;
    }

    .site-header p {
        font-size: 15px;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
    }

    nav a {
        text-align: center;
        font-size: 13px;
        padding: 10px;
        background: #fafafa;
        border: 1px solid #eee;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .card {
        padding: 18px;
    }

    .book-card img {
        width: 150px;
    }

    .footer-content h3 {
        font-size: 22px;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin: 20px 0;
    }

    .footer-links a {
        text-align: center;
        background: #fafafa;
        border: 1px solid #eee;
        padding: 10px;
        font-size: 13px;
    }

    .footer-social {
        gap: 10px;
    }

    .footer-social a {
        font-size: 13px;
    }

    .footer-copy p {
        font-size: 12px;
    }
}