/* Enhanced Responsive Styles for Divine House Community Center */


/* Video container - mobile first */
.video-container {
    position: relative;
    background: #000;
    aspect-ratio: 16/9;
    overflow: hidden;
}

/* Default state - hide video, show fallback on mobile */
.event-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; /* Hidden by default on mobile */
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 105, 180, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.play-button i {
    color: white;
    font-size: 24px;
    margin-left: 5px;
}

.play-text {
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Desktop styles - show video */
@media (min-width: 992px) {
    .event-video {
        display: block; /* Show video on desktop */
    }
    .video-fallback {
        display: none !important; /* Hide fallback on desktop */
    }
}

/* Active video state */
.video-container.playing {
    .video-fallback {
        display: none;
    }
    .event-video {
        display: block;
    }
}
/* Mobile-First Base Styles */
@media (max-width: 767px) {
  /* Navigation */
  .ui.inverted.menu {
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  }
  
  .nav-logo {
    height: 40px;
  }
  
  .mobile-menu-toggle {
    display: block !important;
    font-size: 1.5rem;
  }
  
  .mobile-nav {
    display: none;
    position: absolute;
    width: 100%;
    background: #2c3e50;
    top: 60px;
    left: 0;
    flex-direction: column;
  }
  
  .mobile-nav.active {
    display: flex;
  }

  /* Hero Section */
  .hero-section {
    height: auto;
    padding: 120px 0 60px;
    margin-top: 60px;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  /* Cards & Grids */
  .responsive-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  
  .enhanced-card {
    margin-bottom: 20px;
  }

  /* Sliders */
  .slider img {
    height: 250px;
  }
  
  .slick-prev, .slick-next {
    display: none !important;
  }

  /* Team Section */
  .team-grid {
    grid-template-columns: 1fr;
  }

  /* Contact Section */
  .contact-section .ui.stackable.grid {
    flex-direction: column-reverse;
  }
  
  .contact-info, .contact-form {
    padding: 25px !important;
  }

  /* Utility Classes */
  .ui.stackable.grid > .column {
    padding: 10px !important;
  }
  
  .section {
    padding: 40px 0;
  }

  /* Events Section */
  .events-slider .slick-slide {
    padding: 0 10px;
  }

  /* Video Cards */
  .card-image video {
    height: 200px;
    width: 100%;
    object-fit: cover;
  }
}

/* Tablet Styles (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .responsive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .events-slider .slick-slide {
    padding: 0 15px;
  }
}

/* Mobile-Specific Enhancements */
@media (max-width: 480px) {
  /* Form Elements */
  input, select, textarea {
    font-size: 16px !important;
    padding: 12px 15px !important;
  }
  
  /* Hide less important elements */
  .team-social {
    display: none;
  }
  
  /* Footer */
  .footer .ui.stackable.grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  /* Event Cards */
  .event-meta span {
    display: block;
    margin-bottom: 5px;
  }
}

/* Touch Target Sizes */
button, a, input[type="submit"] {
  min-height: 44px;
  min-width: 44px;
}

/* Performance Optimizations */
img {
  max-width: 100%;
  height: auto;
}

/* Mobile Video Fallback */
@media (max-width: 768px) {
  video {
    display: none;
  }
  .card-image {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
}
/* Video Container Styles */
.video-container {
    position: relative;
    background: #000;
    overflow: hidden;
    aspect-ratio: 16/9; /* Maintain aspect ratio */
}

.event-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; /* Hidden by default on mobile */
}

/* Mobile-specific video styles */
@media (min-width: 992px) {
    .event-video {
        display: block; /* Always show on desktop */
    }
    .video-fallback {
        display: none !important;
    }
}

/* Video Play Button & Fallback */
.video-play-button, .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 105, 180, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.video-play-button i, .play-overlay i {
    color: white;
    font-size: 24px;
    margin-left: 5px;
}

.video-fallback {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.video-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: rgba(0,0,0,0.4);
}

.play-overlay span {
    color: white;
    font-size: 14px;
    margin-top: 10px;
    font-weight: bold;
}

/* Active Video State */
.video-container.playing {
    .video-fallback {
        display: none;
    }
    .event-video {
        display: block;
    }
    .video-play-button {
        display: none;
    }
}
/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    background-color: #f0f8ff;
    color: #333;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.ui.header {
    color: #ff69b4;
    font-family: 'Mansalva', cursive;
}

/* Enhanced Navigation */
.ui.inverted.menu {
    background-color: #2c3e50 !important;
    border-radius: 0;
    margin: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ui.inverted.menu .item {
    color: white !important;
    transition: all 0.3s ease;
    padding: 1em 1.2em;
}

.ui.inverted.menu .item:hover {
    background-color: #34495e !important;
    color: #ff69b4 !important;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 10px;
}

.mobile-nav {
    display: none;
    background-color: #2c3e50;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav .item {
    display: block;
    padding: 15px 20px;
    color: white !important;
    text-decoration: none;
    border-bottom: 1px solid #34495e;
    transition: background-color 0.3s ease;
}

.mobile-nav .item:hover {
    background-color: #34495e;
    color: #ff69b4 !important;
}

/* Logo positioning */
.nav-logo {
    max-height: 50px;
    width: auto;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Mansalva', cursive;
}

.hero-content p {
    font-size: 1.3em;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Slider */
.slider-container {
    margin: 40px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.slider img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Enhanced Cards */
.enhanced-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    margin-bottom: 30px;
}

.enhanced-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.enhanced-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay h3 {
    color: white;
    margin: 0;
    font-size: 1.2em;
    font-family: 'Mansalva', cursive;
}

.card-content {
    padding: 25px;
    text-align: center;
}

.card-content h3 {
    color: #ff69b4;
    margin-bottom: 15px;
    font-family: 'Mansalva', cursive;
}

.card-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Enhanced Buttons */
.enhanced-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.enhanced-btn:hover {
    background: linear-gradient(45deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    color: white;
}

/* Section Styling */
.section {
    padding: 80px 0;
    position: relative;
}

.section:nth-child(even) {
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #ff69b4;
    position: relative;
    font-family: 'Mansalva', cursive;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #ff69b4, #667eea);
    border-radius: 2px;
}

/* Team Section Enhancements */
.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    margin-bottom: 30px;
}

.team-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.team-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-social {
    display: flex;
    gap: 15px;
}

.team-social a {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.team-social a:hover {
    background: #ff69b4;
    transform: translateY(-3px);
}

/* Contact Section */
.contact-section {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.contact-info {
    background: linear-gradient(135deg, #ff69b4, #667eea);
    color: white;
    padding: 50px 40px;
}

.contact-form {
    padding: 50px 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
    font-family: 'Roboto', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff69b4;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    margin: 20px 0;
}

.footer-links a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff69b4;
}

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

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

/* Grid Enhancements */
.responsive-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.causes-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.events-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Gallery specific styles */
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Override Semantic UI styles */
.ui.button:disabled {
    background-color: #1e90ff !important;
    color: white !important;
    font-family: 'Roboto', sans-serif !important;
}

.ui.button:hover:disabled {
    background-color: #6495ed !important;
}

.ui.segment {
    background-color: white !important;
    border: 1px solid #d3d3d3 !important;
    font-family: 'Roboto', sans-serif !important;
}

/* Custom styles to ensure the menu does not stick to the top */
.ui.menu {
    position: relative;
    z-index: 1000;
    font-family: 'Roboto', sans-serif;
}

/* Background image for the About section */
#about {
    background-image: url("/images/WhatsApp\ Image\ 2024-08-21\ at\ 17.52.43\(15\).jpeg");
    background-size: cover;
    background-position: center;
    padding: 50px 0;
    color: black;
    font-family: 'Roboto', sans-serif;
}

#about .ui.segment {
    background-color: rgba(0, 0, 0, 0.5) !important;
    color: black !important;
    font-family: 'Roboto', sans-serif !important;
}

/* Events section */
#events {
    background-color: #f9f9fa;
    padding: 50px 0;
}

#events .ui.segment {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 10px;
}

#events .ui.card {
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

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

#events .ui.card .image {
    height: 250px;
    overflow: hidden;
}

#events .ui.card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#events .ui.card:hover .image img {
    transform: scale(1.1);
}

#events .ui.card .content {
    text-align: center;
}

#events .ui.card .header {
    color: #ff69b4;
    font-family: 'Mansalva', cursive;
}

#events .ui.card .meta {
    color: #666;
    font-style: italic;
}

/* Causes section */
#causes {
    background-color: #f9f9fa;
    padding: 50px 0;
}

#causes .ui.segment {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

#causes .text-center {
    text-align: center;
    margin-bottom: 30px;
}

#causes .ui.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.cause-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 300px;
    width: 100%;
    height: 450px;
    display: flex;
    flex-direction: column;
}

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

.cause-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.cause-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.cause-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.6);
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: 0.5s ease;
}

.cause-card:hover .cause-overlay {
    height: 100%;
}

.cause-overlay h3 {
    color: white;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.cause-content {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cause-content p {
    margin-bottom: 15px;
    flex-grow: 1;
}

.cause-content .ui.button {
    align-self: center;
    margin-top: auto;
}

/* Team section */
#team {
    background-color: #f9f9fa;
    padding: 50px 0;
}

#team .ui.segment {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.text-center {
    text-align: center;
    margin-bottom: 30px;
}

/* Gallery section */
#gallery {
    background-color: #f9f9fa;
    padding: 50px 0;
}

#gallery .ui.segment {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.gallery-albums {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.gallery-album {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.gallery-album:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.gallery-album .ui.header {
    color: #ff69b4;
    text-align: center;
    margin-bottom: 20px;
}

.gallery-details {
    color: white;
    padding: 15px;
    width: 100%;
}

.gallery-details h4 {
    margin: 0;
    font-size: 16px;
}

.gallery-details p {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: 0.8;
}

.gallery-lightbox .image.content {
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-lightbox .image.content img {
    max-height: 100%;
    object-fit: contain;
}

/* Contact section */
#contact {
    background-color: #f9f9fa;
    padding: 50px 0;
}

.contact-info .ui.header {
    color: white;
}

.contact-info .ui.list .item {
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
}

.contact-info .ui.list .item i {
    color: white;
}

.contact-info .social-icons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.contact-info .social-icons .ui.button {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

.contact-info .social-icons .ui.button:hover {
    background-color: rgba(255,255,255,0.3);
}

#contactForm {
    padding: 30px;
}

#contactForm .ui.dividing.header {
    color: #333;
    margin-bottom: 20px;
}

#contactForm .field {
    margin-bottom: 15px;
}

#contactForm .field label {
    font-weight: bold;
    color: #666;
}

#contactForm .ui.button {
    margin-top: 15px;
    background-color: #4CAF50;
    color: white;
}

#contactForm .ui.button:hover {
    background-color: #45a049;
}

/* Responsive Design */
@media (max-width: 991px) {
    .ui.menu .item:not(.mobile-menu-toggle) {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block !important;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .ui.container {
        padding: 0 15px !important;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .slider img {
        height: 250px;
    }

    .card-content {
        padding: 20px;
    }

    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }

    .team-image {
        height: 250px;
    }

    .section {
        padding: 40px 0;
    }

    .causes-grid,
    .events-grid,
    .team-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-section .ui.grid > .column {
        width: 100% !important;
        border-radius: 0 !important;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-info .social-icons {
        justify-content: center;
    }

    .gallery-albums .ui.grid .column {
        width: 50% !important;
    }

    .cause-card {
        max-width: 100%;
        height: auto;
    }

    .team-card {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8em;
    }

    .section-title {
        font-size: 1.6em;
    }

    .enhanced-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .card-content {
        padding: 15px;
    }
}

/* Override the default container to use full width */
.ui.container {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 20px !important;
}

/* Ensure sliders, images, and gallery sections use the full width */
.slider img, .ui.fluid.image {
    width: 100% !important;
}

/* Adjust header and footer to stretch across the entire screen */
.ui.inverted.menu, .ui.inverted.vertical.footer.segment {
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 20px !important;
}

/* Remove margin and center alignment on specific grid elements if needed */
.ui.stackable.grid {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Center the menu container */
.ui.inverted.menu .ui.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure the menu items are centered */
.ui.inverted.menu .item {
    flex: 1;
    text-align: center;
}

/* Ensure the logo is in the middle */
.ui.inverted.menu .logo {
    order: 1;
    margin: 0 auto;
}

/* Ensure the left menu items are on the left */
.ui.inverted.menu .left.menu {
    order: 0;
}

/* Ensure the right menu items are on the right */
.ui.inverted.menu .right.menu {
    order: 2;
}

/* Additional breakpoints for larger screens */
@media only screen and (min-width: 768px) {
    .ui.inverted.menu .ui.container {
        justify-content: center;
    }

    .ui.inverted.menu .left.menu,
    .ui.inverted.menu .right.menu {
        display: flex;
        align-items: center;
    }

    .ui.inverted.menu .logo {
        margin: 0 20px;
    }
}

@media only screen and (min-width: 1024px) {
    .ui.inverted.menu .ui.container {
        max-width: 1400px;
    }
}
/* [Previous CSS remains the same until Events Section] */

/* Enhanced Events Section */
.events-slider {
    margin: 40px 0;
}

.events-slider .slick-list {
    padding: 20px 0;
}

.events-slider .slick-track {
    display: flex;
}

.events-slider .enhanced-card {
    margin: 0 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.events-slider .slick-slide {
    transition: all 0.3s ease;
}

.events-slider .slick-slide.slick-active {
    transform: scale(1.02);
}

.events-slider video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #000;
}

/* Future Event Styling */
.future-event {
    position: relative;
    animation: pulse 2s infinite alternate;
    border: 2px solid #ff69b4;
}

.future-event .event-date {
    color: #ff69b4;
    font-weight: bold;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,105,180,0.4); }
    100% { box-shadow: 0 0 0 10px rgba(255,105,180,0); }
}

/* Causes Section Slider */
.causes-slider {
    margin: 40px 0;
}

.causes-slider .slick-list {
    padding: 20px 0;
}

.causes-slider .slick-track {
    display: flex;
}

.causes-slider .enhanced-card {
    margin: 0 15px;
}

/* Toast Notification Styling */
.toast-top-right {
    top: 80px;
}

.toast-info {
    background-color: #ff69b4;
}

.card-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* For mobile devices where autoplay might be restricted */
@media (max-width: 768px) {
    .card-image video {
        display: none;
    }
    .card-image {
        background: url('images/video-poster.jpg') center/cover no-repeat;
    }
}
/* Debugging styles - can remove after testing */
.future-event {
    animation: pulse 2s infinite alternate;
    position: relative;
}

.future-event::after {
    content: "ACTIVE NOTIFIER";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff69b4;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
}
/* Events Section */
.events-notice {
    background: #f8f9fa;
    border-left: 4px solid #ff69b4;
    padding: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 0 8px 8px 0;
}

.events-notice i.icon {
    color: #ff69b4;
    font-size: 1.5em;
}

/* Event Cards */
.events-slider {
    margin: 0 -15px;
}

.enhanced-card {
    margin: 0 15px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

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

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

.upcoming-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff69b4;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0;
    color: #666;
    font-size: 0.9em;
}

.event-meta i.icon {
    margin-right: 5px;
}

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

.event-details p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
    font-size: 0.9em;
}

/* Event Notifier */
.event-notifier {
    margin-top: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Upcoming Event Highlight */
.upcoming-event {
    position: relative;
    border: 2px solid rgba(255, 105, 180, 0.3);
}

.upcoming-event::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff69b4, #8a2be2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-image {
        height: 150px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .event-meta {
        gap: 10px;
        font-size: 0.8em;
    }
}
/* Video Container Styles */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px 8px 0 0;
}

.vimeo-embed-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.vimeo-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.video-container:hover .video-overlay {
    opacity: 0;
}

.play-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-align: center;
}

.play-indicator i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: rgba(255,105,180,0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-indicator span {
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .video-container {
        padding-bottom: 75%; /* More square aspect ratio on mobile */
    }
    
    .play-indicator i {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .play-indicator span {
        font-size: 1rem;
    }
}
/* Video Container Styles */
.card-image {
    position: relative;
    overflow: hidden;
    background: #000;
}

.card-image video,
.vimeo-embed-container {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Desktop Video */
.desktop-video {
    display: block;
    height: 250px;
}

/* Mobile Video */
.mobile-video {
    display: none;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.vimeo-embed-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Behavior */
@media (max-width: 768px) {
    .desktop-video {
        display: none;
    }
    
    .mobile-video {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-video {
        display: none;
    }
    
    .desktop-video {
        display: block;
    }
}

/* Video Overlay and Controls */
.upcoming-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 105, 180, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

/* Play button for desktop video */
.desktop-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.desktop-video:hover::after {
    opacity: 0;
}

.desktop-video::before {
    content: '\f144';
    font-family: 'Icons';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    z-index: 1;
    opacity: 0.8;
    pointer-events: none;
}
/* Video Container Styles */
.card-image {
    position: relative;
    background: #000;
    aspect-ratio: 16/9;
    overflow: hidden;
}

/* Desktop Video */
.desktop-video {
    width: 100%;
    height: 100%;
}

.desktop-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Video */
.mobile-video {
    display: none;
    width: 100%;
    height: 100%;
}

.vimeo-embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.vimeo-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Behavior */
@media (max-width: 768px) {
    .desktop-video {
        display: none;
    }
    
    .mobile-video {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-video {
        display: none;
    }
}

/* Upcoming Badge */
.upcoming-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 105, 180, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}