﻿:root {
    --mela-primary: #ff6b00;
    --mela-secondary: #ffb703;
    --mela-accent: #d90429;
    --mela-dark: #1e1b4b;
    --mela-bg: #fffaf1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(180deg, #fffdf8, var(--mela-bg));
    font-family: "Noto Sans Devanagari", "Mangal", sans-serif;
}

.mela-navbar {
    background: linear-gradient(90deg, #ef476f, #ff7f11, #ffb703);
    margin-top: -24px;
}

.mela-navbar .navbar-brand,
.mela-navbar .nav-link,
.mela-navbar .navbar-toggler-icon {
    color: #fff !important;
}

.mela-navbar .nav-link:hover,
.mela-navbar .nav-link:focus {
    color: #fff !important;
    opacity: 0.9;
}

.section-title {
    font-weight: 700;
    color: var(--mela-dark);
}

.hero-slide {
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.gradient-card {
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.12), rgba(217, 4, 41, 0.12));
    transition: 0.3s ease;
}

.card,
.sponsor-card,
.profile-card,
.gallery-item {
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

.program-slider {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.program-slider::-webkit-scrollbar {
    display: none;
}

.program-slide {
    flex: 0 0 min(380px, 90%);
    scroll-snap-align: start;
}

.program-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #6a5acdde;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.program-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
}

.program-card-title {
    font-weight: 700;
    text-align: center;
    margin: 0 0 10px;
    color: #ffffff;
}

.program-card-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: #f3f4f6;
}

.stall-card {
    background: #ff8c00f5;
}

.stall-card,
.stall-card h5,
.stall-card p,
.stall-card a,
.stall-card i {
    color: #ffffff !important;
}

.stall-card .btn {
    background: #1e1b4b;
    border-color: #1e1b4b;
    color: #ffffff !important;
}

.stall-card .btn:hover,
.stall-card .btn:focus {
    background: #111033;
    border-color: #111033;
    color: #ffffff !important;
}

.program-slider.expanded {
    flex-wrap: wrap;
    overflow-x: visible;
}

.program-slider.expanded .program-slide {
    flex: 0 0 calc(50% - 0.5rem);
}

@media (max-width: 767.98px) {
    .program-slider.expanded .program-slide {
        flex: 0 0 100%;
    }
}

.gradient-card:hover,
.sponsor-card:hover,
.profile-card:hover,
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.sponsor-card,
.profile-card,
.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s ease;
    background: #fff;
}

.gallery-card {
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.gallery-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
    text-align: center;
}

.profile-card img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff1d6;
}

.selfie-highlight {
    background: linear-gradient(135deg, #ffd166, #ff7f11);
    border-radius: 22px;
}

.contact-box {
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.winner-badge {
    background: var(--mela-accent);
    color: #fff;
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 0.85rem;
}

.admin-sidebar {
    min-height: 100vh;
    background: #1f2937;
}

.admin-sidebar a {
    color: #e5e7eb;
    text-decoration: none;
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: #374151;
}

.mela-footer {
    background: linear-gradient(90deg, #d90429, #ff6b00);
}

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

.animate-up {
    animation: fadeUp 0.8s ease;
}

.selfie-entry-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    padding: 16px;
    height: 100%;
}

.selfie-entry-brand {
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #1f2937;
    font-size: 1rem;
}

.selfie-entry-location {
    text-align: center;
    font-weight: 700;
    color: #d90429;
    margin-top: 4px;
    margin-bottom: 12px;
}

.selfie-entry-photo {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
}

.selfie-entry-photo img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: #f3f4f6;
    display: block;
}

.selfie-entry-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
}

.selfie-entry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1f2937;
}

.selfie-entry-footer {
    text-align: center;
    font-size: 0.82rem;
    color: #374151;
    margin-bottom: 6px;
}

.selfie-entry-tag {
    text-align: center;
    font-size: 0.82rem;
    color: #ef476f;
    font-weight: 700;
}

.about-card,
.about-card:hover {
    box-shadow: none !important;
    transform: none !important;
}
