/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

img#main-photo {
    max-width: 100%;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 30px;
}

.footer {
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 3px solid #2c5aa0;
}

.name-title {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

/* Navigation styles */
.navigation {
    margin-bottom: 30px;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    background-color: #2c5aa0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-menu li {
    flex: 1;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-menu li:last-child .nav-link {
    border-right: none;
}

.nav-link:hover,
.nav-link.active {
    background-color: #1e3f73;
    transform: translateY(-2px);
}

/* Photo section */
.photo-section {
    text-align: center;
    margin-bottom: 40px;
}

.doctor-photo {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 4px solid #2c5aa0;
}

/* Content area */
.content-area {
    margin-bottom: 40px;
    min-height: 400px;
}

/* About layout */
.about-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.main-photo-section {
    flex: 0 0 30%;
    max-width: 30%;
}

.main-photo-container {
    position: relative;
    width: 100%;
}

.main-photo-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    object-fit: cover;
}

.about-content-section {
    flex: 1;
    padding-left: 30px;
}

/* Responsive design for about layout */
@media (max-width: 768px) {
    .about-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-photo-section {
        flex: none;
        max-width: 100%;
        text-align: center;
    }
    
    .main-photo-container img {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about-content-section {
        padding-left: 0;
    }
}

.content-page {
    display: none;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content-page.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

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

.content-page h2 {
    color: #2c5aa0;
    margin-bottom: 20px;
    font-size: 2rem;
    border-bottom: 2px solid #2c5aa0;
    padding-bottom: 10px;
}

.content-page p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Education and conference items */
.education-item,
.conference-item {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.education-item h3,
.conference-item h3 {
    color: #2c5aa0;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Contact info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.contact-item {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #2c5aa0;
}

.contact-item h3 {
    color: #2c5aa0;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Footer */
.footer {
    background-color: #2c5aa0;
    color: white;
    padding: 30px 0;
    border-radius: 10px;
    margin-top: 40px;
}

.footer-content {
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.contact-link i {
    font-size: 1.2rem;
}

.footer-text {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    margin-top: 20px;
}

.footer-text p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .name-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-link {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-menu li:last-child .nav-link {
        border-bottom: none;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .content-page {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .name-title {
        font-size: 1.8rem;
    }
    
    .doctor-photo {
        max-width: 250px;
    }
    
    .content-page h2 {
        font-size: 1.5rem;
    }
}

/* Image thumbnails */
.content-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.content-image {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.content-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.content-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
}

/* Image popup styles */
.image-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 10001;
}

.popup-close:hover {
    color: #000;
}

.popup-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}
