:root {
 --color1: #e4c6d0;
 --color2: #425066;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
ul,
li {
  list-style: none;
}

a {
  text-decoration: none;
  color: #000;
}

html {
  height: 100%;
  overflow-x: hidden;
}
body {
  background-color: #ffffff;
  line-height: 1.4;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  margin-bottom: 40px;
  flex: 1;
}



.header {
  background: var(--color1);
  color: white;
  padding: 15px 20px;
  position: relative;
  z-index: 1000;
  height: 60px;
  display: flex;
  align-items: center;
}

.header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}


.sidebar-toggle {
  background: none;
  border: none;
  color: var(--color2);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-toggle svg {
  width: 24px;
  height: 24px;
}


.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;

}
.logo p{
  font-size: 20px;
  font-weight: 600;
  color: var(--color2);
  text-decoration: none;
}



.back-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color2);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  font-weight: 500;
  font-size: 14px;
  flex-shrink: 0;
}

.back-header svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 3;
}

.back-header span {
  font-weight: 500;
}


.search-bar {
  background: white;
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.search-bar.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.search-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  padding-right: 50px;
  border: 2px solid var(--color2);
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  background: white;
  max-width: 600px;
}

.search-input:focus {
  border-color: var(--color1);
  box-shadow: 0 0 0 3px rgba(116, 96, 151, 0.1);
}

.search-input::placeholder {
  color: #999;
}

.search-clear {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  display: none;
}

.search-clear svg {
  width: 16px;
  height: 16px;
}


.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color1);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.search-icon svg {
  width: 18px;
  height: 18px;
}


.search-results {
  background: #f8f9fa;
  border-bottom: 1px solid #e1e5e9;
  padding: 15px 0;
  display: none;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

.search-info {
  color: #666;
  font-size: 14px;
}

.search-info span {
  color: #333;
  font-weight: 600;
}

.clear-btn {
  background: var(--color2);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}


.stacked-carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1500px;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  padding: 0 10px;
}

.carousel-track {
  position: relative;
  width: 100%;
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  transform-style: preserve-3d;
}

.carousel-card {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
}

.carousel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: blur(20px) brightness(0.7);
}

.carousel-content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 10px 15px;

}

.carousel-content-left {
  flex: 1;
  color: white;
  max-width: 55%;
}

.carousel-content-right {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.3);
}

.carousel-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-card-category {
  font-size: 14px;
  color: var(--color1);
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 20px;
}

.carousel-card-title {
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-card.active {
  transform: translate(-50%, -50%) translateZ(0) scale(1);
  z-index: 100;
  opacity: 1;
}

.carousel-card.prev {
  transform: translate(-50%, -50%) translateZ(-100px) translateX(-300px) scale(0.85) rotateY(15deg);
  z-index: 1;
  opacity: 0.7;
  filter: blur(1px);
}

.carousel-card.next {
  transform: translate(-50%, -50%) translateZ(-100px) translateX(300px) scale(0.85) rotateY(-15deg);
  z-index: 1;
  opacity: 0.7;
  filter: blur(1px);
}

.carousel-card.prev-2 {
  transform: translate(-50%, -50%) translateZ(-200px) translateX(-450px) scale(0.7) rotateY(25deg);
  z-index: 0;
  opacity: 0.4;
  filter: blur(2px);
}

.carousel-card.next-2 {
  transform: translate(-50%, -50%) translateZ(-200px) translateX(450px) scale(0.7) rotateY(-25deg);
  z-index: 0;
  opacity: 0.4;
  filter: blur(2px);
}

.carousel-card.hidden {
  transform: translate(-50%, -50%) translateZ(-300px) scale(0.5);
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}

.carousel-card:hover .carousel-main-img {
  transform: scale(1.08);
}

.carousel-card:hover .carousel-content-right {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.carousel-main-img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: var(--color1);
  width: 30px;
  border-radius: 5px;
}

.carousel-dot:hover {
  background: rgba(237, 152, 116, 0.6);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 20;
  transition: all 0.3s ease;
}

.carousel-arrow:hover {
  background: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
  left: 0;
}

.carousel-arrow.next {
  right: 0;
}

.carousel-arrow svg {
  width: 24px;
  height: 24px;
  stroke: var(--color1);
  stroke-width: 3;
}



.horizontal-scroll-container {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto 0;
  overflow: hidden;
  padding: 0 15px;
}

.horizontal-scroll-track {
  display: flex;
  gap: -5px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0;
  scrollbar-width: none;
}

.horizontal-scroll-track::-webkit-scrollbar {
  display: none;
}

.horizontal-scroll-item {
  border: 2px solid white;
  flex: 0 0 calc(33.333% - 3.33px);
  position: relative;
  margin-right: -8px;
  border-radius: 25px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.horizontal-scroll-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.horizontal-scroll-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.horizontal-scroll-item-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  font-size: 11px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  max-height: 100px;
}



.cats-container {
  max-width: 1200px;
  margin: 0 auto;
}


.section--featured {
  padding: 10px 15px;
}

.section--featured .section-header {
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  align-items: flex-end;
  gap: 18px;
}

.section--featured .section-title {
  font-size: 22px;
  font-weight: 700;
  color: #10224d;
  position: relative;
  padding-bottom: 6px;
}

.section--featured .section-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: -26px;
  bottom: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color1) 0%,
    var(--color1) 60%,
    rgba(116, 96, 151, 0) 100%
  );
  border-radius: 6px;
}

.section--featured .section-articles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  max-width: 100%;
}

.section--featured .card-simple {
  position: relative;
  overflow: hidden;
  height: auto;
  display: flex;
  flex-direction: column;
}

.section--featured .img-simple {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: 50%;
}

.section--featured .img-simple img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.section--featured .card-simple::after {
  content: "";
  position: absolute;
  inset: 0;
}

.section--featured .title-simple {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 0 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.section-articles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}


.articles {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0;
}


.card-simple {
  background: white;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  height: auto;
  width: 100%;
}

.img-simple {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.img-simple img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.title-simple {
  font-size: 15px;
  font-weight: bold;
  color: var(--color2);
  margin: 0;
  padding: 10px;
  line-height: 1.3;
  white-space: normal;
  box-sizing: border-box;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


.detail {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}

.detail-header {
  text-align: left;
  margin-bottom: 15px;
}

.detail-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.2;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.detail-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  color: #666;
  font-size: 14px;
}

#articleAuthor {
  display: inline-block;
  padding: 6px 12px;
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  color: var(--color2);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

#articleTime {
  display: inline-block;
  padding: 6px 12px;
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  color: var(--color2);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.detail-source {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  color: #666;
  font-size: 14px;
}

#articleSource {
  display: inline-block;
  padding: 6px 12px;
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  color: var(--color2);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.detail-content {
  background: transparent;
  box-shadow: none;
  line-height: 1.8;
  color: #333;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.detail-item {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-content h3 {
  color: var(--color1);
  margin: 25px 0 15px 0;
  font-size: 20px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.detail-content p,
.detail-content div,
.detail-content span,
.detail-content a,
.detail-content li {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  margin-bottom: 15px;
}

.detail-content img {
  max-width: 100%;
  height: 30vh;
  border-radius: 10px;
  margin: 10px 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}


.detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-content th,
.detail-content td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
  word-wrap: break-word;
  hyphens: auto;
}

.detail-content th {
  background-color: var(--color1);
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.detail-content td {
  font-size: 14px;
  line-height: 1.5;
}


.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--color1);
  border-radius: 3px;
}


.recommended {
  margin-top: 40px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.recommended .section-articles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 0;
}

.cat-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
  margin-top: 20px;
}

.cat-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cat-card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 15px;
}

.cat-card-icon svg {
  width: 40px;
  height: 40px;
}

.cat-card-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.cat-card-count {
  font-size: 14px;
  color: #666;
}


.current-articles {
  max-width: 1200px;
  margin: 0 auto;
}


.about-page,
.privacy-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 15px;
}


.about-header,
.privacy-header {
  text-align: center;
  margin-bottom: 20px;
  padding: 40px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-header h1,
.privacy-header h1 {
  font-size: 36px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.about-header p,
.privacy-header p {
  font-size: 18px;
  color: #666;
}

.about-content,
.privacy-content {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.about-section,
.privacy-section {
  padding: 30px;
  border-bottom: 1px solid #f0f2f5;
}

.about-section:last-child,
.privacy-section:last-child {
  border-bottom: none;
}

.about-section h2,
.privacy-section h2 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.about-section h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--color1);
  margin: 25px 0 15px 0;
}

.about-section p,
.privacy-section p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 15px;
}

.about-section ul,
.privacy-section ul {
  margin: 15px 0;
  padding-left: 20px;
}

.about-section li,
.privacy-section li {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 10px;
  list-style: disc;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.value-item {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 15px;
}

.value-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.value-item h3 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.value-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}



.privacy-section h3 {
  font-size: 20px;
  font-weight: bold;
  color: #000;
  margin: 25px 0 15px 0;
}

.privacy-section strong {
  color: #333;
  font-weight: 600;
}


.footer {
  background: var(--color2);
  color: white;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--color1);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--color1);
}

.footer-copyright {
  color: var(--color1);
  font-size: 14px;
}


.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--color1);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


.dsn {
  display: none !important;
}


.sidebar-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  z-index: 2000;
  display: none;
}

.sidebar-menu.active {
  right: 0;
  display: block;
}

.sidebar-menu.active + .sidebar-overlay {
  display: block;
}

.sidebar-overlay.active {
  display: block;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  backdrop-filter: blur(2px);
  z-index: 1999;
  display: none;
}

.sidebar-content {
  position: absolute;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  width: 245px;
  max-height: 80vh;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px 15px;
  background: white;
  color: #333;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 12px 12px 0 0;
}

.sidebar-header h3 {
  margin: 0;
  color: #333;
  font-size: 20px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.sidebar-close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.sidebar-close svg {
  width: 18px;
  height: 18px;
}

.sidebar-items {
  padding: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 12px 25px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
  font-weight: 500;
  font-size: 15px;
  height: 45px;
}

.sidebar-item svg {
  color: #666;
  position: relative;
  z-index: 1;
}

.sidebar-item span {
  font-weight: 500;
  font-size: 16px;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  display: flex;
  align-items: center;
  color: inherit;
}

.sidebar-item:last-child {
  border-bottom: none;
  border-radius: 0 0 12px 12px;
}


.sidebar-category {
  margin: 0;
}


.top-btn {
  position: fixed;
  right: 20px;
  bottom: 240px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color1); 
  color: var(--color2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 6px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  z-index: 3000;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  border: none; 
  outline: none; 
}

.top-btn.show {
  opacity: 1;
  visibility: visible;
}

.top-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(116, 96, 151, 0.3), 0 10px 20px rgba(0, 0, 0, 0.15);
}

.top-btn svg {
  width: 32px; 
  height: 32px;
}


.home-btn {
  position: fixed;
  right: 20px;
  bottom: 300px;
  width: 46px;
  height: 46px;
  border-radius: 20%;
  background: var(--color1); 
  color: var(--color2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 6px 10px rgba(0, 0, 0, 0.08);
  z-index: 3000;
  text-decoration: none;
}

.home-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(116, 96, 151, 0.3), 0 10px 20px rgba(0, 0, 0, 0.15);
}

.home-btn svg {
  width: 26px;
  height: 26px;
}

.search-toggle {
  background: none;
  border: none;
  color: var(--color2);
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.search-back {
  background: none;
  border: none;
  color: var(--color2);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex-shrink: 0;
}

.search-back:active {
  opacity: 0.6;
}

.search-back svg {
  width: 24px;
  height: 24px;
  stroke-width: 3;
}

.section--list .section-header {
  margin-left: 0;
  margin-right: 0;
  padding: 10px;
  align-items: flex-end;
  gap: 18px;
}

.section--list .section-title {
  font-size: 22px;
  font-weight: 700;
  color: #10224d;
  position: relative;
  padding-bottom: 6px;
}

.section--list .section-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: -26px;
  bottom: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color1) 0%,
    var(--color1) 60%,
    rgba(116, 96, 151, 0) 100%
  );
  border-radius: 6px;
}

.section--list .section-articles {
  display: flex;
  flex-direction: column;
  padding: 0 10px;
}

.card-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 110px;
}

.list-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.list-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e2a4a;
  line-height: 1.35;
}

.list-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color2);
  font-weight: 600;
}

.list-img {
  width: 177px;
  height: 110px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(91, 116, 188, 0.2);
  background: linear-gradient(
    135deg,
    rgba(116, 96, 151, 0.1),
    rgba(116, 96, 151, 0.25)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-img.no-image::before {
  content: "Image";
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.card-list.left-img {
  flex-direction: row;
}

.card-list.left-img .list-img {
  order: 0;
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;
}

.card-list.left-img .list-content {
  order: 1;
}

.card-list.right-img {
  flex-direction: row;
}

.card-list.right-img .list-img {
  order: 1;
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
}

.card-list.right-img .list-content {
  order: 0;
}


.ads {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.ads > div {
  width: 100%;
  max-width: 300px;
  
  display: flex;
  justify-content: center;
  align-items: center;
}