﻿/* =========================================
   DOCTOR PROFILE CARD
========================================= */

.doctor-profile-section {
    position: relative;
    width: 100%;
    padding: 28px 5% 22px;
    background: #f5f7fa;
    scroll-margin-top: 100px;
}

.doctor-profile-card {
    position: relative;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    width: 100%;
    max-width: 1440px;
    min-height: 390px;
    margin: 0 auto;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(16, 42, 71, 0.08);
    border-radius: 18px;
    box-shadow: 0 16px 50px rgba(9, 29, 51, 0.09);
}

/* =========================================
   IMAGE
========================================= */

.doctor-profile-image {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    background: #102b4b;
}

    .doctor-profile-image picture,
    .doctor-profile-image img {
        display: block;
        width: 100%;
        height: 100%;
    }

    .doctor-profile-image img {
        position: absolute;
        inset: 0;
        object-fit: cover;
        object-position: center 25%;
    }

.profile-image-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient( 0deg, rgba(5, 22, 41, 0.78) 0%, rgba(5, 22, 41, 0.08) 42%, transparent 70% );
}

.profile-image-caption {
    position: absolute;
    z-index: 2;
    right: 28px;
    bottom: 25px;
    left: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.profile-caption-line {
    width: 28px;
    height: 1px;
    background: #e0c18a;
}

/* =========================================
   PROFILE CONTENT
========================================= */

.doctor-profile-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 36px clamp(28px, 4vw, 64px);
    color: #102b4b;
}

.profile-top-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #8b744d;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.profile-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b99b65;
    box-shadow: 0 0 0 4px rgba(185, 155, 101, 0.13);
}

.profile-greeting {
    display: block;
    margin-bottom: 9px;
    color: #a48a5d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.profile-heading h1 {
    margin: 0;
    color: #102b4b;
    font-family: var(--font-heading, Georgia, serif);
    font-size: clamp(30px, 3.2vw, 45px);
    font-weight: 500;
    letter-spacing: -0.7px;
    line-height: 1.15;
}

.profile-speciality {
    margin: 10px 0 0;
    color: #8a7049;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.profile-tagline {
    margin: 12px 0 0;
    color: #758398;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.profile-divider {
    width: 52px;
    height: 2px;
    margin: 22px 0;
    background: #d5b77f;
}

.profile-description {
    max-width: 530px;
    margin: 0;
    color: #647286;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Sans Serif Collection';
    line-height: 1.5;
}
.profile-primary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.profile-action {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    min-height: 50px;
    padding: 0 16px;
    color: #ffffff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 250ms ease;
    color: #102b4b;
    background: #dfc18b;
    border-color: #dfc18b;
}

.profile-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    flex-shrink: 0;
}

    .profile-action-icon i {
        font-size: 18px;
    }

/* Same hover effect for every button */
.profile-action:hover {
   
    transform: translateY(-2px);
}

    .profile-action:hover .profile-action-icon i {
        color: #102b4b;
    }

/* WhatsApp brand icon */
.profile-whatsapp .profile-action-icon i {
    color: #102b4b;
}

.profile-whatsapp:hover .profile-action-icon i {
    color: #102b4b;
}


.profile-book-link {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    margin-top: 17px;
    color: #8c7044;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 220ms ease;
}

    .profile-book-link span {
        font-size: 22px;
    }


/* =========================================
   SOCIAL LINKS
========================================= */

.profile-social-area {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 19px;
    margin-top: 25px;
}

.profile-social-label {
    color: #8a96a6;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.profile-social-links {
    display: flex;
    align-items: center;
    gap: 9px;
}

.profile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #53657a;
    background: #f3f5f8;
    border: 1px solid #e6eaf0;
    border-radius: 50%;
    transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

    .profile-social-link:hover {
        color: #ffffff;
        background: #102b4b;
        border-color: #102b4b;
        transform: translateY(-2px);
    }

    .profile-social-link svg {
        width: 14px;
        height: 14px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .profile-social-link[aria-label="Facebook"] svg,
    .profile-social-link[aria-label="LinkedIn"] svg,
    .profile-social-link[aria-label="YouTube"] svg {
        fill: currentColor;
        stroke: none;
    }

    .profile-social-link .social-dot {
        fill: currentColor;
        stroke: none;
    }

/* =========================================
   WEBSITE LINK
========================================= */

.profile-website-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #8b96a5;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.profile-website-icon {
    color: #b19460;
    font-size: 15px;
}

.profile-website-link:hover {
    color: #102b4b;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1024px) {
    .doctor-profile-section {
        padding: 22px 3% 18px;
    }

    .doctor-profile-card {
        grid-template-columns: 0.85fr 1.15fr;
        min-height: 360px;
    }

    .doctor-profile-image {
        min-height: 360px;
    }

    .doctor-profile-content {
        padding: 30px;
    }

    .profile-heading h1 {
        font-size: clamp(28px, 3.6vw, 39px);
    }

    .profile-description {
        font-size: 12px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {
    .doctor-profile-section {
        padding: 16px 16px 18px;
    }

    .doctor-profile-card {
        display: flex;
        flex-direction: column;
        min-height: 0;
        border-radius: 13px;
    }

    .doctor-profile-image {
        width: 100%;
        height: 330px;
        min-height: 0;
    }

        .doctor-profile-image img {
            object-position: center 25%;
        }

    .profile-image-caption {
        right: 20px;
        bottom: 19px;
        left: 20px;
        font-size: 8px;
    }

    .doctor-profile-content {
        padding: 27px 23px 25px;
    }

    .profile-top-label {
        margin-bottom: 18px;
        font-size: 8px;
    }

    .profile-heading h1 {
        font-size: clamp(30px, 8vw, 38px);
    }

    .profile-speciality {
        font-size: 18px;
        text-transform: uppercase;
    }

    .profile-tagline {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .profile-divider {
        margin: 18px 0;
    }

    .profile-description {
        font-size: 13px;
    }

    .profile-primary-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 9px;
        margin-top: 23px;
    }

    .profile-action {
        min-width: 0;
        min-height: 48px;
        padding: 0 10px;
        font-size: 14px;
    }

    .profile-book-link {
        margin-top: 20px;
    }

    .profile-social-area {
        gap: 14px;
        margin-top: 23px;
    }

    .profile-social-link {
        width: 34px;
        height: 34px;
    }

    .profile-website-link {
        margin-top: 17px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {
    .doctor-profile-section {
        padding-right: 11px;
        padding-left: 11px;
    }

    .doctor-profile-image {
        height: 290px;
    }

    .doctor-profile-content {
        padding-right: 18px;
        padding-left: 18px;
    }

    .profile-primary-actions {
        gap: 9px;
    }
    .profile-primary-actions {
        gap: 9px;
    }

    .profile-action {
        min-height: 48px;
        padding: 0 11px;
        gap: 8px;
        font-size: 12px;
    }

    .profile-action-icon {
        width: 19px;
    }

        .profile-action-icon i {
            font-size: 16px;
        }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    .profile-action,
    .profile-book-link,
    .profile-social-link {
        transition: none;
    }
}


.profile-share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 0;
    color: #8b7046;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

    .profile-share-button:hover {
        color: #102b4b;
    }

    .profile-share-button span {
        font-size: 17px;
    }


/* =========================================
   PRIMARY BOOK APPOINTMENT CTA
========================================= */

.profile-book-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 54px;
    margin-top: 20px;
    padding: 0 25px;
    color: #102b4b;
    background: #dfc18b;
    border: 1px solid #dfc18b;
    border-radius: 5px;
    font-family: var(--font-body, Arial, sans-serif);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(16, 43, 75, 0.12);
    transition: background 250ms ease, color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
    color: #ffffff;
    background: #102b4b;
    border-color: #102b4b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 43, 75, 0.18);
}

    .profile-book-link span {
        font-size: 21px;
        font-weight: 700;
        transition: transform 250ms ease;
    }

/* Mobile */
@media (max-width: 767px) {
    .profile-book-link {
        width: 100%;
        min-height: 56px;
        font-size: 15px;
    }
}


/* =========================================
   PREMIUM FONT AWESOME ICON SYSTEM
========================================= */

/* Call and WhatsApp icons */
.profile-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    flex-shrink: 0;
}

.profile-action-icon i {
    font-size: 19px;
    line-height: 1;
}

.profile-call .profile-action-icon i {
    font-size: 17px;
}

.profile-whatsapp .profile-action-icon i {
    font-size: 21px;
}

/* Appointment icon */
.profile-book-link {
    gap: 22px;
}

.profile-book-link > i:first-child {
    font-size: 20px;
}

.profile-book-arrow {
    font-size: 14px;
    transition: transform 250ms ease;
}

.profile-book-link:hover .profile-book-arrow {
    transform: translateX(5px);
}

/* Social icons */
.profile-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,0.05);
    font-size: 17px;
    text-decoration: none;
    transition: all 250ms ease;
}

.profile-social-link:hover {
    color: #102b4b;
    background: #dfc18b;
    border-color: #dfc18b;
    transform: translateY(-4px);
}

/* Share profile */
.profile-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.profile-share-button > i {
    font-size: 16px;
}

/* Website */
.profile-website-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.profile-website-link > i:first-child {
    font-size: 17px;
}

.profile-website-external {
    font-size: 11px;
    opacity: 0.65;
    transition: transform 250ms ease;
}

.profile-website-link:hover .profile-website-external {
    transform: translate(2px, -2px);
}

/* Mobile sizing */
@media (max-width: 767px) {
    .profile-social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}


/* =========================================
   PREMIUM SOCIAL MEDIA ICONS
   Gold default | Navy hover
========================================= */

.profile-social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    color: #102b4b !important;
    background: #dfc18b;
    border: 1px solid #dfc18b;
    border-radius: 50%;
    text-decoration: none;
    visibility: visible;
    opacity: 1;
    transition: all 250ms ease;
}

    .profile-social-link i {
        display: inline-block;
        font-family: "Font Awesome 6 Brands" !important;
        font-style: normal;
        font-weight: 400;
        font-size: 18px;
        line-height: 1;
        color: #102b4b !important;
        visibility: visible;
        opacity: 1;
    }

    /* Hover: Navy finish */
    .profile-social-link:hover {
        color: #dfc18b !important;
        background: #102b4b;
        border-color: #dfc18b;
        transform: translateY(-3px);
        box-shadow: 0 5px 14px rgba(16, 43, 75, 0.2);
    }

        .profile-social-link:hover i {
            color: #dfc18b !important;
        }

    /* Keyboard accessibility */
    .profile-social-link:focus-visible {
        outline: 2px solid #dfc18b;
        outline-offset: 4px;
    }

/* Mobile */
@media (max-width: 767px) {
    .profile-social-links {
        gap: 10px;
    }

    .profile-social-link {
        width: 40px;
        height: 40px;
    }

    .profile-social-link i {
        font-size: 17px;
    }
}
