/**
 * File: css/departments.min.css
 * Styling for the Medical Specialties page
 */

.departments-page-main {
    background-color: #ffffff;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #333333;
}

/* 1. Hero Section */
.departments-hero {
    position: relative;
    height: 520px;
    margin-top: 120px; /* Push hero down below the fixed top bar and navbar */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    animation: kenBurnsSlow 20s ease-in-out infinite alternate;
}

@keyframes kenBurnsSlow {
    0% {
        transform: scale(1.02) translate(0, 0);
    }
    100% {
        transform: scale(1.08) translate(-1%, -1%);
    }
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(6, 26, 53, 0.95) 0%, rgba(11, 34, 64, 0.75) 50%, rgba(6, 26, 53, 0.95) 100%);
    z-index: 2;
}

.departments-hero-container {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* Equal spacing requested */
}

.hero-title {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(6, 26, 53, 0.4);
    animation: fadeUpReveal 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 650px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(6, 26, 53, 0.3);
    opacity: 0;
    animation: fadeUpReveal 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s forwards;
}

.hero-ctas {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    opacity: 0;
    animation: fadeUpReveal 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.4s forwards;
    margin-top: 0.5rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
    cursor: pointer;
}

.hero-btn.btn-primary {
    background: #008080;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.25);
    border: 2px solid transparent;
}

.hero-btn.btn-primary:hover {
    background: #006666;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 102, 0.35);
}

.hero-btn.btn-secondary {
    background: transparent;
    color: #ffffff !important;
    border: 2px solid #ffffff;
}

.hero-btn.btn-secondary:hover {
    background: #ffffff;
    color: #0b2240 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

/* Animations */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Containers */
.departments-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* 2. Introduction Section */
.intro-section {
    padding: 5rem 0;
    background: #ffffff;
    text-align: center;
}

.section-lead-text {
    font-size: 1.25rem;
    line-height: 1.65;
    color: #444444;
    max-width: 900px;
    margin: 0 auto 4rem auto;
    font-weight: 500;
}

.trust-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
}

.trust-card {
    background: #ffffff;
    border: 1px solid rgba(11, 34, 64, 0.05);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(11, 34, 64, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
}

.trust-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(11, 34, 64, 0.08);
    border-color: rgba(0, 128, 128, 0.15);
}

.trust-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.trust-card-title {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0b2240;
    margin: 0 0 0.85rem 0;
}

.trust-card-desc {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #666666;
    margin: 0;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4.5rem auto;
}

.section-title {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0b2240;
    margin: 0 0 0.85rem 0;
}

.section-title span {
    color: #008080;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #666666;
    margin: 0;
}

/* 3. Medical Departments Grid */
.departments-grid-section {
    padding: 6rem 0;
    background: #f4f9fa; /* Light teal tint background */
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

.dept-card {
    background: #ffffff;
    border-radius: 24px;
    border: 3px solid #ffffff;
    box-shadow: 0 10px 30px rgba(6, 26, 53, 0.04);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.dept-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(6, 26, 53, 0.1), 0 0 20px rgba(0, 128, 128, 0.08);
    border-color: rgba(0, 128, 128, 0.15);
}

.dept-card-inner {
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.dept-icon-box {
    width: 65px;
    height: 65px;
    background: rgba(0, 128, 128, 0.06);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.75rem;
    transition: all 0.3s ease;
}

.dept-card:hover .dept-icon-box {
    background: #008080;
    color: #ffffff;
    transform: scale(1.08);
}

.dept-name {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0b2240;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.dept-desc {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #555555;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.dept-lead-doctor {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(11, 34, 64, 0.06);
    margin-bottom: 0.85rem;
}

.lead-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #777777;
    letter-spacing: 0.5px;
}

.lead-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #008080;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lead-name:hover {
    color: #0b2240;
}

.dept-meta-line {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dept-doctors-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666666;
}

.dept-view-btn {
    font-size: 0.92rem;
    font-weight: 700;
    color: #008080;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.dept-view-btn .arrow {
    transition: transform 0.3s ease;
}

.dept-card:hover .dept-view-btn {
    color: #0b2240;
}

.dept-card:hover .dept-view-btn .arrow {
    transform: translateX(4px);
}

/* 4. Featured Specialists Section */
.specialists-section {
    padding: 6rem 0;
    background: #ffffff;
}

.specialists-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.specialist-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(11, 34, 64, 0.03);
    border: 1px solid rgba(11, 34, 64, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
}

.specialist-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(11, 34, 64, 0.08), 0 0 15px rgba(0, 128, 128, 0.08);
    border-color: rgba(0, 128, 128, 0.12);
}

.specialist-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.specialist-portrait {
    position: relative;
    width: 100%;
    padding-top: 105%; /* Slightly tall image container */
    background: #f4faf9;
    overflow: hidden;
    border-bottom: 3px solid rgba(0, 128, 128, 0.08);
}

.specialist-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.specialist-placeholder-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.specialist-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.specialist-badge {
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #008080;
    background: rgba(0, 128, 128, 0.06);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.specialist-name {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0b2240;
    margin: 0;
}

.specialist-specialty {
    font-size: 0.85rem;
    color: #666666;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

.specialist-qualification {
    font-size: 0.8rem;
    color: #888888;
    margin: 0;
}

.specialist-timings {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666666;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.specialist-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    background: #fafcfc;
    border-top: 1px solid #f0f0f0;
}

.specialist-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.specialist-btn.btn-outline {
    background: transparent;
    color: #008080 !important;
    border: 1px solid #008080;
}

.specialist-btn.btn-outline:hover {
    background: #008080;
    color: #ffffff !important;
}

.specialist-btn.btn-primary {
    background: #008080;
    color: #ffffff !important;
    border: 1px solid transparent;
}

.specialist-btn.btn-primary:hover {
    background: #0b2240;
}

/* 5. Appointment CTA Section */
.appointment-cta-section {
    position: relative;
    padding: 6.5rem 0;
    background: url('../assets/images/hospital2-scaled.jpeg') no-repeat center center/cover;
    box-sizing: border-box;
}

.cta-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 26, 53, 0.95) 0%, rgba(11, 34, 64, 0.85) 100%);
    z-index: 1;
}

.appointment-cta-section .departments-container {
    position: relative;
    z-index: 2;
}

.cta-box {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.cta-title {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 2.85rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    line-height: 1.15;
}

.cta-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin: 0 0 2.5rem 0;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta-btn {
    padding: 0.9rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn.btn-emergency {
    background: #c92c2c;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(201, 44, 44, 0.3);
}

.cta-btn.btn-emergency:hover {
    background: #ffffff;
    color: #c92c2c !important;
    transform: translateY(-2px);
}

.cta-btn.btn-whatsapp {
    background: #25D366;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.cta-btn.btn-whatsapp:hover {
    background: #ffffff;
    color: #25D366 !important;
    transform: translateY(-2px);
}

/* Quick Booking Form Card */
.quick-booking-form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    box-sizing: border-box;
}

.form-title {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0b2240;
    margin: 0 0 1.5rem 0;
    border-bottom: 2px solid rgba(0, 128, 128, 0.1);
    padding-bottom: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-select {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    color: #333333;
    border: 1.5px solid #dcdcdc;
    border-radius: 10px;
    background-color: #fafafa;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-select:focus {
    border-color: #008080;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.08);
}

.form-submit-btn {
    width: 100%;
    padding: 0.95rem;
    background: #008080;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.2);
}

.form-submit-btn:hover {
    background: #0b2240;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(11, 34, 64, 0.25);
}

/* Stagger animations for list items */
.fade-up-reveal {
    animation: fadeUpReveal 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.fade-up-item {
    opacity: 0;
    animation: fadeUpReveal 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeUpReveal {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Queries */
@media (max-width: 1200px) {
    .departments-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .specialists-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .departments-hero {
        margin-top: 110px;
        height: 480px;
    }
    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .specialists-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .cta-box {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-title {
        font-size: 2.75rem;
    }
    .cta-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 576px) {
    .departments-hero {
        margin-top: 100px;
        height: 450px;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    .hero-btn {
        width: 100%;
    }
    .departments-grid {
        grid-template-columns: 1fr;
    }
    .specialists-grid {
        grid-template-columns: 1fr;
    }
    .quick-booking-form-card {
        padding: 1.5rem;
    }
    .cta-title {
        font-size: 1.8rem;
    }
}
