/* ===================================
   CURRICULUM OVERVIEW SECTION
   =================================== */

.curriculum-overview {
  padding: 60px 0;
  background: #f8f9fa;
}

.overview-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.overview-card .card-header {
  background: linear-gradient(135deg, #89287f 0%, #9B4A9D 100%);
  color: white;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.overview-card .card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.degree-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 15px;
  backdrop-filter: blur(10px);
}

.curriculum-name {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.curriculum-name-en {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-top: 10px;
  margin-bottom: 0;
  font-weight: 300;
}

.overview-card .card-body {
  padding: 30px;
}

/* Quick Stats */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s;
}

.stat-item:hover {
  background: linear-gradient(135deg, #89287f 0%, #9B4A9D 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(137, 40, 127, 0.3);
}

.stat-item i {
  font-size: 2rem;
  color: #89287f;
}

.stat-item:hover i {
  color: white;
}

.stat-item div {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.stat-item span {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 5px;
}

/* Section Content */
.section-content {
  margin-top: 30px;
}

.section-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #89287f;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.section-content h3 i {
  font-size: 1.4rem;
}

.content-text {
  color: #555;
  line-height: 1.8;
  text-align: justify;
}

.content-text p {
  margin-bottom: 15px;
}

.content-text ul,
.content-text ol {
  padding-left: 25px;
  margin-bottom: 15px;
}

.content-text li {
  margin-bottom: 8px;
}

/* Curriculum Sections */
.curriculum-section {
  margin-top: 30px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #89287f;
}

.curriculum-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #89287f;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.curriculum-section .section-content {
  margin-top: 15px;
  color: #555;
  line-height: 1.8;
}

.curriculum-description {
  margin-top: 25px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  border: 1px solid #e9ecef;
}

.curriculum-description h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #89287f;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* YouTube Video */
.curriculum-video {
  margin-top: 30px;
}

.curriculum-video h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #89287f;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* YouTube Video Container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-top: 15px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

/* ===================================
   SIDEBAR CARDS
   =================================== */

.sidebar-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.sidebar-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.sidebar-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.sidebar-card h4 i {
  font-size: 1.2rem;
  color: #89287f;
}

/* Chairman Card - Balanced Size */
.chairman-card {
  background: white;
  border: 2px solid #e9ecef;
  position: relative;
  overflow: hidden;
  padding: 25px 20px;
}

.chairman-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  z-index: 1;
}

.chairman-header {
  text-align: center;
  margin-bottom: 20px;
}

.chairman-badge {
  display: inline-block;
  background: #89287f;
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(137, 40, 127, 0.2);
  letter-spacing: 0.3px;
}

.chairman-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.chairman-image-wrapper {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 4px solid #89287f;
  box-shadow: 0 5px 15px rgba(137, 40, 127, 0.2);
  transition: all 0.3s ease;
  background: white;
  position: relative;
}

.chairman-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.chairman-card:hover .chairman-image-wrapper {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(137, 40, 127, 0.3);
}

.chairman-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.chairman-card:hover .chairman-image {
  transform: scale(1.08);
}

.chairman-info {
  width: 100%;
  text-align: center;
  padding: 0 10px;
}

.chairman-info h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  transition: color 0.3s;
  line-height: 1.4;
}

.chairman-card:hover .chairman-info h5 {
  color: #89287f;
}

.chairman-title {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.chairman-email {
  font-size: 0.85rem;
  color: #89287f;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 500;
  transition: all 0.3s;
}

.chairman-email i {
  font-size: 0.9rem;
}

.chairman-card:hover .chairman-email {
  color: #9B4A9D;
}

/* Action Links */
.action-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.action-btn i {
  font-size: 1.2rem;
}

.action-btn span {
  flex: 1;
}

.btn-document {
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}

.btn-document:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(78, 115, 223, 0.3);
}

.btn-website {
  background: linear-gradient(135deg, #36b9cc 0%, #258391 100%);
}

.btn-website:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(54, 185, 204, 0.3);
}

.btn-facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d5fc7 100%);
}

.btn-facebook:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

/* Contact Card */
.contact-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  background: linear-gradient(135deg, #89287f 0%, #9B4A9D 100%);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(137, 40, 127, 0.3);
  color: white;
}

/* ===================================
   FACULTY SECTION - แบบวงกลมเหมือน lecturer page
   =================================== */

.faculty-section {
  padding: 60px 0;
  background: white;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.text-gradient {
  background: linear-gradient(135deg, #89287f 0%, #9B4A9D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.3rem;
  font-weight: 600;
}

/* Lecturer Card - Simple Circle Style */
.lecturer-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s;
}

.lecturer-card:hover {
  transform: translateY(-10px);
}

.lecturer-image-wrapper {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.lecturer-card:hover .lecturer-image-wrapper {
  box-shadow: 0 10px 30px rgba(137, 40, 127, 0.3);
  transform: scale(1.05);
}

.lecturer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s;
}

.lecturer-card:hover .lecturer-image {
  transform: scale(1.1);
}

.lecturer-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.lecturer-card:hover .lecturer-name {
  color: #89287f;
}

.lecturer-email,
.lecturer-phone {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.lecturer-email i,
.lecturer-phone i {
  color: #89287f;
  font-size: 0.95rem;
}

/* ===================================
   DOCUMENTS SECTION
   =================================== */

.documents-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.document-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.document-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.document-icon {
  font-size: 3rem;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s;
}

.document-card:hover .document-icon {
  transform: scale(1.1) rotate(5deg);
}

.document-info {
  flex: 1;
}

.document-info h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.doc-type {
  display: inline-block;
  padding: 3px 10px;
  background: #e9ecef;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #666;
}

.document-action {
  font-size: 1.5rem;
  color: #89287f;
  transition: all 0.3s;
}

.document-card:hover .document-action {
  transform: translateX(5px);
}

/* ===================================
   CALL TO ACTION SECTION
   =================================== */

.cta-section {
  padding: 60px 0;
  background: white;
}

.cta-box {
  background: linear-gradient(135deg, #89287f 0%, #9B4A9D 100%);
  color: white;
  border-radius: 20px;
  padding: 50px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta-box > .row {
  position: relative;
  z-index: 2;
}

.cta-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
}

.cta-description {
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 0;
}

.btn-cta-primary,
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s;
  width: 100%;
}

.btn-cta-primary {
  background: white;
  color: #89287f;
}

.btn-cta-primary:hover {
  background: #f8f9fa;
  color: #89287f;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
  background: white;
  color: #89287f;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 991px) {
  .page-title h1 {
    font-size: 2rem;
  }

  .curriculum-name {
    font-size: 1.5rem;
  }

  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .lecturer-image-wrapper {
    width: 150px;
    height: 150px;
  }

  .chairman-image-wrapper {
    width: 130px;
    height: 130px;
  }

  .cta-box {
    padding: 40px 30px;
  }

  .cta-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  .page-title {
    padding: 80px 0 40px;
  }

  .page-title h1 {
    font-size: 1.5rem;
  }

  .page-title p {
    font-size: 1rem;
  }

  .curriculum-overview,
  .faculty-section,
  .documents-section,
  .cta-section {
    padding: 40px 0;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 12px;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .text-gradient {
    font-size: 1.1rem;
  }

  .lecturer-image-wrapper {
    width: 120px;
    height: 120px;
  }

  .chairman-image-wrapper {
    width: 120px;
    height: 120px;
  }

  .chairman-info h5 {
    font-size: 1.1rem;
  }

  .chairman-title {
    font-size: 0.9rem;
  }

  .lecturer-name {
    font-size: 1rem;
  }

  .lecturer-email,
  .lecturer-phone {
    font-size: 0.85rem;
  }

  .cta-box {
    padding: 30px 20px;
  }

  .cta-title {
    font-size: 1.3rem;
  }

  .cta-description {
    font-size: 1rem;
  }
}

@media (max-width: 575px) {
  .breadcrumbs ol {
    font-size: 0.85rem;
  }

  .overview-card .card-header {
    padding: 20px;
  }

  .overview-card .card-body {
    padding: 20px;
  }

  .sidebar-card {
    padding: 20px;
  }

  .chairman-card {
    padding: 25px 20px;
  }

  .chairman-image-wrapper {
    width: 110px;
    height: 110px;
    border-width: 3px;
  }

  .chairman-badge {
    font-size: 0.9rem;
    padding: 8px 20px;
  }

  .chairman-info h5 {
    font-size: 1rem;
  }

  .chairman-title {
    font-size: 0.85rem;
  }

  .chairman-email {
    font-size: 0.85rem;
  }
}