/* --- Import Google Font (Sahel) --- */
@import url("https://fonts.googleapis.com/css2?family=Sahel:wght@400;700&display=swap");

/* --- CSS Variables for easy themeing --- */
:root {
    --primary-color: #0d6efd;
    --dark-bg: #212529;
    --light-bg: #f8f9fa;
    --text-color: #212529;
    --light-text: #f8f9fa;
    --border-color: #dee2e6;
    --white-color: #fff;
}

/* --- General Styles --- */
body {
    direction: rtl;
    font-family:
        "Sahel",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Tahoma,
        sans-serif;
    line-height: 1.7;
    background-color: var(--light-bg);
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* --- Header & Footer --- */
header,
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 1rem 0;
}

.header-container,
.footer-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

header h1 a {
    color: var(--light-text);
    text-decoration: none;
}

nav a {
    color: var(--light-text);
    margin: 0 10px;
    text-decoration: none;
    font-size: 1rem;
}
nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9em;
}

/* --- Main Content Area --- */
main {
    flex-grow: 1;
    max-width: 960px;
    width: 100%;
    margin: 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- Homepage Specific: Next Event Section --- */
.next-event-section {
    text-align: center;
    margin-bottom: 40px;
}
.next-event-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
}
.event-details-box {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: right;
}
.event-details-box h3 {
    font-size: 1.5rem;
    margin-top: 0;
    color: var(--primary-color);
}

dl {
    margin: 25px 0;
}
dt {
    font-weight: bold;
    color: #6c757d;
    float: right;
    width: 80px;
    clear: both;
}
dd {
    margin-right: 90px;
    margin-bottom: 15px;
}
dd a {
    font-weight: bold;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-weight: 400;
    color: var(--white-color);
    background-color: var(--primary-color);
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    text-decoration: none;
    margin-top: 15px;
}
.btn:hover {
    background-color: #0b5ed7;
    color: var(--white-color);
    text-decoration: none;
}

/* --- Generic Page Styles --- */
.detail-page,
.page {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.item-list {
    list-style: none;
    padding: 0;
    background: var(--white-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden; /* For rounded corners on children */
}
.item-list li {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}
.item-list li:last-child {
    border-bottom: none;
}

/* --- Image & Lightbox Styles --- */

/* Style for images within the content to give them a frame */
.detail-page img,
.page img {
    max-width: 100%; /* Prevents image from overflowing its container */
    height: auto; /* Maintains aspect ratio */
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    cursor: pointer; /* Indicates the image is clickable */
    transition: transform 0.2s ease-in-out;
}

.detail-page img:hover,
.page img:hover {
    transform: scale(1.02); /* Slight zoom effect on hover */
}

/* The Modal (background) */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    padding-top: 60px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}

/* Modal Content (the image) */
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}

/* Animation */
.lightbox-content {
    animation-name: zoom;
    animation-duration: 0.4s;
}

@keyframes zoom {
    from {
        transform: scale(0.1);
    }
    to {
        transform: scale(1);
    }
}
/* --- Styles for new sections on homepage --- */

/* Add a separator and space for the event's full description */
.event-description {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    text-align: right; /* Ensure content is right-aligned */
}
.event-description p {
    margin-top: 0;
}

/* Center the 'All Events' button and add space above it */
.all-events-link {
    text-align: center;
    margin-top: 30px;
}

/* --- Header Logo Styles --- */
.logo-container {
    display: flex; /* Aligns logo and text side-by-side */
    align-items: center; /* Vertically centers the logo and text */
    gap: 12px; /* Adds space between the logo and the site title */
    text-decoration: none; /* Removes underline from the link */
}

.logo-container img {
    height: 40px; /* Adjust this value to change logo size */
    width: auto; /* Maintains aspect ratio */
}

.logo-container h1 {
    color: var(--light-text);
    font-size: 1.5rem; /* Same as before */
    margin: 0; /* Same as before */
}

/* --- Footer Social Links --- */
.social-links {
    margin-top: 15px; /* Add space above the links */
    display: flex; /* Arrange links horizontally */
    justify-content: center; /* Center the links if the footer content is centered */
    gap: 15px; /* Add space between links */
}

.social-links a {
    color: var(--light-text); /* Link color same as footer text */
    text-decoration: none; /* Remove underline */
    font-weight: bold; /* Make link text bold */
    transition: color 0.3s ease; /* Smooth color transition on hover */
}

.social-links a:hover {
    color: var(--primary-color); /* Change color on hover */
    text-decoration: none; /* Ensure no underline on hover */
}

/* --- Hero Logo (Homepage) --- */
.hero-logo-section {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.hero-logo {
    max-width: 150px; /* اندازه لوگوی بزرگ را اینجا تنظیم کنید */
    height: auto;
}

/* --- Footer Logo (Other pages) --- */
.footer-logo {
    margin-bottom: 20px;
    text-align: center;
}

.footer-logo img {
    height: 50px; /* اندازه لوگوی کوچک را اینجا تنظیم کنید */
    width: auto;
    opacity: 0.7; /* کمی شفافیت برای ظرافت بیشتر */
    transition: opacity 0.3s ease;
}

.footer-logo img:hover {
    opacity: 1; /* حذف شفافیت هنگام هاور */
}
/* در فایل style.css */
.status-held { color: #6c757d; }      /* خاکستری */
.status-upcoming { color: #0d6efd; } /* آبی */
.status-cancelled { color: #dc3545; } /* قرمز */