:root {
 --color-primary: #b65458;
 --text-primary: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
ul,
li {
  list-style: none;
}

a {
  text-decoration: none;
  color: #000;
}

html {
  height: 100%;
}
body {
  background-color: #ffffff;
  line-height: 1.4;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 680px;
  margin: 0 auto;
}

main {
  margin-bottom: 40px;
  flex: 1;
}

.header {
  background: white;
  color: var(--color-primary);
  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%;
  box-sizing: border-box;
}


.sidebar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-toggle img {
  width: 36px;
  height: 36px;
}


.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo p {
  font-size: 20px;
  font-weight: 700;
}

.back-header img {
  width: 36px;
  height: 36px;
  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(--color-primary);
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  background: white;
  max-width: 600px;
}

.search-input:focus {
  border-color: var(--color-primary);
  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(--color-primary);
  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(--color-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.category-bar {
  padding: 12px 0 6px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(
    180deg,
    var(--color-primary) 0%,
    #ffffff 100%
  );
}

.cat-track {
  display: inline-flex;
  gap: 16px;
  padding: 0 15px;
}

.cat-pill {
  flex: 0 0 auto;
  min-width: 96px;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.85),
    rgba(243, 246, 255, 0.8)
  );

  text-align: center;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.cat-pill.active {
  box-shadow: inset 6px 6px 15px rgba(54, 84, 154, 0.1),
    inset -6px -6px 15px rgba(255, 255, 255, 0.85);
  transform: translateY(-3px);
}

.cat-pill-icon {
  width: 55px;
  height: 55px;
  margin: 0 auto 4px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-pill-icon svg {
  width: 30px;
  height: 30px;
}

.cat-pill-icon img {
  width: 55px;
  height: 55px;
}

.cat-pill-label {
  font-size: 14px;
  font-weight: 500;
  color: #303e65;
  white-space: nowrap;
}

.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;
}

.section--featured .section-title {
  font-size: 22px;
  font-weight: 700;
  color: #10224d;
  position: relative;
  padding-bottom: 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;
  box-shadow: 0 14px 28px rgba(33, 41, 76, 0.28);
  background: #ffffff;
  border-radius: 30px;
}

.section--featured .img-simple {
  width: 100%;
  height: 150px;
}

.section--featured .img-simple img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section--featured .title-simple {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: bold;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--color-primary);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.category-section-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.section-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.section-articles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  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;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  position: relative;
  height: auto;
  width: 100%;
}

.img-simple {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
}

.img-simple img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.title-simple {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  margin: 0;
  padding: 5px 10px;
  line-height: 1.3;
  white-space: normal;
  box-sizing: border-box;
}


.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;
}

.detail-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  color: #666;
  font-size: 14px;
}

#articleType {
  display: inline-block;
  padding: 6px 12px;
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  color: var(--color-primary);
  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(--color-primary);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

#articleSource {
  display: inline-block;
  padding: 6px 12px;
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  color: var(--color-primary);
  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;
  overflow-wrap: break-word;
  hyphens: auto;
}

.detail-item {
  margin-bottom: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-content h3 {
  color: var(--color-primary);
  margin: 25px 0 15px 0;
  font-size: 20px;
}

.detail-content img {
  max-width: 100%;
  width: 100%;
  border-radius: 10px;
  display: block;
  margin: 10px auto;
  object-fit: contain;
}

.detail-content p {
  margin-bottom: 10px;
  line-height: 1.8;
  color: #333;
}

.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(--color-primary);
  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(--color-primary);
  border-radius: 3px;
}


.recommended {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.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(--color-primary);
  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: #000;
  color: white;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  background: #000;
  padding: 10px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 8px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
}

.footer-copyright {
  color: #999;
  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(--color-primary);
  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;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.top-btn.show {
  opacity: 1;
  visibility: visible;
}

.top-btn img {
  width: 50px;
  height: 50px;
}


.home-btn {
  position: fixed;
  right: 20px;
  bottom: 300px;
  z-index: 3000;
  text-decoration: none;
  border: none;
  background: none;
}

.home-btn img {
  width: 56px;
  height: 56px;
}

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-toggle img {
  width: 35px;
  height: 35px;
}


.search-back {
  background: none;
  border: none;
  color: var(--color-primary);
  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;
}

.section--list .section-title {
  font-size: 20px;
  font-weight: 700;
  color: #10224d;
  position: relative;
  padding-bottom: 6px;
}



.section--list .section-articles {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 10px;
}

.card-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  box-shadow: 0 6px 15px rgba(44, 64, 116, 0.1);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 110px;
  border:1px dashed var(--color-primary);
}

.list-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.list-title {
  font-size: 17px;
  font-weight: 600;
  color: #1e2a4a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-primary);
}

.list-date {
  color: var(--color-primary);
  font-weight: 600;
}

.list-img {
  width: 118px;
  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);
}


.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;
}