/*
Theme Name: Author's Haven
Description: A modern WordPress theme for female authors to showcase books, write articles, and share their story. Features a clean design with purple color scheme and Inter font.
Version: 1.0
Author: Arash Jafari
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-purple: #F3F0FF;
    --secondary-purple: #E8E2FF;
    --accent-purple: #6838a6;
    --dark-purple: #4A2C7A;
    --text-dark: #2D1B3D;
    --text-light: #6B5B7A;
    --white: #FFFFFF;
    --shadow: rgba(104, 56, 166, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    direction: ltr;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: var(--white);
    border-bottom: 2px solid var(--primary-purple);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(104, 56, 166, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-purple);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.main-navigation a:hover {
    color: var(--accent-purple);
    background: var(--primary-purple);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    background: var(--primary-purple);
    padding: 3rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark-purple);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--accent-purple);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.cta-button:hover {
    background: var(--dark-purple);
}

/* Main Content Section */
.main-content-section {
    padding: 2rem 0;
    background: var(--white);
}

/* Site Main - ensures proper spacing and layout */
.site-main {
    flex: 1;
    padding-bottom: 3rem;
}

/* Page Content Styling */
.page-content {
    padding: 3rem 0;
    min-height: 60vh;
}

.page-content .entry-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-content .entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-purple);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-content .entry-thumbnail {
    margin: 2rem 0;
    text-align: center;
}

.page-content .entry-thumbnail img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--secondary-purple);
}

.page-content .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
}

.page-content .entry-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.page-content .entry-content h1,
.page-content .entry-content h2,
.page-content .entry-content h3,
.page-content .entry-content h4,
.page-content .entry-content h5,
.page-content .entry-content h6 {
    color: var(--dark-purple);
    margin: 2rem 0 1rem 0;
    font-weight: 600;
    line-height: 1.3;
}

.page-content .entry-content h2 {
    font-size: 1.8rem;
}

.page-content .entry-content h3 {
    font-size: 1.5rem;
}

.page-content .entry-content h4 {
    font-size: 1.3rem;
}

.page-content .entry-content ul,
.page-content .entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.page-content .entry-content li {
    margin-bottom: 0.5rem;
}

.page-content .entry-content blockquote {
    border-left: 4px solid var(--accent-purple);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
    background: var(--primary-purple);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.page-content .entry-content a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
}

.page-content .entry-content a:hover {
    text-decoration: underline;
}

.page-content .page-links {
    margin: 2rem 0;
    text-align: center;
    font-weight: 500;
    color: var(--text-light);
}

.page-content .page-links a {
    display: inline-block;
    background: var(--accent-purple);
    color: var(--white);
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.page-content .page-links a:hover {
    background: var(--dark-purple);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Two-column layout when only one section is displayed */
.content-grid.single-section {
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    margin: 0 auto;
}

.content-grid.single-section .books-section,
.content-grid.single-section .blog-section,
.content-grid.single-section .stories-section {
    grid-column: 1 / -1;
}

.content-grid.single-section .books-grid,
.content-grid.single-section .blog-grid,
.content-grid.single-section .stories-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Three-column layout when all sections are present */
.content-grid.three-sections {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.content-grid.three-sections .books-section,
.content-grid.three-sections .blog-section,
.content-grid.three-sections .stories-section {
    grid-column: auto;
}

.content-grid.three-sections .books-grid,
.content-grid.three-sections .blog-grid,
.content-grid.three-sections .stories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Books Section */
.books-section {
    padding: 0;
    background: transparent;
}

.section-title {
    text-align: left;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-purple);
    margin-bottom: 1rem;
}

.books-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.book-card {
    background: var(--white);
    border: 1px solid var(--secondary-purple);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.2s ease;
    text-align: center;
}

.book-card:hover {
    border-color: var(--accent-purple);
}

.book-cover {
    width: 180px;
    height: 240px;
    background: var(--secondary-purple);
    margin: 0 auto 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--dark-purple);
    font-weight: 500;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.book-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.book-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.book-link {
    display: inline-block;
    background: var(--accent-purple);
    color: var(--white);
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 400;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.book-link:hover {
    background: var(--dark-purple);
}

/* Blog Section */
.blog-section {
    padding: 0;
    background: transparent;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--secondary-purple);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.blog-card:hover {
    border-color: var(--accent-purple);
}

.blog-image {
    width: 100%;
    height: 180px;
    background: var(--secondary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-purple);
    font-weight: 500;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* About Section */
.about-section {
    padding: 3rem 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

.author-image {
    width: 100%;
    max-width: 300px;
    height: 400px;
    background: var(--secondary-purple);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--dark-purple);
    font-weight: 500;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-purple);
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.about-text .cta-button {
    align-self: flex-end;
    margin-top: auto;
}

/* Footer */
.site-footer {
    background: var(--dark-purple);
    color: var(--white);
    padding: 2rem 0 1.5rem;
    text-align: center;
}

.footer-content {
    margin-bottom: 1.5rem;
}

.footer-content h4 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: var(--accent-purple);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--white);
    color: var(--accent-purple);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(104, 56, 166, 0.3);
}

.social-links a i {
    line-height: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    opacity: 0.7;
    font-size: 0.8rem;
}

/* Single Post Styles */
.single-post-section {
    padding: 4rem 0;
    background: var(--white);
    min-height: 80vh;
}

.single-post-card {
    background: var(--white);
    border: 1px solid var(--secondary-purple);
    border-radius: 12px;
    padding: 3rem;
    margin: 0 auto;
    max-width: 900px;
    box-shadow: 0 4px 20px rgba(104, 56, 166, 0.08);
    position: relative;
}

.single-post-card .entry-header {
    text-align: left;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--primary-purple);
}

.single-post-card .entry-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-purple);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.single-post-card .entry-meta {
    font-size: 1rem;
    color: var(--text-light);
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.single-post-card .entry-meta .posted-on,
.single-post-card .entry-meta .byline {
    display: flex;
    align-items: center;
}

.single-post-card .entry-thumbnail {
    margin: 2rem 0;
    text-align: center;
}

.single-post-card .entry-thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--secondary-purple);
}

.single-post-card .entry-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.single-post-card .entry-content p {
    margin-bottom: 1.8rem;
    text-align: justify;
}

.single-post-card .entry-content h1,
.single-post-card .entry-content h2,
.single-post-card .entry-content h3,
.single-post-card .entry-content h4,
.single-post-card .entry-content h5,
.single-post-card .entry-content h6 {
    color: var(--dark-purple);
    margin: 2.5rem 0 1.5rem 0;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.single-post-card .entry-content h2 {
    font-size: 1.8rem;
}

.single-post-card .entry-content h3 {
    font-size: 1.5rem;
}

.single-post-card .entry-content h4 {
    font-size: 1.3rem;
}

.single-post-card .entry-content ul,
.single-post-card .entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.single-post-card .entry-content li {
    margin-bottom: 0.5rem;
}

.single-post-card .entry-content blockquote {
    border-left: 4px solid var(--accent-purple);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
    background: var(--primary-purple);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.single-post-card .entry-content a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
}

.single-post-card .entry-content a:hover {
    text-decoration: underline;
}

.single-post-card .entry-footer {
    padding-top: 2rem;
    border-top: 2px solid var(--primary-purple);
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 2rem;
}

.single-post-card .entry-footer .cat-links,
.single-post-card .entry-footer .tags-links {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
}

.single-post-card .entry-footer a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
}

.single-post-card .entry-footer a:hover {
    text-decoration: underline;
}

.single-post-card .page-links {
    margin: 2rem 0;
    text-align: center;
    font-weight: 500;
    color: var(--text-light);
}

.single-post-card .page-links a {
    display: inline-block;
    background: var(--accent-purple);
    color: var(--white);
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.single-post-card .page-links a:hover {
    background: var(--dark-purple);
}

/* Comments Section Styling */
.comments-area {
    background: var(--white);
    border: 1px solid var(--secondary-purple);
    border-radius: 12px;
    padding: 3rem;
    margin: 4rem auto 2rem auto;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 15px rgba(104, 56, 166, 0.05);
}

.comments-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-purple);
    margin-bottom: 2.5rem;
    text-align: left;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-purple);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    background: var(--primary-purple);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--secondary-purple);
    position: relative;
    transition: all 0.3s ease;
}

.comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(104, 56, 166, 0.1);
}

.comment-meta {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: var(--dark-purple);
    font-size: 1rem;
}

.comment-content {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.comment-reply-link {
    color: var(--accent-purple);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: var(--white);
    border-radius: 6px;
    border: 1px solid var(--accent-purple);
    transition: all 0.2s ease;
    display: inline-block;
}

.comment-reply-link:hover {
    background: var(--accent-purple);
    color: var(--white);
    text-decoration: none;
}

/* Comment Form Styling */
.comment-respond {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    margin: 3rem auto 0 auto;
    border: 1px solid var(--secondary-purple);
    max-width: 900px;
    box-shadow: 0 2px 15px rgba(104, 56, 166, 0.05);
}

.comment-reply-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-purple);
    margin-bottom: 2rem;
    text-align: left;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-purple);
}

/* Comment form fields layout */
.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: inline-block;
    width: calc(33.333% - 1rem);
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
    vertical-align: top;
}

.comment-form-url {
    margin-right: 0;
}

.comment-form-comment {
    margin-bottom: 2rem;
    clear: both;
}

/* Form field labels */
.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    font-weight: 600;
    color: var(--dark-purple);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

/* Form input fields */
.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid var(--secondary-purple);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    background: var(--white);
    box-sizing: border-box;
}

.comment-form-comment textarea {
    resize: vertical;
    min-height: 150px;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    height: 56px;
}

/* Focus states for all form fields */
.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(104, 56, 166, 0.1);
    transform: translateY(-1px);
}

/* Required field indicators */
.comment-form-comment label::after,
.comment-form-author label::after,
.comment-form-email label::after {
    content: " *";
    color: var(--accent-purple);
    font-weight: 700;
}

/* Comment form note */
.comment-notes {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--primary-purple);
    border-radius: 6px;
    border-left: 4px solid var(--accent-purple);
}

/* Comment form cookies checkbox */
.comment-form-cookies-consent {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-purple);
    cursor: pointer;
}

.comment-form-cookies-consent label {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
}

.form-submit {
    text-align: left;
}

.form-submit input[type="submit"] {
    background: var(--accent-purple);
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-submit input[type="submit"]:hover {
    background: var(--dark-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(104, 56, 166, 0.3);
}

/* Desktop Enhancements */
@media (min-width: 769px) {
    .single-post-section {
        padding: 5rem 0;
    }
    
    .single-post-card {
        padding: 4rem;
    }
    
    .single-post-card .entry-title {
        font-size: 3.2rem;
    }
    
    .single-post-card .entry-content {
        font-size: 1.2rem;
        line-height: 1.9;
    }
    
    .comments-area {
        padding: 4rem;
    }
    
    .comment-respond {
        padding: 4rem;
    }
    
    .comment {
        padding: 2.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .books-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid.single-section .books-grid,
    .content-grid.single-section .blog-grid,
    .content-grid.single-section .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid.three-sections {
        grid-template-columns: 1fr;
    }
    
    .content-grid.three-sections .books-grid,
    .content-grid.three-sections .blog-grid,
    .content-grid.three-sections .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .single-post-section {
        padding: 2rem 0;
    }
    
    .single-post-card {
        padding: 2rem;
        margin: 0;
        border-radius: 8px;
    }
    
    .single-post-card .entry-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .single-post-card .entry-meta {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }
    
    .single-post-card .entry-content {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    .comments-area,
    .comment-respond {
        padding: 2rem;
        margin: 2rem 0;
        border-radius: 8px;
    }
    
    .comment-form-author,
    .comment-form-email,
    .comment-form-url {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .comment {
        padding: 1.5rem;
    }
    
    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .comment-reply-link {
        margin-top: 1rem;
    }
}

/* Stories Section Styles */
.stories-section {
    padding: 0;
    background: transparent;
}

.stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.story-card {
    background: var(--white);
    border: 1px solid var(--secondary-purple);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(104, 56, 166, 0.05);
}

.story-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(104, 56, 166, 0.15);
}

.story-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--secondary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-purple);
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.story-card:hover .story-image {
    transform: scale(1.05);
}

.placeholder-text {
    font-size: 1rem;
}

.story-content {
    padding: 1.5rem;
}

.story-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.story-category a {
    background: var(--primary-purple);
    color: var(--accent-purple);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.story-category a:hover {
    background: var(--accent-purple);
    color: var(--white);
}

.story-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.story-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.story-title a:hover {
    color: var(--accent-purple);
}

.story-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.read-story-btn {
    display: inline-block;
    background: var(--accent-purple);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.read-story-btn:hover {
    background: var(--dark-purple);
    transform: translateY(-1px);
}

/* Stories Archive Styles */
.stories-archive-section {
    padding: 3rem 0;
    background: var(--white);
}

.archive-header {
    text-align: center;
    margin-bottom: 3rem;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-purple);
    margin-bottom: 1rem;
}

.archive-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.no-stories {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--primary-purple);
    border-radius: 12px;
    border: 1px solid var(--secondary-purple);
}

.no-stories h2 {
    font-size: 1.8rem;
    color: var(--dark-purple);
    margin-bottom: 1rem;
}

.no-stories p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.pagination-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    margin: 0 0.3rem;
    background: var(--white);
    color: var(--accent-purple);
    text-decoration: none;
    border: 1px solid var(--secondary-purple);
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
    background: var(--accent-purple);
    color: var(--white);
    border-color: var(--accent-purple);
}

/* Single Story Styles */
.single-story-section {
    padding: 4rem 0;
    background: var(--white);
    min-height: 80vh;
}

.single-story-card {
    background: var(--white);
    border: 1px solid var(--secondary-purple);
    border-radius: 12px;
    padding: 3rem;
    margin: 0 auto;
    max-width: 900px;
    box-shadow: 0 4px 20px rgba(104, 56, 166, 0.08);
}

.story-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--primary-purple);
}

.story-header .story-meta {
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.story-header .story-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-purple);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.story-featured-image {
    margin: 2rem 0;
    text-align: center;
}

.story-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--secondary-purple);
}

.story-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.story-content p {
    margin-bottom: 1.8rem;
    text-align: justify;
}

.story-content h1,
.story-content h2,
.story-content h3,
.story-content h4,
.story-content h5,
.story-content h6 {
    color: var(--dark-purple);
    margin: 2.5rem 0 1.5rem 0;
    font-weight: 700;
    line-height: 1.3;
}

.story-content h2 {
    font-size: 1.8rem;
}

.story-content h3 {
    font-size: 1.5rem;
}

.story-content blockquote {
    border-left: 4px solid var(--accent-purple);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
    background: var(--primary-purple);
    border-radius: 0 8px 8px 0;
}

.story-footer {
    padding-top: 2rem;
    border-top: 2px solid var(--primary-purple);
    margin-top: 2rem;
}

.story-tags {
    margin-bottom: 2rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}

.tag-label {
    font-weight: 600;
    color: var(--dark-purple);
    margin-right: 0.5rem;
}

.tag-link {
    background: var(--primary-purple);
    color: var(--accent-purple);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: var(--accent-purple);
    color: var(--white);
}

.story-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: var(--primary-purple);
    color: var(--accent-purple);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--secondary-purple);
}

.nav-link:hover {
    background: var(--accent-purple);
    color: var(--white);
    transform: translateY(-1px);
}

.nav-arrow {
    font-size: 1.2rem;
    font-weight: bold;
}

.back-to-stories {
    text-align: center;
}

.back-link {
    display: inline-block;
    background: var(--accent-purple);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: var(--dark-purple);
    transform: translateY(-1px);
}

/* Responsive Design for Stories */
@media (max-width: 768px) {
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .single-story-card {
        padding: 2rem;
        margin: 0;
    }
    
    .story-header .story-title {
        font-size: 2.2rem;
    }
    
    .story-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
    }
    
    .story-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .tag-list {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 769px) {
    .stories-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

/* Articles Archive Styles */
.articles-archive-section {
    padding: 3rem 0;
    background: var(--white);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--secondary-purple);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(104, 56, 166, 0.05);
}

.article-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(104, 56, 166, 0.15);
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-placeholder {
    width: 100%;
    height: 100%;
    background: var(--secondary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--dark-purple);
    font-weight: 500;
}

.placeholder-text {
    font-size: 1rem;
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-category a {
    background: var(--primary-purple);
    color: var(--accent-purple);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.article-category a:hover {
    background: var(--accent-purple);
    color: var(--white);
}

.article-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: var(--accent-purple);
}

.article-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.read-article-btn {
    display: inline-block;
    background: var(--accent-purple);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.read-article-btn:hover {
    background: var(--dark-purple);
    transform: translateY(-1px);
}

.no-articles {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--primary-purple);
    border-radius: 12px;
    border: 1px solid var(--secondary-purple);
}

.no-articles h2 {
    font-size: 1.8rem;
    color: var(--dark-purple);
    margin-bottom: 1rem;
}

.no-articles p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Responsive Design for Articles */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

@media (min-width: 769px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

/* WordPress Specific Styles */
.wp-block-image {
    margin: 1.5rem 0;
}

.wp-block-image img {
    border-radius: 6px;
    border: 1px solid var(--secondary-purple);
}

.alignwide {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}
