/* Homepage Styles */

/* Hero Section */
.home-hero {
    height: 85vh;
    min-height: 500px;
    background: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?w=1600&h=900&fit=crop') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
}

.hero-text-box {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.hero-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #2c3e50;
    margin-bottom: 20px;
}

.hero-sub-title {
    font-size: 1.25rem;
    color: #E31E24;
    margin-bottom: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Intro Section */
.home-intro {
    padding: 100px 0;
    background: #fff;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.intro-title-box h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #2c3e50;
    border-left: 6px solid #E31E24;
    padding-left: 30px;
}

.intro-text-box p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Home Care CTA */
.home-care-cta {
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)), url('https://images.unsplash.com/photo-1576765608535-5f04d1e3f289?w=1600&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: white;
}

.home-care-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.home-care-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Booking Section */
.booking-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.booking-card {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.booking-card h2 {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 800;
    color: #2c3e50;
}

.booking-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #E31E24;
    outline: none;
}

.gender-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.gender-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.full-width {
    grid-column: span 2;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #E31E24;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #c41a1f;
}

/* Department Carousel */
.department-carousel-section {
    padding: 100px 0;
    background: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 0;
}

.carousel-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.dept-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.dept-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dept-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    text-align: center;
}

.dept-info h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.dept-card:hover img {
    transform: scale(1.1);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-main-title {
        font-size: 2.5rem;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .carousel-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .booking-form {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}