/* CSS Variables for consistent theming */
:root {
    --primary-color: #ba1a5e; /* Magenta/Berry color from reference */
    --text-main: #333333;
    --text-light: #777777;
    --bg-color: #fcf6f8; /* Very subtle pinkish background */
    --bg-gradient: linear-gradient(135deg, #ffffff 0%, #faeef3 100%);
    --white: #ffffff;
    --footer-bg: #1e1e1e;
    --border-color: #eaeaea;
    --font-main: 'Inter', sans-serif;
    --font-logo: 'Pacifico', cursive;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background: var(--bg-gradient);
    background-attachment: fixed;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Header */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo a {
    font-family: var(--font-logo);
    font-size: 2.5rem;
    color: var(--text-main);
    line-height: 1;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 600;
}

.header-search {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.icon-btn {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: var(--transition);
}

.icon-btn:hover {
    opacity: 1;
}

@media (min-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: center;
        position: relative;
    }
}

/* Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
}

@media (min-width: 992px) {
    .content-wrapper {
        grid-template-columns: 2.5fr 1fr;
    }
}

/* Blog Feed (Articles) */
.post-card {
    margin-bottom: 50px;
    text-align: center;
}

.post-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    object-fit: cover;
    max-height: 500px;
}

.post-meta {
    margin-bottom: 15px;
}

.category {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 5px;
}

.post-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-title a {
    color: var(--text-main);
}

.post-info {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.post-info span:not(:last-child)::after {
    content: ' | ';
    margin: 0 5px;
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-read-more {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    font-size: 0.9rem;
    background: var(--white);
}

.btn-read-more:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--white);
    color: var(--text-main);
}

.page-numbers.current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-numbers.next {
    width: auto;
    padding: 0 15px;
}

.page-numbers:hover:not(.current):not(.dots) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-numbers.dots {
    border: none;
    background: transparent;
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0e6ea;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    color: var(--text-main);
}

.widget-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    margin-top: 10px;
}

/* Search Widget */
.search-form {
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-family: var(--font-main);
    outline: none;
}

.btn-search {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-search:hover {
    background: #9e134d;
}

/* Recent Posts List */
.widget-recent-posts ul {
    list-style: none;
}

.widget-recent-posts li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.widget-recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.list-icon {
    width: 12px;
    height: 12px;
    margin-top: 5px;
    margin-right: 10px;
    opacity: 0.5;
}

.widget-recent-posts a {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-main);
}

/* Trusted Widget */
.trusted-content {
    text-align: center;
}

.partner-logo {
    max-width: 150px;
    margin: 0 auto 15px;
}

.trusted-content p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Pre-Footer Welcome */
.pre-footer {
    background: var(--white);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.pre-footer h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2rem;
}

.pre-footer p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: 40px 0 20px;
    text-align: center;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: #aaaaaa;
    margin-bottom: 30px;
    line-height: 1.5;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 20px 0;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #dddddd;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copyright {
    font-size: 0.85rem;
    color: #888888;
}

/* Cookie Modal (Right side) */
.cookie-modal {
    position: fixed;
    right: -400px; /* Hidden initially */
    bottom: 30px;
    width: 320px;
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    border-left: 4px solid var(--primary-color);
    transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-modal.show {
    right: 30px;
}

.cookie-modal h4 {
    margin-bottom: 10px;
    color: var(--text-main);
}

.cookie-modal p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #9e134d;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 100px;
    background: transparent;
    border: none;
    color: var(--text-light);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    letter-spacing: 1px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 90;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    color: var(--primary-color);
}

.btt-icon {
    width: 12px;
    transform: rotate(90deg);
    opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-search {
        position: static;
        transform: none;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .cookie-modal {
        width: calc(100% - 40px);
        right: -100%;
        bottom: 20px;
    }

    .cookie-modal.show {
        right: 20px;
    }
    
    .back-to-top {
        display: none; /* Hide on mobile to prevent clutter */
    }
}
/* Inner page styles */
/* SINGLE POST STYLES */

/* Article Header Elements */
.single-post {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.article-title {
    font-size: 2.5rem;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 15px;
}

.post-meta-single {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.post-meta-single .category {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Article Images */
.article-main-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    object-fit: cover;
    max-height: 500px;
}

.article-inner-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    margin: 40px auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: block;
}

/* Typography inside Article Content */
.article-content h2, 
.article-content h3, 
.article-content h4, 
.article-content h5, 
.article-content h6 {
    color: var(--text-main);
    margin: 1.8em 0 0.8em;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid #f0e6ea;
    padding-bottom: 10px;
}

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

.article-content h4 {
    font-size: 1.25rem;
}

.article-content p {
    margin-bottom: 1.5em;
    font-size: 1.1rem;
    color: #444444;
    line-height: 1.8;
}

.article-content span {
    color: var(--primary-color);
    font-weight: 700;
    background-color: rgba(186, 26, 94, 0.05);
    padding: 0 4px;
    border-radius: 2px;
}

/* Lists (ul, ol) */
.article-content ul, 
.article-content ol {
    margin-bottom: 1.5em;
    padding-left: 20px;
    font-size: 1.1rem;
    color: #444444;
}

.article-content ul li, 
.article-content ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-content ul {
    list-style-type: none;
}

.article-content ul li::before {
    content: "\2022";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5em 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.article-content th, 
.article-content td {
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    text-align: left;
    font-size: 1rem;
}

.article-content th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.article-content tr:nth-child(even) {
    background-color: #faf7f8;
}

.article-content tr:hover {
    background-color: #f5eff1;
}

/* Related Posts Block */
.related-posts {
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.related-posts h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-main);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.related-card a {
    display: block;
}

.related-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover img {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.related-card h4 {
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--text-main);
    transition: color 0.3s;
}

.related-card:hover h4 {
    color: var(--primary-color);
}

/* Forms (Comments & Contact) */
.comments-section {
    margin-top: 60px;
    background: #fdfafb;
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #f0e6ea;
}

.comments-section h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.comments-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 600px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(186, 26, 94, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #9e134d;
}

.btn-full {
    width: 100%;
}

/* Table of Contents Widget (TOC) */
.widget-toc ul {
    list-style: none;
    padding-left: 0;
}

.widget-toc li {
    margin-bottom: 12px;
}

.widget-toc ul ul {
    padding-left: 20px;
    margin-top: 8px;
}

.widget-toc a {
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.widget-toc a::before {
    content: "›";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 8px;
    line-height: 1;
}

.widget-toc a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* Contact Widget Specific */
.contact-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.widget-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-top: -3px;
    margin-right: 5px;
}

/* Responsive adjustments for article */
@media (max-width: 768px) {
    .single-post {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}