/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 40px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: #f4f4f4;
}

/* Header & Navigation 
header {
    background: #003366;
    color: #fff;
    padding-top: 15px;
    min-height: 70px;
    border-bottom: #0055a4 3px solid;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
}

.nav-container {
    width: 80%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header ul {
    list-style: none;
    display: flex;
}

header li {
    padding: 0 15px;
} --------------commented on 02/07/2026
*/

/* Hero Section */
.hero {
    background: #e9ecef;
    text-align: center;
    padding: 60px 20px;
    border-bottom: 1px solid #ddd;
}

.hero h2 {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 10px;
}

/* Typography & Layout for Sections */
h2 {
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

/* Profile Card */
.profile-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.profile-info h3 {
    color: #0055a4;
    margin-bottom: 5px;
}


/* --- Research Section Grid & Cards --- */

.research-grid {
    display: grid;
    /* This makes the grid responsive: side-by-side on computers, stacked on phones */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.research-card {
    background: #ffffff;
    padding: 40px 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-top: 5px solid #0055a4; /* Matches your nice dark blue theme */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Adds a floating hover effect when the mouse goes over the card */
.research-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.card-title {
    color: #003366;
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.card-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
}

footer a {
    color: #4da6ff;
}
/* Hero Video Section Styling */
.hero-video-section {
    position: relative;
    height: 60vh; /* Takes up 60% of the screen height */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Keeps the video from spilling out of the section */
}

/* Make the video fill the background */
.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -1; /* Pushes the video strictly to the background */
    object-fit: cover; /* Ensures the video covers the area without distorting */
}

/* Style the text box over the video */
.hero-content {
    position: relative;
    z-index: 1; /* Pulls the text to the front */
    color: #000000; /* White text */
    background: rgba(0, 47, 93, 0.7); /* Semi-transparent blue box for readability */
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
}

.hero-content h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 10px;
}
/* Team Grid Layout */
/* Team Grid Layout */
.team-grid {
    display: grid;
    /* We changed 250px to 400px. This makes the cards wider and shows fewer per row! */
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px; /* I also slightly increased the space between the cards */
    margin-top: 40px;
}

/* Individual Member Card */
.member-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

/* Slight hover effect to make it interactive */
.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Member Photograph */
.member-img {
    width: 360px;
    height: 360px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #e9ecef;
}

/* Member Text */
.member-info h3 {
    color: #003366;
    margin-bottom: 5px;
    font-size: 2rem;
}

.member-role {
    font-weight: bold;
    color: #065c17;
    margin-bottom: 10px;
    font-size: 2rem;
    text-transform: uppercase;
}

.member-info p {
    font-size: 1.4rem;
    margin-bottom: 5px; 
    
}
/* Hero Image Slider Section Styling */
.hero-slider-section {
    position: relative;
    height: 60vh; /* Takes up 60% of the screen height */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Keeps the images from spilling out */
    background-color: #000; /* Dark background behind images */
}

/* Container for the sliding images */
.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Pushes the images strictly to the background */
}

/* Individual Image Styling and Animation */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distorting */
    opacity: 0; /* Hides all images by default */
    animation: fadeAnimation 15s infinite; /* 15 seconds total loop */
}

/* Delays to make the images show up one after another (5 seconds each) */
.slide:nth-child(1) {
    animation-delay: 0s;
}
.slide:nth-child(2) {
    animation-delay: 5s;
}
.slide:nth-child(3) {
    animation-delay: 10s;
}

/* The actual fading effect */
@keyframes fadeAnimation {
    0%   { opacity: 0; }
    10%  { opacity: 1; } /* Fade in */
    33%  { opacity: 1; } /* Stay visible */
    43%  { opacity: 0; } /* Fade out */
    100% { opacity: 0; } /* Stay hidden until next loop */
}

/* Style the text box over the slider (You might already have this from the video step!) */
.hero-content {
    position: relative;
    z-index: 1; /* Pulls the text to the front */
    color: #ffffff;
    background: rgba(0, 51, 102, 0.7); /* Semi-transparent blue box */
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
}

.hero-content h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 10px;
}
/* Projects Page Specific Styles */
.page-header {
    background: #2c3e50;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border-top: 5px solid #0055a4; /* This adds the matching blue border! */

}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: contain; /* Good for graphical abstracts */
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.project-info {
    padding: 25px;
}

.researcher {
    display: block;
    color: #27ae60;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.project-info h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.project-info p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Navbar Active Link */
.nav-links li a.active {
    color: #27ae60;
    border-bottom: 2px solid #27ae60;   
}
/* --- About the PI Layout --- */

/* This creates the side-by-side layout and the gap */
.pi-container {
    display: flex;
    align-items: center;   /* Keeps the text vertically centered with the image */
    gap: 40px;             /* THIS is the gap between the photo and the text! */
    margin-top: 30px;
}

/* The Photo */
.pi-photo {
    width: 100%;
    max-width: 250px;      /* Keeps the photo at a nice size */
    height: auto;
    border-radius: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;        /* Prevents the photo from squishing if there is a lot of text */
}

/* The Text - Bigger Font */
.pi-text {
    font-size: 1.15rem;    /* THIS makes the text bigger! (Standard is 1rem) */
    line-height: 1.6;      /* Adds nice breathing room between the lines of text */
    color: #333;
}

.pi-text h3 {
    font-size: 1.5rem;
    color: #003366;
    margin-bottom: 10px;
}

/* Makes sure the photo and text stack neatly on top of each other on mobile phones */
@media (max-width: 768px) {
    .pi-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}
.pub-authors {
    color: #222;           /* Darkened the text slightly */
    font-weight: bold;     /* THIS makes the authors bold! */
    margin-bottom: 3px;
}
/* --- Automatic Publication Numbering --- */

/* 1. Start the counter at your total number + 1 (71 papers = 73) */
#publications {
    counter-reset: pub-counter 74; 
}

/* 2. Tell the website to count DOWN by 1 for every paper */
.pub-item {
    counter-increment: pub-counter -1;
    position: relative; /* This makes it the anchor for our number */
    background: #fff;
    border-left: 4px solid #0055a4;
    padding: 15px 20px 15px 60px; /* Changed left padding to 60px to push ALL text to the right */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: background 0.3s ease;
}

/* 3. Insert the number and pull it to the left (Keep this exactly the same!) */
.pub-title::before {
    content: counter(pub-counter) ".";
    position: absolute; 
    left: 20px;         
    color: #0055a4; 
    font-weight: bold;
}
/* Card Grid Layout */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* --- The Actual Logo Image --- */
.logo-img {
    height: 130px;          /* Adjust this number to make your logo bigger or smaller! */
    width: auto;           /* Keeps the logo from stretching out of shape */
    border-radius: 50%;    /* TIP: Set this to '50%' if your logo is a circle, or '5px' for a soft square */
    background: #ffffff;   /* Optional: Puts a white circle/box behind the logo in case it's hard to see against the blue header */
    padding: 3px;          /* Gives a little breathing room if you keep the white background */
}

/* Let's keep it from getting too massive on mobile phones */
@media (max-width: 768px) {
    .logo-img {
        height: 50px; /* A slightly smaller size for mobile screens */
    }
}

/* Update .logo-text to match YOUR actual class name */
.logo-text {
    font-size: 2.0rem; /* Increase this number (e.g., 2.0rem, 2.2rem) to make it bigger */
    font-weight: 700;  /* Makes the text nice and bold */
    color: #003366;    /* Ensures it matches your IIT Blue theme */
    margin-left: 10px; /* Gives a little breathing room between the image and the text */
}

/* Mobile Responsiveness: Scale it down slightly for phones */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.2rem; /* Keeps it from breaking to a second line on small screens */
    }
}

/* Card Styling */
.member-card {
    cursor: pointer;
    background: #fff;
    text-align: left;
    transition: transform 0.2s ease;
}

.member-image-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important; /* Forces sharp corners */
}
/* Harvard-style Overlay */
.member-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 51, 102, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-card:hover .member-overlay { opacity: 1; }

.member-overlay span {
    color: white;
    border: 1px solid white;
    padding: 8px 16px;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.member-info-preview h3 { margin: 15px 0 5px; color: #003366; }
.member-info-preview p { color: #666; font-size: 0.9rem; }



/* Make it glow and stretch a bit when hovered */
#back-to-top-btn:hover {
    background-color: #003366; 
    padding: 12px 30px; 
    box-shadow: 0 8px 20px rgba(6, 92, 23, 0.6);}
    /* The magic that makes it bob up and down like BC at the air-water interface */
@keyframes pellicle-float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}
/* MODAL STYLES */
.member-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 40px;
    width: 80%;
    max-width: 900px;
    position: relative;
    border-radius: 0;
}

.modal-flex { display: flex; gap: 30px; }
.modal-flex img { width: 300px; height: auto; border-radius: 0; }
.modal-text { flex: 1; text-align: left; }
.modal-text h3 { color: #003366; font-size: 1.8rem; margin-top: 0; }
.modal-role { font-weight: bold; color: #065c17; font-size: 1.1rem; }
.modal-uni { font-style: italic; margin-bottom: 15px; }
.modal-bio { text-align: justify; line-height: 1.6; margin-top: 15px; }

.close-modal {
    position: absolute;
    right: 20px; top: 10px;
    font-size: 30px; cursor: pointer; color: #aaa;
}

@media (max-width: 768px) {
    .modal-flex { flex-direction: column; }
    .modal-flex img { width: 100%; }
}
/* 1. Forcing the 4-column Grid */
.alumni-wrapper {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 40px 20px !important; /* Space between rows and columns */
    max-width: 1200px !important;
    margin: 0 auto !important;
    text-align: center !important;
    padding: 20px !important;
}

/* 2. The Profile Container */
.alumni-profile {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.alumni-profile:hover {
    transform: translateY(-8px); /* Slight jump effect on hover */
}

/* 3. The Perfect Circle & Image Quality Fix */
.alumni-circle {
    width: 180px !important;  /* Fixed size stops images from stretching/blurring */
    height: 180px !important;
    border-radius: 50% !important; /* Makes it a perfect circle */
    position: relative !important;
    border: 5px solid #f9f9f9 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    margin-bottom: 15px !important;
    overflow: hidden !important; /* Clips image into a circle */
}

.alumni-circle img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Prevents squashing */
    object-position: top center !important; /* Focuses on the person's face */
    display: block !important;
}

/* 4. The "View Profile" Hover Overlay */
.alumni-hover {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 51, 102, 0.8); /* University Blue with transparency */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%; /* Ensures the overlay is also a circle */
    font-weight: bold;
    font-size: 0.9rem;
}

.alumni-circle:hover .alumni-hover {
    opacity: 1; /* Shows "View Profile" on hover */
}

/* 5. The Text Formatting */
.alumni-profile h3 {
    font-size: 1.15rem !important;
    color: #003366 !important;
    margin: 0 0 5px 0 !important;
    font-weight: bold !important;
}

.alumni-profile p {
    font-size: 0.9rem !important;
    color: #555 !important;
    margin: 0 !important;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .alumni-wrapper { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    .alumni-wrapper { grid-template-columns: 1fr !important; }
}

/* Main Section Background */
.join-us-section {
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
    padding: 80px 20px;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

.join-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

/* Left Side: Text and Call to Action */
.join-content {
    flex: 1;
    max-width: 500px;
}

.join-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #4da6ff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(77, 166, 255, 0.3);
}

.join-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.join-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #d1e0e8;
    margin-bottom: 35px;
}

/* The Call to Action Button */
.join-btn {
    display: inline-block;
    background: #FFD700; /* Inspiring Gold/Yellow */
    color: #003366;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 215, 0, 0.4);
    background: #ffea00;
}

.join-email-text {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #88bbfc;
}

/* Right Side: Floating Roles Grid */
.join-roles-grid {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-end;
}

/* Glassmorphism Cards */
.role-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px); /* Creates the frosted glass effect */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    width: calc(50% - 15px); /* 2 cards per row */
    min-width: 200px;
    transition: all 0.4s ease;
    cursor: default;
}

.role-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Highlight the Internships to attract younger students */
.highlight-card {
    background: rgba(77, 166, 255, 0.15);
    border: 1px solid rgba(77, 166, 255, 0.4);
}

.role-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.role-card h4 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    color: white;
}

.role-card p {
    font-size: 0.85rem;
    color: #b3d4ff;
    margin: 0;
    line-height: 1.4;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .join-container {
        flex-direction: column;
        text-align: center;
    }
    
    .join-desc {
        text-align: left; /* Keeps text readable */
    }

    .join-roles-grid {
        justify-content: center;
        width: 100%;
    }

    .role-card {
        width: 100%; /* Stacks cards on mobile */
    }
}/* Teaching Hero Image Area */
.teaching-hero {
    width: 100%;
    height: 300px;
    background-image: url('https://images.unsplash.com/photo-1532094349884-543bb1178565?auto=format&fit=crop&q=80&w=2070'); /* Professional Lab Image */
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 40px;
}

.teaching-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 51, 102, 0.6); /* Transparent Blue */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.teaching-overlay h2 { font-size: 2.5rem; margin-bottom: 10px; }

/* Table Styling */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.teaching-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.teaching-table thead tr {
    background-color: #003366;
    color: #ffffff;
    text-align: left;
}

.teaching-table th, .teaching-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #dddddd;
}

.teaching-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.teaching-table tbody tr:hover {
    background-color: #e9ecef;
    transition: 0.3s;
}

.teaching-table td:first-child {
    font-weight: bold;
    color: #003366;
}
/* Container for the Grid */
.collab-people-grid {
    display: grid;
    /* Automatically fits as many 300px cards as possible in a row */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Individual Collaborator Card */
.collab-person-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-top: 5px solid #003366; /* IIT Hyderabad Blue */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.collab-person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.15);
}

/* Name Styling */
.collab-person-card h3 {
    color: #003366;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

/* Department/Role Styling */
.collab-role {
    font-size: 0.9rem;
    color: #555555;
    margin: 0 0 12px 0;
    line-height: 1.5;
    flex-grow: 1; /* Pushes the institution to the bottom */
}

/* Institution Name Styling */
.collab-inst {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222222;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid #eeeeee; /* Subtle divider line */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .collab-people-grid {
        grid-template-columns: 1fr; /* Stacks to 1 column on phones */
    }
}
/* Container to center the logos */
.industry-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers the 5 items perfectly */
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Individual wrapper for each company */
.industry-item {
    text-align: center;
    transition: transform 0.4s ease;
    width: 150px; /* Keeps the spacing consistent */
}

/* Logo Styling - Grayscale by default */
.industry-logo {
    max-width: 130px;
    height: 80px; /* Forces logos to align at the same height */
    object-fit: contain; /* Prevents logos from stretching */
    filter: grayscale(100%); /* Makes it look clean and academic */
    opacity: 0.6;
    transition: all 0.4s ease;
    margin-bottom: 15px;
}

/* Text under the logo */
.industry-item p {
    font-size: 0.95rem;
    color: #777;
    font-weight: 600;
    margin: 0;
    transition: color 0.4s ease;
}

/* Hover Effects - Brings back color and enlarges */
.industry-item:hover {
    transform: translateY(-8px); /* Jumps up slightly */
}

.industry-item:hover .industry-logo {
    filter: grayscale(0%); /* Brings company colors back */
    opacity: 1;
}

.industry-item:hover p {
    color: #003366; /* Your university blue */
}

/* Styles the toggle button to match your site's theme */
.btn-toggle {
    background-color: #003366; /* Dark Blue */
    color: #ffffff;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-toggle:hover {
    background-color: #0055a4; /* Lighter blue on hover */
    transform: translateY(-2px);
}


/* Styling for the floating BC button */
#back-to-top-btn {
    display: none; 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    z-index: 1000; 
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    border: none;
    outline: none;
    background-color: #003366; /* IIT Green */
    color: white;
    cursor: pointer;
    padding: 12px 24px;
    border-radius: 50px; /* Pill-shaped, like a bacillus bacterium! */
    box-shadow: 0 5px 15px rgba(6, 92, 23, 0.4); 
    transition: all 0.3s ease;
    
    /* This adds the continuous floating animation */
    animation: pellicle-float 3s ease-in-out infinite; 
}

/* Make it glow and stretch a bit when hovered */
#back-to-top-btn:hover {
    background-color: #003366; 
    padding: 12px 30px; 
    box-shadow: 0 8px 20px rgba(6, 92, 23, 0.6);
}

/* The magic that makes it bob up and down like BC at the air-water interface */
@keyframes pellicle-float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* ================================================= */
/* --- PATENTS SECTION (Foolproof Custom Counters) --- */
/* ================================================= */

/* 1. Setup the Granted List (Change '3' to one higher than your total granted items) */
ol.granted-list {
    counter-reset: granted-counter 4; 
    list-style: none; 
    padding-left: 0;
    margin-bottom: 40px;
}

/* 2. Setup the Filed List (Change '3' to one higher than your total filed items) */
ol.filed-list {
    counter-reset: filed-counter 8; 
    list-style: none; 
    padding-left: 0;
    margin-bottom: 40px;
}

/* 3. The Card Styling (Identical to your publications) */
.pat-item {
    position: relative; 
    background: #fff;
    border-left: 4px solid #0055a4; 
    padding: 15px 20px 15px 60px; 
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: background 0.3s ease;
    line-height: 1.5;
}

/* 4. Tell the specific lists to count DOWN by 1 */
ol.granted-list .pat-item {
    counter-increment: granted-counter -1;
}

ol.filed-list .pat-item {
    counter-increment: filed-counter -1;
}

/* 5. Display the numbers for Granted Patents */
ol.granted-list .pat-item::before {
    content: counter(granted-counter) ".";
    position: absolute;
    left: 20px;
    color: #0055a4;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 6. Display the numbers for Filed Patents */
ol.filed-list .pat-item::before {
    content: counter(filed-counter) ".";
    position: absolute;
    left: 20px;
    color: #0055a4;
    font-weight: bold;
    font-size: 1.1rem;
}
/* ================================================= */
/* --- OUTREACH SECTION --- */
/* ================================================= */

/* The main container for each event */
.outreach-row {
    display: flex;
    align-items: center; /* Centers the text vertically with the image */
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    border-left: 5px solid #0055a4; /* Blue accent to match your pubs/patents */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.outreach-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Forces the image container to take up exactly 40% of the width */
.outreach-img-container {
    flex: 0 0 40%; 
}

.outreach-img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    display: block; /* Removes weird spacing under images */
}

/* The text container takes up the remaining 60% */
.outreach-content {
    padding: 30px;
    flex: 1;
}

/* Styling the little date badge */
.outreach-date {
    display: inline-block;
    background-color: #e6f0fa; /* Very light blue */
    color: #0055a4;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.outreach-title {
    color: #065c17; /* IIT Green */
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.outreach-desc {
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* --- MOBILE RESPONSIVENESS --- */
/* When the screen gets smaller than 768px (tablets/phones), stack them! */
@media (max-width: 768px) {
    .outreach-row {
        flex-direction: column; /* Stacks image on top, text on bottom */
    }
    
    .outreach-img-container {
        flex: auto;
        width: 100%;
    }
    
    .outreach-img {
    width: 100%;
    height: 200px; /* We changed this to a strict, fixed height */
    object-fit: cover; /* This crops the image perfectly to fit the box */
    object-position: center top; /* Keeps faces in the frame if the image is tall */
    display: block;
}
}
/* Gives the video container the same 40% width as the image container */
.outreach-video-container {
    flex: 0 0 40%;
    background-color: #000; /* Adds a black background just in case the video takes a second to load */
}

/* Forces the YouTube iframe to perfectly fill its container */
.outreach-video {
    width: 100%;
    height: 100%;
    min-height: 250px; /* Matches the height of your images */
    border: none;
    display: block;
}
/* --- MOBILE RESPONSIVENESS (Updated) --- */
@media (max-width: 768px) {
    .outreach-row {
        flex-direction: column; 
    }
    
    /* Now applies to both images AND videos */
    .outreach-img-container,
    .outreach-video-container {
        flex: auto;
        width: 100%;
    }
    
    /* Keeps both images AND videos looking good on phones */
    .outreach-img,
    .outreach-video {
        min-height: 200px;
    }
}
/* Makes the cursor look like a pointing hand */
.video-link {
    display: block;
    cursor: pointer; 
}

/* Adds a smooth fade effect on the screenshot */
.video-thumbnail {
    transition: opacity 0.3s ease;
}

/* Dims the image slightly when hovered */
.video-link:hover .video-thumbnail {
    opacity: 0.8;
}
/* Styling the headings for Articles, News, and Tweets */
.outreach-subheading {
    color: #065c17; /* IIT Green */
    font-size: 1.8rem;
    margin-top: 60px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eeeeee;
    padding-bottom: 10px;
}

/* Styling the Articles and News lists */
.outreach-list {
    list-style: none;
    padding-left: 0;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

/* Adding custom blue bullets to the lists */
.outreach-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.outreach-list li::before {
    content: "•";
    color: #0055a4; /* Blue bullet */
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: -4px;
}

/* Styling the links for popular articles */
.outreach-list a {
    color: #0055a4;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.outreach-list a:hover {
    color: #065c17;
    text-decoration: underline;
}

/* Making the Twitter feed look neat and centered */
.twitter-container {
    max-width: 600px; /* Prevents the feed from getting too wide on large screens */
    margin: 0 auto; /* Centers the Twitter box on the page */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Adds a soft shadow */
    background: #fff;
}
/* ================================================= */
/* --- ARTICLE MINI-CARDS --- */
/* ================================================= */

.article-container {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between each article */
}

/* The card that holds the image and text */
.article-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 4px solid #065c17; /* IIT Green accent */
}

/* Making the image link clickable and adding a hover effect */
.article-img-link {
    flex-shrink: 0; /* Prevents the image from getting squished */
    display: block;
}

.article-thumb {
    width: 80px; /* Width of the article thumbnail */
    height: 100px; /* Height of the article thumbnail */
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Fades and lifts the image slightly when hovered */
.article-img-link:hover .article-thumb {
    opacity: 0.8;
    transform: scale(1.05);
}

/* The text side */
.article-info {
    margin-left: 20px;
}

.article-title-link {
    display: block;
    color: #0055a4; /* Blue to match your theme */
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.article-title-link:hover {
    color: #0055a4; /* Changes to green on hover */
    text-decoration: underline;
}

.article-meta {
    color: #555;
    font-size: 1rem;
}

/* Mobile Responsiveness for Articles */
@media (max-width: 600px) {
    .article-item {
        flex-direction: column;
        text-align: center;
    }
    
    .article-info {
        margin-left: 0;
        margin-top: 15px;
    }
}
/* ================================================= */
/* --- CREATIVE NEWS GRID --- */
/* ================================================= */

/* The responsive grid container */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Individual News Card */
.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-bottom: 4px solid #0055a4; /* Blue accent line */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

/* Image Wrapper (hides the overflow so zooming works smoothly) */
.news-img-wrapper {
    position: relative;
    display: block;
    height: 180px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Zooms the image in slightly when the card is hovered */
.news-card:hover .news-img {
    transform: scale(1.1);
}

/* Floating Date Badge */
.news-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #065c17; /* IIT Green */
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    z-index: 2; /* Keeps the badge above the zooming image */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.news-month {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-year {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Text Content Area */
.news-content {
    padding: 20px;
}

.news-title-link {
    display: block;
    color: #065c17;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.news-title-link:hover {
    color: #0055a4;
}

.news-snippet {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}
/* ================================================= */
/* --- CUSTOM TWEET CARDS --- */
/* ================================================= */

.tweet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* The Card Itself */
.custom-tweet-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.custom-tweet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #0055a4; /* Highlights the border with your theme blue on hover */
}

/* Header: Avatar, Name, Handle, and X Logo */
.tweet-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.tweet-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%; /* Makes the avatar perfectly round */
    object-fit: cover;
    margin-right: 12px;
}

.tweet-user-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes the X logo to the far right */
}

.tweet-name {
    font-weight: bold;
    color: #0f1419;
    font-size: 1rem;
}

.tweet-handle {
    color: #536471;
    font-size: 0.9rem;
}

.x-logo {
    width: 20px;
    height: 20px;
    fill: #0f1419;
}

/* Tweet Text Content */
.tweet-body {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #0f1419;
    margin-bottom: 15px;
}

/* If you add an image inside the tweet */
/* If you add an image inside the tweet */
.tweet-media img {
    width: 50%;
    max-height: 250px; /* Stops the image from getting too tall */
    object-fit: cover; /* Crops the image perfectly without squishing it */
    object-position: center; /* Keeps the middle of the image in focus */
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    margin-bottom: 15px;
    display: block; /* Removes any tiny gaps underneath the image */
}

/* Date Footer */
.tweet-footer {
    font-size: 0.9rem;
    color: #536471;
}

/* The 'Follow us on X' Button */
.view-all-twitter-btn {
    display: inline-block;
    background-color: #0f1419; /* X's dark mode color */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.view-all-twitter-btn:hover {
    background-color: #272c30;
}
/* ================================================= */
/* --- CUSTOM INSTAGRAM CARDS --- */
/* ================================================= */

.ig-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* The Card Itself */
.custom-ig-card {
    display: block;
    background: #ffffff;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-ig-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Header */
.ig-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
}

.ig-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.ig-user-info {
    flex-grow: 1;
}

.ig-handle {
    font-weight: 600;
    color: #262626;
    font-size: 0.95rem;
}

.ig-logo {
    width: 20px;
    height: 20px;
    color: #262626;
}

/* The Image Container (Forces a Perfect Square) */
.ig-media img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Magic line that forces a perfect square! */
    object-fit: cover;
    display: block;
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
}

/* Action Icons (Heart, Comment) */
.ig-actions {
    padding: 10px 15px;
    display: flex;
    gap: 15px;
}

.ig-actions svg {
    width: 24px;
    height: 24px;
    color: #262626;
    transition: transform 0.2s ease;
}

.custom-ig-card:hover .ig-actions svg:first-child {
    color: #ed4956; /* Turns the heart red on hover! */
    fill: #ed4956;
    transform: scale(1.1);
}

/* Caption and Footer */
.ig-caption {
    padding: 0 15px 10px 15px;
    font-size: 0.95rem;
    color: #262626;
    line-height: 1.4;
}

.ig-caption strong {
    font-weight: 600;
    margin-right: 5px;
}

.ig-footer {
    padding: 0 15px 15px 15px;
    font-size: 0.75rem;
    color: #8e8e8e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* The 'Follow us on Instagram' Button */
.view-all-ig-btn {
    display: inline-block;
    /* Official Instagram Gradient */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.view-all-ig-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}
/* ================================================= */
/* --- RESEARCH FOCUS ANIMATED ICONS --- */
/* ================================================= */

.research-animated-icon {
    width: 80px; /* Change this to match the size of your old images */
    height: 80px; /* Keep width and height the same for a perfect square */
    object-fit: contain; /* Ensures the animation isn't cut off */
    display: block;
    margin: 0 auto 20px auto; /* Centers the icon and adds space below it */
    pointer-events: none; /* Prevents users from clicking/pausing the video */
    background-color: transparent;
}
/* ================================================= */
/* --- GALLERY GRID --- */
/* ================================================= */

.gallery-grid {
    display: grid;
    /* Automatically fits as many 280px wide columns as possible */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; /* Space between photos */
}

/* The container holding the image and the overlay */
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden; /* Keeps the zoom effect inside the rounded corners */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* The Image */
.gallery-img {
    width: 100%;
    height: 250px; /* Forces all images to be the exact same height */
    object-fit: cover; /* Crops elegantly to prevent squishing */
    display: block;
    transition: transform 0.4s ease; /* Smooth zoom animation */
}

/* The Text Overlay (Hidden by default) */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.8); /* Semi-transparent IIT Blue */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Completely invisible normally */
    transition: opacity 0.4s ease; /* Smooth fade in */
}

.gallery-caption {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    padding: 0 15px;
    transform: translateY(20px); /* Starts slightly lower down */
    transition: transform 0.4s ease; /* Smooth slide up */
}

/* --- HOVER EFFECTS --- */

/* 1. Zooms the image slightly */
.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}



/* 3. Slides the text up into place */
.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}
/* ================================================= */
/* --- MODERN EDITORIAL PI SECTION --- */
/* ================================================= */

.pi-modern-section {
    padding: 80px 20px;
    background-color: #f4f7f6; /* Very soft, clean background */
    display: flex;
    justify-content: center;
}

.pi-modern-container {
    max-width: 1100px;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

/* The Image Side */
.pi-modern-image {
    flex: 0 0 45%;
    position: relative;
    z-index: 1;
}

.pi-portrait {
    width: 100%;
    height: 500px; /* Tall, editorial portrait style */
    object-fit: cover;
    border-radius: 4px;
    box-shadow: -15px 15px 0px #003366; /* Hard modern shadow in IIT Blue */
}

/* Modern Floating Badge */
.pi-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: #065c17; /* IIT Green */
    color: #fff;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* The Content Side - Overlapping the Image */
.pi-modern-content {
    flex: 1;
    background: #ffffff;
    padding: 50px;
    margin-left: -50px; /* Creates the premium overlap effect */
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 4px solid #003366;
}

.pi-eyebrow {
    color: #065c17;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.pi-modern-name {
    font-size: 2.8rem;
    color: #111;
    margin: 0 0 20px 0;
    line-height: 1.1;
}

.pi-modern-bio {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 35px;
}

/* Action Buttons */
.pi-modern-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pi-modern-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #003366;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.pi-modern-btn:hover {
    background: #065c17;
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.pi-modern-btn:hover .arrow-icon {
    transform: translateX(5px); /* Arrow shoots forward on hover */
}

.pi-scholar-link {
    color: #003366;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.pi-scholar-link:hover {
    border-color: #003366;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .pi-modern-container {
        flex-direction: column;
    }
    .pi-modern-image {
        flex: none;
        width: 100%;
        max-width: 800px;
    }
    .pi-portrait {
        box-shadow: none; /* Remove hard shadow on mobile to save space */
    }
    .pi-modern-content {
        margin-left: 0;
        margin-top: -30px; /* Overlap vertically instead of horizontally */
        padding: 30px;
        width: 90%;
    }
    .pi-modern-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ================================================= */
/* --- AESTHETIC PI PAGE STYLES --- */
/* ================================================= */

/* --- 1. HERO SECTION (RICH BLUE THEME) --- */
.pi-premium-hero {
    position: relative;
    background: linear-gradient(135deg, #001a33 0%, #003366 100%);
    padding: 120px 20px 180px 20px; /* Extra padding at bottom for overlap */
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.pi-watermark {
    position: absolute;
    top: 5%;
    left: -5%;
    font-size: 15vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03); /* Faint watermark text */
    letter-spacing: 10px;
    pointer-events: none;
    z-index: 1;
}

.pi-premium-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 60px;
    z-index: 2;
    position: relative;
}

.pi-premium-text {
    flex: 1;
    color: #ffffff;
    text-align: justify; /* <-- Added this! */
}

.pi-accent-title {
    color: #a8cba4; /* Soft green */
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
}

.pi-massive-name {
    font-size: 4.5rem;
    line-height: 1.05;
    margin: 0 0 25px 0;
    font-weight: 800;
}

.pi-green-line {
    width: 80px;
    height: 4px;
    background-color: #065c17; /* IIT Green */
    margin-bottom: 25px;
}

.pi-hero-subtext {
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    max-width: 500px;
}

/* Image with Floating Frame Effect */
.pi-premium-image-wrapper {
    flex: 0 0 45%;
    position: relative;
}

.pi-image-backdrop {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid #065c17; /* Floating green frame */
    z-index: 1;
}

.pi-premium-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    position: relative;
    z-index: 2;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

/* --- 2. OVERLAPPING MESSAGE CARD --- */
.pi-message-section {
    display: flex;
    justify-content: center;
    margin-top: -100px; /* Pulls the card UP into the blue hero section */
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.pi-message-card {
    background: #ffffff;
    max-width: 900px;
    width: 100%;
    padding: 50px 60px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15); /* Blue-tinted shadow */
    border-top: 6px solid #065c17;
    position: relative;
    text-align: center;
}

.quote-mark {
    position: absolute;
    top: -20px;
    left: 40px;
    font-size: 120px;
    color: rgba(6, 92, 23, 0.1); /* Very faint green quote mark behind text */
    font-family: Georgia, serif;
    line-height: 1;
}

.pi-vision-quote {
    font-size: 1.8rem;
    color: #003366;
    font-style: italic;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* --- 3. BIODATA & TIMELINE --- */
.pi-details-section {
    padding: 80px 20px;
    background-color: #fcfcfc;
    display: flex;
    justify-content: center;
}

.pi-details-grid {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
}

.aesthetic-heading {
    font-size: 2.5rem;
    color: #003366;
    margin-top: 0;
    margin-bottom: 30px;
}

.pi-bio-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

.aesthetic-subheading {
    font-size: 1.8rem;
    color: #003366;
    margin-top: 0;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeaea;
}

/* Custom Visual Timeline */
.aesthetic-timeline {
    position: relative;
    padding-left: 20px;
}

.aesthetic-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #dbe4eb; /* Light blue line connecting dots */
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
    padding-left: 25px;
}

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: #003366; /* IIT Blue dot */
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #065c17; /* Green outer ring */
}

.timeline-date {
    font-weight: bold;
    color: #065c17; /* IIT Green date */
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.timeline-text {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.5;
}

.timeline-text strong {
    color: #222;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .pi-premium-container {
        flex-direction: column;
        text-align: justify;
    }
    .pi-massive-name {
        font-size: 3rem;
    }
    .pi-green-line {
        margin: 0 auto 25px auto; /* Centers the line */
    }
    .pi-image-backdrop {
        display: none; /* Hides the floating frame on mobile for cleanliness */
    }
    .pi-message-card {
        padding: 40px 30px;
        text-align: justify; /* <-- Added this! */
    }
    .pi-vision-quote {
        font-size: 1.4rem;
    }
    .pi-details-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}
/* ================================================= */
/* --- BACTERIA BACK BUTTON (SMALLER & SUBTLER) --- */
/* ================================================= */

.bacteria-back-btn {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 100;
    background: #065c17; /* Deep IIT Green */
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem; /* Reduced from 1.05rem */
    padding: 8px 22px; /* Slimmed down from 12px 35px */
    border-radius: 50px; 
    border: 2px solid #a8cba4; 
    box-shadow: 0 4px 10px rgba(6, 92, 23, 0.4); /* Softer base shadow */
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Tighter gap between arrow and text */
    transition: all 0.3s ease; /* Smoother, less aggressive transition */
}

/* Subtler hover effect - no more expanding size! */
.bacteria-back-btn:hover {
    background: #a8cba4;
    color: #003366;
    border-color: #ffffff;
    transform: rotate(-3deg) translateY(-2px); /* Just a slight tilt and lift, no scale() */
    box-shadow: 0 6px 15px rgba(168, 203, 164, 0.5);
}

.back-arrow {
    font-size: 1.1rem; /* Scaled down the arrow */
    transition: transform 0.3s ease;
}

.bacteria-back-btn:hover .back-arrow {
    transform: translateX(-4px); /* Arrow still slides left smoothly */
}

/* --- Mobile Responsiveness for Small Button --- */
@media (max-width: 992px) {
    .bacteria-back-btn {
        top: 20px;
        left: 20px;
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}
/* ================================================= */
/* --- GLOBAL MOBILE RESPONSIVENESS SAFETY NET --- */
/* ================================================= */

/* 1. Stop images from stretching past the screen */
img {
    max-width: 100%;
    height: auto;
}

/* 2. Prevent horizontal scrolling on phones */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* 3. Mobile formatting rules */
@media (max-width: 768px) {
    
    /* Ensure containers have breathing room on the edges */
    section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Make all standard buttons larger and easier to tap */
    a.button, button, .pi-btn, .pi-modern-btn {
        min-height: 44px; /* Minimum tappable height */
        padding: 12px 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%; /* Makes main buttons span the screen width on phones */
        margin-bottom: 10px;
    }
    
    /* Keep the bacteria button small but perfectly tappable */
    .bacteria-back-btn {
        min-height: 44px;
        width: auto; 
    }
}

/* ================================================= */
/* --- INTERACTIVE BC TAB SECTION --- */
/* ================================================= */

.bc-tab-section {
    padding: 90px 20px;
    background-color: #f8fafd; /* Faint blue background tint for depth */
    display: flex;
    justify-content: center;
}

.bc-tab-container {
    max-width: 1100px;
    width: 100%;
}

.tab-section-eyebrow {
    color: #065c17; /* IIT Green */
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.tab-section-heading {
    font-size: 2.4rem;
    color: #003366; /* IIT Blue */
    margin-top: 0;
    margin-bottom: 35px;
    font-weight: 800;
}

/* Tab Navigation Styling */
.bc-tab-nav {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #003366;
}

/* Active Tab State Indicator Line */
.tab-btn.active {
    color: #003366;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #065c17; /* IIT Green line accent */
}

/* Tab Content Visibility Management */
.bc-tab-content-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.05);
    min-height: 300px;
}

.bc-tab-pane {
    display: none; /* Hides non-active panes by default */
}

.bc-tab-pane.active {
    display: block; /* Shows active pane */
    animation: fadeIn 0.4s ease-in-out;
}

/* Tab Content Layout Internal Grid */
.tab-split-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.tab-text-side h3 {
    font-size: 1.6rem;
    color: #003366;
    margin-top: 0;
    margin-bottom: 15px;
}

.tab-text-side p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 15px;
}

.text-justify {
    text-align: justify;
    text-justify: inter-word;
}

/* Sidebar Feature Box Variants */
.tab-accent-side-light {
    background-color: #f0f7f1; /* Light green tint */
    border-left: 4px solid #065c17;
    padding: 25px;
    border-radius: 0 8px 8px 0;
}

.tab-accent-side-light h4 {
    color: #065c17;
    margin: 0 0 10px 0;
}

.tab-accent-side-dark {
    background: linear-gradient(135deg, #002244 0%, #003366 100%);
    color: #ffffff;
    padding: 25px;
    border-radius: 8px;
}

.tab-accent-side-dark h5 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #a8cba4;
}

.tab-accent-side-dark ul {
    padding-left: 20px;
    margin: 0;
}

.tab-accent-side-dark li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Application Interface Box */
.tab-applications-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 25px;
    border-radius: 8px;
}

.tab-applications-box h5 {
    margin: 0 0 15px 0;
    color: #003366;
    font-size: 1rem;
}

.app-pill-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
    border-left: 3px solid #065c17;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bc-tab-nav {
        flex-direction: column;
        gap: 0;
    }
    .tab-btn {
        text-align: left;
        padding: 12px 10px;
    }
    .tab-btn.active::after {
        left: -10px;
        bottom: 0;
        width: 3px;
        height: 100%;
    }
    .tab-split-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/*1.7.2026 
 Elegant anchored caption bar updated for the advantages aesthetic */
.image-caption {
    background-color: #065c17; /* Switched to IIT Green to highlight "Advantages" */
    color: #ffffff;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 3px solid #003366; /* IIT Blue accent separator line */
}

.caption-dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff; 
    border-radius: 50%;
}
/* ================================================= */
/* --- ALUMNI SECTION STYLING --- */
/* ================================================= */

.alumni-section {
    padding: 80px 20px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
}

.alumni-container {
    max-width: 1100px;
    width: 100%;
}

.alumni-header {
    text-align: center;
    margin-bottom: 50px;
}

.alumni-eyebrow {
    color: #065c17; /* IIT Green */
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.alumni-header h2 {
    font-size: 2.8rem;
    color: #003366; /* IIT Blue */
    margin: 10px 0;
}

.alumni-header p {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Dividers */
.alumni-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 1.8rem;
    color: #003366;
    border-bottom: 3px solid #065c17; /* Strong green divider line */
    padding-bottom: 10px;
    margin-bottom: 30px;
    display: inline-block;
}

/* Responsive Grid for Alumni Cards */
.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Individual Alumni Profile Cards */
.alumni-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid #003366; /* IIT Blue accent edge */
}

.alumni-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.08);
}

.alumni-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 5px;
}

.alumni-year {
    font-size: 0.9rem;
    color: #065c17;
    font-weight: 600;
    margin-bottom: 15px;
}

.alumni-project, .alumni-current {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 8px;
}

.alumni-current strong {
    color: #003366;
}
/* ================================================= */
/* --- HEADER & NAVIGATION --- done on 02 July 2026 */ 
/* ================================================= */

header {
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Ensures the video and the links sit perfectly together in the header */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* 👇 Changed the 10px to 0px so the logo can expand fully to the top and bottom */
    padding: 0px 30px; 
    
    background-color: #ffffff;
    max-width: 100%;
}

/* --- LOGO ALIGNMENT (SIDE-BY-SIDE) ---  02/07/2026 */


.logo-img {
    height: 110px; 
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 2rem; /* Keeping the slightly larger font size */
    font-weight: 800;
    color: #003366 !important;
    white-space: nowrap; /* Keeps the name on one line */
    letter-spacing: 0.5px;
}


 /* ================================================= */
/* --- 3-COLUMN HEADER LAYOUT --- 23/07/2026 */
/* ================================================= */

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: #ffffff;
    max-width: 100%;
}

/* These flex settings ensure the side logos push the navigation perfectly into the center */
.logo-left, .logo-right {
    flex: 1; 
}

/* Align the left logo to the far left */
.logo-left {
    display: flex;
    justify-content: flex-start;
}

/* Center the navigation menu */
.nav-center {
    display: flex;
    justify-content: center;
    flex: 2; /* Gives the navigation links a bit more room to stretch out */
}

/* Align the right IITH logo to the far right */
.logo-right {
    display: flex;
    justify-content: flex-end;
}

/* ================================================= */
/* --- LOGO IMAGE SIZING --- */
/* ================================================= */

/* Ensures both logos have a uniform height so the header doesn't look lopsided */
.header-logo {
    height: 80px; /* Adjust this up or down to dial in the perfect size */
    width: auto;
    object-fit: contain;
}

.iith-logo {
    height: 65px; /* Adjust this up or down to dial in the perfect size */
    width: auto;
    object-fit: contain;
}

/* Keeps the left logo and text nicely paired if you use the text span */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}


/* --- NAVIGATION LINKS --- */
.nav-links {
    list-style: none;
    display: flex;
    gap: 15px; /* Tighter spacing so all 11 links fit */
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: #003366;
    font-size: 1rem; /* Smaller font to accommodate the high link count */
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap; /* Prevents links from breaking awkwardly */
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #065c17; /* IIT Green hover effect */
}

/* ================================================= */
/* --- ACADEMIC COURSEWORK HEADER BACKGROUND --- */
/* ================================================= */

.teaching-overlay {
    /* The first part is the semi-transparent IIT Blue overlay (0.8 = 80% opacity). 
       The second part is the path to your background image. */
    background-image: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.85)), url('celluloseandcompositesgroup/main/teaching-hero.jpeg');
    
    background-size: cover;          /* Ensures the image fills the entire space */
    background-position: center;     /* Keeps the focal point in the middle */
    background-repeat: no-repeat;
    
    padding: 80px 20px;              /* Gives the header lots of vertical breathing room */
    text-align: center;
    border-radius: 8px;              /* Optional: rounds the corners slightly */
    margin-bottom: 40px;             /* Space between header and the courses */
}

/* Make sure the text inside pops against the dark background */
.teaching-overlay h2 {
    color: #ffffff;
    font-size: 2.8rem;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.teaching-overlay p {
    color: #e2e8f0; /* A soft off-white for the subtitle */
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Container for the logo video */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
   
}



/* ================================================= */
/* --- WEBSITE CREDITS (FOOTER) --- */
/* ================================================= */

.website-credits {
    text-align: center;
    padding: 20px;
    margin-top: 40px; /* Creates breathing room between your main footer and the credits */
    border-top: 1px solid rgba(0, 0, 0, 0.1); /* Adds a very faint separating line */
    font-size: 18px;
    color: #ffffff; /* white */
}

/* Makes your names stand out just a little bit more */
.website-credits strong {
    color: #ffffff; 
    font-weight: 600;
}
