/* ==== Utils specific to home ==== */
.ml-2 {
    margin-left: 0.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.ml-auto {
    margin-left: auto;
}

.mt-3 {
    margin-top: 1.5rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ==== HERO SECTION ==== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background-image: url('../images/hospital_hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 68, 118, 0.9) 0%, rgba(15, 68, 118, 0.7) 40%, rgba(255, 255, 255, 0.1) 100%);
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    color: var(--text-white);
    gap: 4rem;
}

.hero-text {
    max-width: 650px;
}

.hero-text .badge {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--text-white);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-text h1 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-white);
}

.hero-buttons .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
}

/* Hero Cards */
.hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.h-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: transform var(--transition-normal), background var(--transition-normal);
}

.h-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.h-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.h-card h3 {
    color: var(--text-white);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.h-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* ==== ABOUT / WELCOME SECTION ==== */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.image-wrapper {
    position: relative;
    z-index: 1;
}

.rounded-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-light);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: var(--text-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--bg-color);
}

.experience-badge .num {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-list {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-list i {
    color: var(--secondary);
    font-size: 1.25rem;
}

/* ==== SERVICES SECTION ==== */
.services-section {
    background-color: var(--surface-color);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(15, 68, 118, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 2rem;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--text-white);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link i {
    transition: transform var(--transition-fast);
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* ==== CTA SECTION ==== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 5rem 1rem;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PC9yZWN0Pgo8Y2lyY2xlIGN4PSIyIiBjeT0iMiIgcj0iMiIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIj48L2NpcmNsZT4KPC9zdmc+') repeat;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 992px) {
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-overlay {
        background: linear-gradient(180deg, rgba(15, 68, 118, 0.8) 0%, rgba(15, 68, 118, 0.9) 100%);
    }

    .hero-content {
        margin-top: 2rem;
    }
}

/* ==== REVIEWS SECTION ==== */
.reviews-section {
    background-color: var(--bg-color);
    /* Creates a subtle zebra stripe effect against the white services section */
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 68, 118, 0.1);
    /* Subtle primary color border on hover */
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-sm);
}

.reviewer-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.stars {
    color: #fbbc04;
    /* Official Google Yellow */
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.google-icon {
    color: #4285F4;
    /* Official Google Blue */
    font-size: 1.5rem;
    opacity: 0.8;
}

.review-text {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.7;
    font-size: 0.95rem;
}

.review-text::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 2rem;
    color: var(--primary-light);
    opacity: 0.2;
    position: absolute;
    margin-top: -10px;
    margin-left: -15px;
}

/* ==== TEAM SECTION ==== */
.team-section {
    background-color: var(--surface-color);
    /* Matches the Services section background */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.team-img-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    /* Keeps all images uniformly sized */
    overflow: hidden;
    position: relative;
    background-color: var(--primary-light);
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--transition-slow);
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.05);
}

.team-info {
    padding: 1.5rem;
    text-align: center;
    background: var(--bg-color);
}

.team-info h4 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.team-specialty {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}