/*
Theme Name: Bailar y Llorar
Description: Un tema elegante para blogs de reflexión y emociones. Diseñado para conectar con las emociones más profundas a través de un diseño limpio y moderno.
Author: Tu Nombre
Version: 1.0
Text Domain: bailar-y-llorar
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #000000;
    background-color: #ffffff;
    letter-spacing: -0.01em;
}

/* Override CSS custom properties if they exist */
:root {
    --bs-link-color: #8f2d56 !important;
    --bs-link-hover-color: #7a2548 !important;
    --bs-link-color-rgb: 143, 45, 86 !important;
    --bs-link-hover-color-rgb: 122, 37, 72 !important;
    --bs-link-opacity: 1 !important;
}

/* Links with magenta backgrounds should have white text */
.read-more-btn a,
.btn a,
.button a,
.nav-links a,
.navbar.sticky .nav-links a,
[style*="background:#8f2d56"] a,
[style*="background-color:#8f2d56"] a,
[class*="bg-primary"] a,
[class*="btn-primary"] a,
.comment-form input[type="submit"] a,
.search-form-container .btn-primary a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.read-more-btn a:hover,
.btn a:hover,
.button a:hover,
.nav-links a:hover,
.navbar.sticky .nav-links a:hover,
[style*="background:#8f2d56"] a:hover,
[style*="background-color:#8f2d56"] a:hover,
[class*="bg-primary"] a:hover,
[class*="btn-primary"] a:hover,
.comment-form input[type="submit"] a:hover,
.search-form-container .btn-primary a:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

.read-more-btn a:visited,
.btn a:visited,
.button a:visited,
.nav-links a:visited,
.navbar.sticky .nav-links a:visited,
[style*="background:#8f2d56"] a:visited,
[style*="background-color:#8f2d56"] a:visited,
[class*="bg-primary"] a:visited,
[class*="btn-primary"] a:visited,
.comment-form input[type="submit"] a:visited,
.search-form-container .btn-primary a:visited {
    color: #ffffff !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: #000000;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Main header container */
.site-header {
    position: relative;
    min-height: 50vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Background image as actual img element */
.header-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    z-index: 0;
}

/* Overlay for better text readability - removed dark overlay */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}

/* Navigation bar - always at top */
.navbar {
    position: relative;
    z-index: 1000;
    padding: 1.5rem 0 1.5rem 0; /* Increased bottom padding to 1.5rem */
    background: rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    overflow: visible; /* Allow boxes to hang out */
}

/* Sticky navbar state */
.navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Sticky state adjustments for nav boxes */
.navbar.sticky .nav-links a {
    width: auto;
    height: auto;
    font-size: 1.2rem;
    transform: rotateZ(0deg) scale(0.8) !important;
    align-items: center;
    margin-top: 0;
    background: #8f2d56;
    color: #ffffff;
    text-transform: uppercase;
    padding: 0.5rem;
}

.navbar.sticky .nav-links a:hover {
    transform: rotateZ(0deg) translateY(-5px) translateZ(10px) scale(0.8) !important;
    background: #7a2548;
}

.navbar.sticky .nav-links a.active {
    background: #b8396f;
}

/* Navbar content */
.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo styling - aligned to left */
.logo-container {
    flex-shrink: 0;
}

.site-logo {
    height: 90px;
    width: auto;
    transition: height 0.3s ease;
}

/* WordPress custom logo support */
.custom-logo {
    height: 90px;
    width: auto;
    transition: height 0.3s ease;
}

.navbar.sticky .site-logo {
    height: 75px;
}

.navbar.sticky .custom-logo {
    height: 75px;
}

/* Navigation container - aligned to right */
.nav-container {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* Navigation links */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: flex-start;
    padding-top: 1rem; /* Increased from 2rem to 2.5rem */
    gap: 3rem;
}

.nav-links li {
    perspective: 1000px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #000000;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Mobile menu toggle animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li:last-child {
    border-bottom: none;
}

.mobile-nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: white;
    text-decoration: none;
    text-transform: lowercase;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    position: relative;
    background: #8f2d56;
    text-transform: uppercase;
    font-weight: bold;
    font-style: italic;
    display: inline-block;
    margin: 1rem;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: #8f2d56;
    background: rgba(143, 45, 86, 0.05);
    padding-left: 2rem;
}

/* Desktop navigation links */
.nav-links a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    text-transform: lowercase;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex
;
    min-width: 80px;
    height: 120px;
    background: #8f2d56;
    border: 2px solid #8f2d56;
    border-radius: 0;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 20px rgba(143, 45, 86, 0.3);
    backdrop-filter: blur(10px);
    transform-origin: top center;
    z-index: 10;
    padding-bottom: 15px;
    margin-top: -100px;
    text-transform: uppercase;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Random angles for each nav item */
.nav-links li:nth-child(1) a {
    transform: rotateZ(-8deg);
}

.nav-links li:nth-child(2) a {
    transform: rotateZ(5deg);
}

.nav-links li:nth-child(3) a {
    transform: rotateZ(-3deg);
}

.nav-links li:nth-child(4) a {
    transform: rotateZ(7deg);
}

/* Hover effects */
.nav-links a:hover {
    transform: rotateZ(0deg) translateY(-10px) translateZ(20px) !important;
    background: #7a2548; /* Darker magenta on hover */
    color: #ffffff;
    border-color: #7a2548;
    box-shadow: 0 15px 35px rgba(143, 45, 86, 0.4);
    z-index: 20;
}

/* Active state */
.nav-links a.active {
    background: #b8396f; /* Lighter magenta for active */
    border-color: #b8396f;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(184, 57, 111, 0.4);
}

.nav-links a.active:hover {
    background: #7a2548; /* Darker magenta on hover */
    color: #ffffff;
    border-color: #7a2548;
    transform: rotateZ(0deg) translateY(-10px) translateZ(20px) !important;
}

/* Remove old underline effect */
.nav-links a::after {
    display: none;
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #000000;
    padding: 2rem 0;
}

.hero-content-single {
    padding: 3rem 0;
    min-height: auto;
}

.hero-text h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
}

.hero-text p {
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto 1.5rem;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

/* Page Header for Blog and other pages */
.page-header {
    background: #f8f9fa !important;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0;
}

/* Main content */
.main-content {
    background: #ffffff;
    padding: 4rem 0;
}

/* Placeholder to prevent jump when navbar becomes sticky */
.navbar-placeholder {
    height: 0;
    transition: height 0.3s ease;
}

/* Content sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #8f2d56;
}

.post-card {
    background: #ffffff;
    margin-bottom: 3rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.06);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.post-image {
    height: 300px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    font-weight: 300;
    position: relative;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.post-card:hover .post-image::before {
    left: 100%;
}

.post-content {
    padding: 3rem;
}

.post-content-single {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #8f2d56;
}

.post-meta {
    color: #af9164;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.post-meta-hero {
    margin-top: 1rem;
    font-size: 1rem;
    color: #af9164;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.post-excerpt {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #333;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #8f2d56;
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 2rem;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.read-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.read-more-btn:hover {
    background: #7a2548;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(143, 45, 86, 0.3);
}

.read-more-btn:hover::before {
    left: 100%;
}

.read-more-btn::after {
    content: '→';
    transition: transform 0.3s ease;
}

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

/* Footer */
.footer {
    background: #000000;
    color: #ffffff;
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.footer h6 {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer p {
    color: #cccccc;
    line-height: 1.7;
}

.footer a {
    color: #8f2d56;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffffff;
}

.footer-divider {
    border-color: #333 !important;
    margin: 3rem 0 2rem !important;
}

.footer-copyright {
    color: #888 !important;
    font-size: 0.85rem !important;
    text-align: center;
}

/* Post Navigation */
.post-navigation {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 2rem;
}

.nav-post {
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.nav-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.nav-label {
    font-size: 0.85rem;
    color: #8f2d56;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.nav-post h4 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.nav-post a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-post a:hover {
    color: #8f2d56;
}

/* Pagination Styles */
.pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
    background: #8f2d56;
    color: #ffffff;
    border-color: #8f2d56;
}

.pagination-wrapper .page-numbers.prev,
.pagination-wrapper .page-numbers.next {
    font-weight: 600;
}

/* Comments Styles */
.comments-section {
    max-width: 800px;
    margin: 0 auto;
}

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

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

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

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

.comment-content p {
    margin-bottom: 0;
    line-height: 1.6;
}

.comment-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1rem;
}

.comment-form input[type="submit"] {
    background: #8f2d56;
    color: white;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: background 0.3s ease;
    width: auto;
}

.comment-form input[type="submit"]:hover {
    background: #7a2548;
}

/* Search Form Styles */
.search-form-container .form-control {
    border: 2px solid rgba(0,0,0,0.1);
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.search-form-container .form-control:focus {
    border-color: #8f2d56;
    box-shadow: 0 0 0 0.2rem rgba(143, 45, 86, 0.25);
}

.search-form-container .btn-primary {
    background: #8f2d56;
    border-color: #8f2d56;
    padding: 0.75rem 2rem;
    font-weight: 500;
}

.search-form-container .btn-primary:hover {
    background: #7a2548;
    border-color: #7a2548;
}

/* 404 Error Page Styles */
.error-404 {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.error-title {
    font-size: 2.5rem;
    color: #8f2d56;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.error-search h4,
.error-navigation h4,
.recent-posts-404 h4 {
    color: #000000;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.nav-options {
    margin-top: 1rem;
}

.recent-posts-404 .card {
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.recent-posts-404 .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.recent-posts-404 .card-title a {
    color: #000000;
    font-size: 1.1rem;
    font-weight: 600;
}

.recent-posts-404 .card-title a:hover {
    color: #8f2d56;
}

/* Additional responsive styles */
@media (max-width: 768px) {
    .error-title {
        font-size: 2rem;
    }
    
    .error-message {
        font-size: 1rem;
    }
    
    .nav-options .read-more-btn {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .recent-posts-404 .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        gap: 1.5rem;
        padding-top: 1rem; /* Adjusted for tablet */
    }
    
    .nav-links a {
        width: 70px;
        height: 150px; /* Increased from 100px to 150px */
        font-size: 0.85rem;
        padding-bottom: 12px;
        margin-top: -70px; /* Increased from -40px to -70px (40% more up) */
    }
}

@media (max-width: 768px) {
    .site-header {
        min-height: 38vh;
        background-attachment: scroll;
        background-size: contain;
        background-color: #ffffff;
    }
    
    .navbar {
        padding: 2rem 0;
    }

    .navbar.sticky {
        padding: 1rem 0;
    }

    .site-logo {
        height: 70px;
    }

    .custom-logo {
        height: 70px;
    }

    .navbar.sticky .site-logo {
        height: 40px;
    }

    .navbar.sticky .custom-logo {
        height: 40px;
    }

    /* Hide desktop nav, show mobile */
    .nav-links {
        display: none;
    }

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

    .hero-text h1 {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    .hero-text p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .post-content {
        padding: 2rem;
    }
    
    .post-title {
        font-size: 1.6rem;
    }
    
    .main-content {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 1.5rem 0;
    }

    .navbar.sticky {
        padding: 0.8rem 0;
    }

    .site-logo {
        height: 60px;
    }

    .custom-logo {
        height: 60px;
    }

    .navbar.sticky .site-logo {
        height: 35px;
    }

    .navbar.sticky .custom-logo {
        height: 35px;
    }
    
    .hero-content {
        padding: 1.5rem 0;
    }

    .mobile-nav-links a {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .comment-form {
        padding: 1rem;
    }
}

/* Responsive adjustments for single posts */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .hero-content-single {
        padding: 2rem 0;
    }
    
    .single-post {
        padding: 0 1rem;
    }
    
    .post-content_single {
        font-size: 1rem;
    }
    
    .nav-post {
        padding: 1rem;
    }
    
    .nav-post h4 {
        font-size: 1rem;
    }
    
    .post-share {
        margin-top: 1rem;
        text-align: left !important;
    }
    
    .share-btn {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }
}

/* Sidebar and Widget Styles */
.sidebar {
    padding-left: 2rem;
}

.sidebar-inner {
    position: sticky;
    top: 100px;
}

.widget {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #8f2d56;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #b8396f;
}

/* Widget content styling */
.widget p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

.widget ul li:hover {
    padding-left: 0.5rem;
    background: rgba(143, 45, 86, 0.02);
}

.widget ul li a {
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 400;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: #8f2d56 !important;
}

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

.widget_search .search-field {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.widget_search .search-field:focus {
    outline: none;
    border-color: #8f2d56;
    box-shadow: 0 0 0 0.2rem rgba(143, 45, 86, 0.15);
}

.widget_search .search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #8f2d56;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.widget_search .search-submit:hover {
    background: #7a2548;
}

/* Categories and Archive widgets */
.widget_categories ul,
.widget_archive ul,
.widget_recent_entries ul,
.widget_pages ul,
.widget_nav_menu ul {
    margin-top: 0.5rem;
}

.widget_categories li,
.widget_archive li,
.widget_recent_entries li,
.widget_pages li,
.widget_nav_menu li {
    position: relative;
    padding-left: 1rem;
}

.widget_categories li::before,
.widget_archive li::before,
.widget_recent_entries li::before,
.widget_pages li::before,
.widget_nav_menu li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #8f2d56;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.widget_categories li:hover::before,
.widget_archive li:hover::before,
.widget_recent_entries li:hover::before,
.widget_pages li:hover::before,
.widget_nav_menu li:hover::before {
    transform: translateX(3px);
}

/* Tag cloud widget */
.widget_tag_cloud .tagcloud a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    margin: 0.2rem;
    background: rgba(143, 45, 86, 0.1);
    color: #8f2d56 !important;
    border-radius: 20px;
    font-size: 0.8rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.widget_tag_cloud .tagcloud a:hover {
    background: #8f2d56;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Recent posts widget */
.widget_recent_entries li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.widget_recent_entries .post-date {
    display: block;
    font-size: 0.75rem;
    color: #af9164;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer widgets */
.footer-widget {
    color: #cccccc;
}

.footer-widget-title {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.footer-widget p {
    color: #cccccc;
    line-height: 1.7;
}

.footer-widget ul li a {
    color: #cccccc !important;
}

.footer-widget ul li a:hover {
    color: #8f2d56 !important;
}

/* WordPress Block Widgets General Styling */
.widget_block {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.widget_block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* WordPress Block Widget Titles */
.widget_block h2,
.widget_block h3,
.widget_block h4,
.widget_block h5,
.widget_block h6,
.wp-block-heading {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: #000000 !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 2px solid #8f2d56 !important;
    position: relative !important;
}

.widget_block h2::after,
.widget_block h3::after,
.widget_block h4::after,
.widget_block h5::after,
.widget_block h6::after,
.wp-block-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #b8396f;
}

/* WordPress Block Widget Content */
.widget_block p {
    color: #666 !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
    font-family: 'Inter', sans-serif !important;
}

.widget_block ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget_block li {
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    padding-left: 1rem !important;
}

.widget_block li:last-child {
    border-bottom: none !important;
}

.widget_block li:hover {
    padding-left: 1.5rem !important;
    background: rgba(143, 45, 86, 0.02) !important;
}

.widget_block li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #8f2d56;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.widget_block li:hover::before {
    transform: translateX(3px);
}

.widget_block a {
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    transition: color 0.3s ease !important;
    font-family: 'Inter', sans-serif !important;
}

.widget_block a:hover {
    color: #8f2d56 !important;
}

/* Latest Posts Block Specific */
.wp-block-latest-posts__list {
    margin-top: 0.5rem !important;
}

.wp-block-latest-posts__post-title {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

/* Latest Comments Block Specific */
.wp-block-latest-comments {
    font-family: 'Inter', sans-serif !important;
}

.wp-block-latest-comments .no-comments {
    color: #999 !important;
    font-style: italic !important;
    text-align: center !important;
    padding: 1rem 0 !important;
}

.wp-block-latest-comments__comment {
    margin-bottom: 1rem !important;
    padding: 1rem !important;
    background: rgba(143, 45, 86, 0.02) !important;
    border-radius: 6px !important;
    border-left: 3px solid #8f2d56 !important;
}

.wp-block-latest-comments__comment-author {
    font-weight: 600 !important;
    color: #000000 !important;
    font-family: 'Playfair Display', serif !important;
}

.wp-block-latest-comments__comment-date {
    font-size: 0.8rem !important;
    color: #af9164 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.wp-block-latest-comments__comment-excerpt {
    margin-top: 0.5rem !important;
    color: #666 !important;
    font-style: italic !important;
}

/* Categories Block */
.wp-block-categories ul {
    margin-top: 0.5rem !important;
}

.wp-block-categories li {
    position: relative !important;
    padding-left: 1rem !important;
}

/* Archives Block */
.wp-block-archives ul {
    margin-top: 0.5rem !important;
}

.wp-block-archives li {
    position: relative !important;
    padding-left: 1rem !important;
}

/* Tag Cloud Block */
.wp-block-tag-cloud a {
    display: inline-block !important;
    padding: 0.3rem 0.8rem !important;
    margin: 0.2rem !important;
    background: rgba(143, 45, 86, 0.1) !important;
    color: #8f2d56 !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-family: 'Inter', sans-serif !important;
}

.wp-block-tag-cloud a:hover {
    background: #8f2d56 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Search Block */
.wp-block-search {
    position: relative !important;
}

.wp-block-search__input {
    width: 100% !important;
    padding: 0.75rem 3rem 0.75rem 1rem !important;
    border: 2px solid rgba(0,0,0,0.1) !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    transition: border-color 0.3s ease !important;
    font-family: 'Inter', sans-serif !important;
}

.wp-block-search__input:focus {
    outline: none !important;
    border-color: #8f2d56 !important;
    box-shadow: 0 0 0 0.2rem rgba(143, 45, 86, 0.15) !important;
}

.wp-block-search__button {
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #8f2d56 !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 0.8rem !important;
    transition: background 0.3s ease !important;
}

.wp-block-search__button:hover {
    background: #7a2548 !important;
}

/* Block Group Container */
.wp-block-group {
    width: 100% !important;
}

.wp-block-group__inner-container {
    width: 100% !important;
}

/* Calendar Block */
.wp-block-calendar table {
    width: 100% !important;
    font-family: 'Inter', sans-serif !important;
    border-collapse: collapse !important;
}

.wp-block-calendar th,
.wp-block-calendar td {
    padding: 0.5rem !important;
    text-align: center !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.wp-block-calendar th {
    background: rgba(143, 45, 86, 0.1) !important;
    color: #8f2d56 !important;
    font-weight: 600 !important;
}

.wp-block-calendar td a {
    color: #8f2d56 !important;
    font-weight: 600 !important;
}

.wp-block-calendar td a:hover {
    background: #8f2d56 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
}

/* RSS Block */
.wp-block-rss li {
    margin-bottom: 1rem !important;
    padding: 1rem !important;
    background: rgba(143, 45, 86, 0.02) !important;
    border-radius: 6px !important;
    border-left: 3px solid #8f2d56 !important;
}

.wp-block-rss__item-title {
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.wp-block-rss__item-publish-date {
    font-size: 0.8rem !important;
    color: #af9164 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.wp-block-rss__item-excerpt {
    margin-top: 0.5rem !important;
    color: #666 !important;
    font-style: italic !important;
}

/* VSEL Event Calendar Widget Styling */
.vsel-widget {
    border: none !important;
    background: transparent !important;
}

.vsel-widget .widget-title {
    color: #000000;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #8f2d56;
    position: relative;
}

.vsel-widget .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #b8396f;
}

/* Event container styling */
.vsel-content {
    background: #ffffff !important;
    border: 1px solid rgba(143, 45, 86, 0.1) !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 2px 15px rgba(143, 45, 86, 0.05) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.vsel-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #8f2d56 0%, #b8396f 100%);
    z-index: 1;
}

.vsel-content:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(143, 45, 86, 0.15) !important;
    border-color: rgba(143, 45, 86, 0.2) !important;
}

/* Event title styling */
.vsel-meta-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #000000 !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
    margin-left: 1rem !important; /* Offset for the left border */
}

/* Event meta information */
.vsel-meta-date,
.vsel-meta-time,
.vsel-meta-location {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.8rem !important;
    color: #af9164 !important;
    margin-bottom: 0.5rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-left: 1rem !important; /* Offset for the left border */
}

.vsel-meta-date span,
.vsel-meta-time span,
.vsel-meta-location span {
    color: #666 !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Event description */
.vsel-info {
    margin-top: 1rem !important;
    margin-left: 1rem !important; /* Offset for the left border */
}

.vsel-text {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    color: #666 !important;
}

.vsel-text p {
    margin: 0 !important;
    font-style: italic !important;
}

/* Event link styling */
.vsel-meta-link {
    margin-top: 1rem !important;
    margin-left: 1rem !important; /* Offset for the left border */
}

.vsel-meta-link a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: #8f2d56 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    font-family: 'Inter', sans-serif !important;
}

.vsel-meta-link a::after {
    content: '→' !important;
    transition: transform 0.3s ease !important;
}

.vsel-meta-link a:hover {
    background: #7a2548 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(143, 45, 86, 0.3) !important;
}

.vsel-meta-link a:hover::after {
    transform: translateX(3px) !important;
}

/* Multiple events styling */
.vsel-content + .vsel-content {
    margin-top: 1.5rem !important;
}

/* Current/active event highlighting */
.vsel-current {
    border-color: rgba(143, 45, 86, 0.3) !important;
    background: rgba(143, 45, 86, 0.02) !important;
}

.vsel-current::before {
    background: linear-gradient(180deg, #8f2d56 0%, #7a2548 100%) !important;
    width: 6px !important;
}

/* Upcoming events */
.vsel-upcoming {
    opacity: 1 !important;
}

/* Past events (if any) */
.vsel-past {
    opacity: 0.7 !important;
}

.vsel-past .vsel-meta-title {
    color: #999 !important;
}

.vsel-past::before {
    background: #ccc !important;
}

/* No events message styling */
.vsel-widget .vsel-no-events {
    text-align: center !important;
    padding: 2rem 1rem !important;
    color: #999 !important;
    font-style: italic !important;
    font-family: 'Inter', sans-serif !important;
}

/* Responsive adjustments for events */
@media (max-width: 768px) {
    .vsel-content {
        padding: 1rem !important;
    }
    
    .vsel-meta-title {
        font-size: 1rem !important;
        margin-left: 0.75rem !important;
    }
    
    .vsel-meta-date,
    .vsel-meta-time,
    .vsel-meta-location,
    .vsel-info,
    .vsel-meta-link {
        margin-left: 0.75rem !important;
    }
    
    .vsel-meta-link a {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
    }
}

/* Responsive sidebar */
@media (max-width: 991px) {
    .sidebar {
        padding-left: 0;
        padding-top: 3rem;
    }
    
    .sidebar-inner {
        position: static;
    }
    
    .widget {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .widget {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .widget-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}