
.about-hero-section {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-text-inverse);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    animation: fadeInUp 1s ease-out;
}

.about-main-title {
    font-size: var(--font-size-display-large);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-inverse);
}

.about-main-title::after {
    display: none; /* Remove hover underline for hero title */
}

.title-accent {
    color: var(--color-white);
}

.about-hero-subtitle {
    font-size: var(--font-size-lead);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-body);
    margin-bottom: 0;
    color: var(--color-text-inverse);
    opacity: 0.9;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-hero-section {
        min-height: 40vh;
        background-attachment: scroll;
    }
    
    .about-hero-content {
        max-width: 100%;
    }
    
    .about-main-title {
        font-size: var(--font-size-display-small);
        margin-bottom: var(--spacing-sm);
    }
    
    .about-hero-subtitle {
        font-size: var(--font-size-body-large);
    }
}

@media (max-width: 480px) {.col-md-6
    .about-hero-section {
        min-height: 35vh;
        background-attachment: scroll !important; 
        padding: var(--spacing-md) 0;
    }

    
    .about-hero-content {
        padding: 0 var(--container-padding);
        max-width: 100%;
    }
    
    .about-main-title {
        font-size: var(--font-size-h1);
        margin-bottom: var(--spacing-xs);
    }
    
    .about-hero-subtitle {
        font-size: var(--font-size-body);
    }
}

/* Parallax Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scroll behavior for parallax */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Enhanced parallax effect */
.about-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: inherit;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    z-index: -1;
    will-change: transform;
}

/* Text shadow for better readability */
.about-main-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-hero-subtitle {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Disable parallax on mobile devices for better performance */
@media (max-width: 768px) {
    .about-hero-section {
        background-attachment: scroll !important;
    }
    
    .about-hero-section::before {
        background-attachment: scroll !important;
    }
    
    .row {
        margin: 0;
    }
}

/* ==========================================================================
   DOCTOR PROFILE SECTION - Same as Image
   ========================================================================== */

.doctor-profile-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
    width: 100%;
}



.doctor-name {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    margin-bottom: 0px;
    line-height: var(--line-height-heading);
}

.doctor-name::after {
    display: none;
}

.doctor-title {
    font-size: var(--font-size-body);
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

.doctor-description {
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.description-column p {
    font-size: var(--font-size-body-small);
    line-height: 1.5;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
    text-align: justify;
}

.doctor-signature {
    margin-top: var(--spacing-md);
}

.signature-img {
    width: 100px;
    height: auto;
    margin-bottom: var(--spacing-xs);
}

.signature-title {
    font-size: var(--font-size-small);
    color: var(--color-text-muted);
    font-weight: var(--font-weight-medium);
    margin-bottom: 0;
}

/* Doctor Statistics */
.doctor-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat-card {
    text-align: left;
    padding: var(--spacing-sm);
    background-color: transparent;
    border-radius: 0;
    transition: none;
    border: none;
}

.stat-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.stat-number {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(232, 90, 79, 0.5);
}

.stat-title {
    font-size: var(--font-size-body-small);
    font-weight: var(--font-weight-bold);
    color: var(--color-heading-primary);
    margin-bottom: var(--spacing-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-description {
    font-size: var(--font-size-small);
    color: var(--color-text-muted);
    line-height: var(--line-height-body);
    margin-bottom: 0;
}

.doctor-image {
    position: relative;
}

.doctor-image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow-large);
}

/* Utility Classes for Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.row.align-items-center {
    align-items: center;
}

.doctor-profile-row{
    gap: 0;
    margin: 0;
    width: 100%;
    flex-direction: row; /* Ensure row layout by default */
}
.col-lg-7,
.col-lg-6,
.col-lg-5,
.col-md-6 {
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
}

.col-lg-7 {
    flex: 0 0 52.33%;
    max-width: 52.33%;
}


.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Desktop specific widths for biography section */
@media (min-width: 769px) {
    .biography-section .col-lg-6.order-1 {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .biography-section .col-lg-6.order-2 {
        flex: 0 0 60%;
        max-width: 60%;
    }
}

.col-lg-5 {
    flex: 0 0 41.67%;
    max-width: 41.67%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 49%;
}



.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Ensure row layout for larger screens */
@media (min-width: 1000px) {
    .doctor-profile-row {
        flex-direction: row !important;
    }
    
    .col-lg-7 {
        flex: 0 0 52.33%;
        max-width: 52.33%;
    }
    
    .col-lg-5 {
        flex: 0 0 41.67%;
        max-width: 41.67%;
    }
}

/* Responsive Design for Doctor Profile */
@media (max-width: 1400px) and (min-width: 1000px) {
    .doctor-profile-section {
        overflow-x: hidden;
    }
    
    .doctor-profile-row {
        gap: 0;
        width: 100%;
        margin: 0;
        flex-direction: row; /* Ensure row layout */
    }
    
    .col-lg-7 {
        flex: 0 0 50%;
        max-width: 50%;
        padding-right: 15px;
    }
    
    .col-lg-5 {
        flex: 0 0 45%;
        max-width: 45%;
        padding-left: 15px;
    }
    
    .doctor-description {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .doctor-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .doctor-image img {
        width: 100%;
        height: 700px;
        object-fit: cover;
    }
}

@media (max-width: 999px) {
    .column-reverse {
        flex-direction: column-reverse;
    }
    
    .col-lg-7,
    .col-lg-5 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .doctor-info {
        padding-right: 0;
        margin-bottom: var(--spacing-xl);
    }
    
    .doctor-description {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .doctor-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .doctor-name {
        font-size: var(--font-size-h2);
    }
    
    .doctor-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }
    
    .stat-card {
        text-align: center;
        padding: var(--spacing-md);
    }
    
    .stat-number {
        font-size: var(--font-size-h2);
    }
    
    .stat-title {
        white-space: normal;
        font-size: var(--font-size-small);
    }
    
    .doctor-image {
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    
    .doctor-image img {
        width: 100%;
        max-width: 400px;
        height: auto;
        min-height: 400px;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .doctor-profile-section {
        padding: var(--spacing-xxl) 0;
    }
    
    .doctor-name {
        font-size: var(--font-size-h3);
        margin-bottom: var(--spacing-xs);
    }
    .doctor-info{
        padding: var(--spacing-md);
    }
    .stat-card{
        padding: var(--spacing-md) 0;
    }
    .doctor-title {
        font-size: var(--font-size-body);
        margin-bottom: var(--spacing-sm);
    }
    
    .description-column p {
        font-size: var(--font-size-body-small);
        text-align: left;
    }
    
    .doctor-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
        margin-top: var(--spacing-sm);
    }
    
    .stat-number {
        font-size: var(--font-size-h3);
    }
    
    .stat-title {
        font-size: var(--font-size-small);
        margin-bottom: var(--spacing-xs);
    }
    
    .stat-description {
        font-size: var(--font-size-small);
        line-height: 1.4;
    }
    
    .doctor-image img {
        width: 100%;
        max-width: 400px;
        padding: var(--spacing-sm);
        height: auto;
        min-height: 300px;
    }
    .footer-content .container,.footer-bottom{
        padding: var(--spacing-md);
    }
    .doctor-profile-section .container .row{
        gap: 0px !important;
    }
}


/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

/* Shimmer effect for stat numbers */
@keyframes shimmer {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Count up animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}



/* Apply animations to stat numbers */
.stat-number {
    animation: countUp 0.8s ease-out, pulse 2s ease-in-out infinite;
    animation-delay: 0.2s, 1s;
}

/* Stagger animation delays for different stat cards */
.stat-card:nth-child(1) .stat-number {
    animation-delay: 0.1s, 1s;
}

.stat-card:nth-child(2) .stat-number {
    animation-delay: 0.3s, 1.2s;
}

.stat-card:nth-child(3) .stat-number {
    animation-delay: 0.5s, 1.4s;
}

.stat-card:nth-child(4) .stat-number {
    animation-delay: 0.7s, 1.6s;
}

/* ==========================================================================
   BIOGRAPHY DETAILS SECTION
   ========================================================================== */

.biography-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-bg-secondary);
    overflow-x: hidden;
    width: 100%;
}

.biography-content {
    padding-left: var(--spacing-lg);
}

.biography-title {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    color: var(--color-heading-primary);
    margin-bottom: var(--spacing-lg);
    line-height: var(--line-height-heading);
}

.biography-title::after {
    display: none;
}

.biography-accordion {
    max-width: 100%;
}

.accordion-item {
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.accordion-item.active {
    background-color: rgba(232, 90, 79, 0.02);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
}

.accordion-header:hover {
    color: var(--color-primary);
}

.accordion-header h3 {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-semibold);
    color: var(--color-heading-primary);
    margin: 0;
    width: 100% !important;
    transition: color 0.3s ease;
    line-height: var(--line-height-heading);
}
.accordion-header h3 a{
    display: flex;
    justify-content: space-between;
}
.accordion-header:hover h3 {
    color: var(--color-primary);
}

.accordion-icon {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    transition: transform 0.3s ease;
    min-width: 30px;
    text-align: center;
    line-height: 1;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-bottom: var(--spacing-md);
}

.accordion-content li {
    padding: var(--spacing-xs) 0;
    color: var(--color-text-secondary);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    position: relative;
    padding-left: var(--spacing-md);
    transition: color 0.3s ease;
}

.accordion-content li:hover {
    color: var(--color-primary);
}

.accordion-content li::before {
    content: '•';
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
    position: absolute;
    left: 0;
    font-size: var(--font-size-body);
}

.biography-image {
    position: relative;
    margin-bottom: var(--spacing-lg);
    padding-right: var(--spacing-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.biography-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow-large);
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.biography-image:hover img {
    transform: scale(1.02);
}

/* Scale image when any accordion is active */
.biography-image.scaled img {
    transform: scale(1.15);
    box-shadow: var(--box-shadow-large), 0 0 20px rgba(232, 90, 79, 0.3);
}

/* Responsive Design for Biography Section */
@media (max-width: 768px) {
    .biography-content {
        padding-left: 0;
        margin-top: var(--spacing-lg);
    }
    
    .biography-section {
        padding: var(--spacing-xl) 0;
    }
    
    .biography-section .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .biography-section .col-lg-6.order-1,
    .biography-section .col-lg-6.order-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .biography-image {
        margin-bottom: var(--spacing-xl);
        padding-right: 0;
        text-align: center;
        min-height: 250px;
    }
    
    .biography-image img {
        width: 90%;
        max-width: 300px;
        height: auto;
        min-height: 200px;
        object-fit: cover;
    }
    
    .biography-title {
        font-size: var(--font-size-h3);
        margin-bottom: var(--spacing-md);
    }
    
    .accordion-header h3 {
        font-size: var(--font-size-h5);
    }
    
    .accordion-icon {
        font-size: var(--font-size-h4);
        min-width: 25px;
    }
    
    .accordion-content li {
        font-size: var(--font-size-body-small);
        padding-left: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .biography-section {
        padding: var(--spacing-lg);
    }
    
    
    .biography-image {
        margin-bottom: var(--spacing-lg);
        min-height: 200px;
    }
    
    .biography-image img {
        width: 95%;
        max-width: 350px;
        height: auto;
        min-height: 180px;
    }
    
    .biography-title {
        font-size: var(--font-size-h4);
        margin-bottom: var(--spacing-sm);
    }
    
    .accordion-header {
        padding: var(--spacing-sm) 0;
    }
    
    .accordion-header h3 {
        font-size: var(--font-size-body-large);
        font-weight: var(--font-weight-medium);
    }
    
    .accordion-content li {
        padding: var(--spacing-xs) 0;
        padding-left: var(--spacing-sm);
        font-size: var(--font-size-small);
    }
}

/* Animation for accordion content */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accordion-item.active .accordion-content {
    animation: fadeInDown 0.3s ease;
}

/* ==========================================================================
   BIOGRAPHY DETAILS SECTION - Enhanced Styling
   ========================================================================== */

.biography-details-section {
    padding: var(--spacing-xxl) 0;
    background-color: #f8f9fa;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

.biography-details-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(232, 90, 79, 0.02) 0%, rgba(232, 90, 79, 0.05) 100%);
    pointer-events: none;
}

.details-section {
    margin-bottom: 60px;
    position: relative;
}

.details-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #0C4E80;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 3px solid #F3665D;
    display: inline-block;
    line-height: 1.2;
}

.subsection-title {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.content-wrapper {
    margin-top: 25px;
}

/* List Styling for expertise and credentials */
.expertise-list,
.credentials-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
    list-style: none;
}

.expertise-list li,
.credentials-list li {
    margin-bottom: 12px;
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    position: relative;
    padding-left: 25px;
}

.expertise-list li::before,
.credentials-list li::before {
    content: "•";
    color: #F3665D;
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    left: 5px;
}

.expertise-list li strong,
.credentials-list li strong {
    color: #0C4E80;
    font-weight: 600;
}

.expertise-list ul,
.credentials-list ul {
    margin-top: 10px;
    padding-left: 20px;
}

/* Nested lists */
.expertise-list ul li,
.credentials-list ul li {
    margin-bottom: 8px;
    color: #555;
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-list li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: var(--font-size-body);
    color: var(--color-text-secondary);
    line-height: var(--line-height-body);
    transition: all 0.3s ease;
    position: relative;
    padding-left: var(--spacing-lg);
    cursor: pointer;
}

.details-list li:hover {
    color: var(--color-primary);
    transform: translateX(5px);
    background-color: rgba(232, 90, 79, 0.05);
    border-radius: var(--border-radius-small);
    box-shadow: 0 2px 8px rgba(232, 90, 79, 0.1);
}

.details-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid var(--color-secondary);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
}

.details-list li:hover::before {
    transform: scale(1.2);
}

.details-list li:last-child {
    border-bottom: none;
}

/* Enhanced animations */
@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Biography Details */
@media (max-width: 768px) {
    .biography-details-section {
        padding: var(--spacing-xl);
    }
    
    .details-section {
        margin-bottom: var(--spacing-xl);
    }
    
    .section-title {
        font-size: var(--font-size-h2);
        margin-bottom: var(--spacing-md);
    }
    
    .subsection-title {
        font-size: var(--font-size-h5);
        margin-bottom: var(--spacing-sm);
    }
    
    .details-list li {
        font-size: var(--font-size-body-small);
        padding-left: var(--spacing-xl);
        padding-right: var(--spacing-sm);
    }
    
    .details-list li::before {
        position: absolute;
        left: var(--spacing-sm);
        top: var(--spacing-sm);
        width: var(--spacing-lg);
        font-size: var(--font-size-small);
    }
    
    .row {
        margin: 0;
    }
    
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .biography-details-section {
        padding: var(--spacing-lg);
    }
    
    .details-section {
        margin-bottom: var(--spacing-lg);
    }
    
    .section-title {
        font-size: var(--font-size-h3);
        margin-bottom: var(--spacing-sm);
    }
    
    .subsection-title {
        font-size: var(--font-size-body-large);
        font-weight: var(--font-weight-medium);
        margin-bottom: var(--spacing-xs);
    }
    
    .details-list li {
        padding: var(--spacing-xs) 0;
        padding-left: var(--spacing-xl);
        padding-right: var(--spacing-sm);
        font-size: var(--font-size-small);
        line-height: 1.4;
    }
    
    .details-list li::before {
        position: absolute;
        left: var(--spacing-xs);
        top: var(--spacing-xs);
        width: var(--spacing-lg);
        font-size: var(--font-size-small);
        line-height: 1.4;
    }
    
    .col-lg-6 {
        margin-bottom: var(--spacing-sm);
    }
}
