.profile-container {
    max-width: 1300px;
    margin: 0 auto;
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 0.2s ease;
}

.hero-section {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
}

/* left column: profile image & badges */
.profile-image-area {
    flex: 0 0 280px;
    padding: 2rem 1.8rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
}

.image-frame {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(145deg, #d9e2ef, #ffffff);
    padding: 6px;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.2rem;
    transition: transform 0.25s ease;
    margin-left: auto;
    margin-right: auto;
    flex-shrink: 0;
    overflow: hidden;
}

.image-frame:hover {
    transform: scale(1.02);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #e9edf2;
    display: block;
    object-position: center center;
}

.photo-wrapper {
    width: 200px;
    height: 200px;          /* equal width & height = perfect circle */
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    background: #e0e0e0;    /* fallback if image is missing */
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* ✅ fills circle without stretching */
    object-position: center top; /* ✅ keeps face visible (top-biased) */
    display: block;
    border-radius: 50%;
    display: flex;
    transition: transform 0.4s;
}

/* placeholder badge / fallback style (if image fails, shows initials gracefully) */
.affiliation-badge {
    background: #eef2ff;
    padding: 0.5rem 1rem;
    border-radius: 60px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1e4a76;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.5rem;
    border: 1px solid #cbdff2;
}

.expertise-tag {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.expertise-tag span {
    background: #eef2f9;
    padding: 0.25rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #0f3b5c;
    letter-spacing: 0.3px;
}

/* right column: name, title, summary */
.profile-info {
    flex: 1;
    padding: 2rem 2.5rem 2rem 1rem;
}

.name-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1f3a5f, #2b4c7c);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.25rem;
}

.designation {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c6280;
    border-left: 4px solid #3b82b6;
    padding-left: 0.8rem;
    margin: 0.5rem 0 1rem 0;
}

.bio-text {
    font-weight: 400;
    color: var(--text-light);
    margin: 1.2rem 0;
    font-size: 1.105rem;
    line-height: 1.6;
    text-align: justify;
}

.stats-mini {
    display: flex;
    gap: 2rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    background: #f1f5f9;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    color: #000;
}

.stat-item i {
    color: #2c6e9e;
    font-size: 1rem;
}

/* main content: publications, mentoring, research approach */
.content-section {
    padding: 2rem 2.5rem;
    background: #ffffff;
}

.research-highlight {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    margin-bottom: 2rem;
    background: #f9fbfd;
    border-radius: 28px;
    padding: 1.5rem 2rem;
    border: 1px solid #eef2f8;
}

.highlight-card {
    flex: 1;
    min-width: 200px;
}

.highlight-card i {
    font-size: 1.8rem;
    color: #3b82b6;
    margin-bottom: 0.5rem;
}

.highlight-card h3 {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1e3a5f;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem 0;
    color: #0c4a6e;
    border-left: 5px solid #3b82b6;
    padding-left: 1rem;
}

.section-title:first-of-type {
    margin-top: 0;
}

.publications-list {
    background: #fefefe;
    padding: 0.2rem 0;
}

.pub-stat {
    font-weight: 600;
    color: #155e75;
    background: #e6f3fc;
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 24px;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.grid-mentor {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.mentor-item {
    background: #f1f5f9;
    border-radius: 40px;
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* educational qualifications style */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 28px 0 18px;
}

.info-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 1.5rem 1.5rem;
    border: 1px solid #e2ebf5;
    box-shadow: 0 6px 14px rgba(0, 20, 40, 0.04);
    max-height: 500px;
    overflow: auto;
    scrollbar-width: thin;
}

.info-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #173e5f;
    border-bottom: 2px dashed #b3cfec;
    padding-bottom: 12px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card ul, .info-card p {
    list-style: none;
    font-size: 0.98rem;
    line-height: 1.7;
}

.info-card li {
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
}

.info-card li i {
    color: #2c7cb0;
    width: 22px;
    font-size: 1rem;
    margin-top: 4px;
}

.membership .ql-ui::before {
  content: "\f2c1"; /* Use the Unicode value prefixed with a backslash */
  font-family: "Font Awesome 6 Free"; /* Or "Font Awesome 6 Brands" if it is a brand icon */
  font-weight: 900; /* Use 900 for solid icons (fas), 400 for regular (far), etc. */
  padding-right: 5px; /* Add some space between the icon and text */
}

.info-card .badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.badge {
    background: #e1effb;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #12548b;
}

.section {
    margin-top: 32px;
    background: none !important;
}
.section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e4b62;
    border-left: 4px solid #2c8fbb;
    padding-left: 16px;
    margin-bottom: 20px;
}
.section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 18px 0 10px 0;
    color: #1f5e7a;
}

.edu-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.edu-item {
    background: #ffffff;
    border: 1px solid #e4e9f0;
    border-radius: 20px;
    padding: 16px 20px;
    transition: all 0.1s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    margin-left: 30px;
}
.edu-degree {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0a4460;
}
.edu-detail {
    font-size: 1rem;
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.project-list ul, .project-list ol {
    list-style: none;
    margin-top: 8px;
}
.project-list li {
    background: #fefefe;
    margin-bottom: 12px;
    padding: 12px 16px 12px 20px;
    border-radius: 18px;
    border: 1px solid #eef2f8;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    line-height: 1.45;
}
.project-list li i {
    color: #2c8fbb;
    font-size: 1rem;
    margin-top: 2px;
}
.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0 5px;
}
.research-tags span {
    background: #eef3fc;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1c6d8f;
}


hr {
    margin: 1.5rem 0;
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, #cbd5e1, transparent);
}

@media (max-width: 760px) {
    .profile-image-area {
        flex: 0 0 100%;
        padding: 1.5rem;
    }
    .profile-info {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
    .content-section {
        padding: 1.5rem;
    }
    .hero-section {
        flex-direction: column;
    }
    .name-title h1 {
        font-size: 1.9rem;
    }
    .research-highlight {
        flex-direction: column;
        padding: 1rem;
    }
}