/* ====== HERO SECTION ====== */
.hero-section {
    background: linear-gradient(rgba(62, 39, 35, 0.8), rgba(62, 39, 35, 0.9)), url('https://images.unsplash.com/photo-1602052577122-f73b9710adba?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* Carousel Wrapper */
#iskconCarousel {
    width: 100%;
    overflow: hidden;
        height: 505px !important;

}

@media (max-width: 767px) {
    #iskconCarousel {
        height: 150px !important;
    }
}

/* Base Slide */
.carousel-item {
    position: relative;
    height: 70vh;
    /* Responsive height */
    min-height: 260px;
    max-height: 950px;
}

/* Image Perfect Fit */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 🔥 IMPORTANT */
    object-position: center;
}

/* Dark Overlay for Readability (Optional but Pro) */
.carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.25));
    z-index: 1;
}

/* Caption Layer */
.carousel-caption {
    z-index: 2;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
}

/* Button */
.carousel-caption .btn {
    font-size: 16px;
    padding: 12px 30px;
    border-radius: 50px;
}

@media (max-width: 768px) {
    .carousel-item {
        height: 38vh;
        min-height: 220px;
    }

    .carousel-caption {
        bottom: 8%;
    }

    .carousel-caption .btn {
        font-size: 14px;
        padding: 8px 18px;
    }

}

@media (min-width: 1400px) {
    .carousel-item {
        height: 520px;
    }
}

.carousel-item img {
    object-position: center top;
}

/* ====== Info Section ====== */
@media (max-width: 768px) {

    /* Center the column content */
    .col-lg-6 {
        text-align: center;
    }

    /* Image full centered */
    .col-lg-6 img {
        width: 90% !important;
        /* mobile-friendly width */
        margin: 0 auto;
        display: block;
    }

    /* Center the location label */
    .col-lg-6 .position-absolute {
        left: 50% !important;
        transform: translateX(-50%);
        bottom: 10px;
        border-radius: 6px;
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* ===== MOBILE IMAGE CENTER FIX ===== */
@media (max-width: 768px) {

    .image-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 100%;
    }

    .temple-img {
        width: 90% !important;
        max-width: 320px;
        margin: 0 auto;
        display: block;
    }

    .location-badge {
        position: static !important;
        margin-top: 10px;
        background: rgba(0, 0, 0, 0.75);
        color: #fff;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 14px;
        display: inline-block;
    }
}

/* ====== Laptop ====== */


/* ====== BUTTONS ====== */
.btn-iskcon {
    background-color: var(--deep-red);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-iskcon:hover {
    background-color: var(--primary-gold);
    color: var(--dark-brown);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {

    /* Info image center */
    .position-relative img {
        display: block;
        margin: 0 auto;
        width: 65% !important;
        max-width: 300px;
        height: 275px;
    }

    /* Location badge (ONLY inside info section) */
    .position-relative .position-absolute {
        left: 50% !important;
        transform: translateX(-50%);
        bottom: 10px;
        text-align: center;
    }

    /* Text center */
    .ps-lg-4 {
        padding-left: 0 !important;
        text-align: center;
    }

    .ps-lg-4 .d-flex {
        justify-content: center;
        text-align: center;
    }
}

/* ====== COUNTER SECTION ====== */
.counter-section {
    background: linear-gradient(135deg, #FDF8F2 0%, #FFF9E6 100%);
    position: relative;
    overflow: hidden;
}

.counter-card {
    transition: all 0.4s ease;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.1);
    height: 100%;
}

.counter-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.15);
    border-color: #D4AF37;
}

.counter-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), rgba(212, 175, 55, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.counter-icon i {
    font-size: 2rem;
    color: #8B0000;
    transition: all 0.3s ease;
}

.counter-card:hover .counter-icon i {
    color: #D4AF37;
    transform: scale(1.1);
}

.counter-number {
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #8B0000, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====== FUTURE PROJECTS ====== */
.future-projects-section {
    background: linear-gradient(135deg, #0a1525 0%, #152232 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.project-card-alt {
    background: rgba(26, 43, 60, 0.7);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
    height: 100%;
}

.project-card-alt:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.project-header {
    padding: 20px;
    position: relative;
}

.project-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
}

.project-timeline {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-dot-alt {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.project-content {
    padding: 0 20px 20px;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ====== GALLERY ====== */
.gallery-img {
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
    width: 100%;
}

/* ====== FOOTER ====== */
footer {
    background-color: var(--dark-brown);
    color: var(--light-beige);
    padding: 30px 20px;
}

.footer-link {
    color: var(--primary-gold);
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
    color: var(--light-beige);
}

@media (max-width: 768px) {

    footer {
        padding: 40px 15px;
        text-align: center;
    }

    footer p,
    footer li,
    footer span {
        font-size: 14px;
        line-height: 1.7;
    }

    .footer-link {
        display: inline-block;
        margin: 6px 0;
        font-size: 14px;
    }

    /* If footer has columns */
    .footer-row {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    /* Social icons (if any) */
    .footer-social a {
        font-size: 18px;
        margin: 0 8px;
    }
}

.footer-link {
    padding: 4px 0;
}


/* ====== UTILITY CLASSES ====== */
.title-divider {
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37, #8B0000, #D4AF37);
    border-radius: 2px;
}

/* ====== RESPONSIVE STYLES ====== */
/* Mobile First Approach */

/* Small devices (phones, 576px and up) */
@media (min-width: 576px) {
    .hero-section {
        padding: 4rem 2rem;
        min-height: 450px;
    }

    .carousel-item {
        height: 350px;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .hero-section {
        min-height: 500px;
    }

    .carousel-item {
        height: 450px;
    }

    .carousel-caption {
        bottom: 30px;
        left: 30px;
        right: 30px;
        padding: 20px;
    }

    .counter-card {
        margin-bottom: 0;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 600px;
        padding: 5rem 3rem;
    }

    .carousel-item {
        height: 550px;
    }

    .carousel-caption {
        bottom: 40px;
        left: 50px;
        right: 50px;
        padding: 25px;
    }

    .carousel-caption h3 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .project-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 2rem 1rem;
        min-height: 350px;
    }

    .carousel-item {
        height: 166px;
    }

    .carousel-caption {
        padding: 10px;
        bottom: 10px;
        left: 5px;
        right: 5px;
    }

    .carousel-caption h3 {
        font-size: 1rem;
    }

    .carousel-caption p {
        font-size: 0.8rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-stats {
        grid-template-columns: 1fr;
    }

    .counter-card {
        margin-bottom: 20px;
    }

    .btn-iskcon {
        width: 100%;
        max-width: 100%;
    }
}

/* Print styles */
@media print {

    .future-projects-section,
    .carousel-controls,
    .btn {
        display: none !important;
    }
}

/* youtub shorts */
/* .short-card{
    width: 80%;
} */
.short-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.15);
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(139, 0, 0, 0.3);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shorts-grid {

        grid-template-columns: 1fr !important;
        gap: 20px;
        /* width: 70% !important; */
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .stats-counter {
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem !important;
    }
}

.card .card-img-top {
    height: 270px !important;
}

/* ====== FORCE MOBILE FIX ====== */
@media (max-width: 768px) {

    /* CAROUSEL */
    #iskconCarousel .carousel-item {
        height: 170px !important;
    }

    #iskconCarousel .carousel-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Hide text */
    #iskconCarousel .carousel-caption h3,
    #iskconCarousel .carousel-caption p {
        display: none !important;
    }

    /* Center donate button */
    #iskconCarousel .carousel-caption {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        bottom: auto !important;
        right: auto !important;
        padding: 0 !important;
        text-align: center;
    }

    #iskconCarousel .carousel-caption .btn {
        font-size: 13px;
        padding: 6px 14px;
        border-radius: 30px;
    }
}

@media (max-width: 360px) {
    .carousel-item {
        height: 140px;
    }

    .carousel-item img {
        height: 140px !important;
        width: 100% !important;
        object-fit: cover;
    }

    .carousel-caption h3,
    .carousel-caption p {
        display: none;
    }

    .carousel-caption .btn {
        font-size: 12px;
        padding: 5px 12px;
    }
}

@media (min-width: 361px) and (max-width: 575px) {
    .carousel-item {
        height: 180px;
    }

    .carousel-item img {
        height: 180px !important;
        width: 100% !important;
        object-fit: cover;
    }

    .carousel-caption h3,
    .carousel-caption p {
        display: none;
    }

    .carousel-caption {
        text-align: center;
    }

    .carousel-caption .btn {
        font-size: 13px;
        padding: 6px 14px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .carousel-item {
        height: 250px;
    }

    .carousel-item img {
        height: 250px !important;
        width: 100% !important;
        object-fit: cover;
    }

    .carousel-caption h3 {
        font-size: 1rem;
    }

    .carousel-caption p {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .carousel-item {
        height: 320px;
    }

    .carousel-item img {
        height: 320px !important;
        width: 100% !important;
        object-fit: cover;
    }

    .carousel-caption h3 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .carousel-item {
        height: 380px;
    }

    .carousel-item img {
        height: 380px !important;
        width: 100% !important;
        object-fit: cover;
    }

    .carousel-caption h3 {
        font-size: 1.4rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
}

@media (min-width: 1200px) {
    .carousel-item {
        height: 420px;
    }

    .carousel-item img {
        height: 420px !important;
        width: 100% !important;
        object-fit: cover;
    }

    .carousel-caption h3 {
        font-size: 1.6rem;
    }

    .carousel-caption p {
        font-size: 1.1rem;
    }
}

/* ===== FINAL FIX : CAROUSEL IMAGE PROPER FIT ===== */
#iskconCarousel .carousel-item {
    height: 900px;
}

#iskconCarousel .carousel-item img {
    width: 100% !important;
    height: 700px !important;
    object-fit: contain !important;
    display: block;
}

#iskconCarousel {
    background: #000;
}