/* Ciné Alpha - Common Styles & Design System */
:root {
    /* Primary Colors */
    --primary-yellow: #FFD600;
    --primary-black: #121212;
    --primary-white: #FFFFFF;
    --primary-red: #D50000;
    
    /* Secondary Colors */
    --secondary-yellow: #FFEB3B;
    --light-yellow: #FFF9C4;
    --dark-red: #B71C1C;
    --light-red: #FFCDD2;
    
    /* Neutral Colors */
    --dark-gray: #424242;
    --light-gray: #F5F5F5;
    --text-dark: #212121;
    --text-light: #757575;
    
    /* Accent Colors */
    --accent-blue: #2196F3;
    --accent-green: #4CAF50;
    --accent-purple: #9C27B0;
    --accent-orange: #FF9800;
    
    /* Spacing */
    --section-padding: 80px 0;
    --card-padding: 25px;
    --button-padding: 12px 25px;
    
    /* Border Radius */
    --border-radius-sm: 10px;
    --border-radius-md: 15px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    
    /* Shadows */
    --shadow-sm: 0 3px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 25px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.25);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--light-yellow) 0%, var(--primary-white) 100%);
    color: var(--text-dark);
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--primary-white);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--primary-white);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--primary-red));
    border-radius: 2.5px;
}

/* Navigation */
.navbar {
    background: linear-gradient(90deg, var(--primary-black) 0%, var(--dark-gray) 100%);
    box-shadow: var(--shadow-md);
    padding: 15px 0;
    position: relative;
    overflow: hidden;
}

.navbar .navbar-collapse {
    display: flex;
    align-items: center;
}

.navbar .navbar-nav {
    display: flex;
    align-items: center;
    flex: 1 1 auto; /* let the page links take available space */
    gap: 18px;      /* tidy spacing between page links */
}

.navbar .nav-item-profile {
    margin-left: auto !important; /* push account button to far right */
    padding-left: 28px;           /* create visible separation from page links */
}

.navbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 70% 30%, var(--primary-yellow) 0%, transparent 15%);
    opacity: 0.2;
    z-index: 0;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 28px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    text-decoration: none;
    /* Animated gradient text */
    background: linear-gradient(90deg, 
        var(--primary-yellow) 0%, 
        var(--primary-white) 50%, 
        var(--primary-yellow) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s linear infinite;
    transition: all 0.3s ease;
}

.navbar-brand .navbar-logo {
    height: 56px;
    width: auto;
    margin-right: 16px;
    object-fit: contain;
    border-radius: 12px;
    background: transparent;
    padding: 4px;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(255, 214, 0, 0.2),
                0 0 20px rgba(255, 214, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               logoGlow 3s ease-in-out 0.8s infinite,
               logoFloat 4s ease-in-out 0.8s infinite;
    filter: drop-shadow(0 0 8px rgba(255, 214, 0, 0.3));
}

.navbar-brand:hover .navbar-logo {
    transform: translateY(-3px) scale(1.05) rotate(2deg);
    box-shadow: 0 8px 30px rgba(255, 214, 0, 0.4),
                0 0 40px rgba(255, 214, 0, 0.3),
                inset 0 0 20px rgba(255, 214, 0, 0.1);
    filter: drop-shadow(0 0 15px rgba(255, 214, 0, 0.6));
    border-color: rgba(255, 214, 0, 0.5);
    animation: logoGlow 1.5s ease-in-out infinite,
               logoFloat 2s ease-in-out infinite,
               logoPulse 1s ease-in-out infinite;
}

/* Enhanced glow animation */
@keyframes logoGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 214, 0, 0.2),
                    0 0 20px rgba(255, 214, 0, 0.1);
        filter: drop-shadow(0 0 8px rgba(255, 214, 0, 0.3));
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 214, 0, 0.4),
                    0 0 35px rgba(255, 214, 0, 0.25);
        filter: drop-shadow(0 0 15px rgba(255, 214, 0, 0.5));
    }
}

/* Floating animation */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Pulse animation on hover */
@keyframes logoPulse {
    0%, 100% {
        transform: scale(1.05);
    }
    50% {
        transform: scale(1.08);
    }
}

/* Initial pop-in animation */
@keyframes logoPop {
    from {
        transform: scale(0.8) rotate(-10deg);
        opacity: 0;
        filter: blur(10px);
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0px);
    }
}

/* Text animation for "CINÉ ALPHA" */
@keyframes textShine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.navbar-brand:hover {
    animation: textShine 1.5s linear infinite;
    transform: scale(1.05);
}

/* Remove legacy 'NÉ' mark behind the logo */
.navbar-brand::before {
    content: none !important;
    display: none !important;
}

.navbar-nav .nav-link {
    color: var(--primary-white);
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 16px;
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary-yellow);
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: var(--primary-yellow);
    border-radius: 1.5px;
}

/* Desktop account button - Modern & Stylish Design */
.navbar .nav-link-profile {
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.15) 0%, rgba(255, 214, 0, 0.05) 100%) !important;
    color: var(--primary-white) !important;
    border: 2px solid rgba(255, 214, 0, 0.3) !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(255, 214, 0, 0.2) !important;
    outline: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    font-weight: 600 !important;
    backdrop-filter: blur(10px) !important;
}

/* Hide button completely when user is logged in */
.navbar .nav-link-profile[aria-hidden="true"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.navbar .nav-link-profile::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%) !important;
    transform: translate(-50%, -50%) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 0 !important;
}

.navbar .nav-link-profile:hover::before,
.navbar .nav-link-profile.active::before {
    width: 300% !important;
    height: 300% !important;
}

.navbar .nav-link-profile:hover,
.navbar .nav-link-profile.active {
    color: var(--primary-black) !important;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%) !important;
    border-color: var(--primary-yellow) !important;
    box-shadow: 0 6px 25px rgba(255, 214, 0, 0.5), 0 0 30px rgba(255, 214, 0, 0.3) !important;
    transform: translateY(-2px) scale(1.05) !important;
}

.navbar .nav-link-profile i {
    color: var(--primary-white) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 24px !important;
    position: relative !important;
    z-index: 1 !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
}

.navbar .nav-link-profile:hover i,
.navbar .nav-link-profile.active i {
    color: var(--primary-black) !important;
    transform: scale(1.15) rotate(5deg) !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)) !important;
}

.navbar .nav-link-profile span {
    position: relative !important;
    z-index: 1 !important;
    transition: all 0.3s ease !important;
    font-size: 15px !important;
    letter-spacing: 0.3px !important;
}

.navbar .nav-link-profile:hover span,
.navbar .nav-link-profile.active span {
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

/* Logged-in state with special glow */
.navbar .nav-link-profile.logged-in {
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.25) 0%, rgba(255, 214, 0, 0.15) 100%) !important;
    border-color: rgba(255, 214, 0, 0.5) !important;
    box-shadow: 0 4px 20px rgba(255, 214, 0, 0.3), 0 0 20px rgba(255, 214, 0, 0.2) !important;
    animation: accountPulse 2s ease-in-out infinite !important;
}

@keyframes accountPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 214, 0, 0.3), 0 0 20px rgba(255, 214, 0, 0.2);
    }
    50% {
        box-shadow: 0 6px 30px rgba(255, 214, 0, 0.4), 0 0 30px rgba(255, 214, 0, 0.3);
    }
}

.navbar .nav-link-profile.logged-in:hover {
    animation: none !important;
    box-shadow: 0 8px 35px rgba(255, 214, 0, 0.6), 0 0 40px rgba(255, 214, 0, 0.4) !important;
}

/* User Avatar Circle (shown when logged in) */
.user-avatar-circle {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%) !important;
    border: 2px solid rgba(255, 214, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(255, 214, 0, 0.3) !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    position: relative !important;
    overflow: hidden !important;
}

.user-avatar-circle:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(255, 214, 0, 0.5) !important;
    border-color: var(--primary-yellow) !important;
}

.user-avatar-circle:active {
    transform: scale(1.05) !important;
}

.user-avatar-initial {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--primary-black) !important;
    font-family: 'Montserrat', sans-serif !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

/* Hide hamburger toggler on desktop */
@media (min-width: 992px) {
    .navbar .navbar-toggler {
        display: none !important;
    }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--primary-white);
    border: none;
    padding: var(--button-padding);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border-radius: var(--border-radius-xl);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(213,0,0,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(213,0,0,0.4);
    color: var(--primary-white);
}

.btn-secondary {
    background: linear-gradient(90deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%);
    color: var(--primary-black);
    border: none;
    padding: var(--button-padding);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border-radius: var(--border-radius-xl);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(255,214,0,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,214,0,0.4);
    color: var(--primary-black);
}

.btn-outline {
    background: transparent;
    color: var(--primary-black);
    border: 2px solid var(--primary-black);
    padding: var(--button-padding);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border-radius: var(--border-radius-xl);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline:hover {
    background-color: var(--primary-black);
    color: var(--primary-white);
    transform: translateY(-3px);
}

.btn i {
    margin-right: 8px;
}

/* Cards */
.card {
    background: linear-gradient(135deg, var(--primary-white) 0%, var(--light-gray) 100%);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 80% 20%, var(--primary-yellow) 0%, transparent 15%);
    opacity: 0.1;
    z-index: 0;
}

.card-body {
    padding: var(--card-padding);
    position: relative;
    z-index: 1;
}

/* Sections */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 90% 10%, var(--primary-yellow) 0%, transparent 8%),
                     radial-gradient(circle at 10% 90%, var(--primary-red) 0%, transparent 8%);
    opacity: 0.2;
    z-index: 0;
}

.section-content {
    position: relative;
    z-index: 1;
}

/* Footer - Enhanced Design */
footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: var(--primary-white);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 214, 0, 0.15);
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 75% 25%, rgba(255, 214, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 25% 75%, rgba(213, 0, 0, 0.08) 0%, transparent 50%);
    opacity: 1;
    z-index: 0;
}

footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-yellow) 20%, 
        var(--primary-yellow) 80%, 
        transparent 100%);
    opacity: 0.6;
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 1;
}

/* Center footer content on desktop */
@media (min-width: 992px) {
    footer .row {
        justify-content: center;
        text-align: center;
    }

    footer .col-lg-4 {
        text-align: center;
        max-width: 400px;
        margin: 0 auto;
    }

    footer .col-lg-4:not(:last-child) {
        margin-bottom: 40px;
    }

    footer .col-lg-4 p {
        justify-content: center;
    }

    footer h5 {
        text-align: center;
    }

    footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-logo {
        text-align: center;
        display: block;
        margin: 0 auto 16px;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Footer Logo Section */
.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 36px;
    color: var(--primary-yellow);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(255, 214, 0, 0.3);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    text-shadow: 0 4px 20px rgba(255, 214, 0, 0.5);
}

/* Remove legacy 'NÉ' mark behind the footer logo */
.footer-logo::before {
    content: none !important;
    display: none !important;
}

/* Footer Paragraphs */
footer .col-lg-4 p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 8px 0;
}

footer .col-lg-4 p:first-of-type {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 8px;
}

footer .col-lg-4 p:last-of-type {
    color: var(--primary-yellow);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 24px;
}

footer .col-lg-4 p:hover {
    color: var(--primary-white);
    transform: translateX(5px);
}

/* Contact Info Icons */
footer .col-lg-4 p i {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    font-size: 18px;
    transition: all 0.3s ease;
}

footer .col-lg-4 p:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--primary-yellow);
}

/* Footer Section Headers */
footer h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary-yellow);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: 0.5px;
}

footer h5::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-yellow) 0%, transparent 100%);
    border-radius: 2px;
}

/* Social Icons - Enhanced */
.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.social-icons a {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 214, 0, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-white);
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%);
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.social-icons a i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    border-color: var(--primary-yellow);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 214, 0, 0.4);
}

.social-icons a:hover::before {
    width: 100%;
    height: 100%;
}

.social-icons a:hover i {
    color: var(--primary-black);
    transform: scale(1.15) rotate(5deg);
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.footer-links a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 214, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.footer-links a:hover {
    background: rgba(255, 214, 0, 0.15);
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 214, 0, 0.2);
}

.footer-links a:hover::before {
    left: 100%;
}

/* Copyright Section */
.copyright {
    border-top: 1px solid rgba(255, 214, 0, 0.2);
    padding-top: 28px;
    margin-top: 50px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.copyright::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-yellow), transparent);
}

.copyright p {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
    }
    
    .navbar-brand {
        font-size: 24px;
    }

    .navbar-brand .navbar-logo {
        height: 48px;
        width: auto;
        margin-right: 12px;
        border-radius: 10px;
        padding: 3px;
        /* Keep animations on mobile but slightly reduced */
        animation: logoPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
                   logoGlow 3s ease-in-out 0.6s infinite,
                   logoFloat 5s ease-in-out 0.6s infinite;
    }
    
    .navbar-brand::before {
        font-size: 28px;
        left: -35px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .card-body {
        padding: 20px;
    }

    /* Footer Mobile Styles */
    footer {
        padding: 50px 0 30px;
    }

    .footer-content {
        padding: 0 15px;
    }

    .footer-logo {
        font-size: 28px;
        text-align: center;
        display: block;
        margin: 0 auto 20px;
        letter-spacing: 0.5px;
    }

    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 40px;
    }

    footer .col-lg-4:last-of-type {
        margin-bottom: 0;
    }

    footer .col-lg-4 p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 10px;
        justify-content: center;
    }

    footer .col-lg-4 p:first-of-type {
        font-size: 13px;
    }

    footer .col-lg-4 p:last-of-type {
        font-size: 15px;
        margin-bottom: 20px;
    }

    footer h5 {
        font-size: 18px;
        margin-bottom: 20px;
        text-align: center;
    }

    footer h5::after {
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
    }

    .social-icons {
        justify-content: center;
        gap: 14px;
        margin-top: 24px;
    }

    .social-icons a {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 25px;
        align-items: center;
    }

    .footer-links a {
        padding: 12px 24px;
        font-size: 14px;
        width: auto;
        min-width: 200px;
        text-align: center;
    }

    .copyright {
        margin-top: 40px;
        padding-top: 24px;
    }

    .copyright p {
        font-size: 13px;
    }
}

/* ============================================
   EMPTY STATE MESSAGES - Centered globally
   ============================================ */

/* Style global pour tous les messages "vide" */
.no-films-message,
.no-events-message,
.no-gallery-events-message,
.loading-message {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 400px;
    padding: 60px 40px;
    text-align: center;
    color: var(--primary-white);
}

/* Centrer les grids qui contiennent des messages vides */
.movies-grid:has(.no-films-message),
.events-grid:has(.no-events-message),
.gallery-grid-paginated:has(.no-gallery-events-message),
.movies-grid:has(.loading-message),
.events-grid:has(.loading-message) {
    width: 100% !important;
    justify-content: center;
    align-items: center;
}

/* Centrer les conteneurs qui contiennent des messages vides */
.movies-carousel-container:has(.no-films-message),
.events-carousel-container:has(.no-events-message),
.gallery-grid-wrapper:has(.no-gallery-events-message) {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Align brand and hamburger on mobile header to avoid overlap/misalignment */
@media (max-width: 991.98px) {
    .navbar .container,
    .navbar .container-fluid {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Prevent the profile nav item rule (desktop) from pushing on mobile header */
    .navbar .nav-item-profile {
        margin-left: 0 !important;
        padding-left: 0;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 28px;
    }
    
    .btn-primary, .btn-secondary, .btn-outline {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Desktop-only corrections for navbar controls */
@media (min-width: 992px) {
    /* Hide any navigation toggler/close controls on desktop */
    .navbar [aria-label="Toggle navigation"],
    .navbar .navbar-toggler,
    .navbar .navbar-toggler *,
    .navbar .btn-close {
        display: none !important;
    }
    /* Extra safety: if a toggler is placed right after the brand, hide it */
    .navbar .navbar-brand + .navbar-toggler {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .navbar-brand .navbar-logo {
        animation: none !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }
    
    .navbar-brand {
        animation: none !important;
        background: var(--primary-yellow);
        -webkit-text-fill-color: var(--primary-yellow);
        color: var(--primary-yellow);
    }
}
