/* =========================================================
   TVS ev LABORATORY STYLES
   ========================================================= */

/* CSS Variables for Laboratory */
:root {
  --lab-primary: #198754;
  --lab-secondary: #157347;
  --lab-light: #d1e7dd;
  --lab-dark: #146c43;
  --lab-accent: #20c997;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* =========================================================
   LABORATORY HEADER
   ========================================================= */
.laboratory-header {
  background: linear-gradient(
    135deg,
    var(--lab-primary) 0%,
    var(--lab-dark) 100%
  );
  position: relative;
  overflow: hidden;
}

.laboratory-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.05"><path d="M0,70 Q250,10 500,70 T1000,70 L1000,100 L0,100 Z"/></svg>');
  background-size: cover;
}

.laboratory-header .lead {
  font-size: 1.25rem;
  opacity: 0.9;
}

.laboratory-info .badge {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.laboratory-icon {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 3.5rem;
  color: white;
  border: 4px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}

.laboratory-icon:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.25);
}

/* =========================================================
   INTERNAL NAVIGATION - LABORATORY
   ========================================================= */
.internal-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.internal-nav .navbar-nav {
  gap: 1rem;
}

.internal-nav .nav-link {
  position: relative;
  color: var(--lab-dark);
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-radius: 20px;
}

.internal-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--lab-accent);
  transition: all 0.3s ease;
  border-radius: 2px;
  transform: translateX(-50%);
}

.internal-nav .nav-link:hover,
.internal-nav .nav-link.active {
  color: var(--lab-primary);
  background: var(--lab-light);
}

.internal-nav .nav-link:hover::after,
.internal-nav .nav-link.active::after {
  width: 80%;
}

/* =========================================================
   SECTION COMMON STYLES - LABORATORY
   ========================================================= */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--lab-dark);
  margin-bottom: 1.5rem;
  position: relative;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--lab-primary) 0%,
    var(--lab-accent) 100%
  );
  border-radius: 2px;
  margin: 1rem 0 2rem;
}

.section-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--lab-primary);
  transition: transform 0.3s ease;
}

.section-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.laboratory-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* =========================================================
   COLLABORATION CARD
   ========================================================= */
.collaboration-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #e0e0e0;
}

.collaboration-header {
  background: linear-gradient(
    135deg,
    var(--lab-primary) 0%,
    var(--lab-secondary) 100%
  );
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.collaboration-header i {
  font-size: 2rem;
}

.collaboration-header h2 {
  font-size: 1.75rem;
  margin: 0;
}

.collaboration-body {
  padding: 2rem;
}

.collaboration-point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--lab-light);
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease;
}

.collaboration-point:hover {
  transform: translateX(5px);
  background: #d1e7dd;
}

.collaboration-point i {
  font-size: 1.25rem;
  color: var(--lab-primary);
  margin-top: 0.25rem;
}

.collaboration-point h5 {
  color: var(--lab-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.collaboration-point p {
  color: #666;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* =========================================================
   OBJECTIVE CARDS
   ========================================================= */
.objective-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  height: 100%;
  text-align: center;
}

.objective-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--lab-accent);
}

.objective-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--lab-primary) 0%,
    var(--lab-accent) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
  color: white;
}

.objective-card h4 {
  color: var(--lab-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.objective-card p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   PROJECT GRID
   ========================================================= */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--lab-accent);
  transition: all 0.3s ease;
}

.project-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
  background: var(--lab-light);
}

.project-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--lab-primary) 0%,
    var(--lab-secondary) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.project-content h4 {
  color: var(--lab-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.project-content p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   OUTCOME CONTENT
   ========================================================= */
.outcome-content {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.outcome-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.outcome-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.outcome-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--lab-primary) 0%,
    var(--lab-secondary) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
}

.outcome-text h4 {
  color: var(--lab-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.outcome-text p {
  color: #666;
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
}

/* =========================================================
   AWARENESS CARD
   ========================================================= */
.awareness-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #e0e0e0;
}

.awareness-header {
  background: linear-gradient(
    135deg,
    var(--lab-primary) 0%,
    var(--lab-secondary) 100%
  );
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.awareness-header i {
  font-size: 2rem;
}

.awareness-header h2 {
  font-size: 1.75rem;
  margin: 0;
}

.awareness-body {
  padding: 2rem;
}

.awareness-activities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.activity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--lab-light);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.activity:hover {
  transform: translateX(5px);
  background: #d1e7dd;
}

.activity i {
  color: var(--lab-primary);
  font-size: 1.25rem;
}

.activity span {
  color: #555;
  font-weight: 500;
}

.awareness-impact h5 {
  color: var(--lab-dark);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.awareness-impact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.awareness-impact li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
  line-height: 1.6;
}

.awareness-impact li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--lab-accent);
  font-weight: bold;
  font-size: 1.1rem;
}

/* =========================================================
   FACILITY CARDS
   ========================================================= */
.facility-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  height: 100%;
  text-align: center;
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--lab-accent);
}

.facility-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--lab-primary) 0%,
    var(--lab-accent) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
}

.facility-card h5 {
  color: var(--lab-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.facility-card p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   RESEARCH CARD
   ========================================================= */
.research-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #e0e0e0;
}

.research-header {
  background: linear-gradient(
    135deg,
    var(--lab-primary) 0%,
    var(--lab-secondary) 100%
  );
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.research-header i {
  font-size: 2rem;
}

.research-header h2 {
  font-size: 1.75rem;
  margin: 0;
}

.research-body {
  padding: 2rem;
}

.research-areas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.research-area {
  padding: 1.5rem;
  background: var(--lab-light);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--lab-accent);
  transition: all 0.3s ease;
}

.research-area:hover {
  transform: translateY(-3px);
  background: #d1e7dd;
}

.research-area h5 {
  color: var(--lab-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.research-area p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.research-opportunities h4 {
  color: var(--lab-dark);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.research-opportunities ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.research-opportunities li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
  line-height: 1.6;
}

.research-opportunities li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--lab-accent);
  font-weight: bold;
  font-size: 1.1rem;
}

/* =========================================================
   BACK TO TOP BUTTON - LABORATORY
   ========================================================= */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--lab-primary) 0%,
    var(--lab-secondary) 100%
  );
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
  box-shadow: var(--shadow-md);
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: linear-gradient(
    135deg,
    var(--lab-secondary) 0%,
    var(--lab-dark) 100%
  );
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* =========================================================
   RESPONSIVE DESIGN - LABORATORY
   ========================================================= */
@media (max-width: 768px) {
  .laboratory-header {
    padding: 2.5rem 0;
  }

  .laboratory-header h1 {
    font-size: 2rem;
  }

  .laboratory-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
    margin-top: 1.5rem;
  }

  .section-card,
  .awareness-card,
  .research-card,
  .collaboration-card {
    padding: 1.5rem;
  }

  .internal-nav .navbar-nav {
    gap: 0.25rem;
    text-align: center;
  }

  .internal-nav .nav-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }

  .project-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .outcome-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .research-areas {
    grid-template-columns: 1fr;
  }

  .awareness-activities {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .collaboration-header,
  .awareness-header,
  .research-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 1.25rem;
  }

  .collaboration-header i,
  .awareness-header i,
  .research-header i {
    font-size: 1.75rem;
  }

  .collaboration-header h2,
  .awareness-header h2,
  .research-header h2 {
    font-size: 1.5rem;
  }

  #backToTop {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .laboratory-header .badge {
    display: block;
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
  }

  .section-card,
  .objective-card,
  .facility-card,
  .research-area {
    padding: 1.25rem;
  }

  .project-item {
    padding: 1.25rem;
  }

  .outcome-content {
    padding: 1.5rem;
  }

  .collaboration-point {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }

  .activity {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .objective-card {
    margin-bottom: 1rem;
  }

  .facility-card {
    margin-bottom: 1rem;
  }
}

/* =========================================================
   ANIMATIONS - LABORATORY
   ========================================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* =========================================================
   PRINT STYLES - LABORATORY
   ========================================================= */
@media print {
  .internal-nav,
  #backToTop,
  .btn,
  .laboratory-icon,
  .project-icon,
  .facility-icon,
  .objective-icon {
    display: none !important;
  }

  .section-card,
  .awareness-card,
  .research-card,
  .collaboration-card,
  .objective-card,
  .facility-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }

  .laboratory-header {
    background: white !important;
    color: black !important;
    padding: 1rem 0 !important;
  }

  .laboratory-header .badge {
    background: #f0f0f0 !important;
    color: black !important;
    border: 1px solid #ccc !important;
  }

  a {
    color: black !important;
    text-decoration: none !important;
  }

  .laboratory-text {
    text-align: left !important;
  }
}
