
:root {
    --primary: #2a9d8f;
    --primary-dark: #21867a;
    --secondary: #264653;
    --accent: #e9c46a;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --dark: #333333;
    --gray: #6c757d;
    --light-gray: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 60px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=2053') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease;
}

.page-header .department-icon {
    font-size: 70px;
    margin-bottom: 15px;
    color: white;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.page-header .breadcrumb {
    font-size: 16px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.page-header .breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.page-header .breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.page-header .breadcrumb span {
    margin: 0 10px;
    opacity: 0.5;
}

/* Section Styles */
.section-padding {
    padding: 70px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.section-title {
    font-size: 36px;
    color: var(--secondary);
    margin-bottom: 15px;
}

.section-title span {
    color: var(--primary);
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray);
    font-size: 16px;
}

/* Department Accordion */
.department-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-section {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(42, 157, 143, 0.2);
    transition: all 0.3s ease;
    background: var(--white);
}

.accordion-section.active {
    box-shadow: 0 10px 30px rgba(42, 157, 143, 0.15);
    border-color: var(--primary);
}

.accordion-header {
    background: var(--white);
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.accordion-section.active .accordion-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.accordion-header i:first-child {
    font-size: 24px;
    color: var(--primary);
    transition: all 0.3s;
    width: 30px;
}

.accordion-section.active .accordion-header i:first-child {
    color: white;
}

.accordion-header h3 {
    flex: 1;
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary);
}

.accordion-section.active .accordion-header h3 {
    color: white;
}

.accordion-arrow {
    font-size: 16px;
    color: var(--primary);
    transition: transform 0.3s;
}

.accordion-section.active .accordion-arrow {
    transform: rotate(180deg);
    color: white;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: var(--white);
}

.accordion-section.active .accordion-content {
    max-height: 2000px; /* Increased to accommodate all content */
}

.content-inner {
    padding: 25px;
    border-top: 1px solid rgba(42, 157, 143, 0.1);
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat-box {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.stat-box .number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-box .label {
    font-size: 13px;
    color: var(--gray);
}

/* Doctors Grid */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.doctor-card {
    background: var(--light-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(42, 157, 143, 0.1);
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(42, 157, 143, 0.15);
    border-color: var(--primary);
}

.doctor-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.doctor-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.1);
}

.doctor-info {
    padding: 20px 15px;
    text-align: center;
    position: relative;
    background: white;
}

.doctor-info h4 {
    font-size: 20px;
    color: var(--secondary);
    margin-bottom: 5px;
    font-weight: 600;
}

.doctor-info .qualification {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.doctor-info .experience {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 15px;
}

.doctor-social {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.doctor-social a {
    width: 35px;
    height: 35px;
    background: rgba(42, 157, 143, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
}

.doctor-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.service-item {
    background: var(--light-bg);
    padding: 18px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.service-item:hover {
    background: var(--primary);
    color: white;
    transform: translateX(8px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(42, 157, 143, 0.3);
}

.service-item i {
    font-size: 24px;
    color: var(--primary);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.service-item:hover i {
    background: var(--secondary);
    color: white;
    transform: rotate(360deg);
}

.service-item span {
    font-size: 15px;
    font-weight: 500;
    flex: 1;
}

.service-item:hover span {
    color: white;
}

/* Facilities Grid */
.facilities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.facility-item {
    background: var(--light-bg);
    padding: 20px 15px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(42, 157, 143, 0.1);
}

.facility-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(42, 157, 143, 0.2);
}

.facility-item i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
    transition: all 0.3s;
}

.facility-item:hover i {
    color: white;
    transform: scale(1.2);
}

.facility-item span {
    font-size: 15px;
    font-weight: 500;
    display: block;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    border: 1px solid rgba(42, 157, 143, 0.1);
}

.info-item:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(42, 157, 143, 0.2);
}

.info-item:hover i,
.info-item:hover .label,
.info-item:hover .value {
    color: white;
}

.info-item i {
    font-size: 30px;
    color: var(--primary);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.info-item:hover i {
    background: var(--secondary);
    color: white;
    transform: rotate(360deg);
}

.info-item div {
    flex: 1;
}

.info-item .label {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 3px;
    transition: all 0.3s;
}

.info-item .value {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    transition: all 0.3s;
}

/* Conditions Grid */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.condition-item {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.condition-item:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

.condition-item i {
    font-size: 20px;
    color: var(--primary);
    width: 30px;
}

.condition-item:hover i {
    color: white;
}

.condition-item span {
    font-size: 14px;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 60px 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-btn.primary {
    background: white;
    color: var(--primary);
}

.cta-btn.primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 2px solid white;
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    border: none;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media screen and (max-width: 992px) {
    .page-header h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .page-header {
        padding: 50px 0;
    }
    
    .page-header h1 {
        font-size: 30px;
    }
    
    .page-header .department-icon {
        font-size: 60px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .accordion-header {
        padding: 15px 20px;
    }
    
    .accordion-header h3 {
        font-size: 18px;
    }
    
    .content-inner {
        padding: 20px;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .facilities-list {
        grid-template-columns: 1fr;
    }
    
    .conditions-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
    
    .cta-section p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .page-header h1 {
        font-size: 26px;
    }
    
    .page-header .department-icon {
        font-size: 50px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .accordion-header {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .accordion-header i:first-child {
        font-size: 20px;
    }
    
    .accordion-header h3 {
        font-size: 16px;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-box {
        padding: 12px;
    }
    
    .stat-box .number {
        font-size: 24px;
    }
    
    .info-item {
        padding: 15px;
    }
    
    .info-item i {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .info-item .value {
        font-size: 14px;
    }
    
    .service-item {
        padding: 15px;
    }
    
    .service-item i {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .service-item span {
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .header, .footer, .cta-section, .scroll-to-top {
        display: none;
    }
    
    .page-header {
        background: none;
        color: black;
        padding: 30px 0;
    }
    
    .page-header .department-icon {
        color: var(--primary);
    }
    
    .accordion-section {
        break-inside: avoid;
        border: 1px solid #ddd;
    }
    
    .accordion-content {
        max-height:none;
    }
}