/* Main Stylesheet for Lab Website */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f8f8;
  
}

a {
  text-decoration: none;
  color: #1E407C; /* Penn State blue */
  transition: color 0.3s ease;
}

a:hover {
  color: #005fa9;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  
  display: flex;
  align-items: center;
}

.logo img {
  height: 58px;
  width: auto;
  margin-right: 15px;
}

.logo-text h1 {
  font-size: 1rem;
  color: #1E407C; /* Penn State blue */
  margin-bottom: 5px;
}

.logo-text p {
  font-size: 0.7rem;
  color: #666;
}

/* Navigation Styles */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  font-weight: 600;
  padding: 5px 0;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #1E407C; /* Penn State blue */
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
}

/* Page Banner Styl */
.page-banner {
  background-image: url('../images/brain_background2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 200px;
  display: flex;
  align-items: center;     /* vertically center */
  justify-content: center; /* horizontally center */
  margin-top: 50px;
  text-align: center;
  position: relative;
}

.banner-text {
  color: white;
  z-index: 1;
}


.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}


/* Hero Section Styles */
.hero {
  height: 500px;
  background-image: url('../images/brain_background2.png');
  background-size: cover;
  background-position: 70% center;
  background-repeat: no-repeat;
  position: relative;
  margin-top: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #1E407C; /* Penn State blue */
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-top: auto; /* ensures it's pushed down in the flex layout */
}

.btn:hover {
  background-color: #005fa9;
  color: #fff;
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: #1E407C; /* Penn State blue */
  margin-bottom: 15px;
}

.section-title p {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.about-content {
  overflow: hidden; /* Ensures float containment */
}

.about-image {
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
}

.about-image img {
  height: 320px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
  margin-top: 40px; /* or 40px if 60 feels too big */
}

.about-sidebar-director {
  margin-top: 60px; /* or 40px if 60 feels too big */
}

.about-text h3 {
  font-size: 1.8rem;
  color: #1E407C;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
  text-align: justify;
}


/* Research Areas Styles */
.research-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.research-area {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.research-area:hover {
  transform: translateY(-5px);
}

.research-area-image {
  height: 200px;
  overflow: hidden;
}

.research-area-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.research-area:hover .research-area-image img {
  transform: scale(1.05);
}

.research-area-content {
  padding: 25px;
}

.research-area-content h3 {
  font-size: 1.5rem;
  color: #1E407C; /* Penn State blue */
  margin-bottom: 15px;
}

.research-area-content p {
  margin-bottom: 20px;
}

/* Research Objectives section */
.research-objectives-section {
  background-color: #f5f7fb;
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  color: #1E407C;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: #555;
  font-size: 1rem;
  margin-bottom: 40px;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.research-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.research-card:hover {
  transform: translateY(-5px);
}

.research-card .icon {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #1E407C;
}

.research-card h3 {
  font-size: 1.1rem;
  color: #1E407C;
  margin-bottom: 10px;
}

.research-card p {
  font-size: 0.95rem;
  color: #444;
}

.research-card i {
  font-size: 2.5rem;
  color: tomato;
  margin-bottom: 15px;
}

/* Educational Objectives section */
.educational-objectives-section {
  background-color: #ffffff;
  padding: 60px 20px;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 cards per row */
  gap: 30px;
  margin-top: 40px;
}

.edu-card {
  background-color: #f5f7fb;
  border-radius: 10px;
  padding: 20px 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.edu-card i {
  font-size: 1.8rem;
  color: tomato;
  margin-bottom: 15px;
}

.edu-card p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}



/* Team Section Styles */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 40px;
  text-align: center;
}

.team-member img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-color: #005fa9;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 0 auto; /* center image inside the card */
  display: block;
  border-radius: 50%;
}

.team-member h3 {
  font-size: 1.1rem;
  color: #1E407C; /* Penn State blue */
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: 700;
}

.team-member p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}


/* Publications Section Styles */
.featured-publications {
  
  padding: 60px 20px;
  text-align: center;
}



.publication-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}


.pub-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease;
}


.pub-card:hover {
  transform: translateY(-5px);
}

.pub-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1E407C;
  margin-bottom: 10px;
}

.pub-authors, .pub-journal {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 5px;
}

.pub-links {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.pub-links .btn-small {
  background-color: #1E407C;
  color: white;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.pub-links .btn-small:hover {
  background-color: #005fa9;
}

/* Research Focus page */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.focus-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.focus-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.focus-card-text {
  padding: 20px;
}

.focus-card-text h3 {
  color: #1E407C;
  margin-bottom: 15px;
}

.focus-card-text ul {
  padding-left: 20px;
  margin-bottom: 10px;
  color: #333;
  font-size: 0.95rem;
}

.focus-card-text p {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
}



/* News Section Styles */
.news-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-item {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.news-item-image {
  height: 250px; /* or any height that fits your cards */
  overflow: hidden;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.news-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


.news-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
}

.news-item-content h3 {
  font-size: 1.3rem;
  color: #1E407C; /* Penn State blue */
  margin-bottom: 10px;
}

.news-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.news-item-content p {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 20px;
  line-height: 1.5;
  color: #333;
}

/* News page */
.news-section-full {
  background-color: #f1f5f9;
  padding: 60px 0;
}

.news-card {
  display: flex;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
  overflow: hidden;
  gap: 30px;
  flex-wrap: wrap; /* fallback for responsiveness */
}

.news-card-image {
  flex: 1 1 300px;
  max-width: 300px;
  height: 300px; /* ✅ FIXED HEIGHT */
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures cropping while preserving aspect ratio */
  display: block;
}

.news-card-content {
  flex: 2 1 500px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card-content h3 {
  font-size: 1.3rem;
  color: #1E407C;
  margin-bottom: 10px;
}

.news-card-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
  display: block;
}

.news-card-content p {
  color: #333;
  line-height: 1.5;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .news-card {
    flex-direction: column;
  }

  .news-card-image {
    max-width: 100%;
    height: 200px;
  }

  
}

/* Explore Page Styles */
.explore-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

.explore-section h2 {
  color: #1E407C;
  margin-bottom: 20px;
  font-size: 2rem;
}

.demo-box,
.quiz-box {
  background: #f9f9f9;
  padding: 30px;
  margin-bottom: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.demo-box textarea,
.quiz-box input[type="text"] {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  margin-top: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.btn {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #1E407C;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #005fa9;
}





/* Contact Section Styles */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
}

.contact-info {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
  font-size: 1.5rem;
  color: #1E407C; /* Penn State blue */
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 1.2rem;
  color: #1E407C; /* Penn State blue */
  margin-right: 15px;
  margin-top: 5px;
}

.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  min-height: 300px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer Styles */
footer {
  background-color: #1E407C; /* Penn State blue */
  color: #fff;
  padding: 60px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 20px;
  filter: brightness(15); 
}

.footer-logo p {
  margin-bottom: 20px;
}

.footer-links h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #fff;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links ul li a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }

  .education-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .page-banner {
    margin-top: 100px; /* or adjust as needed */
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  nav ul.show {
    display: flex;
  }
  
  nav ul li {
    margin: 10px 0;
  }
  
  .hero {
    height: 400px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  .explore-section {
    padding: 40px 15px;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 350px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
}
