/* ================= Top Slider ================= */
.top-slider {
  position: relative;
  overflow: hidden;
  height: 400px;
}

.top-slider .slider-wrapper {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
  height: 100%;
}

.top-slider .slide {
  flex: 0 0 100%;
  height: 100%;
}

.top-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 5;
  border-radius: 6px;
}

.top-slider .slider-prev {
  left: 10px;
}

.top-slider .slider-next {
  right: 10px;
}

/* ================= Main Grid & Sections ================= */
.main-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.main-content {
  order: 1;
}

.sidebar-left {
  order: 2;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-right: 1.5rem;
}

.section-title::before {
  content: "•";
  color: #e67e22;
  position: absolute;
  right: 0;
  font-size: 2rem;
  line-height: 1;
  top: -5px;
}

.not-found-message {
  padding: 2rem;
  text-align: center;
  font-size: 1.1rem;
  color: #888;
  background: #fff;
  border-radius: 8px;
}

/* ================= Sidebar Styles ================= */
.news-sidebar {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  max-height: 500px;
  overflow-y: auto;
}

.news-sidebar h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  border-right: 3px solid #e67e22;
  padding-right: 10px;
}

.news-item {
  border-bottom: 1px solid #eee;
  margin-bottom: 0.7rem;
  padding-bottom: 0.7rem;
}

.news-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.news-item h4 {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.3rem;
}

.news-item p {
  font-size: 0.9rem;
  color: #666;
}

.news-item a {
  font-size: 0.85rem;
  color: #3498db;
  transition: color 0.3s;
}

.news-item a:hover {
  text-decoration: underline;
}

/* ================= Horizontal Sliders ================= */
.horizontal-slider-container {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.horizontal-slider {
  display: flex;
  transition: transform 0.5s ease;
}

.slider-item {
  flex: 0 0 calc(25% - 15px);
  margin-left: 20px;
  margin-right: 0;
  background: #fff;
  padding: 0.8rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.slider-item:last-child {
  margin-left: 0;
}

.slider-item img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.slider-item h4 {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.price-section {
  font-weight: bold;
  color: #27ae60;
  font-size: 1.1rem;
}

.horizontal-slider-container button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  border-radius: 6px;
  z-index: 2;
  transition: background-color 0.3s;
}

.horizontal-slider-container button:hover {
  background: rgba(0, 0, 0, 0.7);
}

.horizontal-slider-container .slider-prev {
  right: 0;
}

.horizontal-slider-container .slider-next {
  left: 0;
}

.grade-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s;
}

.grade-item:hover {
  transform: translateY(-5px);
}

.grade-info {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

.grade-info h4 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #34495e;
  margin-bottom: 0.5rem;
}

.grade-info p {
  margin: 0.5rem 0;
}
