:root{
  --cream:#f7f4ef;
  --paper:#fbfaf7;
  --card:#f3f0ea;
  --ink:#203428;
  --text:#151a17;
  --muted:#68706b;
  --olive:#53664f;
  --line:#dedbd4;
  --serif:"Cormorant Garamond", Georgia, serif;
  --sans:"Inter", Arial, sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--text);font-family:var(--sans);font-size:15px}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
.site-header{
  height:126px;padding:0 5.5%;display:grid;grid-template-columns:150px 1fr 150px;align-items:center;
  background:rgba(251,250,247,.97);border-bottom:1px solid rgba(222,219,212,.35);position:relative;z-index:10
}
.brand img{width:125px;height:108px;object-fit:cover;object-position:center;border-radius:999px}
.main-nav{display:flex;justify-content:center;gap:36px;align-items:center}
.main-nav a{font-size:14px;padding:10px 0;white-space:nowrap}
.main-nav a.active{border-bottom:2px solid var(--ink)}
.header-actions{display:flex;justify-content:flex-end;align-items:center;gap:20px}
.icon-btn{background:none;border:0;font-size:31px;line-height:1;cursor:pointer}
.lang-wrap{position:relative}
.lang-button{border:0;border-radius:28px;background:var(--olive);color:white;padding:12px 22px;min-width:80px;cursor:pointer}
.chev{margin-inline-start:8px}
.lang-menu{display:none;position:absolute;right:0;top:52px;background:white;border:1px solid var(--line);box-shadow:0 12px 30px rgba(0,0,0,.08);border-radius:12px;padding:7px;width:130px}
.lang-menu.open{display:block}
.lang-menu button{display:block;width:100%;text-align:start;background:none;border:0;padding:10px;border-radius:8px;cursor:pointer}
.lang-menu button:hover{background:var(--card)}

.hero{min-height:475px;display:grid;grid-template-columns:55% 45%;background:#f3efe9;overflow:hidden}
.hero-copy{padding:86px 7% 58px 6.5%;display:flex;flex-direction:column;justify-content:center}
.hero h1{font-family:var(--serif);font-size:70px;font-weight:500;line-height:.93;color:var(--ink);max-width:520px;margin:0 0 26px}
.hero-sub{font-size:22px;line-height:1.35;color:#34423a;max-width:500px;margin:0 0 28px}
.hero-visual{background-image:url("assets/hero.jpg");background-size:cover;background-position:center}
.search-bar{height:62px;background:white;border-radius:34px;display:flex;align-items:center;max-width:510px;padding:6px 8px 6px 22px;box-shadow:0 6px 18px rgba(48,41,32,.05)}
.search-icon{font-size:27px;margin-right:14px}
.search-bar input{flex:1;border:0;outline:0;background:transparent;min-width:0}
.search-bar button{width:52px;height:52px;border:0;border-radius:50%;background:var(--olive);color:white;font-size:25px;cursor:pointer}
.chips{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.chips button{border:0;border-radius:22px;background:rgba(255,255,255,.72);padding:10px 16px;cursor:pointer}
.search-message{margin:12px 0 0;color:var(--olive);min-height:18px;font-size:13px}

.section{padding:30px 5.7% 0}
.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.section-heading h2,.why-section h2{font-family:var(--serif);font-weight:500;font-size:34px;margin:0}
.section-heading a{font-size:14px}
.topic-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.topic-card{min-height:132px;border-radius:8px;background:var(--card);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:14px;transition:.2s}
.topic-card:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(0,0,0,.05)}
.topic-icon{width:46px;height:46px;display:flex;align-items:center;justify-content:center;color:var(--ink);margin-bottom:12px}
.guides-section{padding-top:48px}
.guide-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.guide-card{background:white;border-radius:7px;overflow:hidden;box-shadow:0 3px 14px rgba(0,0,0,.035);border:1px solid #f0eee9}
.guide-card img{display:block;width:100%;height:136px;object-fit:cover}
.guide-body{position:relative;padding:16px 46px 18px 15px;min-height:120px}
.guide-body h3{font-size:17px;font-weight:500;margin:0 0 10px}
.guide-body p{color:var(--muted);font-size:13px;line-height:1.55;margin:0}
.guide-body a{position:absolute;right:12px;bottom:13px;width:27px;height:27px;border-radius:50%;background:#eeeae4;display:grid;place-items:center}
.guide-card.hidden{display:none}

.why-section{padding:65px 6% 50px;text-align:center}
.why-section h2{font-size:40px;margin-bottom:32px}
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);max-width:960px;margin:auto}
.why-item{padding:0 35px;min-height:135px;border-left:1px solid var(--line)}
.why-item:first-child{border-left:0}
.why-icon{height:50px;display:flex;align-items:center;justify-content:center;color:var(--ink);margin-bottom:4px}
.why-item h3{font-family:var(--serif);font-size:22px;font-weight:500;margin:9px 0}
.why-item p{font-size:13px;line-height:1.45;color:var(--muted);margin:0 auto;max-width:190px}

.site-footer{border-top:1px solid var(--line);padding:18px 5.7% 22px;background:#faf9f6}
.footer-top{display:grid;grid-template-columns:220px 1fr 150px;align-items:center;padding-bottom:17px;border-bottom:1px solid var(--line)}
.footer-brand{display:flex;align-items:center;gap:12px;letter-spacing:.28em;font-family:var(--serif);font-size:18px}
.footer-brand img{width:65px;height:58px;object-fit:cover;border-radius:50%}
.footer-nav{display:flex;justify-content:center;gap:20px;color:var(--muted);font-size:12px}
.socials{display:flex;gap:15px;justify-content:flex-end;align-items:center}
.footer-bottom{display:flex;justify-content:space-between;color:#777f7b;font-size:11px;padding-top:15px}
.footer-bottom div{display:flex;gap:20px}

html[dir="rtl"] body{font-family:"Noto Kufi Arabic",var(--sans)}
html[dir="rtl"] .main-nav{direction:rtl}
html[dir="rtl"] .hero-copy{text-align:right;padding-right:6.5%;padding-left:7%}
html[dir="rtl"] .search-bar{padding:6px 22px 6px 8px}
html[dir="rtl"] .search-icon{margin-right:0;margin-left:14px}
html[dir="rtl"] .search-bar button{transform:rotate(180deg)}
html[dir="rtl"] .guide-body{padding:16px 15px 18px 46px}
html[dir="rtl"] .guide-body a{right:auto;left:12px;transform:rotate(180deg)}
html[dir="rtl"] .why-item{border-left:0;border-right:1px solid var(--line)}
html[dir="rtl"] .why-item:first-child{border-right:0}
html[dir="rtl"] .lang-menu{right:auto;left:0}

@media (max-width:900px){
  .site-header{height:95px;grid-template-columns:90px 1fr 100px;padding:0 4%}
  .brand img{width:82px;height:72px}
  .main-nav{display:none}
  .hero{grid-template-columns:1fr;min-height:auto}
  .hero-copy{padding:52px 7% 42px}
  .hero h1{font-size:53px}
  .hero-sub{font-size:18px}
  .hero-visual{height:280px;background-position:center 55%}
  .topic-grid{grid-template-columns:repeat(3,1fr)}
  .guide-grid{grid-template-columns:repeat(2,1fr)}
  .why-grid{grid-template-columns:repeat(2,1fr);gap:30px 0}
  .why-item:nth-child(3){border-left:0}
  html[dir="rtl"] .why-item:nth-child(3){border-right:0}
  .footer-top{grid-template-columns:1fr auto}
  .footer-nav{display:none}
}
@media (max-width:560px){
  .site-header{height:82px;grid-template-columns:72px 1fr 90px}
  .brand img{width:64px;height:57px}
  .header-actions{gap:8px}
  .icon-btn{font-size:25px}
  .lang-button{min-width:63px;padding:10px 14px}
  .hero-copy{padding:42px 6% 34px}
  .hero h1{font-size:46px;line-height:.96}
  .hero-sub{font-size:17px}
  .hero-visual{height:225px}
  .search-bar{height:56px}
  .search-bar button{width:46px;height:46px}
  .chips{gap:7px}
  .chips button{padding:8px 12px;font-size:12px}
  .section{padding-left:5%;padding-right:5%}
  .section-heading h2{font-size:29px}
  .section-heading a{font-size:12px}
  .topic-grid{grid-template-columns:repeat(2,1fr)}
  .guide-grid{grid-template-columns:1fr}
  .guide-card img{height:185px}
  .why-section{padding-left:5%;padding-right:5%}
  .why-section h2{font-size:34px}
  .why-grid{grid-template-columns:1fr}
  .why-item,.why-item:nth-child(3){border:0!important;border-top:1px solid var(--line)!important;padding:24px 10px;min-height:auto}
  .why-item:first-child{border-top:0!important}
  .footer-top{grid-template-columns:1fr;gap:15px}
  .socials{display:flex;gap:15px;justify-content:flex-end;align-items:center}
  .footer-bottom{flex-direction:column;gap:13px}
}

.line-icon{
  width:40px;
  height:40px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.topic-icon .line-icon{width:42px;height:42px}
.why-icon .line-icon{width:40px;height:40px}

.social-link{width:25px;height:25px;display:inline-flex;align-items:center;justify-content:center;color:#111713;transition:opacity .18s ease,transform .18s ease}
.social-link:hover{opacity:.62;transform:translateY(-1px)}
.social-link:focus-visible{outline:2px solid var(--olive);outline-offset:4px;border-radius:5px}
.social-link svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.social-link[aria-label*="YouTube"] svg path:first-child{fill:currentColor;stroke:none}
.social-link[aria-label*="YouTube"] svg .play{fill:var(--paper);stroke:none}
.social-link[aria-label*="Instagram"] svg .dot{fill:currentColor;stroke:none}
