/* --- Root Variables --- */
:root {
  --primary-color: #7240d6;
  --secondary-color: #4de2e3;
  --accent-color: #4eca8e;
  --text-dark: #333333;
  --text-light: #ffffff;
  --font-main: "Google Sans", "Kanit", sans-serif;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: #f8f9fa;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* --- Global Square Override --- */
.btn,
.card,
.form-control,
.nav-link,
.modal-content,
.dropdown-menu,
.contact-card,
.contact-card-icon,
.img-fluid,
img,
.president-img-wrapper,
.speaker-img,
.sponsor-card,
.agenda-card,
.price-card,
.download-item,
.abstract-box,
.register-form-container {
  border-radius: 0 !important;
}

/* Helper for square rounded buttons override in bootstrap */
.rounded-pill,
.rounded,
.rounded-circle {
  border-radius: 0 !important;
}

/* --- Navbar Customization --- */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-color) !important;
  font-size: 1.5rem;
}

.nav-link {
  color: #555;
  font-weight: 500;
  padding: 10px 15px !important;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background-color: rgba(114, 64, 214, 0.05);
}

.btn-register-nav {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white !important;
  border: none;
  padding: 8px 25px !important;
}

.btn-register-nav:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* --- Hero Section --- */
.hero-section {
  background-color: #ffffff;
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 30px;
  /*padding-bottom: 60px;*/
  overflow: hidden;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.4;
}
.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-color);
  top: -100px;
  left: -100px;
}
.blob-2 {
  width: 300px;
  height: 300px;
  background: var(--secondary-color);
  bottom: 0;
  right: -50px;
}
.blob-3 {
  width: 400px;
  height: 400px;
  background: var(--primary-color);
  top: -40px;
  left: -50px;
}

/* --- Section Titles --- */
.section-title {
  position: relative;
  margin-bottom: 50px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  margin: 10px auto 0;
}

/* --- President Message (Reference Style) --- */
.president-section {
  padding: 100px 0;
  background-color: #fcfcfc; /* พื้นหลังอ่อนๆ เพื่อให้การ์ดสีขาวเด่นขึ้น */
}

.president-card-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.president-photo {
  width: 100%;
  height: auto;
  /* min-height: 450px; removed for smaller image */
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: block;
}

.president-message-box {
  background: white;
  padding: 3.5rem;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.05);
  border-left: 6px solid var(--primary-color); /* เส้นสีม่วงด้านซ้ายตามแบบ */
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.president-message-box h2 {
  font-weight: 700;
  /*color: var(--text-dark);*/
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.president-message-box p {
  color: #666;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.president-name {
  font-weight: 800;
  color: var(--text-dark);
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.president-role {
  color: #888;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (min-width: 992px) {
  .president-col-text {
    padding-left: 0; /* ชิดกับรูปภาพ */
  }
  .president-message-box {
    margin-left: -30px; /* ดึงกล่องข้อความมาซ้อนทับรูปนิดหน่อยเพื่อให้ดูเชื่อมกัน หรือตั้งเป็น 0 ถ้าอยากให้แยกขาด */
    position: relative;
    z-index: 10;
  }
}

@media (max-width: 991px) {
  .president-message-box {
    margin-top: -50px; /* ขยับขึ้นไปซ้อนรูปบนมือถือ */
    margin-left: 20px;
    margin-right: 20px;
    padding: 2rem;
  }
}

/* --- Programs Section --- */
.programs-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.nav-pills .nav-link {
  background-color: white;
  color: var(--text-dark);
  margin: 0 5px;
  padding: 12px 35px;
  border: 1px solid #eee;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-pills .nav-link.active {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
  box-shadow: 0 4px 10px rgba(114, 64, 214, 0.3);
}

/* Mobile adjustment for Tabs */
@media (max-width: 768px) {
  #programTabs {
    flex-direction: column;
    align-items: stretch;
  }
  #programTabs .nav-item {
    margin-bottom: 10px;
    width: 100%;
  }
  #programTabs .nav-link {
    width: 100%;
    margin: 0;
    text-align: center;
    border-radius: 8px !important; /* Slight radius for better mobile touch feel */
  }
}

.agenda-card {
  background: white;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border-left: 5px solid var(--primary-color);
  transition: all 0.3s ease;
  overflow: hidden;
}

.agenda-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
.agenda-body {
  display: flex;
  align-items: center;
  padding: 25px;
  flex-wrap: wrap;
}
.agenda-time {
  flex: 0 0 200px;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.2rem;
  padding-right: 25px;
  border-right: 1px solid #eee;
  display: flex;
  align-items: center;
}
.agenda-time i {
  margin-right: 8px;
  color: var(--secondary-color);
  font-weight: 400;
}
.agenda-info {
  flex: 1;
  padding-left: 25px;
}
.agenda-title {
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
  font-size: 1.15rem;
}
.agenda-desc {
  color: #666;
  margin-bottom: 5px;
  font-size: 0.95rem;
}
.agenda-speaker {
  font-size: 0.9rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #eee;
}
.agenda-card.break {
  border-left-color: var(--accent-color);
  background-color: #fafafa;
}
.agenda-card.keynote {
  border-left-color: var(--secondary-color);
}

@media (max-width: 768px) {
  .agenda-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .agenda-time {
    flex: 0 0 auto;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-right: 0;
    padding-bottom: 10px;
    margin-bottom: 15px;
  }
  .agenda-info {
    padding-left: 0;
  }
}

/* --- Speakers Section --- */
.speakers-section {
  padding: 80px 0;
  background-color: white;
}
.speaker-card-container {
  text-align: center;
  margin-bottom: 30px;
}
.speaker-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.speaker-card-container:hover .speaker-img {
  transform: translateY(-5px);
  border: 3px solid var(--secondary-color);
}
.speaker-name {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
}
.speaker-title {
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* --- Abstract Submission Section --- */
.abstract-section {
  padding: 80px 0;
  background-color: #f4f6fc;
}

.abstract-box {
  background: white;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-top: 5px solid var(--accent-color);
  height: 100%;
}

.key-date-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px dashed #eee;
}

.key-date-item:last-child {
  border-bottom: none;
}
.date-label {
  font-weight: 600;
  color: #555;
}
.date-value {
  color: var(--primary-color);
  font-weight: 700;
}

.topic-list {
  list-style: none;
  padding: 0;
}
.topic-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}
.topic-list li::before {
  content: "\2022";
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* --- Register Section (Form Style) --- */
.register-section {
  padding: 80px 0;
  background-color: white;
}

.register-form-container {
  max-width: 880px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border: 1px solid #eee;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  border-top: 5px solid var(--primary-color);
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-control,
.form-select {
  padding: 12px 15px;
  border: 1px solid #ddd;
  background-color: #fcfcfc;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(114, 64, 214, 0.1);
  background-color: #fff;
}

.register-price-info {
  background-color: #f8f9fa;
  padding: 20px;
  margin-bottom: 30px;
  border-left: 4px solid var(--secondary-color);
}

/* --- Download Section (Redesigned Style) --- */
.download-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.download-item {
  background: white;
  display: flex;
  align-items: stretch;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.download-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.download-icon-box {
  width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 2.5rem;
}

/* Color themes for file types */
.file-pdf {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}
.file-img {
  background-color: rgba(25, 135, 84, 0.1);
  color: #198754;
}
.file-doc {
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
}

.download-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.download-title {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.download-desc {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.download-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.file-size {
  font-size: 0.8rem;
  color: #999;
  font-weight: 500;
  background: #f8f9fa;
  padding: 2px 8px;
  border: 1px solid #eee;
}

.btn-download-action {
  padding: 5px 15px;
  background-color: var(--text-dark);
  color: white;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
}

.btn-download-action:hover {
  background-color: var(--primary-color);
  color: white;
}

/* --- Sponsors & Contact Styles --- */
/* --- Sponsors Section --- */
.sponsors-section {
  padding: 60px 0;
  background-color: #ffffff;
  border-top: 1px solid #eee;
}
.sponsor-card {
  background: white;
  padding: 20px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 20px;
  border: 1px solid #eee;
}
.sponsor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(114, 64, 214, 0.15);
}
.sponsor-card i {
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.7;
}
.sponsor-logo-placeholder {
  color: #ccc;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}
/* Custom Grid for 5 items per row on Desktop */
@media (min-width: 992px) {
  .col-lg-2-4 {
    flex: 0 0 auto;
    width: 20%;
  }
}
.sponsor-card {
  background: white;
  padding: 20px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 20px;
  border: 1px solid #eee;
}
.sponsor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(114, 64, 214, 0.15);
}
.sponsor-card i {
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.7;
}

.contact-section {
  padding: 80px 0;
  background: white;
  position: relative;
  border-top: 1px solid #eee;
}
.contact-card {
  background: white;
  padding: 40px;
  height: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  position: relative;
  border: 1px solid #f0f0f0;
}
.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
}
.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}
.contact-card-icon {
  width: 70px;
  height: 70px;
  background: rgba(114, 64, 214, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 2rem;
  color: var(--primary-color);
  border: 1px solid rgba(114, 64, 214, 0.1);
}
.contact-card h4 {
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1.25rem;
}
.contact-list {
  list-style: none;
  padding: 0;
}
.contact-list li {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
}
.contact-list i {
  margin-right: 15px;
  color: var(--secondary-color);
  margin-top: 5px;
  font-size: 1.1rem;
}
.contact-list span {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}
.contact-list strong {
  color: var(--text-dark);
  display: block;
  margin-bottom: 2px;
}
.contact-list a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  transition: color 0.2s;
}
.contact-list a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}
.social-links-wrapper {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}
.social-btn {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: #f8f9fa;
  color: var(--text-dark);
  text-decoration: none;
  margin-bottom: 10px;
  transition: all 0.2s;
  border: 1px solid #eee;
}
.social-btn:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.social-btn i {
  font-size: 1.2rem;
  margin-right: 10px;
}

/* --- Footer --- */
footer {
  background-color: var(--text-dark);
  color: white;
  padding: 30px 0;
  text-align: center;
}
footer p {
  margin: 0;
  opacity: 0.7;
  font-size: 0.9rem;
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: white;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
  }
}

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, #7240d6 0%, #4de2e3 60%, #4eca8e 100%);
  padding: 80px 0 60px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("AMAT-2026-copy-2.jpg") center/cover no-repeat;
  opacity: 0.1; /* Reduced opacity */
  mix-blend-mode: overlay;
  z-index: 0;
}

/* Medical Decoration Icons */
.header-deco {
  position: absolute;
  color: rgba(255, 255, 255, 0.15);
  z-index: 0;
  pointer-events: none; /* Prevent blocking clicks */
}

.deco-1 {
  top: -30px;
  left: -20px;
  font-size: 10rem;
  transform: rotate(-20deg);
}

.deco-2 {
  bottom: -40px;
  right: -10px;
  font-size: 12rem;
  transform: rotate(15deg);
}

.deco-3 {
  top: 40%;
  right: 15%;
  font-size: 4rem;
  opacity: 0.1;
}

/* Abstract Circles */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.circle-small {
  width: 40px;
  height: 40px;
  bottom: 30%;
  left: 15%;
  background: rgba(255, 255, 255, 0.05);
}

.circle-large {
  width: 200px;
  height: 200px;
  top: -80px;
  right: 25%;
  border-width: 15px;
  opacity: 0.05;
}

.page-title {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.breadcrumb-custom {
  justify-content: center;
  position: relative;
  z-index: 1;
  font-weight: 300;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* --- Abstract Content --- */
.abstract-page-section {
  padding: 80px 0;
  background-color: #fff;
}

.section-header-left {
  margin-bottom: 40px;
  border-left: 5px solid var(--primary-color);
  padding-left: 20px;
}

.section-header-left h3 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
}

/* Timeline Styles */
.timeline-container {
  position: relative;
  margin-bottom: 60px;
}

.timeline-wrapper {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.timeline-wrapper::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e9ecef;
  z-index: 0;
}

.timeline-step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
}

.timeline-icon {
  width: 50px;
  height: 50px;
  background: white;
  border: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: all 0.3s;
}

.timeline-step:hover .timeline-icon {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.timeline-date {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
  display: block;
}

.timeline-desc {
  font-size: 0.9rem;
  color: #666;
}

/* Topic Cards */
.topic-card {
  background: #f8f9fa;
  border: 1px solid #eee;
  padding: 25px;
  height: 100%;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--secondary-color);
  transition: all 0.3s;
}

.topic-card:hover {
  transform: translateY(-5px);
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.topic-card:hover::before {
  background: var(--primary-color);
}

.topic-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  opacity: 0.8;
}

.topic-title {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* Mobile Timeline Fix */
@media (max-width: 768px) {
  .timeline-wrapper {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 30px;
  }
  .timeline-wrapper::before {
    width: 2px;
    height: 100%;
    left: 24px;
    top: 0;
  }
  .timeline-step {
    display: flex;
    align-items: center;
    text-align: left;
    margin-bottom: 30px;
    width: 100%;
  }
  .timeline-icon {
    margin: 0 20px 0 0;
  }
  .timeline-content {
    flex: 1;
  }
}
/* --- Login Section --- */
.login-section {
  padding: 80px 0;
  background-color: #fff;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.login-container {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border-top: 5px solid var(--primary-color);
}

.form-label {
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
}

.form-control {
  padding: 12px 15px;
  border: 1px solid #dee2e6;
  background-color: #fcfcfc;
  color: #333;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(114, 64, 214, 0.1);
  background-color: #fff;
}

.btn-login {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  padding: 12px;
  border: none;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-login:hover {
  background-color: #5a32a8; /* Darker shade of primary */
  color: white;
}

.login-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.login-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* --- VDO Rerun Content --- */
.vdo-page-section {
  padding: 80px 0;
  background-color: #fff;
}

.section-header-left {
  margin-bottom: 30px;
  border-left: 5px solid var(--primary-color);
  padding-left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-header-left h3 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0;
}

.category-badge {
  background-color: var(--primary-color);
  color: white;
  padding: 5px 15px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Video Card Styles */
.video-card {
  background: white;
  border: 1px solid #eee;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  border-top: 4px solid transparent; /* Prepare for colored top border */
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* --- Lecture Specific Styles (Purple Theme) --- */
.video-card.lecture {
  border-top-color: var(--primary-color);
}

.video-card.lecture .video-speaker i {
  color: var(--primary-color);
}

.video-card.lecture:hover .play-icon {
  color: var(--primary-color);
  transform: scale(1.2);
  opacity: 1;
}

.video-card.lecture .btn-watch {
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.video-card.lecture .btn-watch:hover {
  background-color: var(--primary-color);
  color: white;
}

/* --- Symposium Specific Styles (Green/Teal Theme) --- */
.video-card.symposium {
  border-top-color: var(--accent-color);
}

.video-card.symposium .video-speaker i {
  color: var(--accent-color); /* Green/Teal icon */
}

.video-card.symposium:hover .play-icon {
  color: var(--accent-color);
  transform: scale(1.2);
  opacity: 1;
}

.video-card.symposium .btn-watch {
  background-color: white;
  color: #2a9d8f; /* Teal color for text */
  border: 1px solid var(--accent-color);
}

.video-card.symposium .btn-watch:hover {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.video-thumbnail {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background-color: #000;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 0.9;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.1);
  opacity: 0.7;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s ease;
}

.play-icon {
  font-size: 4rem;
  color: white;
  opacity: 0.8;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
  transition: all 0.3s ease;
}

/* Removed generic hover effect for play-icon as it's now handled by specific classes */

.video-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.video-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-speaker {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
}

.video-speaker i {
  margin-right: 8px;
  margin-top: 3px;
}

.btn-watch {
  margin-top: auto;
  padding: 10px;
  width: 100%;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
/* --- Video Player Section --- */
.player-section {
  padding: 40px 0 80px;
  background-color: #f4f6fc;
}

/* Video Container 16:9 */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.video-container iframe,
.video-container video,
.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Topic Info */
.topic-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.8rem;
  line-height: 1.3;
}

.topic-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

/* Speaker Pill (Updated - No Image) */
.speaker-container {
  margin-bottom: 30px;
}

.speaker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.speaker-pill {
  background: white;
  border: 1px solid #eee;
  padding: 15px 25px; /* Increased padding */
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  transition: all 0.3s;
  min-width: 200px;
  border-left: 4px solid var(--secondary-color); /* Added left border accent */
}

.speaker-pill:hover {
  border-color: #eee;
  border-left-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.speaker-info-sm h6 {
  font-weight: 700;
  margin-bottom: 0;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.speaker-label {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* Rating Box (Simplified) */
.rating-box {
  background: white;
  padding: 20px;
  border: 1px solid #eee;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.rating-title {
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  display: flex;
  align-items: center;
}

.stars {
  font-size: 1.8rem;
  color: #ddd;
  cursor: pointer;
  display: inline-flex;
}

.stars i {
  transition: color 0.2s;
  margin: 0 2px;
}

.stars i:hover,
.stars i.active {
  color: #ffc107; /* Gold color */
}

/* Handout Box */
.handout-box {
  background: white;
  border: 1px solid #eee;
  margin-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

.handout-header {
  background: linear-gradient(135deg, var(--primary-color), #5a32a8);
  color: white;
  padding: 15px 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.handout-list {
  padding: 0;
}

.handout-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.handout-item:last-child {
  border-bottom: none;
}

.handout-item:hover {
  background-color: #f9f9f9;
}

.file-info {
  display: flex;
  align-items: center;
}

.file-icon {
  font-size: 1.8rem;
  margin-right: 15px;
  color: var(--primary-color);
}

.file-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 2px;
  display: block;
}

.file-meta {
  font-size: 0.8rem;
  color: #888;
}

.btn-handout-sm {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: var(--text-dark);
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-handout-sm:hover {
  background: var(--accent-color);
  color: white;
}

/* Chat Box */
.chat-container {
  background: white;
  border: 1px solid #ddd;
  height: 500px; /* Fixed height for chat */
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.chat-header {
  background: var(--text-dark);
  color: white;
  padding: 15px 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #fcfcfc;
}

.chat-bubble {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.chat-user {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary-color);
  margin-bottom: 2px;
}

.chat-text {
  background: #f1f1f1;
  padding: 10px 15px;
  font-size: 0.95rem;
  color: #333;
  max-width: 90%;
  position: relative;
}

/* My message style */
.chat-bubble.me {
  align-items: flex-end;
}
.chat-bubble.me .chat-text {
  background: rgba(114, 64, 214, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(114, 64, 214, 0.2);
}

.chat-input-area {
  padding: 15px;
  border-top: 1px solid #eee;
  background: white;
  display: flex;
  gap: 10px;
}

.btn-chat-send {
  background: var(--primary-color);
  color: white;
  border: none;
  width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.btn-chat-send:hover {
  background-color: var(--secondary-color);
  color: white;
}
