@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#152238;--muted:#697789;--blue:#1768d2;--blue2:#0e4fa8;--paper:#f5f7fa;--line:#e4e9f0;--white:#fff}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px 'DM Sans',Arial,sans-serif}a{color:inherit;text-decoration:none}a:hover{color:var(--blue)}.wrap{width:min(1160px,92%);margin:auto}.top{background:#101e32;color:#fff}.top-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{font:800 25px Manrope,sans-serif;letter-spacing:-1.3px;color:#fff}.brand span{color:#55a2ff}.top nav{display:flex;align-items:center;gap:25px;font-size:14px}.top nav a{color:#e9f0fa}.top nav a:hover{color:#8fc3ff}.nav-join{background:var(--blue);padding:10px 15px;border-radius:7px}.navbtn{border:0;background:none;color:white;font:inherit;cursor:pointer}.inline{display:inline-flex;gap:7px;align-items:center}.hero{margin:36px 0 54px;background:#e8f1fc;border-radius:18px;padding:58px 6%;display:flex;justify-content:space-between;align-items:center;min-height:330px;overflow:hidden}.hero>div:first-child{max-width:650px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:var(--blue)}h1,h2,h3{font-family:Manrope,sans-serif;letter-spacing:-.7px}h1{font-size:42px;line-height:1.12;margin:13px 0}h1 em{color:var(--blue);font-style:normal}.hero p{font-size:17px;color:#596a80;max-width:560px;line-height:1.7;margin-bottom:25px}.hero-art{width:240px;height:210px;border-radius:22px;background:#1768d2;color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;transform:rotate(4deg);box-shadow:20px 22px 0 #c4daf5}.hero-art span{font:800 100px Manrope;line-height:1}.hero-art b{letter-spacing:4px;font-size:12px;text-align:center}.btn{display:inline-block;border:0;border-radius:7px;background:var(--blue);color:#fff;padding:12px 18px;font:700 14px 'DM Sans';cursor:pointer}.btn:hover{background:var(--blue2);color:#fff}.btn.secondary{background:#e9eef5;color:var(--ink)}.btn.danger{background:#b42332}.btn.small{padding:7px 10px;font-size:12px}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px}.section-head h2{font-size:28px;margin:7px 0}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-bottom:65px}.story{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.story img,.placeholder{width:100%;height:190px;object-fit:cover}.placeholder{background:linear-gradient(135deg,#dbe9fa,#edf3fa);display:grid;place-items:center;color:#1768d2;font:800 20px Manrope;letter-spacing:2px}.story-body{padding:20px}.tag{display:inline-block;background:#eaf2fc;color:#145bb2;border-radius:4px;padding:5px 8px;font-size:11px;font-weight:700;text-transform:uppercase}.story h3{font-size:19px;line-height:1.35;margin:12px 0}.story p{color:var(--muted);line-height:1.6}.story small,.byline{color:var(--muted);font-size:12px}.empty{padding:65px 20px;text-align:center;background:#fff;border:1px solid var(--line);border-radius:12px;margin:30px auto 70px}.page{padding:42px 0 75px;min-height:60vh}.page>h1{font-size:34px}.article-wrap{width:min(800px,92%);margin:55px auto 85px;background:#fff;padding:38px;border-radius:12px}.article-wrap h1{font-size:40px}.article-image{width:100%;max-height:470px;object-fit:cover;border-radius:9px;margin:22px 0}.article-content{font-size:18px;line-height:1.9;color:#344256;white-space:normal}.search{display:flex;gap:10px;max-width:700px;margin:25px 0}.search input{flex:1}.listings article{background:#fff;padding:20px;border:1px solid var(--line);border-radius:9px;margin:12px 0}.listings h3{margin:9px 0}.auth-card{width:min(480px,92%);margin:55px auto 80px;background:#fff;padding:34px;border:1px solid var(--line);border-radius:13px;box-shadow:0 12px 40px #162c4810}.auth-card .brand{display:inline-block;color:var(--ink);margin-bottom:20px}.auth-card h1{font-size:29px}.auth-card p{color:var(--muted);line-height:1.6}label{display:block;font-weight:600;font-size:13px;margin:16px 0}input,textarea,select{display:block;width:100%;padding:12px 13px;margin-top:7px;border:1px solid #d5dde7;border-radius:7px;background:#fff;color:var(--ink);font:14px 'DM Sans';outline:none}input:focus,textarea:focus,select:focus{border-color:#6ca5e9;box-shadow:0 0 0 3px #1768d21a}textarea{resize:vertical}.auth-card .btn{width:100%;margin-top:10px}.auth-switch{font-size:13px!important}.auth-switch a{color:var(--blue);font-weight:700}.notice{padding:13px 16px;background:#e8f6ee;color:#17663b;border-radius:7px;margin:18px 0}.notice.error{background:#fff0f0;color:#a3212b}.dash-head{display:flex;justify-content:space-between;align-items:center;gap:20px}.dash-head h1{font-size:34px}.role-pill{background:#eaf2fc;color:#145bb2;padding:8px 12px;border-radius:20px;font-size:12px;font-weight:700}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:25px 0}.stats div{background:#fff;border:1px solid var(--line);padding:22px;border-radius:10px}.stats b{display:block;font:800 30px Manrope;color:var(--blue)}.stats span{color:var(--muted);font-size:13px}.admin-links{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin:25px 0}.admin-links a{background:#fff;border:1px solid var(--line);padding:20px;border-radius:9px;font-weight:700}.editor-form{background:#fff;padding:25px;border-radius:10px;border:1px solid var(--line);max-width:850px}.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:9px;margin:22px 0}table{width:100%;border-collapse:collapse;min-width:650px}th,td{text-align:left;padding:13px 15px;border-bottom:1px solid var(--line);font-size:13px}th{background:#f4f7fb;color:#526174}.inline-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#fff;padding:16px;border-radius:9px}.inline-form input{width:auto;min-width:180px;flex:1}.foot{padding:35px 0;color:#aeb9c8}.foot .brand{display:inline-block}.foot p{color:#c2ccd8}footer{background:#101e32}.foot small{font-size:12px}.setup-bg{background:#eef3f9;min-height:100vh;display:grid;place-items:center}@media(max-width:800px){.top-inner{align-items:flex-start;flex-direction:column;padding:18px 0}.top nav{gap:13px;flex-wrap:wrap}.hero{padding:35px 7%}.hero-art{width:150px;height:150px}.hero-art span{font-size:70px}.cards{grid-template-columns:repeat(2,1fr)}.admin-links{grid-template-columns:repeat(2,1fr)}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){h1{font-size:32px}.hero-art{display:none}.cards{grid-template-columns:1fr}.article-wrap{padding:22px}.article-wrap h1{font-size:30px}.stats{grid-template-columns:repeat(2,1fr)}.admin-links{grid-template-columns:1fr 1fr}.search{flex-direction:column}}

/* KUDOSNEWS SEO/social sharing and editorial polish */
.share-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:22px 0 28px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.share-tools strong{font-size:13px;margin-right:5px}.share-btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:6px;padding:9px 12px;background:#edf2f8;color:#1b2b40;font:600 12px 'DM Sans',Arial,sans-serif;cursor:pointer}.share-btn:hover{color:#fff;background:var(--blue)}.share-btn.whatsapp{background:#e5f7ec;color:#126b37}.share-btn.facebook{background:#e8efff;color:#174da5}.share-btn.xshare{background:#e9e9e9;color:#111}.copy-status{font-size:12px;color:#237344}.footer-links a{color:#d8e4f3}.article-content{overflow-wrap:anywhere}.article-content p{margin:0 0 1.25em}.article-wrap{box-shadow:0 12px 38px rgba(21,34,56,.05)}.article-wrap h1{line-height:1.16}
@media(max-width:560px){.share-tools{gap:7px}.share-tools strong{width:100%}.share-btn{flex:1;padding:10px 7px}}
/* KUDOSNEWS 2.0 HOMEPAGE REDESIGN */

:root {
  --news-primary: #102b50;
  --news-accent: #e63946;
  --news-background: #f5f7fa;
  --news-white: #ffffff;
}

body {
  background: var(--news-background);
  color: #172033;
}

.container {
  width: min(1200px, 94%);
  margin: auto;
}

header, .site-header {
  background: var(--news-white);
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

nav a {
  color: var(--news-primary);
  font-weight: 700;
  text-decoration: none;
}

nav a:hover {
  color: var(--news-accent);
}

.hero, .hero-section {
  border-radius: 14px;
  overflow: hidden;
  margin: 25px auto;
}

.news-grid, .articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--news-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
  transition: transform .2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-card h2,
.article-card h3 {
  padding: 12px 15px;
  line-height: 1.4;
}

.article-card p {
  padding: 0 15px 15px;
  color: #64748b;
}

.category-label {
  color: var(--news-accent);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

footer {
  background: var(--news-primary);
  color: white;
  padding: 35px 20px;
  margin-top: 50px;
}

@media (max-width: 768px) {
  .news-grid, .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .news-grid, .articles-grid {
    grid-template-columns: 1fr;
  }
}
/* Keep the hidden article storage field invisible */
#articleContent {
    display: none !important;
}
/* Restore the KUDOSNEWS article writing area */
#newsEditor.editor-area {
    display: block !important;
    min-height: 350px !important;
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid #d5dde7;
    border-radius: 8px;
    color: #172033;
    font-size: 16px;
    line-height: 1.7;
    white-space: pre-wrap;
    outline: none;
}

#newsEditor:empty:before {
    content: attr(data-placeholder);
    color: #999;
}
/* Improve mobile article editing */
#newsEditor {
    min-height: 450px;
    padding: 18px;
    overflow-y: auto;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    user-select: text;
    -webkit-user-select: text;
    -webkit-tap-highlight-color: transparent;
    caret-color: #1769d2;
    line-height: 1.8;
    font-size: 17px;
    touch-action: pan-y;
}