/*
Theme Name: Go4Kora Portal
Theme URI: https://go4kora.cam/
Author: Go4Kora
Description: Lightweight portal theme (brand landing page) optimized for SEO + fast loading. Includes a configurable "Enter Now" button and social links, with basic Organization/WebSite schema.
Version: 1.0.9
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: go4kora-portal
Tags: custom-logo, rtl-language-support, one-column, responsive-layout
*/

:root{
  --bg:#0b0f17; --card:#0f1624; --text:#e9eefc; --muted:#aab6d6;
  --line:rgba(255,255,255,.08); --accent:#2dd4bf; --accent2:#60a5fa;
  --shadow: 0 12px 40px rgba(0,0,0,.35); --radius:18px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:
    radial-gradient(800px 500px at 20% 0%, rgba(45,212,191,.12), transparent 60%),
    radial-gradient(700px 500px at 90% 10%, rgba(96,165,250,.12), transparent 60%),
    linear-gradient(180deg, #070a11 0%, var(--bg) 100%);
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.55;
}
a{color:inherit; text-decoration:none}
.container{max-width:1100px; margin:0 auto; padding:20px}
.header{position:sticky; top:0; z-index:10; background: rgba(7,10,17,.65); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);}
.header-inner{display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 20px; max-width:1100px; margin:0 auto}
.brand{display:flex; align-items:center; gap:12px; min-width:0}
.brand .logo{width:40px; height:40px; border-radius: 12px; background: linear-gradient(135deg, rgba(45,212,191,.25), rgba(96,165,250,.25)); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; overflow:hidden;}
.brand .logo img{width:100%; height:100%; object-fit:cover}
.brand .name{display:flex; flex-direction:column; min-width:0}
.brand .name strong{font-size:15px; letter-spacing:.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.brand .name span{font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.nav{display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end}
.nav a{padding:8px 10px; border:1px solid transparent; border-radius: 12px; color:var(--muted); font-size:13px;}
.nav a:hover{border-color: var(--line); color:var(--text); background: rgba(255,255,255,.03)}
.hero{padding: 48px 20px 10px}
.hero-grid{display:grid; grid-template-columns: 1.1fr .9fr; gap:22px; align-items:stretch}
@media (max-width: 900px){ .hero-grid{grid-template-columns:1fr} }
.hero-card{background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; overflow:hidden; position:relative;}
.hero-card:before{content:""; position:absolute; inset:-1px; background: radial-gradient(500px 260px at 15% 20%, rgba(45,212,191,.22), transparent 60%), radial-gradient(460px 260px at 85% 30%, rgba(96,165,250,.18), transparent 60%); opacity:.45; pointer-events:none;}
.hero-card > *{position:relative}
.kicker{display:inline-flex; gap:8px; align-items:center; padding:6px 10px; border-radius:999px; border:1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); font-size:12px;}
.h1{margin:14px 0 10px; font-size:38px; line-height:1.15; letter-spacing:.2px}
@media (max-width:520px){ .h1{font-size:30px} }
.lead{margin:0 0 18px; color: var(--muted); font-size:15px}
.cta-row{display:flex; gap:12px; flex-wrap:wrap; align-items:center}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:12px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font-weight: 600; font-size:14px;}
.btn.primary{background: linear-gradient(135deg, rgba(45,212,191,.22), rgba(96,165,250,.20)); border-color: rgba(255,255,255,.14);}
.btn:active{transform: translateY(1px)}
.subnote{font-size:12px; color: var(--muted); margin-top:10px}
.side-card{background: rgba(15,22,36,.65); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display:flex; flex-direction:column; gap:14px;}
.badges{display:flex; gap:10px; flex-wrap:wrap}
.badge{display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); font-size:12px;}
.section{padding: 14px 20px 30px}
.grid{display:grid; grid-template-columns: repeat(4, 1fr); gap:14px}
@media (max-width: 980px){ .grid{grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 520px){ .grid{grid-template-columns: 1fr;} }
.card{background: rgba(15,22,36,.55); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.24);}
.card h3{margin:0 0 6px; font-size:15px}
.card p{margin:0; color: var(--muted); font-size:13px}
.hr{height:1px; background: var(--line); margin: 22px 0}
.footer{padding: 26px 20px; border-top: 1px solid var(--line); background: rgba(7,10,17,.65);}
.footer-inner{max-width:1100px; margin:0 auto; display:flex; align-items:flex-start; justify-content:space-between; gap:14px; flex-wrap:wrap}
.footer small{color: var(--muted)}
.social{display:flex; gap:10px; flex-wrap:wrap}
.social a{padding:8px 10px; border-radius: 12px; border:1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text); font-size:13px}
.rtl body{direction:rtl}


/* News grid */
.news-grid{display:grid; grid-template-columns: repeat(2, 1fr); gap:14px}
@media (max-width: 520px){ .news-grid{grid-template-columns:1fr;} }


/* Post content */
.card img{max-width:100%; height:auto}
.card iframe{max-width:100%}







/* Post content formatting v2 */
.post-content{color:var(--text); font-size:16px; line-height:1.9}
.post-content p{margin:0 0 16px}
.post-content h2{margin:22px 0 12px; font-size:24px; line-height:1.25}
.post-content h3{margin:18px 0 10px; font-size:20px; line-height:1.3}
.post-content h4{margin:16px 0 10px; font-size:18px; line-height:1.35}
.post-content hr{border:0; height:1px; background: var(--line); margin:18px 0}
.post-content a{color: var(--accent2); text-decoration: underline; text-underline-offset: 3px}
.post-content ul, .post-content ol{margin:0 0 16px; padding-inline-start: 26px}
.post-content li{margin:8px 0}
.post-content blockquote{
  margin:16px 0; padding:14px 16px;
  border:1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
}
.post-content img{max-width:100%; height:auto; border-radius: 14px; border:1px solid var(--line); margin: 10px 0}
.post-content figure{margin: 0 0 16px}
.post-content iframe{max-width:100%}
.post-content table{width:100%; border-collapse: collapse; margin: 14px 0; overflow:hidden; border-radius: 14px; border:1px solid var(--line)}
.post-content th, .post-content td{padding:10px 12px; border-bottom:1px solid var(--line); text-align:start; color: var(--text); font-size:13px; vertical-align: top}
.post-content th{background: rgba(255,255,255,.03); color: var(--muted)}


/* Post tags */
.post-tags{margin-top:16px; display:flex; flex-wrap:wrap; gap:8px; align-items:center}
.post-tags .label{color: var(--muted); font-size:12px; margin-inline-end:6px}
.post-tags a{
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-size:12px;
}
.post-tags a:hover{opacity:.95}



/* Featured image sizing (no crop, centered) */
.featured-media{
  margin:0 auto 14px;
  max-width: 720px;
  border-radius:14px;
  border:1px solid var(--line);
  overflow:hidden;
  background: rgba(255,255,255,.02);
}
.featured-media img{
  width:100%;
  height:auto;
  display:block;
}
@media (max-width:820px){
  .featured-media{max-width: 100%;}
}


/* Archive pages */
.archive-head{margin:0 0 14px}
.archive-head h1{margin:0 0 6px; font-size:24px}
.archive-head p{margin:0; color: var(--muted); font-size:13px}
.archive-list{display:grid; grid-template-columns: repeat(2, 1fr); gap:14px}
@media (max-width: 520px){ .archive-list{grid-template-columns:1fr;} }
.post-meta{display:flex; gap:10px; flex-wrap:wrap; align-items:center; color: var(--muted); font-size:12px; margin: 8px 0 0}
.post-meta a{color: var(--muted); text-decoration: underline; text-underline-offset: 3px}
.pager{display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:16px}
.pager .btn{font-weight:600}

/* Breadcrumbs */
.breadcrumbs{display:flex; gap:8px; flex-wrap:wrap; align-items:center; color: var(--muted); font-size:12px; margin: 0 0 12px}
.breadcrumbs a{color: var(--muted); text-decoration: underline; text-underline-offset: 3px}
.breadcrumbs .sep{opacity:.7}





/* Related posts */
.related-title{margin:0 0 12px; font-size:16px}
.related-grid{display:grid; grid-template-columns: repeat(2, 1fr); gap:14px}
@media (max-width: 520px){ .related-grid{grid-template-columns: 1fr;} }
.related-card h4{margin:0 0 8px; font-size:14px; line-height:1.35}
.related-card p{margin:0; color: var(--muted); font-size:13px}

