/* ===================================================================
   VIEXAM PROJECT - CUSTOM STYLESHEET
   Version: 1.4 (Final Hero with Correct Inline Icon)
   =================================================================== */

/* ========== GLOBAL & BASE STYLES ========== */
body {
  font-family: 'Noto Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  font-size: 18px;
}

h1, h2, h3, h4, h5 {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  color: #1a237e;
}

.container {
  max-width: 1500px; 
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== HERO SECTION ========== */
.hero {
  background-color: #f5f7fa;
  padding-top: 5rem; /* Tăng padding trên để đẩy xuống */
  padding-bottom: 0rem; /* Tăng padding dưới để tạo không gian */
  margin-bottom: 0;
}

.hero .title {
  color: #000000;
  font-size: 3rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.title .title-icon {
  height: 1em; /* Chiều cao icon bằng chiều cao chữ */
  width: auto; /* Giữ tỷ lệ */
  vertical-align: middle; /* Căn giữa với dòng chữ */
  margin-left: 0.4em; /* Khoảng cách với chữ */
}

.publication-authors {
  font-weight: 500;
}

.publication-authors .author-block {
  margin: 0 0.25em;
}

.publication-authors a {
  color: #3B82F6; 
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
  padding-bottom: 2px;
}

.publication-authors a:hover {
  border-bottom-color: #3B82F6; 
}

/* Buttons */
.hero .buttons .button.is-rounded { 
  padding-left: 1.8em;
  padding-right: 1.8em;
  padding-top: 0.8em;
  padding-bottom: 0.8em;
}

.button .icon {
  margin-right: 0.5rem;
}

.button.is-examples {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.button.is-examples:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.button.is-discussion {
  background: linear-gradient(135deg, #0987A0 0%, #00C4B3 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(9, 135, 160, 0.3);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.button.is-discussion:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(9, 135, 160, 0.4);
}


/* ========== TLDR SECTION ========== */
.tldr-section {
  background-color: #f8f9fa;
  padding-top: 4rem;
  padding-bottom: 1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.tldr-card-single {
  background-color: #fff5f7;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(212, 45, 107, 0.08);
  padding: 2.5rem;
  border: 1px solid #ffdae5;
}

.tldr-header {
  margin-bottom: 1.5rem;
}

.tldr-badge {
  display: inline-block;
  background-color: #fce7f3;
  color: #d42d6b;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 1.2rem;
}

.tldr-badge .fas {
  margin-right: 0.5rem;
}

.tldr-content p {
  font-size: 1.15rem;
  font-style: italic;
  text-align: center;
  line-height: 1.75;
  color: #495057;
  margin-bottom: 0;
}

/* ========== RESEARCH OVERVIEW & TEASER IMAGE SECTION ========== */
.overview-section {
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}

.abstract-card {
  background-color: #f8f9fa;
  border-radius: 16px;
  padding: 3rem;
  border: 1px solid #e9ecef;
}

.abstract-header-clean {
  margin-bottom: 1.5rem;
}

.abstract-title-clean {
  font-size: 1.75rem;
  color: #343a40;
  font-weight: 600;
}

.abstract-title-clean .fas {
  color: #4c6ef5;
  margin-right: 0.75rem;
}

.abstract-text-clean p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #495057;
  margin-bottom: 1.25rem;
}

.abstract-text-clean p:last-child {
  margin-bottom: 0;
}

.term-highlight {
  background-color: #fff3bf;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-weight: 600;
  color: #544503;
}

.full-width-image-container {
  margin-top: 3rem;
  text-align: center;
}

.teaser-image-clean {
  width: 100%;
  max-width: 1400px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #dee2e6;
  margin: 0 auto;
}

.image-caption-clean {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #6c757d;
  font-style: italic;
}

/* ========== KEY FINDINGS SECTION ========== */
.key-insight {
  background-color: #e8f5e9;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.key-insight h3 {
    margin-top: 0;
    color: #1b5e20;
    font-size: 1.5rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.model-result {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #e0e0e0;
}

.model-result h4 {
  color: #1a237e;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

/* ========== DATASET AT A GLANCE SECTION ========== */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.domain-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.domain-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.domain-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.domain-name {
  font-size: 1.3em;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
  margin-top: 0;
}

.domain-count {
  font-size: 1.1em;
  color: #666;
}

/* ========== SAMPLE QUESTIONS SLIDER SECTION ========== */
.gallery-section-slider {
  background-color: #f9fafb;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.gallery-header-slider {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2c3e50;
  color: white;
  padding: 1rem 1.5rem;
}

.header-title-slider h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.25rem 0;
  display: flex;
  align-items: center;
}
.header-title-slider h2 i {
  margin-right: 0.8rem;
}

.header-title-slider p {
  color: #bdc3c7;
  margin: 0;
  font-size: 0.9rem;
}

.gallery-navigation {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gallery-nav {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.gallery-nav:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.2);
}

.gallery-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.slide-counter {
  font-weight: 500;
  font-size: 1rem;
  min-width: 50px;
  text-align: center;
}

.gallery-viewport-slider {
  overflow: hidden;
  position: relative;
}

.gallery-track-slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slide-slider {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  padding: 1.5rem;
}

.gallery-card-slider {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.card-image-container-slider {
  height: auto;
  min-height: 450px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1rem;
  box-sizing: border-box;
}

.card-image-container-slider img {
  max-width: 100%;
  max-height: 430px;
  object-fit: contain;
}

.card-text-content-slider {
  padding: 1.2rem;
  border-top: 1px solid #e9ecef;
}

.card-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1rem;
  background-color: #e7f5ff;
  color: #1c7ed6;
}

.card-answer {
  font-size: 1.1rem;
}
.answer-text {
  color: #16a34a;
  font-weight: 600;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  border-top: 1px solid #e9ecef;
}

.filter-button {
  padding: 0.7rem 1.4rem;
  border: 1px solid #dee2e6;
  border-radius: 50px;
  background-color: #fff;
  color: #495057;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-button:hover {
  background-color: #f1f3f5;
  border-color: #adb5bd;
}

.filter-button.active {
  background-color: #4a69bd;
  color: white;
  border-color: #4a69bd;
  box-shadow: 0 4px 10px rgba(74, 105, 189, 0.2);
}

/* ========== PERFORMANCE TABLE SECTION ========== */
.research-table {
  overflow-x: auto;
}
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}
.comparison-table caption {
  text-align: left;
  padding: 1rem;
  font-size: 1.1em;
  color: #4a5568;
  line-height: 1.5;
  background-color: #f8fafc;
  border: 1px solid #e0e0e0;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.comparison-table th {
  background: #4a5568;
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-weight: 600;
}
.comparison-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  text-align: center;
}
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
}
.comparison-table td strong {
    font-weight: 700;
}
.table-subtitle {
  background-color: #e2e8f0;
  font-weight: 700;
  color: #1e293b;
  text-align: center !important;
  font-size: 1.1em;
}

/* ========== CONCLUSION SECTION ========== */
.conclusion-box {
  background-color: #FDE8F0;
  border: 1px solid #F8BBD0;
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.conclusion-box .title {
  color: #AD1457;
  margin-top: 0;
  margin-bottom: 1rem;
}

.conclusion-box p {
  color: #4B5563;
  line-height: 1.7;
  text-align: left;
}

/* ========== FOOTER SECTION ========== */
.footer { 
  background-color: #f5f7fa; 
  padding: 3rem 1.5rem; 
  margin-top: 4rem; 
}

.footer-text { 
  color: #64748b; 
  font-size: 1rem; 
}
.footer-text a { 
  color: #3b82f6; 
  text-decoration: none; 
}
.footer-text a:hover { 
  text-decoration: underline; 
}


/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  body { 
    font-size: 16px; 
  }
  .hero .title { 
    font-size: 2.5rem; 
  }
  .title .title-icon {
    height: 0.9em;
    margin-left: 0.3em;
  }
  .domain-grid { 
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); 
    gap: 1rem; 
  }
  .domain-card { 
    padding: 1rem; 
  }
  .domain-icon { 
    width: 40px; 
    height: 40px; 
  }
  .domain-name { 
    font-size: 1rem; 
  }
  .card-image-container-slider { 
    min-height: 250px; 
  }
  .header-title-slider h2 { 
    font-size: 1.2rem; 
  }
  .header-title-slider p { 
    display: none; 
  }
  .filter-button { 
    padding: 0.5rem 1rem; 
    font-size: 0.9rem; 
  }
  .abstract-card {
    padding: 1.5rem;
  }
  .tldr-card-single {
    padding: 1.5rem;
  }
}