/* ==========================================================================
   Dinvishesh Style 2025
   Cleaned & Optimized for CodeIgniter 4 + Bootstrap 5
   ========================================================================== */

/* ---------------- GLOBAL RESET ---------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Eczar', 'Noto Serif Devanagari', serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    background-color: #fffef8;
}

/* ---------------- LINKS ---------------- */
a, a:link, a:visited {
    color: #0644FF; /* royal blue */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

    a:hover {
        color: #FFD453; /* golden hover */
        text-decoration: underline;
    }

    /* Email links */
    a[href^="mailto:"] {
        font-weight: bold;
    }

/* ---------------- NAVBAR ---------------- */
.navbar {
    background-color: #FFC107; /* golden yellow */
    font-family: 'Vesper Libre', serif;
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 24px;
    font-style: italic;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
    height: 40px;
    margin-right: 0.4rem;
}

.navbar .nav-link {
    color: #222 !important;
    padding: 0.5rem 1rem;
}

    .navbar .nav-link:hover {
        color: #0644FF !important;
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 5px;
    }

/* ---------------- CONTAINER ---------------- */
.container {
    max-width: 900px;
}

/* ---------------- HEADINGS ---------------- */
h1, h2, h3, h4 {
    font-family: 'Eczar', serif;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.6rem;
}

h2 {
    font-size: 1.7rem;
}

h3 {
    font-size: 1.3rem;
    margin-top: 1rem;
}

/* ---------------- SECTIONS ---------------- */
section {
    margin-bottom: 2rem;
}

hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 1.5rem 0;
}

/* ---------------- LISTS ---------------- */
ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.4rem;
}

/* ---------------- BUTTONS ---------------- */
.btn-primary {
    background-color: #0644FF;
    border-color: #0644FF;
    color: #fff;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background-color: #FFD453;
        border-color: #FFD453;
        color: #333;
    }

/* ---------------- NEWSLETTER BOX (optional) ---------------- */
.newsletter-box {
    background-color: #FFF8DC; /* light cream */
    border: 1px solid #FFC107;
    padding: 20px;
    margin-top: 20px;
    border-radius: 6px;
}

    .newsletter-box h3 {
        margin-bottom: 10px;
        color: #0644FF;
        font-weight: 600;
    }

    .newsletter-box input, .newsletter-box button {
        width: 100%;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 4px;
    }

    .newsletter-box input {
        border: 1px solid #ccc;
    }

    .newsletter-box button {
        background-color: #0644FF;
        color: #fff;
        border: none;
    }

        .newsletter-box button:hover {
            background-color: #FFD453;
            color: #333;
        }

/* ---------------- SIDEBAR (future) ---------------- */
.sidebar {
    background-color: #FFF8DC; /* soft cream background */
    color: #333;
    padding: 15px;
    border-radius: 6px;
}

/* ---------------- FOOTER ---------------- */
footer {
    background-color: #FFF8DC; /* royal blue footer */
    color: #333;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

    footer a {
        color: #FFD453;
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }

/* ---------------- ADSENSE CONTAINER ---------------- */
.adsbygoogle {
    margin: 1rem auto;
    display: block;
    text-align: center;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 767px) {
    body {
        font-size: 16px;
    }

    .navbar {
        font-size: 20px;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }
}
