/*
Theme Name: Voice Trainer Blog
Description: A clean and modern WordPress blog theme with elegant styling for content display. Perfect for blogging about voice training, vocal health, and speech therapy topics.
Author: Voice Trainer Team
Version: 1.0
*/

:root {
    --primary-color: #3a7bdb;
    --secondary-color: #f5a742;
    --green-color: #67b36e;
    --purple-color: #b567b2;
    --deep-purple-color: #6567b2;
    --text-color: #333;
    --light-text: #fff;
    --dark-background: #222;
    --light-gray: #f8f9fa;
    --border-color: #e1e5e9;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background-attachment: fixed;
    font-size: 16px;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(58, 123, 219, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 167, 66, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(181, 103, 178, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 4rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.main-content {
    min-width: 0;
    /* Prevents grid overflow */
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--primary-color), var(--deep-purple-color));
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(58, 123, 219, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--light-text);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.site-logo:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.site-logo-img {
    height: 50px;
    width: 50px;
    margin-right: 15px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    transition: all 0.3s ease;
}

.site-logo:hover .site-logo-img {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.site-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--light-text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-left: 2rem;
}

.main-navigation a {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1.5rem;
    position: relative;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    color: var(--light-text);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* External main page link styling */
.main-navigation a[href="https://voicetrainer.pro/"] {
    position: relative;
    background: linear-gradient(135deg, var(--secondary-color), var(--purple-color));
    color: white !important;
    border-radius: 20px;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    margin: 0 0.25rem;
}

.main-navigation a[href="https://voicetrainer.pro/"]:hover {
    background: linear-gradient(135deg, var(--purple-color), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 167, 66, 0.3);
}

.main-navigation a[href="https://voicetrainer.pro/"]:after {
    content: "🔗";
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

/* Mobile menu external link */
@media (max-width: 768px) {
    .main-navigation a[href="https://voicetrainer.pro/"] {
        background: linear-gradient(135deg, var(--secondary-color), var(--purple-color));
        margin: 0.25rem 0;
        text-align: center;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 1.5rem;
    color: var(--light-text);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Blog Posts */
.post {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(58, 123, 219, 0.1);
    position: relative;
}

.post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--purple-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.post:hover::before {
    opacity: 1;
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 2.5rem;
    position: relative;
}

.post-header {
    margin-bottom: 1.5rem;
}

.post-title {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: 700;
}

.post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--deep-purple-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.post-title a:hover {
    transform: translateY(-2px);
    background-size: 100% 100%;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(58, 123, 219, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.post-meta i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.post-excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--deep-purple-color));
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 123, 219, 0.3);
    border: none;
    font-size: 0.95rem;
}

.read-more:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--purple-color));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 167, 66, 0.4);
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Categories and Tags */
.post-categories {
    margin-bottom: 1.5rem;
}

.post-categories a {
    background: linear-gradient(135deg, var(--secondary-color), var(--purple-color));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 167, 66, 0.3);
}

.post-categories a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--deep-purple-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 123, 219, 0.4);
}

.post-tags {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.post-tags a {
    background: #f1f3f4;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: var(--purple-color);
    color: white;
}

/* Single Post */
.single-post {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.single-post-header {
    padding: 3rem 3rem 1rem;
    text-align: center;
}

.single-post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.single-post-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
}

.single-post-thumbnail {
    margin-bottom: 2rem;
}

.single-post-thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.single-post-content {
    padding: 0 3rem 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

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

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

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

/* Sidebar */
.widget {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(58, 123, 219, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    border-bottom: 3px solid var(--light-gray);
    padding-bottom: 1rem;
    font-weight: 700;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

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

/* Search Widget */
.search-form {
    position: relative;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-form input[type="search"]:focus {
    border-color: var(--primary-color);
}

.search-form button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form button:hover {
    background: var(--secondary-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

/* Footer */
.site-footer {
    background: var(--dark-background);
    color: #ccc;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-widget h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

/* Comments */
.comments-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    padding: 2rem;
    margin-top: 3rem;
}

.comments-title {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.comment {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.comment-content p {
    margin-bottom: 1rem;
}

/* Forms */
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.comment-form button:hover {
    background: var(--secondary-color);
}

/* Archive Pages */
.archive-header {
    text-align: center;
    padding: 3rem 0;
    background: var(--light-gray);
    margin-bottom: 3rem;
    border-radius: 12px;
}

.archive-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.archive-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 4rem 0;
}

.error-404 h1 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-404 p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-container {
        padding: 1rem 0;
    }

    .site-logo-img {
        height: 40px;
        width: 40px;
        margin-right: 12px;
    }

    .site-title {
        font-size: 1.3rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--dark-background), #333);
        box-shadow: var(--shadow-medium);
        border-radius: 0 0 12px 12px;
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 1rem;
    }

    .main-navigation li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        display: block;
        padding: 1rem;
        margin: 0.25rem 0;
        border-radius: 8px;
        color: rgba(255, 255, 255, 0.9);
    }

    .main-navigation a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--light-text);
    }

    .post-content {
        padding: 1.5rem;
    }

    .single-post-header,
    .single-post-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .single-post-title {
        font-size: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .single-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

/* Print Styles */
@media print {

    .site-header,
    .sidebar,
    .site-footer,
    .comments-section {
        display: none;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .post,
    .single-post {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Prevent layout shifts and scrolling issues */
.no-scroll {
    overflow: hidden !important;
}

.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Prevent horizontal scroll and ensure smooth operation */
.container,
.content-wrapper,
.main-content {
    max-width: 100%;
    overflow-x: hidden;
}

/* ========================================
   CASCADE LAYOUT STYLES
   ======================================== */

/* Cascade Layout Container */
.cascade-layout {
    width: 100%;
    max-width: none;
    padding: 2rem 0;
}

.posts-cascade-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    grid-auto-rows: auto;
}

/* Individual Cascade Post */
.cascade-post {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(58, 123, 219, 0.05);
    position: relative;
    break-inside: avoid;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.cascade-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--purple-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cascade-post:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.cascade-post:hover::before {
    opacity: 1;
}

/* Cascade Post Thumbnail */
.cascade-post-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    height: 200px;
}

.cascade-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cascade-post:hover .cascade-post-thumbnail img {
    transform: scale(1.1);
}

.cascade-post-categories {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.cascade-category {
    background: linear-gradient(135deg, var(--secondary-color), var(--purple-color));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(245, 167, 66, 0.3);
    transition: all 0.3s ease;
}

.cascade-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 167, 66, 0.4);
}

/* Cascade Post Content */
.cascade-post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cascade-post-header {
    margin-bottom: 1rem;
}

.cascade-post-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.cascade-post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--deep-purple-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

.cascade-post-title a:hover {
    background-position: 100% 50%;
}

.cascade-post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666;
    align-items: center;
}

.cascade-post-meta i {
    color: var(--primary-color);
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

.cascade-post-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Cascade Post Footer */
.cascade-post-footer {
    margin-top: auto;
}

.cascade-post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cascade-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--deep-purple-color));
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(58, 123, 219, 0.3);
}

.cascade-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 123, 219, 0.4);
}

.cascade-read-more i {
    transition: transform 0.3s ease;
}

.cascade-read-more:hover i {
    transform: translateX(3px);
}

.cascade-comments {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.cascade-comments:hover {
    color: var(--primary-color);
}

.cascade-post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cascade-tag {
    background: rgba(58, 123, 219, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(58, 123, 219, 0.2);
}

.cascade-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Responsive Cascade Layout */
@media (max-width: 1200px) {
    .posts-cascade-container {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .cascade-layout {
        padding: 1rem 0;
    }

    .posts-cascade-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
        max-width: 500px;
    }

    .cascade-post-thumbnail {
        height: 180px;
    }

    .cascade-post-content {
        padding: 1.25rem;
    }

    .cascade-post-title {
        font-size: 1.1rem;
    }

    .cascade-post-actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .cascade-read-more {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .posts-cascade-container {
        padding: 0;
    }

    .cascade-post {
        margin: 0 0.5rem;
    }

    .cascade-post-thumbnail {
        height: 160px;
    }

    .cascade-post-content {
        padding: 1rem;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--deep-purple-color));
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(58, 123, 219, 0.3);
    z-index: 1000;
    font-size: 1.2rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(58, 123, 219, 0.4);
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}

/* Focus styles */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* WordPress specific classes */
.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.aligncenter {
    display: block;
    margin: 1rem auto;
}

.wp-caption {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0;
}