/* --- page Specific CSS --- */

/* Hero Slider Section (New) */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: flex;
}

.hero-slider-slides {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    /* Smooth transition for slides */
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.0);
    /* Dark overlay for text readability */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
    z-index: 10;
    /* Ensure overlay is above slides */
}

.hero-overlay h1 {
    margin-top: 30px;
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: fadeInDown 1s ease-out;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
}

.hero-overlay p {
    font-size: 1.5em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
}

.hero-ctas {
    display: flex;
    gap: 10px;
    animation: zoomIn 1s ease-out 0.6s;
    animation-fill-mode: both;
}

.hero-ctas .cta-button {
    background-color: #3498dba0;
    /* Blue */
    color: rgb(255, 255, 255);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-ctas .cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

.hero-trust-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 11;
    /* Above overlay */
}

.hero-slider-controls {
    position: absolute;
    bottom: 40px;
    /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 11;
    /* Above overlay */
}

.hero-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-dot.active {
    background-color: #3498db;
    /* Active dot color */
    transform: scale(1.2);
}

.hero-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Why Chaurah Darshan Section */
.why-churah-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    gap: 40px;
}

.why-churah-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.why-churah-content h2 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.why-churah-content p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    text-align: left;
    word-break: break-all;
}

.why-churah-image {
    flex: 0 0 auto;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.why-churah-image img {
    width: 100%;
    height: auto;
    display: block;
}

.why-churah-content .learn-more-btn {
    background-color: #2ecc71;
    /* Green */
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.learn-more-btn{
    display: flex;
    align-self: center;
    justify-self: center;
}

.why-churah-content .learn-more-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

/* Explore Offerings Section (Tabs) */
.offerings-section {
    padding: 60px 20px;
    background-color: #ecf0f1;
    text-align: center;
}

.offerings-section h2 {
    font-size: 2.8em;
    color: #2c3e50;
    margin-bottom: 40px;
}

.tabs-container {
    max-width: 900px;
    margin: 0 auto 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    flex: 1;
    padding: 18px 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #555;
    background-color: #f0f4f7;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tab-button.active {
    background-color: #3498db;
    color: white;
    border-bottom: 3px solid #2980b9;
}

.tab-button:hover:not(.active) {
    background-color: #e0e6eb;
}

.tab-content {
    padding: 30px 20px;
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

.chaurah-homestay{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.book-room-btn {
    background-color: #2ecc71;
    /* Green */
    color: white;
    padding: 12px 25px;
    margin-top: 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.book-room-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
    margin-left: -8px;
}

.item-card {
    display: flex;
    flex-direction: column;
    height: 500px;
    background-color: #fff;
    min-width: 350px;
    max-width: 350px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.item-card img {
    width: 100%;
    height: 200px;
    /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.item-card-content {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    padding: 20px;
    max-height: 300px;
    min-height: 300px;
}

.item-card-content h3 {
    font-size: 1.4em;
    color: #34495e;
    margin-bottom: 10px;
}

.item-card-content p {
    flex-grow: 1;
    overflow: hidden;
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.item-card-content .price-info {
    font-weight: bold;
    color: #28a745;
    /* Green for price */
    font-size: 1.1em;
    margin-bottom: 15px;
}

.item-card-content .item-cta-button {
    display: flex;
    justify-self: left baseline;
    align-self: left baseline;
    max-width: fit-content;
    bottom: 10px;
    background-color: #007bff;
    color: white;
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s ease;   
}

.item-card-content .item-cta-button:hover {
    background-color: #0056b3;
}

.offerings-section .overall-cta {
    background-color: #e67e22;
    /* Orange */
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 0px;
    display: inline-block;
}

.offerings-section .overall-cta:hover {
    background-color: #d35400;
    transform: translateY(-3px);
}

/* Affiliate Opportunity Section */
.affiliate-opportunity-section {
    background-color: #34495e;
    /* Dark blue-grey */
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.affiliate-opportunity-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/homeEarn.png');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    /* Subtle background image */
    z-index: 1;
}

.affiliate-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.affiliate-content h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #2ecc71;
    /* Green for emphasis */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 20px;    
}

.affiliate-content p {
    font-size: 1.3em;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
}

.affiliate-content .affiliate-cta-button {
    background-color: #f1c40f;
    /* Yellow */
    color: #34495e;
    /* Dark text on yellow */
    padding: 18px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3em;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.affiliate-content .affiliate-cta-button:hover {
    background-color: #f39c12;
    /* Darker yellow */
    transform: translateY(-5px);
    color: white;
}

/* Social Proof Section (Testimonials) */
.social-proof-section {
    padding: 60px 20px;
    background-color: #f0f4f7;
    text-align: center;
}

.social-proof-section h2 {
    font-size: 2.8em;
    color: #2c3e50;
    margin-bottom: 40px;
}

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

.testimonial-card {
    margin-bottom: 10px;
    background-color: #fff;
    padding: 20px;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
    position: relative;
    border-top: 5px solid #3498db;
}

.testimonial-card i.fas.fa-quote-left {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2.5em;
    color: #3498db;
    opacity: 0.2;
}

.testimonial-card p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
    padding-top: 15px;
    /* Space for quote icon */
}

.testimonial-card .author-info {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1em;
}

.testimonial-card .author-info span {
    display: block;
    font-size: 0.9em;
    color: #777;
    font-weight: normal;
}

/* General Responsive Adjustments */
@media (max-width: 992px) {
    .hero-overlay h1 {
        font-size: 2.8em;
    }

    .hero-overlay p {
        font-size: 1.3em;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    main{
        padding: 1px;
    }

    .hero-slider-section { 
        height: 70vh;
    }

    .hero-overlay h1 {
        font-size: 2.2em;
    }

    .hero-overlay p {
        font-size: 1.1em;
    }

    .why-churah-section {
        flex-direction: column;
        padding: 40px 15px;
    }

    .why-churah-content,
    .why-churah-image {
        max-width: 100%;
    }

    .offerings-section h2,
    .social-proof-section h2,
    .affiliate-content h2 {
        font-size: 2.2em;
    }

    .affiliate-content p {
        font-size: 1.1em;
    }

    .affiliate-content .affiliate-cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    .item-grid {
        grid-template-columns: 1fr;
        /* Stack cards on smaller screens */
    }
}

@media (max-width: 480px) {
    .hero-slider-section {
        height: 60vh;
    }

    .hero-overlay h1 {
        padding: 10px;
        font-size: 1.3em;
        margin-top: 1px;
        border-radius: 10px;
    }

    .hero-overlay p {
        font-size: 0.9em;
        border-radius: 10px;
    }

    .hero-ctas{
        display: flex;
        flex-direction: row;
    }
    
    .hero-ctas .cta-button {
        padding: 12px 5px;
        font-size: 0.9em;
    }

    .hero-trust-badge {
        bottom: 8px;
        right: 5px;
        padding: 5px;
        font-size: 0.8em;
    }

    .offerings-section{
        padding: 0;
    }

    .tab-button {
        font-size: 1em;
        padding: 15px 15px;
    }

    .item-card-content{
        padding: 10px;
    }

    .item-card-content h3 {
        font-size: 1.2em;
    }

    .item-card-content .price-info {
        font-size: 1em;
    }

    .item-card-content .item-cta-button {
        padding: 12px 30px;
        font-size: 0.85em;
    }
}