/* ---------- Global Reset ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* ---------- Container ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ---------- Header ---------- */
.header {
    padding: 40px 60px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 2rem;
    font-weight: 400;
    color: #000;
    margin: 0;
}

.header h1 a {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.header h1 a:hover {
    color: #1E90FF;
}

.header-icons {
    display: flex;
    gap: 20px;
}

.header-icons a {
    color: #000;
    text-decoration: none;
    font-size: 1.2rem;
}

.header-icons a:hover {
    color: #1E90FF;
}

/* ---------- Hero / About Section ---------- */
.about {
    padding: 0;
    background: #fafafa;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ---------- Slideshow ---------- */
.slideshow-container {
    position: relative;
    background: #fff;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 16px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    transition: background 0.3s ease;
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev { left: 20px; }
.next { right: 20px; }

/* ---------- About Text ---------- */
.about-text-container {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #000;
}

.about-text p {
    margin-bottom: 25px;
}

.about-text a {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px solid #0066cc;
}

.about-text a:hover {
    color: #004999;
    border-bottom-color: #004999;
}

/* ---------- Gallery ---------- */
.gallery-main {
    padding: 40px 20px 80px;
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.gallery-item:hover::before {
    background: rgba(0, 0, 0, 0.5);
}

.gallery-item span {
    position: relative;
    z-index: 1;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ---------- Detail Page ---------- */
.detail-header {
    padding: 60px 20px 40px;
    background: #fafafa;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #333;
    line-height: 1.3;
    margin-bottom: 20px;
}

.detail-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
}

.detail-description p {
    margin-bottom: 20px;
}

.detail-gallery {
    padding: 60px 20px 80px;
}

.detail-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Recognition Section ---------- */
.recognition {
    padding: 80px 20px;
    background: #fafafa;
    overflow: visible;
}

.recognition h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 50px;
    text-align: center;
}

.recognition .logos-grid {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 20px;
    scroll-snap-type: x proximity;
    margin-left: -40px;
    margin-right: -40px;
    width: calc(100% + 80px);
    box-sizing: border-box;
}

.logo-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    flex: 0 0 auto;
    min-width: 140px;
    max-width: 220px;
    scroll-snap-align: center;
}

.logo-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.logo-item img {
    max-width: 100%;
    height: auto;
}

/* ---------- Footer ---------- */
footer {
    padding: 20px 20px;
    text-align: center;
    background: #333;
    color: #fff;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0px;
    font-size: 0.95rem;
}

footer a:hover {
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-text-container {
        padding: 40px 30px;
    }

    .slideshow-container {
        min-height: 50vh;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
        width: 100%;
        padding: 0 40px;
    }

    .recognition .logos-grid {
        gap: 16px;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }

    .logo-item {
        min-width: 120px;
    }

    .detail-title {
        font-size: 2rem;
    }

    .detail-content {
        grid-template-columns: 1fr;
    }
    /* ---------- Research Projects List ---------- */
/* ---------- Research Projects List ---------- */
.research-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  padding-left: 100px !important;
  padding-right: 100px !important;
}

.research-item {
  display: flex;
  gap: 25px;
  margin-bottom: 50px;
  align-items: start;
  padding-left: 80px;
  padding-right: 80px;
}

.research-image {
  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
  height: 135px !important;
  min-height: 135px !important;
  max-height: 135px !important;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  flex-shrink: 0;
  display: block;
}

.research-image img {
  width: 180px !important;
  height: 135px !important;
  max-width: 180px !important;
  max-height: 135px !important;
  object-fit: cover;
  display: block;
}

.research-content {
    flex: 1;
    padding: 40px 60px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.research-content h2 {
  font-size: 1.8rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 15px;
}

.research-content p {
  font-size: 3rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 50px;
}

.research-content a {
  color: #0066cc;
  text-decoration: none;
  border-bottom: 1px solid #0066cc;
}

.research-content a:hover {
  color: #004999;
  border-bottom-color: #004999;
}

/* Accent styling for inline highlights within research content */
.research-content .accent {
    color: #1E90FF; /* DodgerBlue */
}

@media (max-width: 768px) {
  .research-item {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
  }

  .research-image {
    margin: 0 auto;
  }

  .research-content h2 {
    font-size: 1.5rem;
    
  }

  .research-content p {
    font-size: 1rem;
    
  }
}
.research-button {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 24px;
  background: #fff;
  color: #333;
  text-decoration: none;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.research-button:hover {
  background: #1E90FF;
  color: #fff;
  border-color: #1E90FF;
}
/* Mini gallery beneath each research project */
.research-mini-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.research-mini-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f5f5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.research-mini-gallery img:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .research-mini-gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
}

}
