/* ==========================================================================
   ROOTMIN LAB FINAL THEME REMIX (Side-by-Side + Cards)
   ========================================================================== */

/* 1. Color Variables & Palette */
:root {
    --color-primary: #002060;
    /* Navy */
    --color-secondary: #A67D3D;
    /* Gold */
    --color-bg: #FAF9F6;
    /* Off-White global bg */
    --color-text-main: #1a1a1a;
    --color-text-light: #555;
    --color-avatar-bg: #EBE3D0;
    --font-main: 'Inter', sans-serif;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg) !important;
    color: var(--color-text-main) !important;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px !important;
    width: 94% !important;
    margin: 0 auto;
    padding: 20px;
}

/* Navbar */
.navbar {
    position: fixed !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 94% !important;
    max-width: 1200px !important;
    border-radius: 50px !important;
    padding: 0.8rem 2rem !important;
    background-color: rgba(0, 32, 96, 0.6) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e5fa !important;
    text-decoration: none !important;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: #e2e5fa !important;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-secondary) !important;
}

/* Main Profile Section (Split Layout) */
.profile-section {
    padding-top: 160px;
    /* Space for fixed navbar */
    padding-bottom: 60px;
    display: grid;
    grid-template-columns: 350px 1fr;
    /* Fixed Left, Fluid Right */
    gap: 60px;
    align-items: start;
}

.profile-left {
    text-align: center;
    position: sticky;
    top: 140px;
    /* Stick on scroll */
}

.avatar {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    background-color: var(--color-avatar-bg);
    border: 4px solid var(--color-primary);
    padding: 5px;
}

.profile-name {
    font-size: 2.2rem;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 5px;
    font-weight: 800;
}

.profile-role {
    font-size: 1.1rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 30px;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    padding: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon img {
    width: 100%;
    height: 100%;
    /* Filter to make icons default grey or primary */
    filter: brightness(0) saturate(100%) invert(11%) sepia(56%) saturate(3620%) hue-rotate(224deg) brightness(87%) contrast(106%);
    /* Approximation for Navy */
}

.social-icon:hover {
    transform: translateY(-3px);
    background: var(--color-secondary);
}

.social-icon:hover img {
    filter: brightness(0) invert(1);
    /* White on hover */
}

/* Right Column: Bio & Content */
.profile-right {
    background: transparent;
}

.bio-text {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    text-align: justify;
}

/* Button */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-primary) !important;
    color: white !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: var(--color-secondary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 125, 61, 0.4);
}

.btn-download svg {
    width: 18px;
    height: 18px;
}

/* Education Cards */
.section-title {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 10px;
    display: inline-block;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Two columns if space permits */
    gap: 20px;
    margin-bottom: 40px;
}

.edu-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--color-primary);
    transition: transform 0.3s;
}

.edu-card:hover {
    transform: translateY(-5px);
}

.edu-degree {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.edu-school {
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 5px;
}

.edu-year {
    color: var(--color-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-style: italic;
}

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

/* Publications */
.pub-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--color-primary);
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.pub-item:hover {
    transform: translateX(5px);
}

.pub-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: #000;
    margin-bottom: 8px;
}

.pub-author {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 5px;
}

.pub-journal {
    font-style: italic;
    color: var(--color-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    /* Add space for button */
}

.btn-doi {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-doi:hover {
    background-color: var(--color-primary);
    color: white;
}

/* News Styles */
.news-content ul {
    list-style: none;
}

.news-content li {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid var(--color-secondary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

/* Increased specificity and !important to force update */
.news-content h3,
.news-content-full h3 {
    color: var(--color-primary) !important;
    margin-top: 80px !important;
}

/* Responsive */
@media (max-width: 900px) {
    .profile-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-left {
        position: static;
        margin-bottom: 40px;
    }

    .bio-text,
    .news-content-recent,
    .news-content {
        text-align: left;
    }
}

footer {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 0.9rem;
}