:root{
  --bg-1:#0f2027;
  --bg-2:#0b0c10;
  --bg-3:#08161b;

  --glass:rgba(255,255,255,0.05);
  --glass-strong:rgba(255,255,255,0.08);

  --border:rgba(0,255,157,0.14);
  --border-strong:rgba(0,255,157,0.28);

  --accent:#00ff9d;
  --accent-soft:rgba(0,255,157,0.12);
  --text:#e8edf2;
  --muted:#a9b4be;
  --white:#ffffff;

  --shadow:0 10px 30px rgba(0,0,0,0.28);
  --radius:22px;
  --radius-sm:14px;
  --header-h:76px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:'Inter', sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 20% 20%, var(--bg-1), var(--bg-2) 58%),
    linear-gradient(180deg, #0b0c10 0%, #091319 100%);
  min-height:100vh;
  overflow-x:hidden;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input{
  font:inherit;
}

button{
  -webkit-tap-highlight-color:transparent;
}

.container{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
}

main{
  position:relative;
  z-index:1;
}

/* BACKGROUND */
.bg-orb{
  position:fixed;
  border-radius:50%;
  filter:blur(70px);
  opacity:.18;
  pointer-events:none;
  z-index:0;
}

.orb-1{
  width:320px;
  height:320px;
  background:var(--accent);
  top:80px;
  left:-80px;
}

.orb-2{
  width:260px;
  height:260px;
  background:#00c2ff;
  bottom:60px;
  right:-70px;
}

.bg-grid{
  position:fixed;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size:40px 40px;
  mask-image:radial-gradient(circle at center, black 40%, transparent 90%);
  pointer-events:none;
  z-index:0;
}

/* HEADER */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  background:rgba(11,12,16,0.72);
  border-bottom:1px solid rgba(255,255,255,0.06);
}

.site-header.scrolled{
  background:rgba(8,10,14,0.88);
  box-shadow:0 10px 26px rgba(0,0,0,0.22);
}

.header-inner{
  width:min(1280px, calc(100% - 32px));
  margin:0 auto;
  min-height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

/* BRAND */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
}

.brand-text{
  font-size:1.08rem;
  font-weight:800;
  letter-spacing:.04em;
  color:var(--white);
}

.blog-label{
  font-size:.9rem;
  font-weight:700;
  letter-spacing:.25em;
  color:var(--accent);
  text-shadow:
    0 0 6px rgba(0,255,157,0.6),
    0 0 12px rgba(0,255,157,0.5);
  animation:blogGlow 3s infinite ease-in-out;
}

@keyframes blogGlow{
  0%{
    opacity:.7;
  }

  50%{
    opacity:1;
    text-shadow:
      0 0 10px rgba(0,255,157,0.9),
      0 0 20px rgba(0,255,157,0.7);
  }

  100%{
    opacity:.7;
  }
}

/* DESKTOP NAV */
.desktop-nav{
  display:flex;
  align-items:center;
  gap:22px;
}

.desktop-nav a{
  position:relative;
  color:var(--text);
  font-size:.96rem;
  font-weight:500;
  opacity:.92;
  transition:.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active{
  color:var(--accent);
  opacity:1;
}

.desktop-nav a.active::after,
.desktop-nav a:hover::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-8px;
  width:100%;
  height:2px;
  background:var(--accent);
  box-shadow:0 0 10px rgba(0,255,157,0.5);
}

/* HEADER ACTIONS */
.header-actions{
  display:flex;
  align-items:center;
  gap:14px;
}

.lang-dropdown{
  position:relative;
}

.lang-btn{
  background:var(--glass);
  color:var(--text);
  border:1px solid rgba(255,255,255,0.08);
  height:42px;
  padding:0 14px;
  border-radius:999px;
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  transition:.25s ease;
}

.lang-btn:hover{
  border-color:var(--border-strong);
  background:rgba(255,255,255,0.07);
}

.chevron{
  font-size:.72rem;
  transition:transform .25s ease;
}

.lang-dropdown.open .chevron{
  transform:rotate(180deg);
}

.lang-menu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:220px;
  max-height:320px;
  overflow-y:auto;
  padding:10px;
  border-radius:18px;
  background:rgba(14,18,24,0.96);
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:var(--shadow);
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:.22s ease;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,0.22) transparent;
}

.lang-menu::-webkit-scrollbar{
  width:8px;
}

.lang-menu::-webkit-scrollbar-track{
  background:transparent;
}

.lang-menu::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,0.18);
  border-radius:999px;
}

.lang-dropdown.open .lang-menu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.lang-menu a{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  color:var(--text);
  font-size:.95rem;
  transition:.2s ease;
}

.lang-menu a:hover{
  background:var(--accent-soft);
  color:var(--accent);
}

/* BURGER */
.menu-toggle{
  display:none;
  width:46px;
  height:46px;
  border:none;
  background:var(--glass);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;
  cursor:pointer;
  padding:0;
  position:relative;
}

.menu-toggle span{
  position:absolute;
  left:11px;
  width:22px;
  height:2px;
  background:var(--white);
  border-radius:999px;
  transition:.28s ease;
}

.menu-toggle span:nth-child(1){ top:15px; }
.menu-toggle span:nth-child(2){ top:22px; }
.menu-toggle span:nth-child(3){ top:29px; }

.menu-toggle.active span:nth-child(1){
  transform:rotate(45deg);
  top:22px;
}

.menu-toggle.active span:nth-child(2){
  opacity:0;
}

.menu-toggle.active span:nth-child(3){
  transform:rotate(-45deg);
  top:22px;
}

/* MOBILE NAV */
.mobile-nav{
  display:none;
  width:min(1280px, calc(100% - 32px));
  margin:0 auto 14px;
  padding:10px;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:20px;
  background:rgba(14,18,24,0.92);
  box-shadow:var(--shadow);
}

.mobile-nav.show{
  display:block;
}

.mobile-nav a{
  display:block;
  padding:14px 14px;
  border-radius:14px;
  color:var(--text);
  transition:.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active{
  background:var(--accent-soft);
  color:var(--accent);
}

/* HERO */
.blog-hero{
  position:relative;
  z-index:1;
  padding:76px 0 30px;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(0,255,157,0.1);
  color:var(--accent);
  border:1px solid var(--border);
  padding:10px 14px;
  border-radius:999px;
  font-size:.83rem;
  font-weight:700;
  letter-spacing:.08em;
  margin-bottom:22px;
}

.blog-hero h1{
  margin:0;
  max-width:880px;
  font-size:clamp(2.2rem, 5vw, 4.4rem);
  line-height:1.02;
  font-weight:800;
  letter-spacing:-0.03em;
}

.blog-hero p{
  max-width:760px;
  margin:18px 0 0;
  color:var(--muted);
  font-size:1.08rem;
  line-height:1.7;
}

.hero-search-wrap{
  margin-top:34px;
}

.search-box{
  width:min(720px, 100%);
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:20px;
  box-shadow:var(--shadow);
}

.search-box input{
  flex:1;
  height:54px;
  background:transparent;
  color:var(--white);
  border:none;
  outline:none;
  padding:0 10px;
}

.search-box input::placeholder{
  color:#95a2ae;
}

.search-box button{
  height:54px;
  padding:0 22px;
  border:none;
  border-radius:14px;
  background:linear-gradient(135deg, #00ff9d, #00d084);
  color:#07140e;
  font-weight:800;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease;
}

.search-box button:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(0,255,157,0.22);
}

/* CATEGORIES */
.blog-categories{
  position:relative;
  z-index:1;
  padding:10px 0 24px;
}

.chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.chip{
  border:none;
  cursor:pointer;
  padding:12px 16px;
  border-radius:999px;
  color:var(--text);
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
  transition:.24s ease;
}

.chip:hover,
.chip.active{
  color:var(--accent);
  border-color:var(--border-strong);
  background:rgba(0,255,157,0.09);
}

/* CARD */
.card{
  background:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border:1px solid rgba(255,255,255,0.08);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

/* FEATURED POST */
.featured-post-section{
  position:relative;
  z-index:1;
  padding:6px 0 26px;
}

.featured-post{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  overflow:hidden;
}

.featured-media{
  min-height:360px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0,255,157,0.35), transparent 35%),
    linear-gradient(135deg, #0d1117, #12222a 55%, #0f1d25);
  position:relative;
}

.featured-media::after{
  content:"";
  position:absolute;
  inset:24px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
}

.featured-tag{
  position:absolute;
  top:22px;
  left:22px;
  z-index:2;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(11,12,16,0.75);
  border:1px solid rgba(255,255,255,0.08);
  color:var(--accent);
  font-weight:700;
  font-size:.88rem;
}

.featured-content{
  padding:40px 34px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.post-meta{
  color:var(--accent);
  font-size:.9rem;
  font-weight:600;
  letter-spacing:.02em;
}

.featured-content h2{
  margin:14px 0 14px;
  font-size:clamp(1.7rem, 3vw, 2.7rem);
  line-height:1.15;
  letter-spacing:-0.02em;
}

.featured-content p{
  margin:0;
  color:var(--muted);
  line-height:1.75;
  font-size:1rem;
}

.post-footer{
  margin-top:26px;
}

.read-more{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--accent);
  font-weight:700;
}

.read-more:hover{
  text-decoration:underline;
}

/* POSTS */
.posts-section{
  position:relative;
  z-index:1;
  padding:20px 0 40px;
}

.section-head{
  margin-bottom:22px;
}

.section-head h3{
  margin:0 0 8px;
  font-size:1.65rem;
  letter-spacing:-0.02em;
}

.section-head p{
  margin:0;
  color:var(--muted);
}

.posts-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}

.post-card{
  overflow:hidden;
  transition:transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.post-card:hover{
  transform:translateY(-4px);
  border-color:var(--border-strong);
  box-shadow:0 16px 34px rgba(0,0,0,0.34);
}

.post-thumb{
  height:190px;
  background:
    radial-gradient(circle at 30% 20%, rgba(0,255,157,0.28), transparent 30%),
    linear-gradient(135deg, #0d1117, #122028 55%, #0c171e);
  border-bottom:1px solid rgba(255,255,255,0.07);
}

.post-body{
  padding:22px 20px 24px;
}

.post-body h4{
  margin:12px 0 10px;
  font-size:1.16rem;
  line-height:1.4;
  letter-spacing:-0.01em;
}

.post-body p{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.68;
  font-size:.97rem;
}

/* NEWSLETTER */
.newsletter-section{
  position:relative;
  z-index:1;
  padding:18px 0 80px;
}

.newsletter-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:28px;
}

.newsletter-kicker{
  display:inline-block;
  margin-bottom:8px;
  color:var(--accent);
  font-weight:700;
  font-size:.9rem;
}

.newsletter-box h3{
  margin:0 0 10px;
  font-size:1.6rem;
  letter-spacing:-0.02em;
}

.newsletter-box p{
  margin:0;
  color:var(--muted);
}

.newsletter-form{
  display:flex;
  align-items:center;
  gap:12px;
  width:min(520px, 100%);
}

.newsletter-form input{
  flex:1;
  height:54px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.04);
  color:var(--white);
  outline:none;
  padding:0 16px;
}

.newsletter-form button{
  height:54px;
  padding:0 20px;
  border:none;
  border-radius:14px;
  background:linear-gradient(135deg, #00ff9d, #00d084);
  color:#07140e;
  font-weight:800;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease;
}

.newsletter-form button:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(0,255,157,0.22);
}

/* FOOTER */
.site-footer{
  position:relative;
  z-index:1;
  border-top:1px solid rgba(255,255,255,0.06);
  background:rgba(8,10,14,0.55);
}

.footer-inner{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.site-footer p{
  margin:0;
  color:var(--muted);
  font-size:.95rem;
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
}

.footer-links a{
  color:var(--muted);
  transition:.2s ease;
}

.footer-links a:hover{
  color:var(--accent);
}

/* FILTERING */
.post-card.hidden,
.featured-post.hidden{
  display:none;
}

/* RESPONSIVE */
@media (max-width:1100px){
  .desktop-nav{
    gap:16px;
  }

  .desktop-nav a{
    font-size:.92rem;
  }

  .posts-grid{
    grid-template-columns:repeat(2, 1fr);
  }

  .featured-post{
    grid-template-columns:1fr;
  }

  .featured-media{
    min-height:260px;
  }

  .newsletter-box{
    flex-direction:column;
    align-items:flex-start;
  }

  .newsletter-form{
    width:100%;
  }
}

@media (max-width:860px){
  .desktop-nav{
    display:none;
  }

  .menu-toggle{
    display:block;
  }

  .lang-btn{
    height:40px;
    padding:0 12px;
  }
}

@media (max-width:680px){
  :root{
    --header-h:72px;
  }

  .header-inner{
    gap:12px;
  }

  .brand{
    gap:8px;
  }

  .blog-label{
    font-size:.78rem;
    letter-spacing:.18em;
  }

  .brand-text{
    font-size:1rem;
  }

  .lang-btn{
    max-width:132px;
    padding:0 10px;
    font-size:.9rem;
  }

  .lang-menu{
    right:-6px;
    width:210px;
    max-height:300px;
  }

  .blog-hero{
    padding:54px 0 22px;
  }

  .blog-hero p{
    font-size:1rem;
  }

  .search-box{
    flex-direction:column;
    align-items:stretch;
  }

  .search-box button{
    width:100%;
  }

  .posts-grid{
    grid-template-columns:1fr;
  }

  .featured-content{
    padding:28px 22px;
  }

  .newsletter-form{
    flex-direction:column;
    align-items:stretch;
  }

  .newsletter-form button{
    width:100%;
  }

  .footer-inner{
    padding:18px 0;
    flex-direction:column;
    align-items:flex-start;
  }
}
/* ===========================
   ARTICLE PAGE
   =========================== */

.article-header{
  max-width:820px;
  margin:60px auto 20px;
  padding:0 20px;
}

.article-back{
  display:inline-block;
  margin-bottom:18px;
  color:var(--accent);
  font-size:.9rem;
  font-weight:600;
  opacity:.9;
  transition:.2s ease;
}

.article-back:hover{
  opacity:1;
  text-decoration:underline;
}

.article-title{
  margin:0 0 14px;
  font-size:clamp(2.2rem,5vw,3.6rem);
  line-height:1.1;
  letter-spacing:-0.02em;
  font-weight:800;
  margin-top:80px;
}

.article-meta{
  display:flex;
  gap:16px;
  color:var(--muted);
  font-size:.95rem;
}

.article-container{
  max-width:820px;
  margin:0 auto;
  padding:10px 20px 60px;
}

.article-container p{
  color:var(--text);
  line-height:1.8;
  font-size:1.05rem;
  margin:0 0 22px;
}

.article-container h2{
  margin:42px 0 14px;
  font-size:1.7rem;
  letter-spacing:-0.01em;
}

.article-footer{
  max-width:820px;
  margin:0 auto 80px;
  padding:0 20px;
}
.featured-ad{
position:absolute;
inset:24px;
display:flex;
align-items:center;
justify-content:center;
border-radius:20px;
overflow:hidden;
}

.featured-ad ins{
width:100%;
height:100%;
}
html[dir="rtl"] {
direction: rtl;
}

html[dir="rtl"] .header-inner {
flex-direction: row-reverse;
}

html[dir="rtl"] .desktop-nav {
flex-direction: row-reverse;
}
/* YEAR ARTICLES CAROUSEL */

.articles-year{
margin-top:60px;
}

.year-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:20px;
}

.year-header h3{
font-size:28px;
font-weight:700;
}

.carousel-controls{
display:flex;
gap:10px;
}

.carousel-btn{
background:rgba(255,255,255,0.05);
border:1px solid rgba(255,255,255,0.1);
color:#fff;
width:36px;
height:36px;
border-radius:8px;
cursor:pointer;
}


.articles-carousel{
display:flex;
gap:14px;
overflow-x:auto;
scroll-behavior:smooth;
padding-bottom:10px;
}

.article-card{
min-width:420px;
max-width:420px;
min-height:370px;
background:rgba(255,255,255,0.03);
border:1px solid rgba(255,255,255,0.08);
border-radius:14px;
overflow:hidden;
transition:0.25s;
display:flex;
flex-direction:column;
}
.article-card .post-body{
padding:18px 16px 20px;
}

.article-card:hover{
border-color:#00ff9d;
transform:translateY(-4px);
}
.article-card h4{
font-size:1.05rem;
line-height:1.35;
}

.article-card p{
font-size:.92rem;
line-height:1.5;
}


.articles-carousel::-webkit-scrollbar{
height:8px;
}

.articles-carousel::-webkit-scrollbar-thumb{
background:rgba(255,255,255,0.15);
border-radius:20px;
}
.articles-section{
margin-top:80px;
}

.article-card .post-thumb{
height:220px;
overflow:hidden;
border-bottom:1px solid rgba(255,255,255,0.08);
}

.article-card .post-thumb img{
width:100%;
height:100%;
object-fit:cover;
display:block;
}



@media (max-width:768px){

.article-card{
min-width:320px;
max-width:320px;
}

.article-card .post-thumb{
height:180px;
}

}
