/* Global Styles */
body {
    font-family: 'Figtree', sans-serif;
    background-color: #f8f9fa;
}



/* Hero Section */
.hero {
    height: 100vh;
    /* Reduced opacity to 0.4 for a lighter overlay */
    background-image: linear-gradient(rgba(139, 0, 0, 0.4), rgba(139, 0, 0, 0.4)), url('/images/BGhome.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    /* Eliminate default margin if any */
    margin-top: 0;
}

.hero-title-img {
    max-width: 600px;
    width: 100%;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.hero-description {
    max-width: 800px;
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* Parwa Section */
.parwa-section {
    background-color: #f4f6f8;
    min-height: 80vh; /* Ensure it takes up space */
}

.section-title {
    font-weight: 800;
    font-size: 2.5rem;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.parwa-card {
    border: none;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05); /* Softer, broader shadow */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: linear-gradient(145deg, #ffffff, #f9f9f9);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space out title and button */
    align-items: center;
    max-width: 400px; 
    margin: 0 auto;
    z-index: 1;
}

/* Add a subtle decorative top border */
.parwa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #8b0000, #d32f2f, #ff5252);
    border-radius: 24px 24px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.parwa-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(139,0,0,0.15); /* Tinted shadow on hover */
}

.parwa-card:hover::before {
    opacity: 1;
}

.parwa-card .card-title {
    color: #1a1a1a;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

/* Decorative underline for title */
.parwa-card .card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #8b0000;
    border-radius: 3px;
}

.parwa-card .card-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2rem;
    flex-grow: 1; /* Pushes button to bottom */
}

.parwa-card .btn-danger,
.parwa-section .btn-danger {
    background-color: #8b0000; /* Dark red */
    border-color: #8b0000;
    border-radius: 50px; /* Rounded pill buttons */
    padding: 10px 30px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.parwa-card .btn-danger:hover,
.parwa-section .btn-danger:hover {
    background-color: #a50000;
    border-color: #a50000;
}

/* RESPONSIVE HERO & PARWA */
@media (max-width: 991px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem !important;
    }

    .hero-title-img {
        max-width: 80%;
    }

    .hero-description {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    .parwa-card {
        aspect-ratio: auto;
        padding: 2rem 1.5rem !important;
        min-height: 250px;
    }

    .parwa-card .card-title {
        font-size: 1.2rem;
    }

    .parwa-card .card-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}
