/**
 * Events CPT Styles
 * File: assets/events.css
 * Supports Arabic & English (RTL/LTR)
 */

/* ================================
   CSS Variables
================================ */
:root {
    --events-primary:#F05022;
    --events-secondary: #666;
    --events-light-bg: #f8f9fa;
    --events-white: #fff;
    --events-border: #e0e0e0;
    --events-radius: 16px;
    --events-radius-sm: 8px;
    --events-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --events-transition: all 0.3s ease;
    --events-hero-bg: #000;
}

/* ================================
   Base Styles
================================ */
.events-archive,
.single-event {
    line-height: 1.8;
    color: #333;
}

/* RTL Support */
[dir="rtl"] .events-archive,
[dir="rtl"] .single-event,
.events-archive.rtl,
.single-event.rtl {
    direction: rtl;
    text-align: right;
}

[dir="ltr"] .events-archive,
[dir="ltr"] .single-event,
.events-archive.ltr,
.single-event.ltr {
    direction: ltr;
    text-align: left;
}

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

/* ================================
   Page Title Hero Section
================================ */
.events-page-hero {
    position: relative;
    background-color: var(--events-hero-bg);
    background-image: url('/wp-content/uploads/2026/04/page-title.jpg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
	background-attachment:fixed;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 220px 20px 100px 20px;
    text-align: center;
    overflow: hidden;
}

.events-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	    z-index: 1;
    background-color: #000;
    background-image: linear-gradient(135deg, #034773 0%, #F05022BA 100%);
    background-position: center center;
    background-size: cover;
	opacity:0.8;
}



.events-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.events-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.events-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.events-breadcrumb a:hover {
    opacity: 0.8;
}

.events-breadcrumb .breadcrumb-sep {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.events-breadcrumb .breadcrumb-current {
    color: rgba(255, 255, 255, 0.8);
}

/* Page Title */
.events-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

/* Page Description */
.events-page-description {
    color: #fff;
    margin: 0 auto;
    max-width: 650px;
    line-height: 1.8;
}

/* ================================
   Archive Page Styles
================================ */
.events-archive .events-container {
    padding-top: 50px;
    padding-bottom: 60px;
}

/* ================================
   Category Filter
================================ */
.events-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--events-white);
    color: var(--events-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid var(--events-border);
    transition: var(--events-transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--events-primary);
    color: var(--events-white);
    border-color: var(--events-primary);
}

/* ================================
   Events Grid
================================ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Event Card
================================ */
.event-card {
    position: relative;
    border-radius: var(--events-radius);
    overflow: hidden;
    height: 420px;
    background: var(--events-primary);
}

.event-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.event-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Card Overlay Gradient */
.event-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(300deg, #000000 40%, #00000059 100%);
    opacity: 0.85;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.event-card:hover .event-card-overlay {
    opacity: 0.75;
}

/* Card Content */
.event-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: var(--events-white);
    z-index: 2;
}

/* Category Badge */
.event-category-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Card Title */
.event-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 20px 0;
    color: var(--events-white);
}

/* Read More */
.event-read-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--events-white);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.event-card:hover .event-read-more {
    opacity: 1;
}

.read-more-line {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--events-white);
    transition: width 0.3s ease;
}

.event-card:hover .read-more-line {
    width: 60px;
}

/* No Image Placeholder */
.event-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

/* ================================
   Pagination
================================ */
.events-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.events-pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.events-pagination a,
.events-pagination span {
    padding: 10px 16px;
    border-radius: var(--events-radius-sm);
    background: var(--events-white);
    color: var(--events-secondary);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--events-border);
    transition: var(--events-transition);
}

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

/* No Results */
.events-no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--events-secondary);
    font-size: 1.1rem;
}

/* ================================
   Single Event - Hero Section
================================ */
.event-hero {
    position: relative;
    height: 500px;
    background: var(--events-primary);
    overflow: hidden;
}

.event-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.event-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.event-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	background-image: linear-gradient(135deg, #034773 0%, #F05022BA 100%);
    background-position: center center;
    background-size: cover;
	opacity:0.8;
}

.event-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 0;
    color: var(--events-white);
    z-index: 2;
}
.event-hero-content .event-container{
	display:flex;
	flex-direction:column;
	justify-content:center;
	align-items:center;
}
/* Single Breadcrumb */
.event-breadcrumb {
		
	  display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 9px 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
	    font-size: 18px;
    font-weight: 400;
}

body .event-breadcrumb a {
    color: var(--events-white) !important;
    text-decoration: none;
    transition: opacity 0.3s;
}

.event-breadcrumb .breadcrumb-sep {
    opacity: 0.5;
}

.event-breadcrumb .breadcrumb-current {
    opacity: 0.6;
}

/* Single Category Badge */
.event-single-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Hero Title */
.event-hero-title {
	color:#fff;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px 0;
    max-width: 800px;
	text-align:center;
}

/* Meta Info */
.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-meta-item svg {
    opacity: 0.7;
}

/* ================================
   Single Event - Main Content
================================ */
.event-main {
    padding: 60px 0;
    background: var(--events-white);
}

.event-content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
}

@media (max-width: 992px) {
    .event-content-grid {
        grid-template-columns: 1fr;
    }
}

/* Content */
.event-content {
    font-size: 1.1rem;
    line-height: 1.9;
}

.event-content p {
    margin-bottom: 1.5em;
}

.event-content h2,
.event-content h3 {
    margin-top: 2em;
    margin-bottom: 0.8em;
    font-weight: 600;
}

.event-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5em 0;
}

/* ================================
   Share Section
================================ */
.event-share {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.share-label {
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--events-white) !important;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy { background: #666; }

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

/* Widget Box */
.sidebar-widget {
    background-image: url(https://tristratus.zydemos.com/wp-content/uploads/2026/03/home-banner-shape.webp);
    background-size: cover;
	border:1px solid #F9B9A6;
    border-radius: var(--events-radius);
    padding: 25px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--events-border);
}

/* Related Events */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.3s;
}

.related-item:hover {
    background: var(--events-white);
}

.related-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.related-info {
    flex: 1;
    min-width: 0;
}

.related-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    font-size: 0.8rem;
    color: #888;
}

/* Categories List */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 10px;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--events-white);
    border-radius: var(--events-radius-sm);
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: var(--events-transition);
}

.categories-list a:hover {
    background: var(--events-primary);
    color: var(--events-white);
}

.cat-count {
    font-size: 0.85rem;
    color: #888;
}

.categories-list a:hover .cat-count {
    color: rgba(255,255,255,0.7);
}

/* ================================
   Navigation
================================ */
.event-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

@media (max-width: 576px) {
    .event-navigation {
        grid-template-columns: 1fr;
    }
}

.nav-link {
    display: block;
    padding: 25px;
    background: var(--events-light-bg);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: var(--events-transition);
}

.nav-link:hover {
    background: var(--events-primary);
    color: var(--events-white) !important;
}

/* RTL nav alignment */
[dir="rtl"] .nav-link.next,
.single-event.rtl .nav-link.next {
    text-align: left;
}

[dir="ltr"] .nav-link.next,
.single-event.ltr .nav-link.next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
}

.nav-link:hover .nav-label {
    color: rgba(255,255,255,0.7);
}

.nav-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

/* Back Button */
.back-to-events {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 12px 24px;
    background: var(--events-primary);
    color: var(--events-white) !important;
    text-decoration: none;
    border-radius: var(--events-radius-sm);
    font-weight: 500;
    transition: background 0.3s;
}

.back-to-events:hover {
    background: #034773;
    color: var(--events-white) !important;
}

/* ================================
   Responsive
================================ */
@media (max-width: 768px) {
    /* Hero Section Responsive */
    .events-page-hero {
        padding: 50px 0;
    }
    
    .events-page-title {
        font-size: 2rem;
    }
    
    .events-page-description {
        font-size: 1rem;
    }
    
    .events-breadcrumb {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    /* Single Event Responsive */
    .event-hero {
        height: 400px;
    }
    
    .event-hero-title {
        font-size: 1.8rem;
    }
    
    .event-hero-content {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .events-page-title {
        font-size: 1.75rem;
    }
    
    .events-breadcrumb {
        flex-wrap: wrap;
        justify-content: center;
    }
}
