/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #b84787;
    --secondary-color: #003f37;
    --accent-color: #5c3345;
    --light-bg: #003f37;
    --text-color: #080b0e;
    --text-light: #7f8c8d;
    --border-color: #bdc3c7;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.accent-link {
    color: var(--accent-color);
    text-decoration: none;
}

.accent-link:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.2rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    flex-shrink: 0;
}

.logo-img {
    height: 70px;
    width: auto;
    display: block;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Main Content */
#app {
    min-height: calc(100vh - 80px);
}

.page {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin: 0;
}

/* Featured Book Section */
.featured-book {
    padding: 4rem 0;
}

.featured-book-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.featured-book-image {
    text-align: center;
}

.book-cover-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.book-cover-placeholder {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--border-color) 100%);
    width: 100%;
    max-width: 300px;
    aspect-ratio: 2/3;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-light);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.featured-book-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.book-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.book-meta {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Newsletter Signup */
.newsletter-signup {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.newsletter-signup h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.newsletter-signup p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Forms */
.newsletter-form {
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-disclaimer {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #c0392b;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.6rem 1.6rem;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.newsletterBtn {
    background-color: var(--primary-color);
    color: var(--white);
}

.newsletterBtn:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.newsletterBtn:active {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Book Actions */
.book-actions {
    display: flex;
    gap: 1rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--secondary-color);
    margin: 0;
    color: var(--white);
    width: 100%;
    border-radius: 8px 8px 0 0;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 2rem;
}

/* About Page */
#about-page {
    padding: 3rem 0;
}

#about-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

/* notFound Page - same styling as about page */
#notFound-page {
    padding: 3rem 0;
}

#notFound-page h1 {
    font-size: 2.5rem !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
    color: var(--primary-color) !important;
}

#notFound-page .about-content {
    max-width: none !important;
    margin: 0 !important;
}

#notFound-page .about-info p {
    text-align: center !important;
}

.about-content {
    display: block;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-image {
    text-align: center;
}

.author-image-placeholder {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--border-color) 100%);
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-light);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.about-info h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Blog Page (styled like About Page) */
#blog-page {
    padding: 3rem 0;
}

#blog-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

#blog-page .about-content {
    display: block;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#blog-page .about-image {
    text-align: center;
}

#blog-page .author-image-placeholder {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--border-color) 100%);
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-light);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

#blog-page .about-info h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

#blog-page .about-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Contact Information */
.contact-info {
    display: block;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.contact-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--accent-color);
}

/* Books Page */
#books-page {
    padding: 3rem 0;
}

#books-page h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--primary-color);
}

.page-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Series Sections */
.series-section {
    margin-bottom: 4rem;
}

.series-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.series-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
    gap: 2rem;
}

.book-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    width: 100%;
    height: 25em;
}

.book-card-container {
    display: flex;
    height: 100%;
    position: relative;
}

.book-card:hover {
    box-shadow: var(--shadow-lg);
}

.release-date-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.release-date-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.release-date-tag.released {
    background-color: var(--secondary-color);
    color: var(--white);
}

.release-date-tag.coming-soon {
    background-color: var(--accent-color);
    color: var(--white);
}

.book-card-cover {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--border-color) 100%);
    width: 250px;
    min-width: 250px;
    aspect-ratio: 6/8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1rem;
    text-align: center;
    padding: 1rem;
    flex-shrink: 0;
}

.book-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.book-card-author {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.book-card-synopsis {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.book-card-synopsis:last-of-type {
    margin-bottom: 0;
}

.book-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    margin-top: 20px;
}

.book-card-actions .btn {
    text-align: center;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    width: fit-content;
}

.book-card-actions .btn:hover {
    background-color: var(--primary-color);
}

.book-card-actions .btn-secondary {
    padding: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 0;
}

.footer a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer p {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.95rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .featured-book-content {
        grid-template-columns: 1fr;
    }

    .featured-book-info h2 {
        font-size: 1.8rem;
    }

    .book-cover-placeholder {
        max-width: 250px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .form-group {
        flex-direction: column;
    }

    .newsletter-form input[type="email"] {
        width: 100%;
    }

    .book-actions {
        flex-direction: column;
    }

    .book-actions .btn {
        width: 100%;
        text-align: center;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    #books-page h1 {
        font-size: 2rem;
    }

    .social-links {
        flex-direction: column;
    }

    .social-link {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        width: 100%;
        justify-content: space-around;
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .featured-book-info h2 {
        font-size: 1.5rem;
    }

    #about-page h1 {
        font-size: 1.8rem;
    }

    #blog-page h1 {
        font-size: 1.8rem;
    }

    .about-info h2 {
        font-size: 1.5rem;
    }

    .contact-details {
        gap: 1rem;
    }

    .newsletterBtn {
        background-color: var(--primary-color);
    }
    .newsletterBtn:hover {
        background-color: var(--accent-color);
    }
}

/* Carousel Styles */
.carousel-section {
    padding: 3rem 0;
    background-color: #f9f9f9;
}

.carousel-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.carousel-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    min-height: 300px;
}

.carousel-container {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.carousel-inner {
    display: flex;
    gap: 1.5rem;
    overflow: hidden;
    padding: 1rem 0;
    position: relative;
    width: 100%;
}

.carousel-item {
    flex: 0 0 100%;
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    height: 25em;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
}

.carousel-item.active {
    opacity: 1;
    position: relative;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: var(--text-light);
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 0;
}

.carousel-indicator.active {
    background-color: var(--primary-color);
}

.carousel-indicator:hover {
    background-color: var(--primary-color);
}

.carousel-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background-color: var(--secondary-color);
}

.carousel-btn:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 calc(100% - 0.75rem);
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
}

/* ============== BLOG STYLES ============== */

/* Blog Hero Section */
.blog-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    border-radius: 8px;
    margin-bottom: 40px;
}

.blog-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.blog-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Blog Controls */
.blog-controls {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.blog-search-box {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 500px;
}

.blog-search-input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.blog-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Blog Posts List */
.blog-posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--light-bg);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.blog-date {
    display: inline-block;
}

.blog-author {
    display: inline-block;
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.3;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.blog-tag {
    background-color: #f0f0f0;
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
    flex: 1;
    line-height: 1.6;
}

.blog-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Single Post View */
.single-post-container {
    max-width: 8000px;
    margin: 0 auto 40px;
}

.single-blog-post {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.single-post-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.single-post-image img {
    width: 100%;
    height: 300px;
    display: block;
}

.single-post-header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
}

.single-post-header h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.single-post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.single-post-body {
    line-height: 1.8;
    color: var(--text-color);
}

.single-post-body p {
    margin-bottom: 15px;
}

/* Rich content styling */
.single-post-body h1,
.single-post-body h2,
.single-post-body h3,
.single-post-body h4,
.single-post-body h5,
.single-post-body h6 {
    margin: 25px 0 15px 0;
    font-weight: 600;
    line-height: 1.3;
}

.single-post-body h2 {
    font-size: 1.6rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.single-post-body h3 {
    font-size: 1.3rem;
}

.single-post-body ul,
.single-post-body ol {
    margin: 15px 0 15px 30px;
}

.single-post-body li {
    margin-bottom: 8px;
}

.single-post-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-light);
    background-color: #f9f9f9;
    padding: 15px 20px;
}

.single-post-body code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #d63384;
}

.single-post-body pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 15px 0;
}

.single-post-body pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.single-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.single-post-body a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
    transition: color 0.3s;
}

.single-post-body a:hover {
    color: var(--accent-color);
}

.post-navigation {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

/* No Posts Message */
.no-posts-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-posts-message p {
    font-size: 1.2rem;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-style: italic;
}

/* ============== BLOG ADMIN STYLES ============== */

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.admin-header h1 {
    font-size: 2rem;
}

/* Admin Form */
.admin-form-container {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.blog-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.form-group.checkbox label {
    margin-bottom: 0;
    margin-left: 5px;
    font-weight: 400;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions .btn {
    flex: 1;
}

/* Admin Posts List */
.admin-posts-list-container {
    margin-top: 40px;
}

.admin-posts-list-container h2 {
    marginbottom: 20px;
    font-size: 1.5rem;
}

.admin-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-blog-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.admin-blog-card:hover {
    box-shadow: var(--shadow-lg);
}

.admin-blog-info {
    flex: 1;
}

.admin-blog-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.admin-blog-excerpt {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.admin-blog-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.85rem;
}

.admin-blog-date {
    color: var(--text-light);
}

.admin-blog-status {
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
}

.admin-blog-status.published {
    background-color: #d4edda;
    color: #155724;
}

.admin-blog-status.draft {
    background-color: #fff3cd;
    color: #856notFound;
}

.admin-blog-actions {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Error Messages */
.error-message {
    color: #dc3545;
    padding: 20px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    text-align: center;
}

/* Button Styles Enhancement */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #a13a6c;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #002d2b;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #dc3545;
    color: var(--white);
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Quill Rich Text Editor Customization */
.ql-toolbar {
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    background-color: #f9f9f9;
}

.ql-container {
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.ql-editor {
    font-size: 1rem;
    min-height: 300px;
    font-family: inherit;
}

.ql-snow .ql-toolbar button:hover,
.ql-snow .ql-toolbar button.ql-active,
.ql-snow .ql-toolbar button:focus,
.ql-snow .ql-toolbar button.ql-selected {
    color: var(--primary-color);
}

.ql-snow.ql-toolbar button.ql-active .ql-stroke {
    stroke: var(--primary-color);
}

.ql-snow.ql-toolbar button.ql-active .ql-fill {
    fill: var(--primary-color);
}

/* Responsive Design - Blog */
@media (max-width: 768px) {
    .blog-posts-list {
        grid-template-columns: 1fr;
    }

    .single-blog-post {
        padding: 20px;
    }

    .admin-header {
        flex-direction: column;
        gap: 15px;
    }

    .admin-header .btn {
        width: 100%;
    }

    .admin-blog-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-blog-actions {
        width: 100%;
        margin-left: 0;
        margin-top: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .blog-search-box {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .single-post-header h1 {
        font-size: 1.5rem;
    }

    .blog-hero h1 {
        font-size: 1.8rem;
    }
}
