:root {
  --primary-color: #2c3e50;
  --secondary-color: #2d4697;
  --accent-color: #2d4697;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --border-radius: 8px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}



    /* ================= ROOT VARIABLES ================= */


    /* Header Section */
    .faculty-profile-header {
        background-image: linear-gradient(rgba(2, 15, 192, 0.8), #2d4697de), url("/campus/images/campus-banner.jpg");
        color: white;
        padding: 60px 0 40px;
        position: relative;
        overflow: hidden;
        margin-top: 150px;
    }

    /* .faculty-profile-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>'); background-size: cover; } */
    .profile-image-container {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        overflow: hidden;
        border: 5px solid white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        background-color: white;
        margin: 0 auto 20px;
    }

    .text-md-right {
        text-align: start;
    }

    .profile-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .faculty-name {
        font-size: 23px;
        font-weight: 700;
        margin: 20px 0 10px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    }

    .faculty-title {
        font-size: clamp(1.1rem, 3vw, 1.5rem);
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 5px;
    }

    .faculty-department {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
        color: rgba(255, 255, 255, 0.8);
    }

    /* Contact Info Card */
    .profile-contact-info {
        background: #f6f7fd;
        border-radius: 10px;
        padding: 20px 15px;
        /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); */
        margin-top: -30px;
        position: relative;
        margin-bottom: 10px;
        z-index: 2;
    }

    .contact-item {
        /* display: flex; */
        padding-left: 85px;
        align-items: center;
        margin-bottom: 15px;
        font-size: 16px;
        word-break: break-word;
    }

    .contact-item i {
        color: var(--accent-color);
        min-width: 30px;
        font-size: 15px;
        margin-right: 10px;
    }

    /* Navigation */
    .section-content {
        display: none;
    }

    .section-content.active {
        display: block;
    }

    .profile-nav {
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .profile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .profile-nav li {
        margin: 0;
    }

    .profile-nav a {
        display: block;
        padding: 10px 20px;
        color: var(--text-color);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
        border-bottom: 3px solid transparent;
        font-size: 15px;
        border: 1px solid #999;
        text-align: center;
        border-radius: 30px;
    }

    .profile-nav a:hover,
    .profile-nav a.active {
        color: var(--light-color);
        border: none;
        background: var(--accent-color);
    }

    /* Section Styling */
    /* .section-content { background: white; border-radius: 10px; padding: clamp(20px, 5vw, 30px); margin-bottom: 30px; box-shadow: 0 3px 10px rgba(0,0,0,0.08); } */
    .section-title {
        color: var(--primary-color);
        border-bottom: 3px solid var(--accent-color);
        padding-bottom: 10px;
        margin-bottom: 25px;
        font-weight: 600;
        /* font-size: 15px; */
    }

    .biography-text {
        line-height: 1.8;
        font-size: 12px;
        color: var(--text-color);
    }

    .biography-text p {
        margin-bottom: 15px;
    }

    /* Lists */
    /* publication */
    .numbered-publications {
        list-style: none;
        counter-reset: pub-counter;
        padding-left: 0;
    }

    .numbered-publications li {
        counter-increment: pub-counter;
        margin-bottom: 1.25rem;
        position: relative;
        padding-left: 2.5rem;
    }

    .numbered-publications li::before {
        content: "["counter(pub-counter) "]";
        position: absolute;
        left: 0;
        top: 0;
        font-weight: 600;
        color: var(--primary-color);
    }

    /* Education Timeline */
    .education-timeline {
        position: relative;
        padding-left: 26px;
    }

    .education-timeline::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 2px;
        background: var(--accent-color);
    }

    .education-item {
        position: relative;
        margin-bottom: 30px;
        padding-left: 20px;
    }

    .education-item::before {
        content: '';
        position: absolute;
        left: -31px;
        top: 5px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--accent-color);
        border: 3px solid white;
        box-shadow: 0 0 0 3px var(--accent-color);
    }

    .degree {
        color: var(--primary-color);
        font-weight: 600;
        font-size: 15px;
        margin-bottom: 5px;
    }

    .institution {
        color: #666;
        font-weight: 500;
        /* font-size: clamp(0.9rem, 2vw, 1rem); */
    }

    .year {
        color: #999;
        /* font-size: clamp(0.85rem, 2vw, 0.95rem); */
    }

    /* Social Links */
    .social-links {
        display: flex;
        gap: 15px;
        /* justify-content: center; */
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .social-link {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        transition: var(--transition);
        font-size: 1.2rem;
    }

    .social-link:hover {
        background: white;
        color: var(--accent-color);
        transform: translateY(-3px);
    }

    /* Card Styling */
    .card {
        border: none;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }

    .card-body {
        padding: 20px;
    }

    .card-title {
        color: var(--primary-color);
        font-weight: 600;
        font-size: 15px;
    }

    .card-text {
        font-size: 12px;
    }

    /* Button Styling */
    .btn {
        font-size: 15px;
        padding: 10px 20px;
        border-radius: 5px;
    }

    /* Responsive Design */
    @media (max-width: 991px) {
        .faculty-profile-header {
            padding: 40px 0 30px;
        }

        .profile-image-container {
            width: 150px;
            height: 150px;
        }

        .profile-contact-info .col-md-4 {
            margin-bottom: 15px;
        }
    }

    @media (max-width: 767px) {
        .faculty-profile-header {
            padding: 30px 0 20px;
            text-align: center;
        }

        .profile-nav ul {
           /* flex-direction: column;  */
        }

        .profile-nav a {
            padding: 12px 15px;
            border-bottom: 1px solid #eee;
            border-left: 3px solid transparent;
        }

        .profile-nav a:hover,
        .profile-nav a.active {
            border-bottom: 1px solid #eee;
            border-left-color: var(--accent-color);
        }

        .education-timeline {
           
        padding-left: 26px;
        margin-left: 20px;
        }

        .education-item {
            padding-left: 15px;
        }

        .contact-item {
            flex-direction: row;
           /* text-align: center;*/
        }

        .contact-item i {
            min-width: 25px;
        }
    }

    @media (min-width: 280px) and (max-width: 576px) {

        /* Header Section */
        .faculty-profile-header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 60px 0 40px;
            position: relative;
            overflow: hidden;
            margin-top: 0;
        }

        /* Social Links */
        .social-links {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 20px;
            flex-wrap: wrap;
        }

        .text-md-right {
            text-align: center;
        }

        .container {
            width: 100%;
            padding: 0px;
            margin: 0px;
        }
    }

    @media (max-width: 575px) {
        .profile-image-container {
            width: 130px;
            height: 130px;
        }

        .section-content {
            margin-bottom: 20px;
        }

        .social-links {
            gap: 10px;
        }

        .social-link {
            width: 40px;
            height: 40px;
            font-size: 1rem;
        }

        .profile-contact-info {
            padding: 20px 10px;
        }
    }

    @media (min-width: 1400px) {
        .container {
            max-width: 1200px;
        }
    }
    </style>