a {
  color: inherit;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
}

.nav-btn {
  position: fixed;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(6, 182, 212, 0.1);
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

html[dir="rtl"]:not(.translated-ltr) .nav-btn {
  right: auto;
  left: 20px; 
}

.nav-btn:hover {
  background: var(--accent);
  color: #000;
}

#btnUp { top: calc(var(--nav-height) + 25px); }
#btnDown { bottom: 100px; }

.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1000; 
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  top: 65px;
  right: 15px !important; 
  left: auto !important;  
  width: 180px; 
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 8px; 
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: 0.25s;
  z-index: 2001;
  direction: ltr; 
}

html[dir="rtl"]:not(.translated-ltr) .side-menu {
  direction: rtl; 
}

.side-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px; 
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  border-radius: 6px;
  transition: 0.2s;
  cursor: pointer;
}

html[dir="rtl"]:not(.translated-ltr) .menu-link {
  flex-direction: row; 
  justify-content: flex-start;
}

.menu-link:hover {
  background: #ecfeff; 
  color: #0891b2; 
}

.menu-link:hover .material-symbols-outlined {
  color: var(--accent);
}

.menu-link .material-symbols-outlined {
  font-size: 20px;
  color: #0891b2;
}

.material-symbols-outlined {
  font-size: 20px;
  color: var(--muted);
}

.menu-btn.close-mode .material-symbols-outlined {
  color: #ff0000;
}

.lang-box {
  position: relative; 
}

.lang-menu {
  display: none;
  position: absolute;
  top: 0;
  right: 105%;
  width: 150px; 
  max-height: 350px;      
  overflow-y: auto;       
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  border: 1px solid #e2e8f0;
  z-index: 2002;
  direction: ltr;
}

html[dir="rtl"]:not(.translated-ltr) .lang-menu {
  right: 105%;
  left: auto;
  direction: rtl;
}

.lang-menu.active {
  display: block;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  transition: 0.2s;
  text-decoration: none; 
}

html[dir="rtl"]:not(.translated-ltr) .lang-item {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.lang-item:hover {
  background: #f1f5f9;
  color: var(--accent);
}

.lang-item.selected {
  border-bottom: none !important;
  text-decoration: none !important;
}

.lang-item .check-icon {
  font-size: 18px;
  color: var(--accent);
  visibility: hidden;
}

.lang-item.selected .check-icon {
  visibility: visible;
}

@media (max-width: 400px) {
  .lang-menu {
    right: 0;
    top: 100%;
    margin-top: 5px;
  }
  html[dir="rtl"]:not(.translated-ltr) .lang-menu {
    right: 0;
    left: auto;
  }
}

h2 {
  color: var(--accent);
  margin-top: 35px;
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 700;
}

strong { color: var(--accent); }

.main-article-content p,
.main-article-content ul li,
.cta-section p.cta-sub-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 18px;
  white-space: normal;
  text-align: justify;
  word-break: normal !important;
  line-break: normal !important;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word; 
}

html[dir="rtl"]:not(.translated-ltr) .main-article-content p,
html[dir="rtl"]:not(.translated-ltr) .main-article-content ul li,
html[dir="rtl"]:not(.translated-ltr) .cta-section p.cta-sub-text {
  text-align: right; 
  direction: rtl !important;
  unicode-bidi: plaintext; 
}

.main-article-content ul,
.trust-list-wrapper ul {
  margin: 0 0 22px 0;
  padding-left: 22px;
}

html[dir="rtl"]:not(.translated-ltr) .main-article-content ul,
html[dir="rtl"]:not(.translated-ltr) .trust-list-wrapper ul {
  padding-left: 0;
  padding-right: 22px;
}

.main-article-content ul li,
.trust-list-wrapper ul li {
  margin-bottom: 8px;
}

.notice-section {
  margin-top: 35px; 
  padding: 15px 20px; 
  background: rgba(6, 182, 212, 0.04); 
  border-left: 4px solid var(--accent); 
  border-radius: 0 8px 8px 0;
}

html[dir="rtl"]:not(.translated-ltr) .notice-section {
  border-left: none;
  border-right: 4px solid var(--accent);
  border-radius: 8px 0 0 8px;
}

.notice-section h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.notice-section p.notice-body-text {
  margin: 0; 
  font-style: italic;
  font-size: 1rem;
  color: #475569;
  text-align: justify;
  word-break: normal !important;
  line-break: normal !important;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

html[dir="rtl"]:not(.translated-ltr) .notice-section p.notice-body-text {
  text-align: right;
  direction: rtl !important;
  unicode-bidi: plaintext;
}

.cta-section {
  text-align: center; 
  margin: 45px 0; 
  display: flex; 
  flex-direction: column; 
  align-items: center;
}

.cta-section h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.cta-section p.cta-sub-text {
  margin: 0 0 25px 0; 
  max-width: 550px; 
  width: 100%;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.blog-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: 0.3s;
}

html[dir="rtl"]:not(.translated-ltr) .blog-item {
  flex-direction: row-reverse; 
}

.blog-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.blog-item img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.blog-text h3 { font-size: 1rem; color: var(--text); }

html[dir="rtl"]:not(.translated-ltr) .blog-text {
  text-align: right;
  direction: rtl !important;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text);
  background: #fff;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: 0.3s;
  direction: ltr !important; 
}

.channel-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.logo-slot {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-slot img { width: 100%; height: 100%; object-fit: contain; }

.channel-info { 
  flex: 1; 
}

.channel-info h3 { margin: 0; font-size: 1rem; color: var(--text); }
.channel-tag { font-size: 0.8rem; color: var(--muted); }

.watch-btn { 
  font-size: 0.9rem; 
  font-weight: 700; 
  color: var(--accent); 
}

.more-wrapper { text-align: center; margin-top: 25px; }

.more-btn,
.explore-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.25);
  transition: 0.3s;
  direction: ltr !important; 
}

html[dir="rtl"]:not(.translated-ltr) .more-btn,
html[dir="rtl"]:not(.translated-ltr) .explore-cta {
  direction: rtl !important; 
}

html[dir="rtl"]:not(.translated-ltr) .cta-arrow {
  display: inline-block;
  transform: scaleX(-1); 
}

.more-btn:hover,
.explore-cta:hover {
  background: #0891b2;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(6, 182, 212, 0.35);
}

.cta-arrow { transition: 0.3s; }

.more-btn:hover .cta-arrow,
.explore-cta:hover .cta-arrow { 
  transform: translateX(5px); 
}

html[dir="rtl"]:not(.translated-ltr) .more-btn:hover .cta-arrow,
html[dir="rtl"]:not(.translated-ltr) .explore-cta:hover .cta-arrow { 
  transform: translateX(-5px) scaleX(-1); 
}

@media (max-width: 768px) {
  .footer {
    padding-bottom: 50px;  
  }
  
  .footer .f-flex-container {
    flex-direction: column; 
    align-items: flex-start;
    gap: 24px;              
  }

  html[dir="rtl"]:not(.translated-ltr) .footer .f-flex-container {
    flex-direction: column;
    align-items: flex-end;
  }
  
  .footer-links {
    gap: 0 50px;           
    width: 100%;
  }

  html[dir="rtl"]:not(.translated-ltr) .footer-links {
    justify-content: flex-end;
  }

  .footer-text { 
    text-align: left;       
    width: 100%;
  }

  html[dir="rtl"]:not(.translated-ltr) .footer-text {
    text-align: right;
  }
}

html.translated-ltr, 
html.translated-ltr body {
  direction: ltr !important;
  text-align: left !important;
}

html.translated-rtl, 
html.translated-rtl body {
  direction: rtl !important;
  text-align: right !important;
}
