/* Global Styles for UI Style 3 & Layout C */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

body.ui-style-3 {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

a {
  color: #2c5aa0;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1a3a6b;
  text-decoration: underline;
}

/* Header & Navigation */
header {
  background: linear-gradient(135deg, #2c5aa0 0%, #1a3a6b 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  padding: 15px 0;
  display: block;
}

nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  padding: 0;
}

nav a {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  color: #fff;
  padding: 12px 8px;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-bottom-color: #ffd700;
  text-decoration: none;
}

/* Main Container */
main {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

/* Section Styles */
section {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

h1 {
  font-size: 32px;
  color: #1a3a6b;
  margin-bottom: 20px;
  line-height: 1.3;
  font-weight: 700;
}

h2 {
  font-size: 26px;
  color: #2c5aa0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #2c5aa0;
  line-height: 1.3;
}

h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.3;
}

p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* Video Cards Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.video-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-color: #2c5aa0;
}

.video-card h3 {
  color: #1a3a6b;
  font-size: 18px;
  margin-bottom: 10px;
}

.video-card .meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.video-card .meta span {
  margin-right: 12px;
  display: inline-block;
}

.video-card .one-line {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card .read-more {
  display: inline-block;
  padding: 8px 20px;
  background: #2c5aa0;
  color: #fff;
  border-radius: 5px;
  font-size: 14px;
  transition: background 0.3s ease;
}

.video-card .read-more:hover {
  background: #1a3a6b;
  text-decoration: none;
}

/* List Styles */
.video-list {
  list-style: none;
}

.video-list li {
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 0;
}

.video-list li:last-child {
  border-bottom: none;
}

.video-list .video-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a3a6b;
  margin-bottom: 8px;
}

.video-list .video-info {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.video-list .video-desc {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

/* Detail Page Styles */
.detail-header {
  border-bottom: 2px solid #2c5aa0;
  padding-bottom: 20px;
  margin-bottom: 25px;
}

.info-table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid #e0e0e0;
}

.info-table td {
  padding: 12px 10px;
  line-height: 1.6;
}

.info-table td:first-child {
  font-weight: 600;
  color: #555;
  width: 120px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  background: #e3f2fd;
  color: #2c5aa0;
  border-radius: 15px;
  font-size: 13px;
}

.summary-section, .review-section {
  margin: 25px 0;
  padding: 20px;
  background: #f8f9fa;
  border-left: 4px solid #2c5aa0;
  border-radius: 5px;
}

/* Footer */
footer {
  background: #2c5aa0;
  color: #fff;
  text-align: center;
  padding: 25px 20px;
  margin-top: 50px;
}

footer p {
  margin: 5px 0;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo {
    font-size: 20px;
    padding: 12px 0;
  }

  nav {
    gap: 2px;
  }

  nav a {
    padding: 10px 4px;
    font-size: 13px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 22px;
  }

  section {
    padding: 20px 15px;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .info-table td:first-child {
    width: 90px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 18px;
  }

  nav a {
    font-size: 12px;
    padding: 8px 2px;
  }

  main {
    margin: 15px auto;
    padding: 0 10px;
  }

  section {
    padding: 15px 10px;
    margin-bottom: 15px;
  }
}
