/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Fixed Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    background-color: white;
    z-index: 1000;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

.site-title a:hover {
    color: #0077b5;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #333;
}

/* Main Content Layout - Consistent across all pages */
.main-content {
    display: flex;
    gap: 60px;
    margin-top: 80px;
    min-height: calc(100vh - 180px);
}

/* Fixed Left Column - Same on all pages */
.left-column {
    flex: 0 0 300px;
    width: 300px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.profile-section {
    margin-bottom: 30px;
    padding-right: 10px;
}

.profile-section img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.profile-header {
    margin-bottom: 30px;
    text-align: center;
}

.profile-name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.2;
}

.profile-title {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.profile-subtitle {
    font-size: 16px;
    color: #888;
}

.profile-links {
    margin-top: 30px;
}

.link-list {
    list-style: none;
}


.link-list a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.link-list a:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

.link-icon {
    width: 20px;
    text-align: center;
}

/* Right Column - Consistent width across all pages */
.right-column {
    flex: 1;
    max-width: calc(100% - 360px); /* 300px left column + 60px gap */
    min-width: 0; /* Allows content to shrink if needed */
}

/* Common Section Styles */
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    padding-bottom: 10px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #eaeaea;
    color: #888;
    font-size: 14px;
    margin-top: 60px;
}

/* ============ HOME PAGE SPECIFIC STYLES ============ */
.introduction-section {
    margin-bottom: 40px;
}

.image-container {
    float: right;
    margin: 0 0 10px 20px;
    width: 350px;
}

.intro-image {
    width: 100%;
}

.introduction-text {
    overflow: hidden;
}

.introduction-text p {
    text-align: justify;
    font-size: 16px;
    line-height: 1.7;
}

.introduction-text strong {
    font-weight: 600;
}

/* research under Profile */
.research-under-profile {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 3px solid #000000;
}

.research-card {
    background: #fafafa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eaeaea;
}

.research-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


.research-tag {
    display: inline-block;
    background-color: #e0e0e0;
    color: #333;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.research-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #000;
}

.research-card p {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.Details a{
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;   
    text-align: right;
    color: #888;
    display: block;
}
.Details a:hover{
    color: #000;
}

/* ============ NEWS UNDER PROFILE ============ */

.News-under-profile {
    margin-top: 20px;
    padding-top: 20px;
}

.news-card {
    background: #fafafa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eaeaea;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-card a {
    text-decoration: none;
    color: #000;
}

/* ============ NEWS PAGE SPECIFIC STYLES ============ */
.news-feed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.news-article {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #eaeaea;
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.news-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #979797;
}

.news-thumbnail-container {
    flex: 0 0 300px;
    width: 100px;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
}

.news-thumbnail {
 
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-article:hover .news-thumbnail {
    transform: scale(1.05);
}

.news-content {
    flex: 1;
    min-width: 0; /* Allows text to wrap properly */
}

.news-article h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000000;
    line-height: 1.4;
}

.article-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.tag {
    background-color: #eeeeee;
    color: #000203;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #616060;
    color: white;
}

.news-article p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.article-links a {
    display: inline-block;
    padding: 6px 14px;
    background-color: #9aa6ad;
    color: white;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-links a:hover {
    background-color: #323d44;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #000000;
}

#modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #0a3d62;
    margin-bottom: 15px;
}

#modal-meta {
    font-size: 15px;
    color: #666;
    margin-bottom: 15px;
}

#modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

#modal-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 25px;
}

#modal-content p {
    margin-bottom: 15px;
}

#modal-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#modal-links a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0077b5;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

#modal-links a:hover {
    background-color: #005a8c;
    transform: translateY(-2px);
}


/* ============ RESEARCH PAGE SPECIFIC STYLES ============ */
.research-tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.research-tile {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 350px;
    display: flex;
    flex-direction: column;
}

.research-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tile-cover {
    height: 200px;
    overflow: hidden;
}

.research-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.research-tile:hover .research-cover {
    transform: scale(1.05);
}

.tile-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    background: #fff;
}

.research-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0;
    line-height: 1.4;
}

/* Research Modal */
.research-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    overflow-y: auto;
}

.detail-cover {
    height: 350px;
    overflow: hidden;
}

.expanded-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-content {
    padding: 40px;
    background: #fff;
}

.detail-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 30px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-item i {
    font-size: 20px;
    color: #0077b5;
}

.detail-abstract p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

/* ============ EXPERIENCE PAGE SPECIFIC STYLES ============ */
.experience-container {
    margin-bottom: 40px;
}

.experience-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #eaeaea;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.experience-item:hover {
    border-color: #00080c;
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.12);
    transform: translateY(-2px);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.job-title {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
    width: 80%;
}

.job-type {
    background-color: #f0f7ff;
    color: #00080c;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.company-info {
    margin-bottom: 15px;
}

.company-name {
    font-size: 18px;
    font-weight: 600;
    color: #00080c;
}

.job-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
    font-size: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.work-mode {
    background-color: #f5f5f5;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

.sub-experience {
    margin-top: 25px;
    padding-left: 25px;
    border-left: 2px solid #eaeaea;
}

.sub-experience-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.sub-job-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 5px;
}

.sub-job-duration {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quote-section {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eaeaea;
    font-style: italic;
    color: #666;
    font-size: 18px;
    line-height: 1.8;
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 1100px) {
    .main-content {
        gap: 40px;
    }
    
    .left-column {
        flex: 0 0 280px;
        width: 280px;
    }
    
    .right-column {
        max-width: calc(100% - 340px);
    }
}

@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
        gap: 40px;
        margin-top: 60px;
    }
    
    .left-column {
        flex: none;
        width: 100%;
        position: static;
        max-height: none;
        top: 0;
    }
    
    .right-column {
        max-width: 100%;
        margin-left: 0;
    }
    
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .research-dashboard {
        grid-template-columns: 1fr;
    }
    
    .research-tiles-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-feed {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .navbar {
        position: static;
        margin-bottom: 10px;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .profile-title {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .research-tiles-container {
        grid-template-columns: 1fr;
    }
    
    .news-feed {
        grid-template-columns: 1fr;
    }
    
    .experience-item {
        padding: 20px;
    }
    
    .job-title {
        font-size: 18px;
    }
    
    .image-container {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }
}

/* Utility Classes */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}