body {
    margin: 0;
    font-family: 'Garamond', Garamond;
    background-color: #f5f7fa;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    background-color: #0f172a;
    color: white;
}

.header-left h1 {
    margin-top: 5;
    margin-left: 40px; 
    font-size: 40px;
}

.designation {
    font-size: 22px;
    margin-left: 40px;
    margin-bottom: 10px; 
    color: #cbd5e1;
}

.header-left h1 {
    margin-bottom: 2px;   /* reduce space below name */
}

.designation {
    margin-top: 0;        /* remove space above designation */
}
/* NAVIGATION */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    position: relative;
    transition: 0.3s;
}

/* Hover animation */
.nav-links a::after {
    content: '';
    width: 0;
    height: 2px;
    background: #38bdf8;
    position: absolute;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* CONTENT AREA */
.content {
    display: flex;
    justify-content: space-between;
    padding: 50px 80px;
    max-width: 1200px;
    margin: auto;
    margin-left: 40px;
    gap: 50px;
    text-align: justify;
    line-height: 1.6;
    font-size: 20px;
}

/* TEXT */
.text {
    flex: 2;
    animation: fadeIn 1s ease-in;
}

/* IMAGE */
.image img {
    width: 250px;
    border-radius: 10px;
    animation: slideIn 1s ease-in;
}
/* NEW SECTION STYLE */
.interest-section {
    margin-top: -20px; 
    padding: 20px 80px 60px 80px;
    background-color: #ffffff;
    animation: fadeIn 1s ease-in;
}

/* Keep content centered (same width as above section) */
.interest-wrapper {
    max-width: 900px;
    margin: 40px;
}

/* Grid Layout */
.interest-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

/* Boxes */
.interest-box {
    padding: 35px;
    font-size: 20px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    text-align: center;
    transition: 0.3s;
    animation: fadeInUp 0.8s ease;
}
/* Colors */
.supply { background: #c5f0ee; color: black; }
.orange { background: #e3b6c0; color: black; }
.besan  { background: #afdec0; color: black; }
.flower { background: #c4c9f5; color: black; }

/* Hover Effect */
.interest-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideIn {
    from {opacity: 0; transform: translateX(50px);}
    to {opacity: 1; transform: translateX(0);}
}

.email [O]-text {
    margin-top: 10px;
    font-size: 20px;
}

.email [O]-text a {
    color: #0f172a;
    text-decoration: none;
}

.email [O]-text a:hover {
    text-decoration: underline;
}

.email [P]-text {
    margin-top: 20px;
    font-size: 20px;
}

.email [P]-text a {
    color: #0f172a;
    text-decoration: none;
}

.email [P]-text a:hover {
    text-decoration: underline;
}
.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.social-btn {
    padding: 12px 20px;
    background-color: #0f172a;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
}

.social-btn:hover {
    background-color: #38bdf8;
    transform: translateY(-3px);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.card:first-child {
    margin-top: 0;
}


.card p {
    text-align: justify;
    line-height: 1.6;
    font-size: 15px;
}

.card em {
    font-style: italic;
}

.card a {
    color: #2563eb;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

.publication-page .text {
    max-width: 700px;
}

/* Main line (PhD, PG, UG) */
.main {
    font-weight: 600;
    margin-bottom: 5px;   /* small gap before sublines */
    font-size: 22px;
    animation: fadeIn 1s ease-in;
}

/* Sublines (details) */
.sub {
    margin: 2px 0;        /* tight spacing between sublines */
    font-size: 20px;
    animation: fadeIn 1s ease-in;
}

/* Space between different education blocks */
.edu-item {
    margin-bottom: 20px;  /* BIG gap between PhD → PG → UG */
}
.edu-item {
    display: block;   /* ensures vertical stacking */
}

/* Main card spacing (BIG gap between jobs) */
.card {
    margin-bottom: 25px;   /* space between Research Scholar → Academic Associate */
    font-size: 22px;
}

/* Main title */
.card h3 {
    margin-bottom: 6px;   /* small gap before sublines */
}

/* Sublines: org, duration, description */
.card p {
    margin: 2px 0;        /* 🔥 tight spacing between sublines */
    font-size: 20px;
    line-height: 1.3;
}

/* Optional: slightly separate description */
.card p:last-child {
    margin-top: 6px;
}
.education-page {
    display: block;   /* ✅ makes it vertical */
}
.edu-item {
    margin-bottom: 20px;   /* space between items */
}
.main {
    margin-bottom: 5px;   /* small gap before sublines */
}

.sub {
    margin: 2px 0;        /* tight sublines */
}


