/* ==========================================================================
   Departments & General Medicine Styles (general-medicine.php)
   Design System: Instrument Sans, Figma Spec Matched
   ========================================================================== */

/* 1. Global Page Container */
.gr-dept-page-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 80px;
    padding-right: 80px;
    box-sizing: border-box;
}

/* 2. Intro Section Below Banner */
.gr-dept-intro-section {
    width: 100%;
    background-color: #FFFFFF;
    padding: 70px 0 50px 0;
    box-sizing: border-box;
    position: relative;
}

.gr-dept-intro-row {
    max-width: 1380px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    margin-bottom: 0;
    padding-bottom: 0;
}

.gr-dept-main-title {
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: clamp(32px, 3.6vw, 54px);
    font-weight: 400;
    line-height: 1.12;
    color: #000000;
    margin: 0 0 28px 0;
    letter-spacing: -0.02em;
}

.gr-dept-title-blue {
    color: var(--gr-primary-blue, #2A3EC0);
    font-weight: 400;
}

.gr-dept-desc-p {
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: clamp(15px, 1.05vw, 17px);
    font-weight: 400;
    line-height: 1.68;
    color: #2B2B2B;
    margin-bottom: 22px;
    letter-spacing: -0.005em;
}

.gr-dept-desc-p:last-child {
    margin-bottom: 0;
}

.gr-dept-illustration-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.gr-dept-illustration-img {
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* 3. Attached Scope of the Department Card */
.gr-scope-card {
    background-color: #F6F7FE;
    border: 1px solid #ECEEF8;
    padding: 48px 64px;
    box-sizing: border-box;
}

.gr-scope-title {
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: clamp(28px, 2.6vw, 42px);
    font-weight: 400;
    color: var(--gr-primary-blue, #2A3EC0);
    margin: 0 0 20px 0;
    letter-spacing: -0.01em;
}

.gr-scope-subtext {
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    color: #2B2B2B;
    max-width: 1100px;
    margin: 0 auto 38px auto;
    letter-spacing: -0.005em;
}

.gr-scope-grid {
    width: 100%;
}

.gr-scope-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gr-scope-bullet-list li {
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: 15px;
    font-weight: 500;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.005em;
}

.gr-bullet-dot {
    width: 4px;
    height: 4px;
    background-color: #000000;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* 4. Doctors Available Section */
.gr-dept-doctors-section {
    width: 100%;
    background-color: #FFFFFF;
    padding: 20px 0 70px 0;
    box-sizing: border-box;
}

.gr-doctors-section-title {
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: clamp(28px, 2.6vw, 42px);
    font-weight: 400;
    color: var(--gr-primary-blue, #2A3EC0);
    margin: 0 0 40px 0;
    letter-spacing: -0.01em;
}

.gr-doctors-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px 24px;
    align-items: start;
    margin-top: 0;
}

.gr-doctor-item {
    display: flex;
    justify-content: center;
    width: 100%;
}

.gr-doctor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 195px;
    margin: 0 auto;
    padding: 0;
}

.gr-doctor-avatar-wrapper {
    width: 100%;
    max-width: 175px;
    height: 228px;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 5px solid #FFFFFF;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
    background-color: #EBF0F6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gr-doctor-card:hover .gr-doctor-avatar-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(42, 62, 192, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gr-doctor-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.gr-doctor-name {
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: 16px;
    font-weight: 600;
    color: #111111;
    margin: 0 0 3px 0;
    line-height: 1.3;
}

.gr-doctor-degree {
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: 14.5px;
    font-weight: 400;
    color: #333333;
    margin: 0 0 2px 0;
}

.gr-doctor-designation {
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: 13.5px;
    font-weight: 400;
    color: #777777;
    margin: 0;
}

/* 5. Appointment & Helpline CTA Strip */
.gr-dept-cta-strip-section {
    width: 100%;
    background-color: #FFFFFF;
    padding: 30px 0 80px 0;
    box-sizing: border-box;
}

.gr-dept-cta-strip {
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    padding: 30px 40px;
    box-sizing: border-box;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.gr-dept-cta-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    width: 100%;
    margin: 0 auto;
}

.gr-dept-cta-text {
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: clamp(19px, 1.6vw, 24px);
    font-weight: 400;
    line-height: 1.45;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: -0.01em;
    max-width: 660px;
}

.gr-dept-cta-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #E5252A;
    color: #FFFFFF;
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: 15.5px;
    font-weight: 500;
    padding: 13px 28px;
    text-decoration: none;
    border-radius: 0;
    transition: background-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.gr-dept-cta-phone-btn:hover {
    background-color: #CC1F24;
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1560px) {
    .gr-dept-page-container {
        padding-left: 50px;
        padding-right: 50px;
    }
    .gr-scope-card {
        padding: 40px 48px;
    }
}

@media (max-width: 1279px) {
    .gr-dept-page-container {
        padding-left: 30px;
        padding-right: 30px;
    }
    .gr-dept-intro-section {
        padding: 50px 0 40px 0;
    }
    .gr-scope-card {
        padding: 36px 32px;
    }
    .gr-doctors-grid {
        gap: 24px 16px;
    }
    .gr-doctor-avatar-wrapper {
        max-width: 160px;
        height: 200px;
    }
    .gr-doctor-card {
        max-width: 170px;
    }
}

@media (max-width: 991px) {
    .gr-dept-page-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .gr-dept-intro-section {
        padding: 40px 0 30px 0;
    }
    .gr-scope-card {
        padding: 30px 24px;
    }
    .gr-scope-bullet-list {
        gap: 12px;
    }
    .gr-doctors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px 20px;
    }
    .gr-doctor-avatar-wrapper {
        max-width: 150px;
        height: 190px;
    }
    .gr-doctor-card {
        max-width: 160px;
    }
    .gr-dept-cta-strip {
        padding: 32px 28px;
    }
    .gr-dept-cta-content-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .gr-dept-page-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .gr-dept-intro-section {
        padding: 35px 0 25px 0;
    }
    .gr-dept-main-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .gr-scope-title,
    .gr-doctors-section-title {
        font-size: 26px;
    }
    .gr-scope-subtext {
        font-size: 15px;
        margin-bottom: 28px;
    }
    .gr-scope-bullet-list li {
        font-size: 15px;
    }
    .gr-doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 14px;
    }
    .gr-doctor-avatar-wrapper {
        max-width: 135px;
        height: 175px;
    }
    .gr-doctor-card {
        max-width: 145px;
    }
    .gr-doctor-name {
        font-size: 14.5px;
    }
    .gr-dept-cta-strip {
        padding: 26px 18px;
    }
    .gr-dept-cta-phone-btn {
        width: 100%;
        justify-content: center;
    }
}
