*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#f5f7fc;color:#172033;font-family:Arial,"Noto Sans Kannada",sans-serif}
.header{background:#0b315f;color:white;padding:24px 24px 18px;border-radius:0 0 22px 22px}
.brand{font-size:28px;font-weight:800;letter-spacing:.2px}
.brand span{display:block;font-size:15px;font-weight:400;color:#c9d9ee;margin-top:7px}
.nav{display:flex;gap:10px;margin-top:28px;overflow:auto}
.nav a{white-space:nowrap;color:#e4edf8;text-decoration:none;font-size:16px;padding:15px 18px;border-radius:17px}
.nav a.active{background:#176fd6;color:#fff;box-shadow:0 8px 18px #071d3b55}
.container{max-width:1100px;margin:auto;padding:24px}
.search{width:100%;height:58px;border:2px solid #2b76b9;background:#fff;border-radius:22px;padding:0 20px;font-size:18px;outline:none;box-shadow:0 5px 18px #0b315f0c}
.search:focus{border-color:#176fd6}
.hero{margin-top:26px;background:linear-gradient(120deg,#1169df,#18a6e8);border-radius:28px;color:#fff;padding:42px;min-height:390px;display:flex;align-items:center;justify-content:space-between;gap:25px;overflow:hidden;box-shadow:0 14px 35px #126bd633}
.hero h1{font-size:48px;line-height:1.05;margin:0 0 20px;max-width:600px}
.hero p{font-size:21px;line-height:1.45;max-width:620px;color:#eef9ff}
.hero button{margin-top:16px;border:0;border-radius:16px;padding:17px 27px;background:#ffd43b;color:#172033;font-size:18px;font-weight:800;cursor:pointer}
.hero-art{font-size:105px;filter:drop-shadow(0 12px 15px #034a7c55)}
.section-head{display:flex;justify-content:space-between;align-items:center;margin:40px 0 16px}
.section-head h2{font-size:28px;margin:0}
.section-head a{color:#2168ae;text-decoration:none;font-size:18px}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.card{background:#fff;border:1px solid #e2e7ef;border-radius:24px;padding:25px;min-height:190px;box-shadow:0 5px 18px #1720330b;transition:.25s;cursor:pointer;text-align:center}
.card:hover{transform:translateY(-8px) scale(1.025);box-shadow:0 18px 35px #17203325}
.icon{font-size:43px;margin:0 auto 18px;text-align:center}
.card h3{font-size:17px;margin:0 0 9px;text-align:center}
.card p{font-size:17px;color:#6d7685;margin:0;line-height:1.35;text-align:center}
.jobs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.job{background:#fff;border-radius:20px;padding:18px;border-left:6px solid #176fd6;box-shadow:0 5px 18px #1720330b;text-align:center}
.job h3{margin:0 0 7px;font-size:18px;text-align:center}.job p{margin:0;color:#6b7280;text-align:center}
footer{margin-top:45px;background:#0b315f;color:white;padding:30px 24px;text-align:center;border-radius:24px 24px 0 0}
@media(max-width:700px){
.header{padding:24px 23px 17px;border-radius:0 0 18px 18px}
.brand{font-size:25px}
.brand span{font-size:14px}
.nav{margin-top:27px;gap:6px}
.nav a{font-size:16px;padding:14px 16px}
.container{padding:23px}
.search{height:58px;font-size:17px;border-radius:21px}
.hero{margin-top:27px;min-height:475px;padding:42px 42px 35px;border-radius:27px;align-items:flex-start}
.hero h1{font-size:43px;max-width:360px}
.hero p{font-size:20px}
.hero-art{font-size:70px;align-self:center}
.section-head{margin-top:43px}
.section-head h2{font-size:27px}
.section-head a{font-size:17px}
.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.card{padding:28px 27px;min-height:220px;border-radius:24px}
.icon{font-size:39px;margin-bottom:28px}
.card h3{font-size:17px}
.card p{font-size:17px}
.jobs{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
}
@media(max-width:430px){
.container{padding:22px 23px}
.hero{padding:42px 42px 34px;min-height:475px}
.hero h1{font-size:41px}
.hero p{font-size:19px}
.hero-art{font-size:58px}
}


/* Dashboard left sidebar */
body{background:#f5f7fc}
.dashboard-layout{display:flex;min-height:100vh}
.sidebar{
  width:245px;flex:0 0 245px;
  background:linear-gradient(180deg,#082f61 0%,#0a3e78 55%,#092a55 100%);
  color:#fff;padding:22px 14px;
  position:sticky;top:0;height:100vh;
  box-shadow:5px 0 20px rgba(8,47,97,.16);
  z-index:20;
}
.sidebar .brand{font-size:19px;font-weight:800;line-height:1.2;padding:8px 9px 25px}
.sidebar .brand span{display:block;font-size:12px;font-weight:400;color:#bdd2ea;margin-top:6px}
.side-nav{display:flex;flex-direction:column;gap:4px}
.side-nav a{
  display:flex;align-items:center;gap:12px;
  color:#e6f0fb;text-decoration:none;font-size:14px;
  padding:13px 13px;border-radius:11px;
  transition:.22s;
}
.side-nav a:hover{background:rgba(255,255,255,.12);transform:translateX(3px)}
.side-nav a.active{background:#176fd6;color:#fff;box-shadow:0 8px 20px rgba(0,0,0,.16)}
.dashboard-layout .container{flex:1;max-width:none;width:100%;padding:24px}
@media(max-width:700px){
  .dashboard-layout{display:block}
  .sidebar{
    width:100%;height:auto;position:relative;
    padding:17px 14px 12px;
  }
  .sidebar .brand{padding:4px 8px 13px;font-size:21px}
  .side-nav{
    flex-direction:row;overflow-x:auto;gap:5px;
    scrollbar-width:none;
  }
  .side-nav::-webkit-scrollbar{display:none}
  .side-nav a{white-space:nowrap;padding:13px 15px}
  .dashboard-layout .container{padding:22px 23px}
}

.top-header{min-height:76px;background:#fff;border-bottom:1px solid #e4e9f1;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 24px;position:sticky;top:0;z-index:50;box-shadow:0 3px 14px rgba(18,43,84,.08)}
.header-brand{display:flex;align-items:center;gap:10px;min-width:0}.header-logo{width:43px;height:43px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#176fd6,#7c3aed);color:#fff;font-size:25px;font-weight:900}.header-brand strong{display:block;color:#12345f;font-size:17px;white-space:nowrap}.header-brand span{display:block;color:#718096;font-size:11px;margin-top:2px}.header-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.wallet{display:flex;align-items:center;gap:7px;background:#f2f6ff;border:1px solid #dce7f7;border-radius:11px;padding:9px 12px;color:#23395d;font-size:13px}.wallet strong{color:#0a8f4d;font-size:14px}.add-money,.login-link{text-decoration:none;border-radius:11px;padding:10px 14px;font-size:13px;font-weight:700}.add-money{background:linear-gradient(135deg,#10b981,#059669);color:#fff}.login-link{background:#176fd6;color:#fff}.add-money:hover,.login-link:hover{opacity:.88;transform:translateY(-1px)}
@media(max-width:700px){.top-header{padding:10px 14px;gap:8px}.header-brand strong{font-size:13px}.header-brand span{display:none}.header-logo{width:38px;height:38px;font-size:22px}.header-right{gap:5px;flex-wrap:nowrap}.wallet{padding:8px;font-size:11px}.wallet span,.wallet b{display:none}.add-money,.login-link{padding:8px 9px;font-size:10px}}


.auth-page{min-height:100vh;background:linear-gradient(135deg,#eef6ff,#f8f2ff);display:flex;align-items:center;justify-content:center;padding:25px;font-family:Arial,"Noto Sans Kannada",sans-serif}
.auth-box{width:100%;max-width:430px;background:#fff;border-radius:24px;padding:32px;box-shadow:0 18px 50px rgba(20,50,100,.15)}
.auth-brand{text-align:center;margin-bottom:25px}.auth-brand .logo{width:55px;height:55px;margin:auto;border-radius:15px;background:linear-gradient(135deg,#176fd6,#7c3aed);color:#fff;display:grid;place-items:center;font-size:28px;font-weight:900}.auth-brand h1{font-size:23px;color:#12345f;margin:12px 0 5px}.auth-brand p{margin:0;color:#718096;font-size:13px}
.auth-box h2{font-size:25px;color:#172033;margin:0 0 20px}.form-group{margin-bottom:15px}.form-group label{display:block;font-size:13px;font-weight:700;color:#34445c;margin-bottom:7px}.form-group input{width:100%;height:48px;border:1px solid #d9e1ed;border-radius:11px;padding:0 13px;font-size:15px;outline:none}.form-group input:focus{border-color:#176fd6;box-shadow:0 0 0 3px rgba(23,111,214,.1)}.auth-btn{width:100%;height:49px;border:0;border-radius:11px;background:linear-gradient(135deg,#176fd6,#7c3aed);color:#fff;font-weight:800;font-size:15px;cursor:pointer;margin-top:5px}.auth-switch{text-align:center;margin:20px 0 0;color:#718096;font-size:13px}.auth-switch a{color:#176fd6;font-weight:700;text-decoration:none}.back-home{display:block;text-align:center;margin-top:14px;color:#176fd6;text-decoration:none;font-size:13px}


.social-links{display:flex;align-items:center;justify-content:center;gap:16px;flex:1}
.social{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;text-decoration:none;transition:.2s;box-shadow:0 4px 12px rgba(18,43,84,.14)}
.social svg{width:23px;height:23px;fill:#fff;stroke:#fff;stroke-width:1.3}
.social.facebook{background:#1877f2}
.social.instagram{background:linear-gradient(135deg,#feda75,#d62976,#4f5bd5)}
.social.twitter{background:#000}
.social.telegram{background:#229ed9}
.social:hover{transform:translateY(-3px) scale(1.08);box-shadow:0 8px 18px rgba(18,43,84,.22)}
@media(max-width:900px){
  .top-header{flex-wrap:wrap}
  .header-brand{flex:1}
  .social-links{order:3;flex-basis:100%;flex:none}
  .header-right{margin-left:auto}
}
@media(max-width:520px){
  .top-header{padding:10px 12px}
  .social-links{gap:10px}
  .social{width:36px;height:36px}
  .social svg{width:20px;height:20px}
  .header-right{gap:5px}
  .wallet{padding:7px}
  .add-money,.login-link{padding:8px 8px;font-size:10px}
}


/* Add Money modal */
.modal{position:fixed;inset:0;background:rgba(7,24,48,.58);display:none;align-items:center;justify-content:center;padding:20px;z-index:100}.modal.show{display:flex}.modal-card{position:relative;width:min(430px,100%);background:#fff;border-radius:24px;padding:28px;box-shadow:0 25px 70px rgba(0,0,0,.25)}.modal-card h2{margin:0 0 6px;color:#12345f;font-size:25px}.modal-note{margin:0 0 20px;color:#718096;font-size:13px}.modal-close{position:absolute;right:15px;top:12px;width:36px;height:36px;border:0;border-radius:50%;background:#eef3f9;color:#34445c;font-size:25px;cursor:pointer}.quick-amounts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:18px}.quick-amounts button{height:42px;border:1px solid #cbd8e8;background:#f7faff;color:#176fd6;border-radius:10px;font-weight:800;cursor:pointer}.quick-amounts button:hover{background:#eaf3ff;border-color:#176fd6}.amount-label{display:block;font-size:13px;font-weight:700;color:#34445c;margin-bottom:7px}.wallet-amount{width:100%;height:50px;border:1px solid #d9e1ed;border-radius:11px;padding:0 14px;font-size:18px;outline:none}.wallet-amount:focus{border-color:#176fd6;box-shadow:0 0 0 3px rgba(23,111,214,.1)}.pay-wallet{width:100%;height:50px;margin-top:15px;border:0;border-radius:11px;background:linear-gradient(135deg,#10b981,#059669);color:#fff;font-size:15px;font-weight:800;cursor:pointer}.pay-wallet:disabled{opacity:.65;cursor:not-allowed}.wallet-payment-message{min-height:20px;margin-top:12px;text-align:center;font-size:13px;font-weight:700}.wallet-payment-message.ok{color:#0a8f4d}.wallet-payment-message.error{color:#c62828}@media(max-width:430px){.modal-card{padding:25px 20px}.quick-amounts{grid-template-columns:repeat(2,1fr)}}


/* Logged-in user and password visibility */
.header-user-area{display:flex;align-items:center;gap:7px}.user-name{background:#eef6ff;color:#12345f;border:1px solid #d9e8f7;border-radius:11px;padding:10px 12px;font-size:13px;font-weight:800}.logout-btn{border:0;border-radius:11px;padding:10px 12px;background:#f1f3f6;color:#34445c;font-size:12px;font-weight:800;cursor:pointer}.logout-btn:hover{background:#e5e9ef}.password-wrap{position:relative}.password-wrap input{padding-right:48px!important}.password-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:38px;height:36px;border:0;background:transparent;border-radius:8px;cursor:pointer;font-size:18px}.password-toggle:hover{background:#eef4fb}

.wallet-pay-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}.wallet-pay-options .pay-wallet{margin-top:0}.pay-qr{height:50px;border:0;border-radius:11px;background:#176fd6;color:#fff;font-size:15px;font-weight:800;cursor:pointer}.pay-qr:disabled{opacity:.65;cursor:not-allowed}.qr-payment-panel{margin-top:16px;padding:16px;border:1px solid #d8e4f2;border-radius:16px;background:#f7fbff;text-align:center}.qr-payment-panel h3{margin:0 0 4px;color:#12345f}.qr-payment-panel p{margin:0 0 12px;color:#66758a;font-size:12px}.wallet-qr-code{width:220px;min-height:220px;margin:10px auto;background:#fff;padding:10px;border-radius:12px;display:flex;align-items:center;justify-content:center}.wallet-qr-code img,.wallet-qr-code canvas{max-width:200px;height:auto!important}.qr-status{margin:10px 0;font-size:13px;font-weight:800;color:#176fd6}.qr-cancel{border:1px solid #cbd8e8;background:#fff;border-radius:9px;padding:8px 14px;font-weight:700;cursor:pointer}@media(max-width:430px){.wallet-pay-options{grid-template-columns:1fr}}

/* Database-driven content */
.content-loading,.content-empty{grid-column:1/-1;background:#fff;border:1px dashed #cbd8e8;border-radius:18px;padding:25px;text-align:center;color:#718096}
.card-link,.job-link{display:block;color:inherit;text-decoration:none}

/* Content images */
.card-image{width:180px;height:180px;border-radius:14px;overflow:hidden;background:#f7f9fc;margin:0 auto 14px;display:flex;align-items:center;justify-content:center}
.card-image img{width:100%;height:100%;object-fit:contain;display:block;padding:4px;box-sizing:border-box}
.job-image{width:76px;height:76px;border-radius:12px;overflow:hidden;background:#f7f9fc;margin:0 auto 12px;display:flex;align-items:center;justify-content:center}
.job-image img{width:100%;height:100%;object-fit:contain;display:block;padding:4px;box-sizing:border-box}


/* NEWS ONLY - 4 cards desktop / 2 cards mobile */
.news-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:10px}
.news-card{position:relative;min-width:0;min-height:128px;padding:18px 48px 18px 18px;background:linear-gradient(135deg,#fff8f9,#ffffff);border:1px solid #ffd1d8;border-radius:20px;box-shadow:0 7px 22px rgba(23,32,51,.08);display:flex;align-items:center;gap:14px;text-decoration:none;color:inherit;transition:.2s}
.news-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(23,32,51,.13)}
.news-icon,.news-image{width:56px;height:56px;flex:0 0 56px;border-radius:50%;overflow:hidden;background:#ffe6eb;display:grid;place-items:center;font-size:30px}
.news-image img{width:100%;height:100%;object-fit:cover;display:block}
.news-copy{min-width:0}
.news-copy h3{margin:0 0 6px;font-size:17px;color:#172033;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.news-copy p{margin:0;color:#667085;font-size:13px;line-height:1.35}
.news-arrow{position:absolute;right:13px;top:50%;transform:translateY(-50%);width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#ffe0e6;color:#d61f45;font-weight:800;font-size:20px}
@media(max-width:1000px){.news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.news-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.news-card{min-height:116px;padding:14px 38px 14px 14px;border-radius:17px;gap:9px}.news-icon,.news-image{width:42px;height:42px;flex-basis:42px;font-size:22px}.news-copy h3{font-size:14px}.news-copy p{font-size:11px}.news-arrow{right:8px;width:28px;height:28px;font-size:17px}}

/* FINAL IMAGE + MOBILE FIX */
.news-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
.news-grid .news-card{width:100%!important;min-width:0!important;}
.news-grid .news-image img{width:100%!important;max-width:100%!important;height:auto!important;object-fit:contain!important;display:block!important;}
.content-card-image img,.job-card-image img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;display:block!important;}
@media (max-width:1000px){
  .news-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (max-width:700px){
  .news-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
  .news-grid .news-card{width:100%!important;}
}


/* FINAL REQUESTED FIXES */
.sidebar .brand{text-align:center!important;}
.sidebar .brand span{display:block!important;width:100%!important;text-align:center!important;}
.content-card-image,.job-card-image{width:100%!important;height:140px!important;max-width:100%!important;overflow:hidden!important;}
.content-card-image img,.job-card-image img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;display:block!important;object-fit:contain!important;object-position:center!important;}
@media(max-width:700px){.content-card-image,.job-card-image{height:110px!important;}}


/* FINAL FULL IMAGE VISIBILITY FIX */
.sidebar .brand{display:block!important;width:100%!important;text-align:center!important;margin:0 auto!important;box-sizing:border-box!important;}
.sidebar .brand span{display:block!important;width:100%!important;text-align:center!important;margin:0 auto!important;box-sizing:border-box!important;}
.content-card-image,.job-card-image{width:100%!important;height:auto!important;max-width:100%!important;overflow:hidden!important;box-sizing:border-box!important;}
.content-card-image img,.job-card-image img{display:block!important;width:100%!important;height:auto!important;max-width:100%!important;max-height:none!important;object-fit:contain!important;object-position:center!important;}

/* HI SEVA STYLE CARD LAYOUT - FIXED IMAGE AREA */
#serviceGrid,
#updates,
#educationGrid,
#newsGrid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
}

#serviceGrid>.card,
#updates>.job,
#educationGrid>.job,
#newsGrid>.news-card{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}

#serviceGrid>.card,
#updates>.job,
#educationGrid>.job{
  padding:0!important;
  text-align:center!important;
}

#serviceGrid .content-card-image,
#updates .job-card-image,
#educationGrid .content-card-image{
  width:100%!important;
  height:160px!important;
  margin:0 0 14px!important;
  max-width:none!important;
  border-radius:0!important;
  background:#f7f9fc!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
}

#serviceGrid .content-card-image img,
#updates .job-card-image img,
#educationGrid .content-card-image img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  padding:10px!important;
  box-sizing:border-box!important;
  object-fit:contain!important;
  object-position:center!important;
  display:block!important;
}

#serviceGrid>.card h3,
#updates>.job h3,
#educationGrid>.job h3{
  padding:0 12px!important;
  margin:0 0 7px!important;
  text-align:center!important;
}

#serviceGrid>.card p,
#updates>.job p,
#educationGrid>.job p{
  padding:0 12px 16px!important;
  margin:0!important;
  text-align:center!important;
}

/* News cards use the same fixed image-area style */
#newsGrid>.news-card{
  padding:0!important;
  display:block!important;
  text-align:center!important;
  background:#fff!important;
  border:1px solid #e2e7ef!important;
  border-radius:24px!important;
}

#newsGrid .news-image,
#newsGrid .news-icon{
  width:100%!important;
  height:160px!important;
  min-height:160px!important;
  margin:0!important;
  border-radius:0!important;
  background:#f7f9fc!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

#newsGrid .news-image img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  padding:10px!important;
  box-sizing:border-box!important;
  object-fit:contain!important;
  object-position:center!important;
  display:block!important;
}

#newsGrid .news-copy{
  padding:14px 48px 16px 14px!important;
  min-height:78px!important;
  text-align:center!important;
}

@media(max-width:1000px){
  #serviceGrid,#updates,#educationGrid,#newsGrid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px!important;
  }
}

@media(max-width:700px){
  #serviceGrid,#updates,#educationGrid,#newsGrid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  #serviceGrid .content-card-image,
  #updates .job-card-image,
  #educationGrid .content-card-image,
  #newsGrid .news-image,
  #newsGrid .news-icon{
    height:145px!important;
    min-height:145px!important;
  }
}


/* FINAL NEWS RESPONSIVE FIX: do not force 4 columns inline on mobile */
#newsSection, #newsGrid{width:100%!important;max-width:none!important;box-sizing:border-box!important;}
#newsGrid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;}
#newsGrid>.news-card{width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important;}
@media (max-width:1000px){
  #newsGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
}
@media (max-width:700px){
  #newsGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
  #newsGrid>.news-card{width:100%!important;}
}

/* Blue menu background spacing fix */
.sidebar{
  padding:30px 14px 28px !important;
  box-sizing:border-box !important;
}
.sidebar .brand{
  padding:10px 9px 26px !important;
}
@media(max-width:700px){
  .sidebar{
    padding:28px 14px 24px !important;
  }
  .sidebar .brand{
    padding:8px 8px 24px !important;
  }
  .side-nav{
    margin-top:4px !important;
  }
}


/* MOBILE: show COMPLETE images - NEVER CROP, no fixed image box */
@media (max-width:700px){
  #serviceGrid .content-card-image,
  #updates .job-card-image,
  #educationGrid .content-card-image,
  #educationGrid .job-card-image,
  #newsGrid .news-image,
  #newsGrid .news-icon{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    background:transparent!important;
  }
  #serviceGrid .content-card-image img,
  #updates .job-card-image img,
  #educationGrid .content-card-image img,
  #educationGrid .job-card-image img,
  #newsGrid .news-image img{
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    max-width:100%!important;
    object-fit:contain!important;
    object-position:center!important;
    margin:0!important;
    padding:0!important;
  }
  #serviceGrid>.card,
  #updates>.job,
  #educationGrid>.job,
  #newsGrid>.news-card{
    height:auto!important;
    min-height:0!important;
  }
}

/* FINAL NEWS ALERT ONLY: compact 1px card + play button at image bottom-right */
#newsGrid .news-card{border:1px solid #d9dde3!important;border-radius:1px!important;overflow:hidden!important;padding:0!important;position:relative!important;}
#newsGrid .news-image,#newsGrid .news-icon{position:relative!important;border-radius:1px 1px 0 0!important;margin:0!important;}
#newsGrid .news-play{right:8px!important;bottom:8px!important;top:auto!important;left:auto!important;transform:none!important;width:44px!important;height:44px!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:#ff0000!important;color:#fff!important;font-size:19px!important;z-index:20!important;pointer-events:none!important;}
#newsGrid .news-copy{padding:6px 10px 7px 10px!important;min-height:0!important;}
#newsGrid .news-copy h3{margin:0!important;font-size:16px!important;line-height:1.2!important;}
#newsGrid .news-copy p{display:none!important;}
@media(max-width:700px){#newsGrid .news-play{right:6px!important;bottom:6px!important;width:40px!important;height:40px!important;font-size:17px!important;}#newsGrid .news-copy{padding:5px 8px 6px 8px!important;}#newsGrid .news-copy h3{font-size:14px!important;line-height:1.2!important;}}

/* NON-NEWS CARDS: 10px edge radius only */
#serviceGrid .card,
#educationGrid .card,
#updates .job{
  border-radius:10px!important;
}

/* DYNAMIC ADMIN SECTIONS - sections created from Admin automatically appear on homepage */
#dynamicSections{width:100%;box-sizing:border-box;}
#dynamicSections .dynamic-content-section{width:100%;box-sizing:border-box;margin-top:40px;}
#dynamicSections .dynamic-section-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;width:100%!important;box-sizing:border-box!important;}
#dynamicSections .dynamic-card{width:100%!important;min-width:0!important;box-sizing:border-box!important;}
@media(max-width:1000px){#dynamicSections .dynamic-section-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}}
@media(max-width:700px){#dynamicSections .dynamic-content-section{margin-top:34px!important;}#dynamicSections .dynamic-section-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}}


/* FINAL NEWS ALERT ONLY — exact requested layout */
#newsGrid .news-card{border-radius:5px!important;overflow:hidden!important;padding:0!important;background:#fff!important;gap:0!important;}
#newsGrid .news-image,#newsGrid .news-icon{position:relative!important;margin:0!important;padding:0!important;border-radius:5px 5px 0 0!important;line-height:0!important;overflow:hidden!important;}
#newsGrid .news-image img{display:block!important;width:100%!important;height:auto!important;max-width:100%!important;object-fit:contain!important;margin:0!important;padding:0!important;}
#newsGrid .news-play{position:absolute!important;right:8px!important;bottom:8px!important;top:auto!important;left:auto!important;transform:none!important;width:44px!important;height:44px!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:#ff0000!important;color:#fff!important;font-family:Arial,sans-serif!important;font-size:19px!important;font-weight:900!important;line-height:1!important;z-index:30!important;pointer-events:none!important;box-shadow:0 3px 8px rgba(0,0,0,.18)!important;}
#newsGrid .news-copy{display:flex!important;align-items:center!important;justify-content:center!important;width:82%!important;margin:0 auto!important;padding:8px 8px 9px!important;min-height:0!important;height:auto!important;background:#fff!important;box-sizing:border-box!important;}
#newsGrid .news-copy h3{margin:0!important;padding:0!important;text-align:center!important;font-size:17px!important;line-height:1.2!important;white-space:normal!important;overflow:visible!important;color:#172033!important;}
#newsGrid .news-copy p{display:none!important;margin:0!important;}
@media(max-width:700px){#newsGrid .news-play{right:6px!important;bottom:6px!important;width:38px!important;height:38px!important;font-size:16px!important;}#newsGrid .news-copy{width:82%!important;padding:6px 6px 7px!important;}#newsGrid .news-copy h3{font-size:14px!important;line-height:1.2!important;}}

/* Status ribbon: only Government Schemes, Jobs and Education cards. News Alert is untouched. */
#serviceGrid > .card.card-link, #updates > .job.job-link, #educationGrid > .job.education-link{
  position:relative!important;
}
.status-ribbon{
  position:absolute!important;
  top:0!important;
  left:0!important;
  width:82px!important;
  height:82px!important;
  overflow:hidden!important;
  z-index:20!important;
  pointer-events:none!important;
  box-shadow:none!important;
}
.status-ribbon > span{
  position:absolute!important;
  top:17px!important;
  left:-25px!important;
  width:92px!important;
  padding:4px 0!important;
  box-sizing:border-box!important;
  color:#fff!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:1.15!important;
  text-align:center!important;
  letter-spacing:.1px!important;
  transform:rotate(-45deg)!important;
  transform-origin:center!important;
  white-space:nowrap!important;
}
.status-ribbon.status-opened > span{background:#16a34a!important;}
.status-ribbon.status-running > span{background:#16a34a!important;}
.status-ribbon.status-upcoming > span{background:#1683e8!important;}
.status-ribbon.status-closed > span{background:#ef1111!important;}
@media(max-width:700px){
  .status-ribbon{width:74px!important;height:74px!important;}
  .status-ribbon > span{top:15px!important;left:-25px!important;width:84px!important;padding:4px 0!important;font-size:9px!important;}
}
