/* =============================================
   BASE PAGE - REDESIGNED
   Color Palette: #141d2a (dark), #8186d5 (primary), #F5875D (accent)
   ============================================= */

:root {
    --base-dark: #141d2a;
    --base-dark-light: #1a2332;
    --base-primary: #8186d5;
    --base-accent: #F5875D;
    --base-gradient-start: #6366f1;
    --base-gradient-end: #8b5cf6;
    --base-text: #1f2937;
    --base-text-muted: #6b7280;
    --base-border: rgba(129, 134, 213, 0.2);
    --base-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

/* =============================================
   HERO SECTION WITH VIDEO
   ============================================= */
.base-hero {
    position: relative;
}

.base-hero-wrapper {
    position: relative;
    color: white;
    height: 65vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.base-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 29, 42, 0.75) 0%, rgba(20, 29, 42, 0.6) 100%);
    z-index: 1;
}

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

.base-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Hero text styling */
.base-hero h1 {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.base-hero .lead {
    color: rgba(255, 255, 255, 0.95);
}

.base-hero .text-small {
    color: rgba(255, 255, 255, 0.7);
}

/* =============================================
   CONTENT SECTIONS
   ============================================= */
.container h5 {
    color: var(--base-text);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.container > .row p {
    color: var(--base-text-muted);
    line-height: 1.8;
}

/* =============================================
   EXPLANATION BOX - Updated colors
   ============================================= */
.explanation {
    background: linear-gradient(135deg, rgba(129, 134, 213, 0.08), rgba(99, 102, 241, 0.05));
    border-left: 4px solid;
    border-image: linear-gradient(180deg, var(--base-gradient-start), var(--base-gradient-end)) 1;
    padding: 20px 24px;
    margin-bottom: 20px;
    border-radius: 0 14px 14px 0;
    position: relative;
}

.explanation h6 {
    color: var(--base-primary);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1rem;
}

.explanation p {
    color: var(--base-text);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =============================================
   IMAGES
   ============================================= */
.rounded-lg {
    border-radius: 20px;
}

.custom-shadow {
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--base-border);
    transition: all 0.3s ease;
}

.custom-shadow:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 70px rgba(99, 102, 241, 0.18);
    border-color: rgba(129, 134, 213, 0.35);
}

.gallery-trigger {
    cursor: pointer;
}

/* =============================================
   TEXT STYLES
   ============================================= */
.text-muted-small {
    font-size: 0.9rem;
    color: var(--base-text-muted);
    font-style: italic;
}

/* =============================================
   GLASS MODAL
   ============================================= */
.glass-modal {
    background: rgba(20, 29, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--base-border);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
}

.glass-modal .modal-header {
    border-bottom: 1px solid var(--base-border);
    background: transparent;
    padding: 20px 24px;
}

.glass-modal .modal-title {
    color: #fff;
    font-weight: 700;
}

.glass-modal .btn-close {
    filter: invert(1);
    opacity: 0.7;
    transition: all 0.2s ease;
}

.glass-modal .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.glass-modal .modal-body {
    padding: 24px;
}

#galleryModal .modal-dialog {
    max-width: 70vw;
}

#galleryModal .modal-content {
    border-radius: 20px;
    overflow: hidden;
}

#galleryModal .modal-body {
    max-height: 80vh;
}

#galleryModal .carousel-inner img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
}

/* Carousel controls */
#galleryModal .carousel-control-prev,
#galleryModal .carousel-control-next {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--base-gradient-start), var(--base-gradient-end));
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

#galleryModal .carousel-control-prev:hover,
#galleryModal .carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

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

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

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
    .base-hero-wrapper {
        height: 55vh;
    }

    #galleryModal .modal-dialog {
        max-width: 85vw;
    }
}

@media (max-width: 768px) {
    .base-hero-wrapper {
        height: 70vh;
    }

    #galleryModal .modal-dialog {
        max-width: 95vw;
    }

    #galleryModal .modal-body {
        max-height: 85vh;
    }

    #galleryModal .carousel-inner img {
        max-height: 50vh;
    }

    #galleryModal .carousel-control-prev,
    #galleryModal .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    #galleryModal .carousel-control-prev {
        left: 10px;
    }

    #galleryModal .carousel-control-next {
        right: 10px;
    }

    .mobileBase {
        padding: 2em;
    }

    .base-hero {
        overflow-x: hidden;
        margin-top: 0;
    }

    .container h5 {
        font-size: 1.25rem;
    }

    .explanation {
        padding: 16px 20px;
    }

    .rounded-lg {
        border-radius: 16px;
    }
}

@media (max-width: 576px) {
    .base-hero-wrapper {
        height: 60vh;
    }

    .base-hero h1 {
        font-size: 2.5rem;
    }
}