/* Hero start */
#hero {
    background: var(--section-background-2);
    position: relative;
}

.hero {
    padding: 1rem 0;
    align-items: center;
    gap: 60px;
    height: 100%;
}

.hero__carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    width: 100%;
    height: 79vh;
}

.slide_text h1{
    font-size: 1.5rem;
}
header h2{
    font-size: 1rem;
}
main h2{
    font-size: 1rem;
}

.hero__carousel-slide {
    background-size: cover;
    width: 100%;
    height: 100%;
    background-position: center;
    position: absolute;
    transition: transform 0.3s ease-out;
}

.hero__carousel-slide img {
    overflow: hidden;
    width: 1400px;
    height: 800px;
    border-radius: 20px;
    position: absolute;
}

.slide_text {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 10px;
    bottom: 0;
    right: 0;
    z-index: 3;
    color: var(--sub-text-color);
    width: 100%;
    height: 100%;
    border-radius: 120px;
    justify-content: center;
    text-align: center;
    font-size: 2rem;
    letter-spacing: 1.5px;
    transition: all 0.3s ease-in;
}

.slide1 {
    background-image: linear-gradient(rgb(0, 0, 0, 0.1), rgb(0, 0, 0, 0.8)), url(/assets/home/Campnstay_pic1.webp);
}

.slide2 {
    background-image: linear-gradient(rgb(0, 0, 0, 0.1), rgb(0, 0, 0, 0.8)), url(/assets/home/Campnstay_pic2.webp);
}

.slide3 {
    background-image: linear-gradient(rgb(0, 0, 0, 0.1), rgb(0, 0, 0, 0.8)), url(/assets/home/Campnstay_pic3.webp);
}

/* Hero Slider End */

.popular-destinations {
    padding: 40px 20px;
    background-color: var(--section-background-2);
    text-align: center;
}


.popular-destinations h3 {
    font-size: 32px;
    font-weight: 700;
}

.title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--primary-text-color);
}

.location-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.location-card {
    position: relative;
    width: 300px;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    display: flex;
    align-items: flex-end;
}

.location-card:hover {
    transform: scale(1.03);
}

.location-card .overlay {
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1));
    color: var(--section-background-2);
    text-align: center;
}

.overlay h3 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 12px;
}

/* Backgrounds for each location */
.rishikesh {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1)),
        url('/assets/home/campnstay_rishikesh.webp');
}

.mussoorie {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1)),
        url('/assets/home/campnstay_mussoorie.webp');
}

.haridwar {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1)),
        url('/assets/home/campnstay_haridwar.webp');
}

/* Marquee */

.color-marquee {
    background: var(--section-background-2);
    padding-top: 1.5rem;
}

.marquee-section {

    animation: marquee 20s linear infinite;
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;

}

.marquee-text {
    font-size: clamp(0.5rem);
    font-weight: bold;
    color: var(--primary-text-color);
    font-family: var(--secondary-font-family);
    letter-spacing: 1.5px;

}

.marquee-text .dot {
    color: var(--tertiary-text-color) !important;
    /* Green color */
    font-weight: bold;
    font-size: 1.5em;
    /* Bigger than text */
    line-height: 0;
    /* Keeps it vertically centered */
    vertical-align: middle;
    /* Aligns with text middle */
    padding: 0 12px;
    /* Extra space around */
}


/* FAQS */

.faq-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.faq-section h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    gap: 20px;
    align-items: center;
    /* Center align on page */
    margin-bottom: 30px;
}

.faq-grid details {
    background-color: #f3f3f3;
    border-radius: 12px;
    padding: 16px 20px;
    width: 100%;
    max-width: 700px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-grid summary {
    font-weight: 600;
    font-size: 15px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding-right: 20px;
}

.faq-grid summary::after {
    content: "⌄";
    font-size: 18px;
    position: absolute;
    right: 0;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.faq-grid details[open] summary::after {
    transform: rotate(180deg);
}

.faq-grid p {
    margin-top: 10px;
    color: #444;
    font-size: 14px;
    text-align: left;
}

.more-faqs {
    margin-top: 10px;
}

.more-faqs button {
    background-color: transparent;
    color: var(--tertiary-text-color);
    font-weight: 550;
    font-size: 16px;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

.hidden {
    display: none;
}

/* List Your Land */

.list-your-land {
    display: flex;
    justify-content: center;
    background-color: var(--section-background-2);
    position: relative;
    padding-block: 80px;
    overflow: hidden;
}

.list-container {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1)),
        url('/assets/home/Campnstay_listyourland.webp');
    background-size: cover;
    width: calc(100% - 40px);
    border-radius: 20px;
    max-width: 1000px;
    background-position: bottom;
    padding: 60px 40px;
    color: var(--section-background-1);
    display: flex;
    align-items: center;
    justify-content: start;
    height: 100%;
    min-height: 300px;
}

.text-content {
    max-width: 500px;
}

.text-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.text-content p {
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.6;
    color: var(--section-background-1);
}

/* From The Blog */

.blog-section {
    text-align: center;
    padding: 50px 20px;
}

.blog-section h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;

}

.slider-wrapper {
    position: relative;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
}

.slider {
    overflow: hidden;
}

.blog-container {
    display: flex;
    padding: 1rem;
    transition: transform 0.5s ease-in-out;
}

.blog-card {
    min-width: 32%;
    /* 3 visible cards */
    margin: 0 10px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: scale(1.03);
}

.blog-image {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--tertiary-text-color);
    color: var(--sub-text-color);
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
}

.date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--primary-text-color);
    color: var(--sub-text-color);
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 10px;
}

.blog-content {
    padding: 15px;
    text-align: left;
}

.blog-content h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.blog-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.read-btn {
    margin-top: 10px;
    color: var(--primary-text-color);
}

.slide-btn {
    position: absolute;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    background: var(--tertiary-text-color);
    color: var(--primary-text-color);
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
}

/* Optional: visual feedback on disabled arrows */
.slide-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.slide-btn.left {
    left: -10px;
}

.slide-btn.right {
    right: -10px;
}

/* Popup */
.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none; /* hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.4s ease-in-out;
}

/* Popup Box */
.popup-box {
    position: relative;
    background: #fff;
    padding: 25px 30px;
    border-radius: 16px;
    max-width: 420px;
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

.popup-box h2 {
    margin-bottom: 12px;
    color: var(--tertiary-text-color);
    font-size: 20px;
}

.popup-box p {
    font-size: 15px;
    margin-bottom: 20px;
    color: #333;
}

.popup-box button {
    background: var(--tertiary-text-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}
.popup-box button:hover {
    transform: translateY(-2px) scale(1.05);
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}