/* General 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;
}

/* Navbar */
.navbar {
    background-color: #ff9500;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    margin-right: 15px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #000;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #333;
    border-bottom-color: #000;
}

.nav-link.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: none;
    padding: 0.5rem 0;
}

.nav-link.nav-icon:hover {
    opacity: 0.7;
    border-bottom: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
}

.hero-content {
    flex: 2;
    text-align: left;
}

.hero-logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: calc(100vh - 400px);
}

.content-section {
    background: white;
    padding: 3rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ff9500;
    display: inline-block;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Cards Container */
.research-image {
    max-width: 250px;
    width: 60%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 2rem auto 3rem auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .research-image {
        max-width: 200px;
        width: 70%;
    }
}

@media (max-width: 480px) {
    .research-image {
        max-width: 150px;
        width: 80%;
    }
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #ff9500;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card p {
    color: #555;
    margin: 0;
}

/* News Section */
.news-preview {
    margin-top: 2rem;
}

.news-item {
    background: #f0f4f8;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #ff9500;
}

.news-item h3 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.news-item p {
    margin-bottom: 1rem;
}

.btn-link {
    color: #ff9500;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: #1e3c72;
}

/* News Page */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.news-item-full {
    background: #f0f4f8;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #ff9500;
}

.news-item-full h3 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* People Grid */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.person-card {
    background: #f0f4f8;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #ff9500;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
}

.person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.person-avatar {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 320px;
    min-height: 320px;
    overflow: hidden;
    border-radius: 6px;
}

.person-avatar img {
    border-radius: 6px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-card h3 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.person-role {
    color: #ff9500;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.person-bio {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Alumni List */
.alumni-list {
    list-style: none;
    margin: 1.5rem 0;
}

.alumni-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.alumni-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #ff9500;
    font-weight: bold;
}

/* Publications */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.publication-item {
    background: #f0f4f8;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #ff9500;
}

.publication-item h3 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.publication-authors {
    color: #555;
    font-style: italic;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.publication-journal {
    color: #2a5298;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.publication-abstract {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.publication-link {
    color: #ff9500;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.publication-link:hover {
    color: #1e3c72;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    background: #f0f4f8;
    padding: 2rem;
    border-radius: 8px;
}

.contact-info h2 {
    color: #1e3c72;
    margin-bottom: 2rem;
    border-bottom: 2px solid #ff9500;
    padding-bottom: 1rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: #555;
    margin: 0;
}

.contact-item a {
    color: #ff9500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #1e3c72;
}

/* Contact Form */
.contact-form h2 {
    color: #1e3c72;
    margin-bottom: 2rem;
    border-bottom: 2px solid #ff9500;
    padding-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1e3c72;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff9500;
}

.btn {
    background-color: #ff9500;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: #1e3c72;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.form-note {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* Footer */
.footer {
    background-color: #1e3c72;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-content a {
    color: #ff9500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #fff;
}

/* Profile Section Base Styles */
.profile-section {
    max-width: none;
    margin: 0 auto;
}

.profile-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.profile-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 280px;
    line-height: 1;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-bio {
    background: #f0f4f8;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #ff9500;
}

.profile-bio h4 {
    color: #1e3c72;
    margin-top: 0;
    margin-bottom: 1rem;
    border: none;
    padding: 0;
    font-size: 1.2rem;
}

.profile-bio p {
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.publication {
    background: #f0f4f8;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #ff9500;
    margin: 2rem 0;
}

.publication h4 {
    color: #1e3c72;
    margin-top: 0;
    margin-bottom: 1rem;
    border: none;
    font-size: 1.2rem;
}

.publication p {
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.publication a {
    color: #ff9500;
    text-decoration: none;
    font-weight: 600;
}

.publication a:hover {
    color: #1e3c72;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-contact {
    background: #f0f4f8;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 0;
}

.profile-contact h4 {
    color: #1e3c72;
    margin-top: 0;
    margin-bottom: 1rem;
    border: none;
    font-size: 1.2rem;
}

.profile-contact p {
    margin-bottom: 0.8rem;
    color: #555;
}

.profile-contact a {
    color: #ff9500;
    text-decoration: none;
}

.profile-contact a:hover {
    color: #1e3c72;
}

.profile-socials {
    background: #f0f4f8;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.profile-socials h4 {
    color: #1e3c72;
    margin-top: 0;
    margin-bottom: 1rem;
    border: none;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: white;
    color: #1e3c72;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.social-links a:hover {
    background-color: #ff9500;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.profile-section h3 {
    color: #1e3c72;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 2px solid #ff9500;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.profile-section h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.profile-list {
    list-style: none;
    margin: 1.5rem 0;
}

.profile-list li {
    padding: 0.7rem 0;
    padding-left: 2rem;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.profile-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #ff9500;
    font-weight: bold;
}

.profile-back {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

/* Education Grid */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.education-item {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
    padding: 1rem 0.6rem;
    border-radius: 6px;
    border-left: 2px solid #ff9500;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
}

.education-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.education-icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.education-item h4 {
    color: #1e3c72;
    margin-bottom: 0.3rem;
    margin-top: 0.2rem;
    font-size: 1.1rem;
    border: none;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
}

.education-field {
    color: #ff9500;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
}

.education-details {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
}

/* Awards Grid */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 1.5rem 0;
}

.award-item {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe6a6 100%);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #f39c12;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.award-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.award-item h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    border: none;
}

.award-item p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 1.5rem 0;
}

.skill-category {
    background: #f0f4f8;
    padding: 2rem;
    border-radius: 8px;
    border-top: 3px solid #ff9500;
}

.skill-category h4 {
    color: #1e3c72;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border: none;
}

.skill-category .profile-list {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .people-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

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

    .content-section {
        padding: 2rem 1.5rem;
    }

    .profile-container {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    .profile-container {
        grid-template-columns: auto 1fr;
        gap: 2rem;
    }

    .profile-image {
        width: 320px;
    }

    .profile-section h3 {
        clear: both;
        margin-top: 3rem;
    }

    .awards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .education-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.8rem;
    }
}

@media (max-width: 1024px) {
    .profile-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .awards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .nav-menu {
        flex-direction: row;
        gap: 0.8rem;
        text-align: center;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header p,
    .hero-content p {
        font-size: 1rem;
    }

    .education-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.5rem;
    }

    .awards-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}