/* Custom CSS for Ajman Chess Club Website */
@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400;700&display=swap');

/* RTL Support and General Styles */
body {
    /* font-family: 'Arial', sans-serif; */
      font-family: 'El Messiri', serif;

    direction: rtl;
    text-align: right;
}

/* Header Styles */
.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.navbar-brand .logo {
    margin-left: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.navbar-dark .navbar-nav .nav-link {
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffc107;
    transform: translateY(-2px);
}

/* Slider Styles */
#slider{
    background: linear-gradient(135deg, #e5e5e5 0%, #cfcfcf 100%);
box-shadow: inset 0 0 30px rgba(0,0,0,0.1);

}
#slider .carousel-item img {
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.carousel-caption p {
    font-size: 1.2rem;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: #ffc107;
}

/* About Club Section */
#about-club {
    background: #f8f9fa;
}

.about-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}
 
.about-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.icon-wrapper {
    margin-bottom: 20px;
}

.icon-wrapper i {
    color: #007bff;
    transition: all 0.3s ease;
}

.about-item:hover .icon-wrapper i {
    color: #0056b3;
    transform: scale(1.1);
}

.about-item h4 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    text-align: center;
}

/* Latest News Section */
#latest-news {
    background: #2c3e50;
}

#latest-news .section-title::after {
    background: #fff;
}

.news-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.news-item img {
    border-radius: 10px;
    transition: all 0.3s ease;
}

.news-item:hover img {
    transform: scale(1.05);
}
.breadcrumb-item a{
    color:#ffc107;
    text-decoration: none;
}
.news-date {
    color:#ffc107;
    font-weight: bold;
    font-size: 0.9rem;
}

.news-item h5 {
    font-weight: bold;
    margin: 15px 0;
}

/* Image Gallery Section */
#image-gallery {
    background: #f8f9fa;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-img {
    filter: brightness(1.1);
}

/* Statistics Section */
.stats-section {
    background: url('../images/Gemini_Generated_Image_od09ggod09ggod09.png')  center/cover;
    /* background-repeat: no-repeat; */
    background-size: 100%;
    position: relative;
}

.stats-overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    padding: 80px 0;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Future Events Section */
#future-events {
    background: #f8f9fa;
}

.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.event-date {
    /* background: #007bff; */
    color: white;
        background: linear-gradient(135deg, #1a1a1a 0%, #34495e 100%);

    text-align: center;
    padding: 20px;
}

.event-date .day {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.event-date .month {
    font-size: 1rem;
    font-weight: 500;
}

.event-content {
    padding: 25px;
}

.event-content h5 {
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.event-location {
    color: #666;
    font-size: 0.9rem;
    margin-top: 15px;
}

.event-location i {
    margin-left: 5px;
    color: #007bff;
}

/* Our Team Section */
.team-section {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: linear-gradient(135deg, #1a1a1a 0%, #34495e 100%);

}

.team-member {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.team-member:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

.member-photo {
    margin-bottom: 20px;
}

.member-photo img {
    width: 150px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.team-member:hover .member-photo img {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.member-info h5 {
    color: white;
    font-weight: bold;
    margin-bottom: 5px;
}

.member-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Partners Slider */
.partners-slider {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.partner-logo {
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.partner-logo img {
    max-height: 60px;
    width: auto;
}

/* Footer */
footer {
    background: #1a1a1a !important;
}

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

.footer-links a:hover {
    color: #007bff !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: #007bff;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .partners-slider {
        justify-content: center;
    }
    
    .partner-logo {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .about-item {
        margin-bottom: 20px;
    }
    
    .event-card {
        margin-bottom: 20px;
    }
    
    .team-member {
        margin-bottom: 20px;
    }
    
    .carousel-caption {
        padding: 10px;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: rgb( 255, 193, 7);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb( 255, 193, 7);
}



/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ffc107;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background:#ffc107
}

/* Gallery Modal Styles */
#galleryModal .modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: none;
    border-radius: 0;
}

#galleryModal .modal-header {
    border: none;
    padding: 20px;
}

#galleryModal .modal-body {
    padding: 0;
}

#galleryModal .close {
    color: #fff;
    opacity: 1;
    text-shadow: none;
    font-size: 28px;
    font-weight: 300;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

#galleryModal .close:hover {
    color: #007bff;
    transform: scale(1.1);
}

#galleryModal img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

#galleryModal .modal-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 1000;
}

#galleryModal .nav-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#galleryModal .nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #007bff;
}

#galleryModal .prev-btn {
    left: 20px;
}

#galleryModal .next-btn {
    right: 20px;
}

#galleryModal .modal-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

#galleryModal:hover .modal-caption {
    transform: translateY(0);
}

#galleryModal .loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 3rem;
}

@media (max-width: 768px) {
    #galleryModal .nav-btn {
        padding: 10px;
        font-size: 18px;
    }
    
    #galleryModal .prev-btn {
        left: 10px;
    }
    
    #galleryModal .next-btn {
        right: 10px;
    }
    
    #galleryModal .close {
        font-size: 24px;
        right: 10px;
        top: 10px;
    }
}
#modalTitle {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    text-align: center;
    font-family: 'El Messiri', serif;
    direction: rtl;
}




.gallery-item {
  position: relative;
  width: 100%;
  padding-top: 100%; /* مربع */
  overflow: hidden;
  border-radius: 8px; /* حواف ناعمة */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* يحافظ على التناسب ويعمل crop مرتب */
}


/* Category Page Styles */
#category-page {
    background: #fff;
}

.category-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    border-bottom: 2px solid rgb(255, 193, 7);

    padding-bottom: 10px;
}

.news-item-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-item-card img {
    border-radius: 10px 0 0 10px;
    object-fit: cover;
    height: 100%;
}

.news-item-card .card-body {
    padding: 20px;
}

.news-item-card .card-title a {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item-card .card-title a:hover {
    color: #007bff;
}

.news-item-card .card-text small {
    color: #6c757d;
}

.news-item-card .btn-link {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item-card .btn-link:hover {
    color: #0056b3;
}

/* Pagination Styles */
.pagination .page-item .page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
    margin: 0 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
}

.pagination .page-item .page-link:hover {
    background-color: #e9ecef;
    color: #0056b3;
}

@media (max-width: 768px) {
    .category-title {
        font-size: 2rem;
    }
    .news-item-card img {
        border-radius: 10px 10px 0 0;
        height: auto;
    }
    .news-item-card .card-body {
        padding: 15px;
    }
    .news-item-card .card-title a {
        font-size: 1.2rem;
    }
}

/* Custom Styles for Contact Us Page */

#contact-us {
    background: #f8f9fa;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.contact-form-container, .map-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 10px;
}

.contact-info-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.contact-info-item i {
    color: #007bff;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}


.card-img, .card-img-bottom, .card-img-top{
        object-fit: cover;
    height: 300px;

}