/* ===================================================================
   MOMENTS PAGE — Premium High-End Redesign (Red/White Theme)
   =================================================================== */

/* ── Hero Section (Minimalist & Clean) ────────────────────────────── */
.moments-hero {
    position: relative;
    overflow: hidden;
    /* Reddish gradient restored inline in moments.php */
}

/* Add a very soft, sophisticated glowing mesh effect to the hero */
.moments-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(184, 74, 90, 0.08) 0%, rgba(253, 253, 253, 0) 50%);
    z-index: 1;
    pointer-events: none;
    animation: slowPulse 15s ease-in-out infinite alternate;
}

@keyframes slowPulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(2%, 2%); }
}

.moments-hero .container {
    z-index: 2;
    position: relative;
}

.moments-hero .display-4 {
    letter-spacing: -1.5px;
    color: #ffffff;
    text-shadow: none;
}

.moments-hero p.lead {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ── Training Carousel (Glassmorphic & Sleek) ─────────────────────── */
.training-carousel-wrapper {
    background: transparent;
}

.carousel-image-container {
    position: relative;
    height: 600px;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(100, 32, 39, 0.08), 0 0 0 1px rgba(184,74,90,0.05);
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.carousel-image-container:hover .carousel-img {
    transform: scale(1.03);
}

/* Soft gradient overlay instead of harsh colors */
.carousel-gradient-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(100,32,39,0.5) 0%, rgba(100,32,39,0.1) 40%, rgba(100,32,39,0) 100%);
    pointer-events: none;
    z-index: 1;
}

.carousel-image-container .carousel-caption {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: auto;
    text-align: left;
    z-index: 3;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 1rem;
    color: #642027;
    box-shadow: 0 20px 40px rgba(100, 32, 39, 0.1), inset 0 0 0 1px rgba(255,255,255,0.5);
    opacity: 0;
    transform: translateY(20px);
    animation: smoothFadeUp 0.8s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes smoothFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.carousel-caption h2 {
    color: #642027;
    font-weight: 700;
    letter-spacing: -1px;
}

.carousel-caption p {
    color: #8a3b45;
    font-weight: 400;
}

/* Minimalist Progress Indicator */
.carousel-progress {
    position: absolute;
    left: 40px;
    bottom: 20px;
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 4;
    border-radius: 3px;
    overflow: hidden;
}

.carousel-progress-bar {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 5s linear;
}

.training-carousel-wrapper .carousel-control-prev,
.training-carousel-wrapper .carousel-control-next {
    width: 5%;
}

.training-carousel-wrapper .carousel-control-prev-icon,
.training-carousel-wrapper .carousel-control-next-icon {
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(100,32,39,0.15);
    width: 3rem; height: 3rem;
    background-size: 50% 50%;
    transition: transform 0.2s, background-color 0.2s;
}

.training-carousel-wrapper .carousel-control-prev:hover .carousel-control-prev-icon,
.training-carousel-wrapper .carousel-control-next:hover .carousel-control-next-icon {
    background-color: #fff;
    transform: scale(1.1);
}

.training-carousel-wrapper .carousel-control-prev-icon {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23642027" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11 2 5 8l6 6" stroke="%23642027" stroke-width="2" fill="none" stroke-linecap="round"/></svg>');
}

.training-carousel-wrapper .carousel-control-next-icon {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23642027" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5 2l6 6-6 6" stroke="%23642027" stroke-width="2" fill="none" stroke-linecap="round"/></svg>');
}

/* ── Premium Soft UI Event & Training Cards ───────────────────────── */
.premium-card {
    background: #ffffff;
    border: 1px solid rgba(184, 74, 90, 0.08);
    border-radius: 1.25rem;
    box-shadow: 0 15px 35px rgba(100, 32, 39, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(100, 32, 39, 0.1);
    border: 1px solid rgba(184, 74, 90, 0.15);
}

.premium-card .card-body {
    padding: 2.5rem;
}

.premium-badge {
    background-color: rgba(184, 74, 90, 0.1);
    color: #b84a5a;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(184, 74, 90, 0.2);
}

.premium-title {
    color: #642027;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.premium-icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
    border: 1px solid rgba(184,74,90,0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #b84a5a;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.8), 0 4px 12px rgba(100,32,39,0.05);
}

.premium-text-muted {
    color: #8a3b45 !important;
    font-weight: 400;
    line-height: 1.6;
}
