/* --- General Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.intro-text {
  font-family: 'Lato', sans-serif; 
  font-size: 1.2rem;              
  line-height: 2.0;                
  color: #444;                     
  max-width: 800px;                
  text-align: justify;             
  margin: 20px auto;               
  padding: 0 15px;                 
}
/* --- Themes Section --- */
.themes {
  margin-top: 30px;
  max-width: 900px;
  text-align: left;
  font-family: 'Lato', sans-serif;
}

.themes h3 {
  color: #0d3b66;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

/* --- Gradient Numbered List --- */
.gradient-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.gradient-list li {
  position: relative;
  margin: 20px 0;
  padding-left: 60px;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
  text-align: justify;
}

.gradient-list li span {
  position: absolute;
  left: 0;
  top: 0;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #0d3b66, #e7436c);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 35px;
  font-weight: bold;
  font-size: 1rem;
}

/* Animation */
.gradient-list li {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.gradient-list li:nth-child(1) { animation-delay: 0.1s; }
.gradient-list li:nth-child(2) { animation-delay: 0.3s; }
.gradient-list li:nth-child(3) { animation-delay: 0.5s; }
.gradient-list li:nth-child(4) { animation-delay: 0.7s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  overflow: hidden;
}

#home::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;       
  height: 30%;      
  background: url('bg_img.gif') no-repeat top right;
  background-size: contain;   
  opacity: 0.9;               
  z-index: -1;
}

body {
  font-family: 'Lato', sans-serif;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
  background-color: #fff;
}
/*--new corner code--*/
#news-corner {
  margin: 50px auto;
  max-width: 900px;
  text-align: left;
  padding: 20px;
}
.news-date { 
color: #e7436c; 
font-weight: 700; 
margin-right: 6px; 
}
#news-corner h3 {
  font-size: 1.8em;
  color: #0d3b66;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 700;
}

.news-box {
  background: #f0f4f8; 
  border-left: 6px solid #0d3b66;
  border-radius: 12px;
  padding: 20px 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: left;
}

.news-box ul {
  list-style-type: disc;
  padding-left: 25px;
  margin: 0;
}

.news-box li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #333;
  font-size: 1rem;
}
/* collaboration--*/
#collaborators {
  margin: 40px auto;
  max-width: 1000px;   /* reduced from 1200px */
  padding: 5px 0;
}

#collaborators h3 {
  font-family: 'Lato', sans-serif;
  font-size: 1.8em;             
  font-weight: 700;
  color: #0d3b66;
  margin-bottom: 40px;
}

/* Grid Layout */
.collab-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-content: center;     
  justify-items: center;       
  align-items: center;
  column-gap: 20px;               
  row-gap: 15px;               
}
/* Medium screens: 2 per row */
@media (max-width: 900px) {
  .collab-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Small screens: 2 per row for better fit */
@media (max-width: 600px) {
  .collab-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
	
  }
}

/* Each Item */
.collab-item {
  margin: 0;
  padding: 5px 0;
}

.collab-item img {
  width: 150px;           
  height: 150px;           
  object-fit: contain;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collab-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.collab-item p {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #333;
  font-weight: 500;
}
/* --- Links --- */
a {
  text-decoration: none;
  color: #0d3b66;
}

/* --- Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffffcc;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

header nav ul li a {
  font-weight: 500;
  transition: color 0.3s;
  font-size: 1.2rem;
}

header nav ul li a:hover {
  color: #e7436c;
}

/* --- Logo --- */
.typed-logo {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: #e7436c;
  letter-spacing: 0;
  line-height: 1;
}

/* --- Blinking cursor --- */
.typed-cursor {
  display: inline-block;
  margin-left: 0;
  color: #00cc66;
  font-weight: 600;
  line-height: 1;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* --- Sections --- */
section {
  min-height: calc(100vh - 80px);
  padding: 100px 50px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0d3b66;
}

section h2 {
  font-size: 2rem;
  font-weight: 400;
  color: #0d3b66;
  margin-bottom: 40px;
}

/* --- Team Section --- */

.team-section {
  max-width: 900px;
  text-align: left;
  line-height: 1.8;
  color: #333;
}
section h1,
.team-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0d3b66;
}
.team-section h3 {
  color: #0d3b66;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 10px;
  border-left: 5px solid #e7436c;
  padding-left: 10px;
}

.team-section ul {
  list-style: none;
  padding-left: 25px;
  margin-top: 10px;
}

.team-section ul li {
  margin: 8px 0;
  position: relative;
  padding-left: 20px;
  text-align: justify;
}

/* --- Profile Grids --- */
.profile-grid {
  display: grid;
  gap: 2rem;
  justify-content: center;
  text-align: center;
  margin-top: 1rem;
}

.faculty-grid { grid-template-columns: repeat(1, 1fr); }
.phd-grid { grid-template-columns: repeat(3, 1fr); }
.master-grid { grid-template-columns: repeat(3, 1fr); }
.bachelor-grid { grid-template-columns: repeat(2, 1fr); }
.alumni-grid { grid-template-columns: repeat(3, 1fr); }
.intern-grid { grid-template-columns: repeat(3, 1fr);
}
/* ✅ Modified intern & visitor grids to match PhD */





/* --- Profile Card --- */
.profile-card {
	 width: 230px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.profile-card img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0d3b66;
  margin-bottom: 0.8rem;
}

.profile-card h4 a {
  color: #0d3b66;
  font-weight: 600;
  text-decoration: none;
}

.profile-card h4 a:hover {
  color: #e7436c;
  text-decoration: underline;
}

.profile-card p {
  color: #555;
  font-size: 0.9rem;
}

/* --- Publications Page --- */
.pub-list {
  margin-top: 2rem;
}

.pub-list h3 {
  margin-top: 2rem;
  color: #0d3b66;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.3rem;
}

.pub-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pub-card p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.pub-card a {
  color: #0d3b66;
  font-weight: 600;
  text-decoration: none;
}

.pub-card a:hover {
  text-decoration: underline;
}

/* --- Projects Section --- */
#projects {
  padding: 60px 10%;
  text-align: center;
}

#projects h1 {
  font-family: 'Lato', sans-serif;
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 50px;
  color: #222;
}

.project-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f9fa;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.project img {
  width: 300px;               
  height: 220px;              
  object-fit: contain;        
  background-color: #f8f9fa;  
  border-radius: 16px;        
  border: 2px solid #ddd;     
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
  padding: 5px;               
}

.project-info {
  flex: 1;
  padding: 0 30px;
  text-align: left;
}

.project.left .project-info,
.project.right .project-info {
  text-align: justify;
}

.project h2 {
  font-family: 'Lato', sans-serif;
  font-size: 1.6em;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.project p {
  font-family: 'Lato', sans-serif;
  font-size: 1em;
  line-height: 1.6;
  color: #555;
}

/* --- Datasets & Collaborations --- */
.dataset-list {
  margin-top: 20px;
  line-height: 1.6;
  text-align: left;
}

.dataset {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: left;
}
.dataset h2{
  font-size: 2rem;
  font-weight: 400;
  color: #0d3b66;
  margin-bottom: 40px;
}
.dataset h3 {
  color: #003366;
  margin-bottom: 10px;
}

.dataset a {
  color: #0066cc;
  text-decoration: none;
  text-align: left;
}

.dataset a:hover {
  text-decoration: underline;
}

.collaborations-list {
  margin: 10px 0 40px 20px;  
  padding-left: 15px;        
  list-style-position: inside; 
  line-height: 1.5;          
  font-size: 1rem;
}

/* --- Responsive Layouts --- */
@media (max-width: 992px) {
  .phd-grid { grid-template-columns: repeat(3, 1fr); }
  .master-grid { grid-template-columns: repeat(2, 1fr); }
  .bachelor-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .project {
    flex-direction: column;
    text-align: center;
  }
  .project.right, .project.left {
    flex-direction: column;
  }
  .project img {
    margin-bottom: 20px;
  }
  .project-info {
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* Header becomes stacked */
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }
  header nav ul {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }
  header nav ul li a {
    font-size: 1rem;
  }

  /* Background image resize */
  #home::before {
    width: 60%;
    height: 25%;
    opacity: 0.3;
  }

  section h1 {
    font-size: 2.5rem;
  }

  .intro-text {
    font-size: 1.05rem;
  }
}

@media (max-width: 600px) {
  /* Interns and Visitors also single column now */
  .intern-grid, .visitor-grid, .phd-grid, .master-grid, .bachelor-grid, .alumni-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  section h1 { font-size: 2rem; }
  section h2 { font-size: 1.3rem; }
  .intro-text {
    font-size: 1rem;
    padding: 0 10px;
  }
  footer {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .gradient-list li {
    padding-left: 50px;
    font-size: 0.95rem;
  }
  .gradient-list li span {
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 0.9rem;
  }
  #home::before {
    display: none;
  }
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  background-color: #f8f9fa;
  color: #333;
}
