/*
Theme Name: Event Finder
Theme URI: https://eventfinder.com/event-finder-theme
Author: Zygo
Author URI: https://zygo.com
Description: A modern event finder theme with API integration for displaying events.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: event-finder
Tags: events, purple, responsive, api-integration, dark
*/

/* Dark Theme Colors */
:root {
    --primary-color: #8a2be2; /* Brighter purple for better contrast */
    --primary-light: #9d4eed;
    --primary-dark: #6a0dad;
    --secondary-color: #f5f5f5; /* Light text color */
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --background-color: #121212; /* Dark background */
    --card-background: #1e1e1e; /* Slightly lighter than background */
    --white: #f5f5f5;
    --light-gray: #2a2a2a;
    --medium-gray: #3a3a3a;
    --dark-gray: #555555;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --border-radius: 12px; /* Increased for modern look */
    --card-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    --transition-speed: 0.3s;
}

/* Base CSS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Assistant', 'Heebo', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    direction: rtl; /* For Hebrew text */
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Heebo', Arial, sans-serif;
    color: var(--white);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-light);
}

ul, ol {
    list-style-position: inside;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.btn:hover {
    background-color: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 0;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.view-all {
    font-weight: 500;
    display: flex;
    align-items: center;
}

.view-all i {
    margin-right: 5px;
    transition: transform var(--transition-speed) ease;
}

.view-all:hover i {
    transform: translateX(5px);
}

/* Header Styles */
.site-header {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 100;
    border-bottom: 1px solid var(--light-gray);
}

.top-bar {
    padding: 15px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    flex: 1;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.top-bar-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo-container {
    text-align: center;
    padding: 0 20px;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

.site-title {
    font-size: 1.8rem;
    margin: 0;
}

.site-title a {
    color: var(--primary-color);
}

.search-toggle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-left: 15px;
    cursor: pointer;
}

.header-search {
    position: relative;
    margin-left: 15px;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-field {
    padding: 10px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 14px;
    min-width: 200px;
    background-color: var(--medium-gray);
    color: var(--white);
}

.search-submit {
    background-color: transparent;
    border: none;
    color: var(--text-light);
    padding: 8px;
    cursor: pointer;
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.main-navigation {
    display: flex;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    position: relative;
    transition: background-color var(--transition-speed) ease;
}

.menu-icon::before, .menu-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: transform var(--transition-speed) ease;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    bottom: -8px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
    transform: translateY(-8px) rotate(-45deg);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
    margin-right: 20px;
}

.main-navigation a {
    display: block;
    padding: 10px 0;
    color: var(--text-color);
    font-weight: 500;
    transition: color var(--transition-speed) ease;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.header-search-mobile {
    display: none;
    padding: 15px;
    background-color: var(--light-gray);
}

.header-search-mobile .search-form {
    width: 100%;
}

.header-search-mobile .search-field {
    width: 100%;
    padding: 12px 15px;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-dark);
    background-image: linear-gradient(135deg, var(--primary-dark) 0%, #331354 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 800;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.event-search-form {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 25px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.filter-group {
    flex: 1;
    min-width: 180px;
    padding: 10px;
}

.filter-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    background-color: var(--medium-gray);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
}

.search-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
}

/* Modern Event Cards and Carousels */
.carousel-wrapper {
    position: relative;
    padding: 0 40px;
    margin-bottom: 40px;
}

.events-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.events-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 300px;
    display: flex;
    padding: 10px;
}

.event-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: none;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.event-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-color);
}

.date-month {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
}

.date-day {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
}

.event-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.event-title a {
    color: var(--white);
    transition: color var(--transition-speed) ease;
}

.event-title a:hover {
    color: var(--primary-light);
}

.event-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.event-time, .event-location, .event-date {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.event-time i, .event-location i, .event-date i {
    margin-left: 8px;
    color: var(--primary-color);
}

.event-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.event-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.event-tag {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--text-light);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.event-tag:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.event-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 15px;
    text-align: center;
}

.event-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
    color: var(--white);
}

.carousel-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    right: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    z-index: 5;
    pointer-events: none;
}

.carousel-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-speed) ease;
    pointer-events: auto;
    font-size: 1.2rem;
}

.carousel-arrow:hover {
    background-color: var(--primary-light);
    transform: scale(1.1) translateY(-50%);
}

.carousel-prev {
    margin-right: -25px;
}

.carousel-next {
    margin-left: -25px;
}

/* Fix RTL Carousel */
.carousel-wrapper {
    direction: ltr;
}

.events-carousel {
    direction: rtl;
}

/* Slick customization */
.slick-dots {
    bottom: -40px;
}

.slick-dots li button:before {
    color: var(--text-light);
}

.slick-dots li.slick-active button:before {
    color: var(--primary-color);
}

/* Modern Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.category-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: none;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.event-count {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* WhatsApp Join Section */
.whatsapp-join {
    background-color: #128C7E; /* WhatsApp green */
    color: var(--white);
    padding: 50px 0;
}

.whatsapp-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.whatsapp-text {
    flex: 1;
    min-width: 300px;
}

.whatsapp-text h2 {
    color: var(--white);
    margin-bottom: 10px;
}

.whatsapp-button {
    padding: 20px;
}

.whatsapp-btn {
    background-color: var(--white);
    color: #128C7E;
    font-weight: 700;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.whatsapp-btn i {
    font-size: 1.4rem;
    margin-left: 10px;
}

.whatsapp-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Newsletter Section */
.newsletter {
    text-align: center;
    background-color: var(--light-gray);
    padding: 60px 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    margin-bottom: 10px;
}

.newsletter-content p {
    margin-bottom: 30px;
}

.newsletter-form {
    margin-bottom: 15px;
}

.newsletter-form .form-group {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    border-left: none;
    font-size: 1rem;
    background-color: var(--medium-gray);
    color: var(--white);
}

.subscribe-btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    font-weight: 600;
}

.newsletter-note {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Footer */
.site-footer {
    background-color: #0a0a0a;
    color: var(--white);
}

.footer-widgets {
    padding: 60px 0 30px;
}

.footer-widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 60px;
}

.site-footer .site-title {
    color: var(--white);
}

.footer-description {
    margin-bottom: 20px;
    opacity: 0.8;
}

.widget-title {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-speed) ease, padding var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-right: 5px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info i {
    margin-left: 10px;
    color: var(--primary-light);
}

.contact-info a {
    color: rgba(255, 255, 255, 0.8);
}

.contact-info a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    opacity: 0.7;
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease, background-color var(--transition-speed) ease;
    z-index: 99;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
}

.faq-item {
    background-color: var(--card-background);
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.faq-question {
    padding: 15px 20px;
    background-color: var(--card-background);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(138, 43, 226, 0.1);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--medium-gray);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-icon i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon i {
    transform: rotate(180deg);
}

/* Archive Header */
.archive-header {
    background-color: var(--primary-dark);
    background-image: linear-gradient(135deg, var(--primary-dark) 0%, #331354 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.archive-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    z-index: 1;
}

.archive-header .container {
    position: relative;
    z-index: 2;
}

.archive-title {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.events-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Modern Filter Sidebar */
.archive-content-wrapper {
    display: grid;
    grid-template-columns: 1280px 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.archive-sidebar {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: none;
    position: sticky;
    top: 20px;
}

.filter-widget {
    padding: 20px;
}

.filter-widget h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.filter-widget h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section h4 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 12px;
    font-weight: 600;
}

.filter-input {
    position: relative;
    margin-bottom: 10px;
}

.filter-input input {
    width: 100%;
    padding: 12px 15px;
    padding-left: 40px;
    background-color: var(--medium-gray);
    border: none;
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 0.95rem;
}

.filter-input .search-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-light);
    font-size: 1.1rem;
    cursor: pointer;
}

.main-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.category-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 15px;
    background-color: var(--light-gray);
    color: var(--white);
    text-align: center;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    font-weight: 500;
}

.category-btn:hover, 
.category-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.filter-list {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
    margin-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--card-background);
}

.filter-list::-webkit-scrollbar {
    width: 6px;
}

.filter-list::-webkit-scrollbar-track {
    background: var(--card-background);
}

.filter-list::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 6px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.filter-checkbox:hover {
    transform: translateX(-3px);
}

.filter-checkbox input {
    margin-left: 10px;
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
}

.checkbox-label {
    font-size: 0.95rem;
    color: var(--text-color);
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.filter-btn:hover {
    background-color: var(--primary-light);
}

.reset-filters {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    text-decoration: underline;
    transition: color var(--transition-speed) ease;
}

.reset-filters:hover {
    color: var(--white);
}

/* Archive View Controls */
.archive-view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background-color: var(--card-background);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.view-switcher {
    display: flex;
    gap: 10px;
}

.view-switcher button {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    color: var(--text-light);
    transition: all var(--transition-speed) ease;
}

.view-switcher button.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.sort-control {
    display: flex;
    align-items: center;
}

.sort-control label {
    margin-right: 10px;
    color: var(--text-light);
}

.sort-events, .sort-results {
    padding: 8px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    background-color: var(--medium-gray);
    color: var(--text-color);
}

.view-mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.view-mode-list .event-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.view-mode-list .event-image {
    height: 100%;
}

.view-mode-list .event-details {
    display: flex;
    flex-direction: column;
}

.view-mode-list .event-excerpt {
    flex-grow: 1;
    margin-bottom: 15px;
}

.view-mode-list .event-tags {
    margin-bottom: 15px;
}

.view-event-btn {
    display: inline-block;
    padding: 8px 15px;
    font-size: 0.9rem;
    align-self: flex-start;
    margin-top: auto;
}

/* Notification Styling */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    color: var(--white);
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}

/* No Events Message */
.no-events {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.no-events h2 {
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.no-events p {
    margin-bottom: 25px;
    color: var(--text-light);
}

.suggested-events {
    margin-top: 40px;
}

.suggested-events h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.suggested-events h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(50% - 20px);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .archive-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .archive-sidebar {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        display: grid;
        grid-template-areas: 
            "logo logo"
            "left right";
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .logo-container {
        grid-area: logo;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .top-bar-left {
        grid-area: left;
    }
    
    .top-bar-right {
        grid-area: right;
        justify-content: flex-end;
    }
    
    .header-search {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: var(--card-background);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        transform: translateY(-200%);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
        z-index: 1000;
    }
    
    .main-navigation.toggled {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation li {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .header-search-mobile {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .carousel-item {
        flex: 0 0 100%;
    }
    
    .carousel-wrapper {
        padding: 0 10px;
    }
    
    .carousel-arrows {
        display: none;
    }
    
    .events-carousel .event-card {
        margin: 0 auto;
        max-width: 90%;
    }
    
    .footer-bottom .container {
        flex-direction: column;
    }
    
    .copyright {
        margin-bottom: 15px;
    }
    
    .footer-bottom-links {
        text-align: center;
    }
    
    .archive-view-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .view-switcher {
        width: 100%;
        justify-content: center;
    }
    
    .sort-control {
        width: 100%;
    }
    
    .sort-events {
        width: 100%;
    }
    
    .archive-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .event-search-form {
        padding: 15px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .whatsapp-content {
        flex-direction: column;
        text-align: center;
    }
    
    .whatsapp-text {
        margin-bottom: 20px;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        border-left: 1px solid var(--medium-gray);
        margin-bottom: 10px;
    }
    
    .subscribe-btn {
        border-radius: var(--border-radius);
    }
    
    .view-mode-list .event-card {
        grid-template-columns: 1fr;
    }
    
    .view-mode-list .event-image {
        height: 200px;
    }
    
    .error-actions {
        flex-direction: column;
        width: 100%;
    }
}
.header-search-toggle {
  position: absolute !important;
  top: 50% !important;
  right: 16px !important;
  transform: translateY(-50%) !important;
  font-size: 1.25rem !important;
  color: #ffffff !important;
  z-index: 999 !important;
}

.site-main {
  padding-bottom: 80px !important;
}

.search-results-page {
  direction: rtl;
}

.search-results-page .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 40px;
}

.search-results-page .search-header {
  background: linear-gradient(135deg, #6a0dad, #3700b3);
  padding: 40px 0;
  text-align: right;
  margin-bottom: 32px;
}

.search-results-page .search-header .search-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0;
  color: #ffffff;
}

.search-results-page .search-form-container {
  margin-top: 20px;
}

.search-results-page .search-field-wrapper {
  display: inline-flex;
  align-items: center;
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333333;
}

.search-results-page .search-field-wrapper .search-field {
  width: 300px;
  padding: 8px 12px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1rem;
}

.search-results-page .search-field-wrapper .search-field::placeholder {
  color: #999999;
}

.search-results-page .search-field-wrapper .search-submit {
    display: none;
}

.search-results-page .search-field-wrapper .search-submit:hover {
  background-color: #5a009d;
}

.search-results-page .results-info {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: #cccccc;
  font-size: 0.95rem;
}

.search-results-page .results-info select {
  background-color: #1a1a1a;
  color: #ffffff;
  border: 1px solid #333333;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 1rem;
}

.search-results-page .events-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 32px;
}

.search-results-page i.fas.fa-search {
  display: none !important;
}

