:root {
  --primary-gradient-start: #2c3e50;
  --primary-gradient-end: #922c16;
  --primary-color: #922c16;
  --secondary-color: #95574e;
  --accent-color: #e74c3c;
  --light-bg: #f8f9fa;
  --dark-text: #2c3e50;
  --light-text: #ffffff;
}

/* Global Styles */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
  background-color: var(--light-bg);
}

/* Header Styles */
.navbar {
  background-color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand, .nav-link {
  color: var(--light-text) !important;
}

.nav-link:hover {
  color: var(--secondary-color) !important;
}

/* Custom Navbar Styles */
.navbar-custom {
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Card Styles */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* Button Styles */
.btn-primary {
  background-color: var(--secondary-color);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
}

.btn-primary:hover {
  background-color: var(--primary-color);
}

/* Section Styles */
.section-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

/* Gallery Styles */
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.gallery-item img {
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Event Card Styles */
.event-card {
  background: var(--light-bg);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* Notification Styles */
.notification-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Events Page Styles */
.event-list {
    padding: 40px 0;
}

.event-card {
    height: 100%;
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-date {
    color: var(--accent-color);
    font-weight: 600;
}

/* Gallery Page Styles */
.gallery-grid {
    padding: 40px 0;
    padding-bottom: 50px;
}

.gallery-item {
    margin-bottom: 30px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 15px;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    bottom: 0;
}

/* Notifications Page Styles */
.notification-list {
    padding: 40px 0;
    max-width: 900px;
    margin: 0 auto;
}

.notification-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notification-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.notification-meta {
    font-size: 0.9rem;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
}

/* Pagination Styling */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
    border-radius: 5px;
    margin: 0 3px;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.ad-card:hover {
    transform: translateY(-5px);
}

/* Ads Page Styles */
.ad-card {
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.ad-card img {
    height: 300px;
    object-fit: cover;
}

.ad-meta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Donations Page Styles */
.donation-card {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: none;
    border-radius: 10px;
}

.donation-method {
    padding: 20px;
    border-radius: 8px;
    background-color: var(--light-bg);
    margin-bottom: 20px;
}

.donation-method h5 {
    color: var(--primary-color);
}

.donation-method i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.btn-donate {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    transition: transform 0.3s ease;
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Single Ad Styles */
.single-ad {
    max-width: 600px;
    margin: 0 auto;
}

.single-ad .ad-card {
    margin-bottom: 30px;
}

/* Ads Slider Styles */
.ads-slider {
    padding: 10px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

.ad-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* Donor Image Styles */
.donor-image {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

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

.default-avatar {
    width: 100%;
    height: 100%;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.donation-details {
    flex: 1;
}

.donation-amount {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Event Detail Styles */
.event-detail-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.event-detail-image {
    max-height: 400px;
    object-fit: cover;
}

.event-meta {
    padding: 15px;
    background: var(--light-bg);
    border-radius: 8px;
}

.event-description {
    line-height: 1.8;
}

/* Welcome Section Styles */
.welcome-section {
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    border-radius: 15px;
    padding: 40px 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.welcome-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.welcome-subtitle {
    color: #ffffff;
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Social Icons Styles */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    color: var(--light-text);
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Footer Social Icons Styles */
.footer-social-icons {
    display: flex;
    gap: 15px;
}

.footer-social-icon {
    color: var(--light-text);
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social-icon:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

/* Footer Styles */
.footer-custom {
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Image Hover Effects */
.card img {
    transition: transform 0.5s ease, filter 0.5s ease;
}

.card:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Card Styles */
.card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Enhanced Button Styles */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 200%;
    height: 200%;
}

/* Committee Member Card Styles */
.member-card {
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.member-card:hover {
    transform: translateY(-5px);
}

.member-image {
    height: 250px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .social-icons {
        margin-top: 10px;
        justify-content: center;
    }
}

.event-card {
        transition: all 0.3s ease-in-out;
        border-radius: 10px;
        overflow: hidden;
    }

    .event-card:hover {
        transform: translateY(-5px) scale(1.03);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

    .event-img-wrapper {
        width: 100%;
        height: 200px;
        overflow: hidden;
        position: relative;
    }

    .event-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease-in-out;
    }

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

    /* Gradient overlay at bottom of image */
    .event-img-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50%; /* covers bottom half */
        background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
        color: white;
        display: flex;
        align-items: flex-end;
        padding: 10px 15px;
    }

    .notification-card {
        border-left: 5px solid #922c16; /* colored left border */
        border-radius: 10px;
        padding: 15px 20px;
        transition: all 0.3s ease-in-out;
        background-color: #fff;
    }

    .notification-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    .notification-icon {
        position: absolute;
        top: 15px;
        left: -25px;
        background-color: #922c16;
        color: #fff;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
    }

    .notification-content {
        margin-left: 25px; /* space for icon */
    }

    .notification-title {
        color: #922c16; /* Primary color */
        font-weight: 600;
    }

    .donar-name {
        color: #922c16; /* Primary color */
        font-weight: 600;
    }

    /* Footer Quick Links */
    .footer-quick-links {
        padding: 0;
        list-style: none;
        margin: 0;
    }

    .footer-quick-links li {
        margin-bottom: 5px;
    }

    .footer-quick-links a {
        color: var(--light-text);
        text-decoration: none;
        transition: all 0.3s ease;
        opacity: 0.8;
        font-size: 0.9rem;
    }

    .footer-quick-links a:hover {
        opacity: 1;
        padding-left: 5px;
        color: var(--secondary-color);
    }


