/* Main Website Styles for Kumbh Mela */

:root {
    --title-color: #0e3a59; /* General Styles */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #ffffff;
}

/* Top Header Styles */
.top-header {
    background-color: #001219;
    font-size: 0.85rem;
}

.top-social-icons a {
    font-size: 0.9rem;
    transition: color 0.3s;
}

.top-social-icons a:hover {
    color: #f37021 !important;
}

.theme-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    cursor: pointer;
    color: #fff;
    padding: 0;
}

.theme-red { background-color: #e63946; }
.theme-black { background-color: #000; }

.btn-orange {
    background-color: #f37021;
    border-color: #f37021;
}

.btn-orange:hover {
    background-color: #d65d10;
    border-color: #d65d10;
}

.top-search-bar .form-control {
    border-radius: 4px 0 0 4px;
}

.top-search-bar .btn {
    border-radius: 0 4px 4px 0;
}

/* Main Header & Navbar Styles */
.main-header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-nav .nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem !important;
    color: #333 !important;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: #f37021 !important;
}

.navbar-nav .dropdown-toggle::after {
    display: none;
}

.dropdown-menu {
    border-radius: 0;
    margin-top: 0;
}

.dropdown-item:hover {
    background-color: #f37021;
    color: #fff !important;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
}


/* Card Styles */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: auto;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-weight: 600;
    color: var(--title-color);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.page-title {
    color: var(--title-color) !important;
}

/* Section Styles */
section {
    padding: 20px 0;
}

section h2 {
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    color: var(--title-color);
}

section h2:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: #eb7254; /* Changed to Coral color */
    bottom: -10px;
    left: 25%;
}

/* Custom Carousel Indicators */
.custom-indicators {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    z-index: 15;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.custom-indicators button {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: rgba(235, 114, 84, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.custom-indicators button.active {
    background-color: #eb7254;
    width: 15px;
    height: 15px;
    transform: scale(1.2);
}

.custom-indicators button:hover {
    background-color: #eb7254;
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .slider-image-container {
        height: 350px;
    }
    
    .slider-title {
        font-size: 1.8rem;
    }
    
    .slider-description {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 250px;
    }
    
    .carousel-caption {
        bottom: 10%;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Footer Styles */
footer {
    background: #eb7254; /* Changed to Coral color */
}

footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

footer ul li {
    margin-bottom: 10px;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
    text-decoration: underline !important;
}



/* Gallery Page Styles */
.gallery-item {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 5px;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Video Gallery Styles */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 5px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Post/Article Styles */
.post-content {
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
}

.post-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Contact Form Styles */
.contact-form .form-control {
    border-radius: 0;
    border: 1px solid #ddd;
    padding: 15px;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: #eb7254; /* Changed to Coral color */
}

.contact-info i {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #FF7F50; /* Changed to Coral color */
    color: white;
    border-radius: 50%;
    margin-right: 10px;
}

/* Button Styles */
.btn-primary {
    background-color: #FF7F50; /* Changed to Coral color */
    border-color: #FF7F50; /* Changed to Coral color */
}

.btn-primary:hover {
    background-color: #FF6A3C; /* Slightly darker Coral for hover */
    border-color: #FF6A3C; /* Slightly darker Coral for hover */
}

.btn-outline-primary {
    color: #FF7F50; /* Changed to Coral color */
    border-color: #FF7F50; /* Changed to Coral color */
}

.btn-outline-primary:hover {
    background-color: #FF7F50; /* Changed to Coral color */
    border-color: #FF7F50; /* Changed to Coral color */
}

/* Heading overlay line fix */
section h2::after { display: none; }
section h2::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #eb7254;
    top: -8px;
    left: 0;
}

/* Decorative page title accent line with upward shadow and interactivity */
.page-title-accent{display:block;width:fit-content;margin:0 auto;position:relative;padding-top:14px}
.page-title-accent::before{content:'';position:absolute;top:0;left:0;width:100%;height:2px!important;background-color:#eb7254;border-radius:2px;box-shadow:0 -6px 12px rgba(0,0,0,0.12);opacity:0.95;transform-origin:center;transition:transform 180ms ease,box-shadow 180ms ease,opacity 160ms ease;will-change:transform,box-shadow}
.page-title-accent:hover::before{transform:scaleX(1.03);box-shadow:0 -8px 16px rgba(0,0,0,0.18);opacity:1}


/* Card Slider Component Styles */
.card-slider {
    --cards-per-view: 1; /* default, overridden by media queries */
    --card-gap: 16px;
    position: relative;
}

/* Viewport & Track */
.card-slider-viewport {
    overflow: hidden;
}
.card-slider-track {
    display: flex;
    gap: var(--card-gap);
    transition: transform 0.45s ease;
    will-change: transform;
}

/* Transparent modern glassy card */
.card-slide-card {
    /* width calculated using CSS variables to fit N cards per view */
    flex: 0 0 calc((100% - (var(--card-gap) * (var(--cards-per-view) - 1))) / var(--cards-per-view));
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 320px;
}
.card-slide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Image section with subtle zoom on hover */
.card-slide-image {
    height: 100%;
    overflow: hidden;
}
.card-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card-slide-card:hover .card-slide-image img {
    transform: scale(1.05);
}
.card-slide-card:hover .card-slide-content {
    opacity: 1;
    transform: translateY(0);
}

/* Content area */
.card-slide-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.35), rgba(0,0,0,0));
    backdrop-filter: blur(2px);
    color: #fff;
    z-index: 2;
    opacity: 0.92;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(4px);
}
.card-slide-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}
.card-slide-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}
.card-slide-link {
    align-self: start;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.7);
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(2px);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.card-slide-link:hover{
    background: rgba(255,255,255,0.22);
    border-color: #fff;
}

/* Arrow buttons for navigation */
.card-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    backdrop-filter: blur(8px);
    transition: background 0.3s ease, transform 0.2s ease;
}
.card-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.05);
}
.card-slider-arrow:disabled {
    opacity: 0.5;
    cursor: default;
}
.card-slider-arrow.prev { left: -8px; }
.card-slider-arrow.next { right: -8px; }

/* Dot indicators */
.card-slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}
.card-slider-dots .dot,
.card-slider-dots button {
    width: 10px;
    height: 10px;
    aspect-ratio: 1 / 1;
    display: inline-block;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #eb7254;
    transition: transform 0.2s ease, background 0.2s ease;
}
.card-slider-dots .active {
    background: #eb7254; /* Accent color consistent with theme */
    transform: scale(1.15);
}

/* Ensure text is visible on dark backgrounds */
.card-slider .card-slide-title,
.card-slider .card-slide-desc {
    color: #fff;
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .card-slide-image { height: 180px; }
}
@media (min-width: 768px) {
    .card-slider { --cards-per-view: 2; }
}
@media (min-width: 992px) {
    .card-slider { --cards-per-view: 3; }
}


/* Card Styles for Featured Videos */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: auto;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-weight: 600;
    color: var(--title-color);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

