﻿/*=====================================================================*/
@media (max-width: 500px) {

    .hero-text {
        position: absolute;
        font-size: 0.5rem;
    }
}




@media (max-width: 500px) {

    .block1 {
        left: 10px;
        padding-left: 0;
    }
}



@media (max-width: 500px) {

    .block4 {
        right: 5px;
        padding-right: 0;
    }
}



@media (max-width: 500px) {




    .gallery-section:nth-child(even) {
        opacity: 1 !important; /* Always visible, no fading */
        transform: none !important; /* No transforms */
        position: relative !important; /* Normal document flow */
        height: auto !important;
        flex-direction: column !important;
        align-items: center;
        gap: 2rem;
        padding: 2rem 5%;
        margin-bottom: 3rem;
    }

    .gallery-section:nth-child(odd) {
        opacity: 1 !important; /* Always visible, no fading */
        transform: none !important; /* No transforms */
        position: relative !important; /* Normal document flow */
        height: auto !important;
        flex-direction: column !important;
        align-items: center;
        gap: 2rem;
        padding: 2rem 5%;
        margin-bottom: 3rem;
    }

        .gallery-section:nth-child(even) .image img, .gallery-section:nth-child(odd) .image img {
            margin-left: 0;
            margin-right: 0;
        }






    .gallery-container {
        height: auto !important;
        position: relative !important;
        /* Remove any overflow: hidden that might be causing issues */
        overflow: hidden !important;
    }

    .gallery-section {
        position: relative !important; /* stack normally */
        height: auto !important;
        flex-direction: column;
        align-items: center; /* center images/text */
        gap: 2rem;
        padding: 2rem 5%;
        margin-bottom: 3rem; /* Add spacing between sections */
    }

    .image {
        width: 100%;
        margin: 0;
    }

        .image img {
            width: 100%;
            max-width: 400px;
            height: auto;
            margin: 0 auto !important; /* Override desktop margins */
        }

    .text {
        margin: 0;
        text-align: center;
        width: 100%;
    }

        .text h3 {
            font-size: 2.6rem !important;
            margin-right: 3px;
            margin-left: 3px;
        }
}


@media (max-width: 500px) {
    .gallery-section2 {
        display: none !important;
    }
}

/* Make navbar smaller on phones */
@media (max-width: 576px) {
    main #mainNavbar {
        width: 100vw;
        margin: 0.5rem auto; /* center it */
        padding: 0.1rem 0.5rem;
        border-radius: 20px;
    }


    body {
        overflow-x: hidden;
    }

    main #mainNavbar .navbar-brand {
        font-size: 1.3rem;
    }

    main #mainNavbar .nav-link {
        font-size: 1rem;
        padding: 0.25rem 0.5rem;
    }

    main .navbar-toggler {
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 576px) {
    .hero {
        width: 90%; /* narrower on small screens */
    }

        .hero img {
            max-height: 50vh;
        }

        .hero .hero-text h1 {
            font-size: 1.5rem;
        }

        .hero .hero-text p {
            font-size: 1rem;
        }
}

@media (max-width: 576px) {


    .timeline {
        margin: 8rem auto;
        width: 100%;
        max-width: 400px;
        gap: 5rem !important;
        align-items: center;
        display: flex;
        flex-direction: column;
        background-color: #FFD700; /* solid white */
        color: #000; /* black text */
        padding: 2rem;
        min-height: 100vh;
        position: relative;
        z-index: 1;
    }

        /* vertical line */
        .timeline::before {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            left: 50%;
            width: 3px;
            background: #fff;
            transform: translateX(-50%);
        }

    .timeline-item {
        position: relative;
        text-align: center;
        font-size: 1.1rem;
        line-height: 1.5;
        color: #fff;
    }

        /* circles (inactive) */
        .timeline-item::before {
            content: "";
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 16px;
            height: 16px;
            background: gray;
            border-radius: 50%;
            z-index: 1;
            transition: all 0.3s ease;
        }

        /* active circle */
        .timeline-item.active::before {
            background: #fff;
            transform: translateX(-50%) scale(1.3);
            box-shadow: 0 0 10px #fff;
        }
}

@media (max-width: 500px) {


    .timeline {
        gap: 5rem !important;
        margin: 2rem auto !important; /* reduce top/bottom margin */
    }
}



.mobile-timeline {
    display: block !important;
    position: relative;
    background: #000000;
    overflow: hidden;
    width: 100%;
    z-index: 10;
    min-height: 400vh; /* Total height for all 4 steps */
}

.timeline-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #000000;
    position: relative;
}

.timeline-step {
    height: 100vh;
    position: relative;
}

/* Create ONE continuous timeline line for the entire mobile timeline */
.mobile-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 10%;
    bottom: 10%;
    width: 4px;
    background: linear-gradient(to bottom, #ffb347, #185a37);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-line {
    display: none; /* Hide the individual lines since we're using the ::before pseudo-element */
}

.timeline-dot {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffb347;
    border: 3px solid #185a37;
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.3s ease;
    top: 50%; /* Center each dot in its container */
    margin-top: -10px; /* Offset for perfect centering */
}

    /* Remove the individual positioning since dots are now centered in their containers */
    .timeline-dot:nth-child(2),
    .timeline-dot:nth-child(3),
    .timeline-dot:nth-child(4),
    .timeline-dot:nth-child(5) {
        top: 50%;
    }

.timeline-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #ffb347;
    border-radius: 15px;
    padding: 2rem;
    max-width: 80%;
    opacity: 0;
    scale: 0.8;
    z-index: 3;
    backdrop-filter: blur(10px);
}

    .timeline-overlay.active {
        opacity: 1;
    }

    .timeline-overlay h2 {
        color: #ffb347;
        font-family: "Cinzel Decorative", serif;
        font-size: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .timeline-overlay p {
        color: #fff;
        text-align: center;
        line-height: 1.6;
    }

.timeline {
    min-height: 50vh;
}

}

/* Desktop only styles */
@media (min-width: 769px) {
    .mobile-timeline {
        display: none !important;
    }
}

/* Mobile only styles */
@media (max-width: 768px) {
    .mobile-timeline {
        display: block !important;
    }
}

@media (max-width: 500px) {
    .kalaam {
        padding: 10px 15px; /* smaller left/right padding for phone */
        margin: 15px;
        max-width: calc(100% - 30px); /* optional: reduce margin too */
    }
