/* Global Styles */
:root {
    --primary-color: #7288E7; /* Brighter blue-purple */
    --secondary-color: #4BD89C; /* Brighter mint green */
    --accent-color: #FF7A7A; /* Brighter coral red */
    --dark-color: #1a1c28; /* Darker slate blue */
    --light-color: #e0e1e5; /* Not too bright white */
    --sikh-blue: #5B6ED6; /* Brighter indigo blue */
    --sikh-yellow: #FFD83B; /* Brighter gold */
    --success-color: #3DD47B; /* Vibrant green */
    --header-bg: #242736; /* Dark blue header */
    --footer-bg: #1a1c28; /* Match dark-color */
    --card-bg: #2d303f; /* Dark card background */
    --text-color: #e0e1e5; /* Main text color */
    --text-muted: #a3a5ad; /* Muted text color */
    --border-color: #3e4252; /* Border color */
    --bg-color: #21232e; /* Background color */
}

.gurdwara-title {
    font-family: 'Cinzel', serif;
    color: #E5C100 !important;
    font-size: 26px; /* Adjust this value as needed */
    font-weight: bold;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

/* Generic card styling for all cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25), 0 6px 6px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.card-title {
    color: var(--primary-color);
}

.card-text {
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--header-bg);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 70px; /* or however small you want it */
    height: auto;
}

.site-title {
    color: var(--sikh-blue);
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

nav {
    margin-top: 0.5rem;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.menu li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

.menu li a:hover,
.menu li a.active {
    color: var(--accent-color);
}

.menu li a.active::after,
.menu li a:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -2px;
    left: 0;
    transform: scaleX(1);
}

/* Carousel Styles */
#hero {
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-item {
    height: 250px;
}

.carousel-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: white;
    background: linear-gradient(rgba(114, 136, 231, 0.1), rgba(114, 136, 231, 0.1)), url('images/logo.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.carousel-content.special-event {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('#');
    background-size: cover;
    background-position: center;
}

.carousel-content.sant-slide {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('#');
    background-size: cover;
    background-position: center;
}

.carousel-text {
    max-width: 600px;
}

.carousel-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.carousel-text h3 {
    font-size: 1.8rem;
    margin: 1rem 0;
    color: var(--primary-color);
}

.carousel-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Announcement Section Styles */
.announcement-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.announcement-title {
    color: var(--sikh-blue);
    font-weight: 600;
}

.special-announcement {
    font-size: 1.3rem;
    color: var(--accent-color);
    background-color: rgba(255, 107, 107, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.updates-title {
    color: var(--success-color);
    margin-top: 2rem;
    font-weight: 600;
}

.announcement-list {
    list-style: none;
    padding-left: 0;
}

.announcement-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.announcement-list li::before {
    content: "\2022";
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.5rem;
}

.tender-notice {
    color: #7B1B1E;
}

.continuous-path {
    color: var(--success-color);
}

/* Quick Links Section */
#quick-links .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#quick-links .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

#quick-links .card-body {
    padding: 2rem 1.5rem;
}

#quick-links .fa-3x {
    color: var(--secondary-color);
}

#quick-links .card-title {
    margin: 1rem 0;
    font-weight: 600;
    color: var(--text-color);
}

#quick-links .btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    margin-top: 1rem;
}

#quick-links .btn-outline-primary:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Footer Styles */
footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

footer h4 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

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

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.map-container {
    margin-top: 0.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.social-links {
    margin: 1.5rem 0;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #aaa;
}

/* Main Content Card */
.main-content-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 6px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
}

.page-title {
    color: var(--sikh-blue);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Santji Page Styles */
.centered-image {
    display: block;
    margin: 0 auto;
    width: 50%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.santji-text {
    text-align: center;
    color: var(--accent-color);
    font-family: 'Segoe UI', Verdana, Arial, Helvetica, sans-serif;
}

.quote {
    text-align: center;
    font-style: italic;
    color: var(--text-color);
    margin: 2rem auto;
    font-size: 1.2rem;
    max-width: 700px;
    padding: 1.5rem;
    background-color: rgba(106, 127, 219, 0.15);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.quote-attribution {
    font-weight: 600;
    margin-top: 0.5rem;
}

.section-title {
    color: var(--sikh-blue);
    margin: 2rem 0 1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.santji-sidebar {
    background-color: rgba(69, 203, 133, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.santji-sidebar h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.santji-sidebar ul {
    padding-left: 1.2rem;
}

.santji-sidebar li {
    margin-bottom: 0.5rem;
}

.service-highlights {
    margin-top: 1.5rem;
}

.service-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    height: 100%;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.service-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.legacy-list {
    padding-left: 1.2rem;
}

.legacy-list li {
    margin-bottom: 0.8rem;
}

.book-info {
    background-color: rgba(106, 127, 219, 0.15);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.memories-carousel {
    margin: 2rem 0;
}

.carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 1.5rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.memory-image {
    flex: 0 0 auto;
    width: 300px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.memory-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.audio-section {
    text-align: center;
    margin: 3rem 0;
}

.audio-player {
    max-width: 500px;
    margin: 0 auto;
}

/* Barsi Page Styles */
.upcoming-barsi-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('#');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.upcoming-barsi-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.event-details {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.event-date, .event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-date i, .event-location i {
    color: var(--primary-color);
}

.event-schedule {
    margin-top: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
}

.event-schedule h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.event-schedule ul {
    padding-left: 1.2rem;
}

.event-schedule li {
    margin-bottom: 0.5rem;
}

.announcement {
    background-color: rgba(106, 127, 219, 0.15);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.announcement p {
    margin-bottom: 0.5rem;
}

.announcement i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.barsi-history {
    margin-bottom: 2rem;
}

.barsi-block {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.barsi-year {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.barsi-special-milestone {
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    padding: 0.8rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.barsi-day-section {
    margin: 1.5rem 0;
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
}

.barsi-day-section h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.barsi-gallery {
    margin-top: 3rem;
}

.gallery-grid {
    margin-top: 1.5rem;
}

.gallery-item {
    margin-bottom: 1.5rem;
}

.gallery-caption {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* About Page Styles */
.gurdwara-image-container {
    margin-top: 1rem;
    text-align: center;
}

.gurdwara-image-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.committee-container {
    margin-top: 1.5rem;
}

.committee-list {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    height: 100%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.committee-list:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.committee-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.committee-header i {
    font-size: 1.2rem;
}

.committee-members {
    list-style: none;
    padding-left: 0;
}

.committee-members li {
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    position: relative;
}

.committee-members li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.position {
    font-weight: 500;
    color: var(--text-muted);
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-info h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.visit-info ul {
    padding-left: 1.2rem;
}

.visit-info li {
    margin-bottom: 0.5rem;
}

/* Gallery Page Styles */
.gallery-categories {
    margin-bottom: 2rem;
}

.gallery-section-title {
    margin-bottom: 1.5rem;
}

.image-placeholder, .gurdwara-image-placeholder, .barsi-poster-placeholder, .audio-placeholder {
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border-radius: 8px;
    overflow: hidden;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.image-placeholder i, .gurdwara-image-placeholder i, .barsi-poster-placeholder i, .audio-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #aaa;
}

.gurdwara-image-placeholder, .barsi-poster-placeholder {
    height: 250px;
}

.audio-placeholder {
    padding: 2rem;
    min-height: 150px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .carousel-item {
        height: 250px;
    }
    
    .carousel-text h2 {
        font-size: 2rem;
    }
    
    .carousel-text p {
        font-size: 1rem;
    }

    .event-details {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .centered-image {
        width: 80%;
    }
    
    .service-highlights .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .carousel-item {
        height: 350px;
    }
    
    .committee-list {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    .carousel-text h2 {
        font-size: 1.5rem;
    }
    
    .carousel-text h3 {
        font-size: 1.2rem;
    }
    
    .special-announcement {
        font-size: 1.1rem;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }

    .centered-image {
        width: 100%;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        margin: 0 0.3rem;
        font-size: 1rem;
    }
}

/* Optional: Prevent body from scrolling when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Fix Safari backdrop z-index issues */
.modal-backdrop.show {
  opacity: 0.8 !important;
  z-index: 1050;
}

.modal {
  z-index: 1060;
}

/* Optional: Smooth modal image scaling */
#modalImage {
  transition: transform 0.3s ease;
}

.president-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

.content-box {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* FullCalendar custom blue/gold theme */
.fc {
    background-color: #1e1e2f; /* Light blue background */
    color: #e0e0e0;
    border-radius: 8px;
}

.fc-col-header-cell-cushion {
    color: #aad4ff !important;
}

.fc-toolbar.fc-header-toolbar {
    background-color: #00274d; /* Dark Blue */
    color: gold;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.fc-toolbar-title {
    color: #f0f0f0;
}

.fc-button {
    background-color: #3a3f51;
    color: #fff;
    border: none;
}

.fc-button:hover {
    background-color: #49526b;
}

.fc-button-primary:not(:disabled).fc-button-active,
.fc-button-primary:not(:disabled):active {
    background-color: #607d9b;
    border: none;
}

.fc-day-today {
    background-color: #375a7f !important;
    color: #fff !important;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(58, 151, 212, 0.6);
}

.fc-daygrid-day {
    background-color: #29293d;
}

.fc-daygrid-day-number {
    font-weight: 600;
    color: #ffffff !important;
    font-size: 1rem;
}

.fc-event {
    background-color: #ffc107 !important;
    color: #000 !important;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    padding: 2px 4px;
}

.fc-daygrid-event {
    background-color: gold;
    color: #00274d;
    border: 1px solid #00274d;
    border-radius: 4px;
    padding: 2px;
    font-size: 0.85rem;
}

<style>
  .modal-content img {
    max-width: 100%;
    border-radius: 8px;
  }
  .modal-content p {
    font-size: 1.05rem;
  }
</style>

.special-gold-announcement {
    background-color: #1a1a1a; /* dark background for contrast */
    color: gold; /* can also use #FFD700 or #FFFF33 */
    border-top: 3px solid gold;
    border-bottom: 3px solid gold;
    text-shadow: 1px 1px 3px #000;
}

.announcement-text {
    font-size: 2rem; /* double size text */
    font-weight: bold;
    margin: 0;
    padding: 0.5rem 0;
}

.special-gold-announcement .announcement-text {
    margin: 0;
    animation: pulseText 2s infinite;
}

@keyframes pulseText {
    0%, 100% {
        text-shadow: 0 0 5px gold, 0 0 10px gold;
    }
    50% {
        text-shadow: 0 0 15px yellow, 0 0 30px gold;
    }
}
