* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

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

.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
}

.logo img {
  margin-right: 12px;
}

.site-name {
  font-size: 20px;
  font-weight: 700;
  color: #C8102E;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: #C8102E;
}

.header-right {
  display: flex;
  gap: 16px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  background: #fff;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
}

.mobile-nav-link.active {
  color: #C8102E;
}

.mobile-menu .btn {
  width: 100%;
  margin-top: 16px;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-size: 16px;
}

.btn-primary {
  background: #C8102E;
  color: #fff;
}

.btn-primary:hover {
  background: #A00D24;
}

.btn-outline {
  background: transparent;
  color: #C8102E;
  border: 2px solid #C8102E;
}

.btn-outline:hover {
  background: #C8102E;
  color: #fff;
}

.banner {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s;
  display: flex;
  align-items: center;
}

.banner-slide.active {
  opacity: 1;
}

.banner-content {
  text-align: center;
  color: #fff;
}

.banner-title {
  font-size: 48px;
  margin-bottom: 16px;
}

.banner-desc {
  font-size: 20px;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.banner-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}

.banner-dot.active {
  background: #fff;
}

.section {
  padding: 80px 0;
}

.section-gray {
  background: #F5F5F5;
}

.section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 12px;
  color: #333;
}

.section-desc {
  text-align: center;
  color: #666;
  margin-bottom: 48px;
  font-size: 16px;
}

.enroll-section {
  background: linear-gradient(135deg, #C8102E 0%, #A00D24 100%);
  color: #fff;
  padding: 60px 0;
}

.enroll-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.enroll-box .section-title,
.enroll-box .section-desc {
  color: #fff;
}

.enroll-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.form-input {
  padding: 12px 16px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  width: 100%;
}

.enroll-form .btn {
  grid-column: 1 / -1;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card-content {
  padding: 20px;
}

.product-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #333;
}

.product-card p {
  color: #666;
  margin-bottom: 16px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  background: #fff;
  padding: 40px 24px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.service-card img {
  margin-bottom: 20px;
  border-radius: 50%;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #333;
}

.service-card p {
  color: #666;
}

.admission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.admission-item {
  text-align: center;
  padding: 24px;
}

.admission-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.admission-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
}

.admission-item p {
  color: #666;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card-content {
  padding: 20px;
}

.news-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
}

.news-card p {
  color: #666;
  margin-bottom: 12px;
  font-size: 14px;
}

.news-card .news-meta {
  color: #999;
  font-size: 14px;
}

.more-link {
  text-align: center;
  margin-top: 40px;
}

.page-banner {
  height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.page-title {
  font-size: 42px;
  margin-bottom: 12px;
}

.page-desc {
  font-size: 18px;
}

.category-nav {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.category-link {
  padding: 8px 20px;
  text-decoration: none;
  color: #333;
  border-radius: 20px;
  background: #f5f5f5;
  transition: all 0.3s;
}

.category-link:hover,
.category-link.active {
  background: #C8102E;
  color: #fff;
}

.products-layout,
.about-layout,
.article-detail {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.article-full {
  grid-column: 1 / -1;
  max-width: 900px;
  margin: 0 auto;
}

.sidebar-widget {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}

.sidebar-widget h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #C8102E;
}

.sidebar-widget .btn {
  width: 100%;
  margin-top: 16px;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-item {
  display: flex;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.article-item:hover {
  transform: translateX(8px);
}

.article-item img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

.article-item-content {
  flex: 1;
}

.article-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #333;
}

.article-item p {
  color: #666;
  margin-bottom: 12px;
}

.article-item .article-meta {
  color: #999;
  font-size: 14px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.article-header {
  margin-bottom: 32px;
}

.article-title {
  font-size: 36px;
  margin-bottom: 16px;
  color: #333;
}

.article-meta {
  color: #999;
  font-size: 14px;
  display: flex;
  gap: 24px;
}

.article-cover {
  margin-bottom: 32px;
}

.article-summary {
  background: #f9f9f9;
  padding: 20px;
  border-left: 4px solid #C8102E;
  margin-bottom: 32px;
  border-radius: 0 4px 4px 0;
}

.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.article-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
}

.footer {
  background: #222;
  color: #ccc;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-item h3 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 20px;
}

.footer-item h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 20px;
}

.footer-link {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #C8102E;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-dialog {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  width: 90%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  line-height: 1;
}

.modal-close:hover {
  color: #333;
}

.modal-dialog h3 {
  font-size: 24px;
  margin-bottom: 24px;
  color: #C8102E;
}

.modal-input {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

@media (max-width: 992px) {
  .products-layout,
  .about-layout,
  .article-detail {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav,
  .header-right {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .banner {
    height: 400px;
  }
  
  .banner-title {
    font-size: 32px;
  }
  
  .banner-desc {
    font-size: 16px;
  }
  
  .section {
    padding: 48px 0;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .enroll-form {
    grid-template-columns: 1fr;
  }
  
  .article-item {
    flex-direction: column;
  }
  
  .article-item img {
    width: 100%;
    height: 200px;
  }
  
  .article-title {
    font-size: 28px;
  }
  
  .article-cover img {
    height: 300px;
  }
}