﻿body {
    *

{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/*html, body {
  overflow-x: hidden;
  width: 100%;
}*/

/* HERO SECTION */
.hero-section {
    min-height: 70vh;
    height: auto;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://tourism.bihar.gov.in/Content/Department/Static/Attractions/MahabodhiTemple.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

    .hero-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom right, rgba(255,255,255,0.75), rgba(240,230,210,0.55), rgba(210,180,140,0.35));
        backdrop-filter: blur(4px);
        z-index: 1;
    }

/* CONTAINER – wider, less side waste */
.hero-container {
    position: relative;
    z-index: 2;
    width: 94%; /* ← increased from 90% */
    max-width: 1680px; /* slightly larger cap for big screens */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 3.5vw, 5rem); /* smaller min gap */
    padding: 3vh 1.5vw; /* very little horizontal padding */
}

/* TEXT SIDE */
.hero-text {
    flex: 0 0 46%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}






@keyframes textflow {
    from {
        background-position: 200% center;
    }

    to {
        background-position: -200% center;
    }
}

@keyframes scatterAnim {
    0% {
        opacity: 1;
        transform: scale(1) translate(0,0);
    }

    100% {
        opacity: 0;
        transform: scale(0) translate(var(--dx), var(--dy));
    }
}
.hero-text h1 {
    font-size: clamp(4.5rem, 7.5vw, 8.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, #800000 10%, #a52a2a 30%, #c71585 50%, #a52a2a 70%, #800000 90%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textflow 5s linear infinite;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
    text-align: center;
   
}


.tag {
    font-size: clamp(1.8rem, 3.2vw, 3.5rem);
    font-weight: 700;
    color: #3c2a1a;
    margin-bottom: 1rem;
    text-align: center;
}

.desc {
    font-size: clamp(1.05rem, 1.4vw, 1.45rem);
    line-height: 1.65;
    color: #4a3726;
    max-width: 92ch;
    text-align: center;
}

/* SLIDER SIDE – fills more horizontally */
.hero-slider-wrapper {
    flex: 0 0 54%; /* ← slightly wider slider area */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    width: 100%;
    max-width: 860px; /* ← increased from 780px */
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    border-radius: 1.8vw;
    box-shadow: 0 5px 10px rgb(252 205 205);
    background: #0a0a0a;
}

/* Slides & caption */
.slides, .slide {
    position: absolute;
    inset: 0;
}

.slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.4s ease, transform 1.7s ease;
}

    .slide.active {
        opacity: 1;
        transform: scale(1);
    }

.text-card {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82), transparent);
    padding: 4.5% 5.5%;
    z-index: 5;
}

.caption {
    font-size: clamp(1.15rem, 2vw, 1.9rem);
    font-weight: 800;
    color: #ffeb3b;
    line-height: 1;
}

/* MOBILE / TABLET – centered + fuller width */
@media (max-width: 1100px) {
    .hero-section {
        min-height: 75vh;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
        justify-content: center;
        gap: 2.8rem;
        padding: 5vh 3vw 4vh; /* reasonable side padding on mobile */
        width: 96%; /* even wider on smaller screens */
    }

    .hero-text {
        width: 100%;
        max-width: 1000px;
    }

        .hero-text h1,
        .tag,
        .desc {
            text-align: center;
        }

        .hero-text h1 {
            font-size: clamp(3.8rem, 10vw, 6.2rem);
            margin-bottom: 0.8rem;
        }

    .tag {
        font-size: clamp(1.9rem, 5vw, 3rem);
        margin-bottom: 0.8rem;
    }

    .desc {
        font-size: clamp(1rem, 3.5vw, 1.35rem);
        max-width: 92%;
        margin: 0 auto;
    }

    .hero-slider-wrapper {
        width: 100%;
        max-width: 1000px;
    }

    .hero {
        aspect-ratio: 16 / 9;
        border-radius: 5vw;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-container {
        width: 97%;
        padding: 6vh 4vw 4vh;
        gap: 2.5rem;
    }
}

/* Particles unchanged */
.particle {
    position: absolute;
    width: 0.45vw;
    height: 0.45vw;
    background: #ffeb3b;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 12px #ffeb3b;
}

.caption span {
    display: block;
    color: #00fff3;
    font-weight: 500;
    margin-top: 0px;
    font-size: clamp(1.2rem, 1.1vw, 1.1rem);
}

@keyframes textflow {
    from {
        background-position: 200% center;
    }

    to {
        background-position: -200% center;
    }
}

@keyframes scatterAnim {
    0% {
        opacity: 1;
        transform: scale(1) translate(0,0);
    }

    100% {
        opacity: 0;
        transform: scale(0) translate(var(--dx), var(--dy));
    }
}
/* ===== GLOBAL FIX ===== */
* {
    box-sizing: border-box;
}

/* ===== SECTION BACKGROUND ===== */
.about-bihar-section {
    width: 100%;
    padding: 80px 0;
    background: linear-gradient(rgba(245,247,250,0.96), rgba(245,247,250,0.96)), url('images/bihar-pattern-bg.png');
    background-repeat: repeat;
    background-size: 240px;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

/* ===== CONTAINER - Made full-width with minimal side padding ===== */
.about-container {
    width: 100%;
    max-width: none; /* Remove 1400px cap */
    margin: 0 auto;
    padding: 0 15px; /* Small padding: ~0.4 inch each side */
}

/* Reduce padding further on very large screens for closer-to-edge feel */
@media (min-width: 1200px) {
    .about-container {
        padding: 0 20px; /* Adjust to 10–30px as needed; 20px ≈ 0.5–0.8 inch total gap */
    }
}

/* ===== HEADING ===== */
.about-heading {
    text-align: center;
    margin-bottom: 5px;
}

    .about-heading h2 {
        font-size: 42px;
        font-weight: 800;
        color: #0f2c5e;
        margin-bottom: 12px;
    }

    .about-heading p {
        font-size: 18px;
        color: #4a5568;
        max-width: 800px;
        margin: auto;
        line-height: 1.6;
    }

/* ===== GRID ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    padding-left: 80px;
    padding-right: 80px;
}


/* ===== CARD ===== */
.about-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border-color: #12cdcd;
    border-style: solid;
    border-width: 1px;
}

    .about-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 35px rgba(0,0,0,0.12);
    }

/* ===== IMAGE WRAPPER (NO CUTTING) ===== */
.card-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(249 171 0);
}

    .card-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain; /* Ensures full image visible without distortion */
    }

/* ===== CONTENT ===== */
.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

    .card-content h3 {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 15px;
    }

    .card-content p {
        font-size: 15px;
        color: #555;
        line-height: 1.7;
        margin-bottom: 25px;
        flex-grow: 1;
    }

/* ===== BUTTON ===== */
.card-btn {
    padding: 10px 25px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s ease;
    border: 2px solid;
}

/* COLOR VARIANTS */
.blue h3 {
    color: #1e40af;
}

.blue .card-btn {
    border-color: #1e40af;
    color: #1e40af;
}

    .blue .card-btn:hover {
        background: #1e40af;
        color: #fff;
    }

.orange h3 {
    color: #c2410c;
}

.orange .card-btn {
    border-color: #c2410c;
    color: #c2410c;
}

    .orange .card-btn:hover {
        background: #c2410c;
        color: #fff;
    }

.green h3 {
    color: #15803d;
}

.green .card-btn {
    border-color: #15803d;
    color: #15803d;
}

    .green .card-btn:hover {
        background: #15803d;
        color: #fff;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-heading h2 {
        font-size: 32px;
    }

    .card-image {
        height: 200px;
    }

    .about-container {
        padding: 0 15px; /* Keep small on mobile too */
    }
}
}
