/* ==========================================================================
   MBI SEED — Modern Theme (2026)
   Loaded AFTER the old Legatus stylesheets, so it overrides them site-wide.
   To switch back to the old design: remove the <link> to this file in
   application/views/headerinc.php and header.php.
   ========================================================================== */

:root{
  --seed-green:#1e6b3f;      /* primary */
  --seed-green-dark:#134a2b;
  --seed-leaf:#7cb342;       /* accent */
  --seed-sun:#f4a81d;        /* highlight */
  --seed-ink:#1d2a22;        /* text */
  --seed-muted:#5d6b62;
  --seed-line:#e3e9e4;
  --seed-bg:#f4f7f3;
  --seed-card:#ffffff;
  --seed-radius:14px;
  --seed-shadow:0 1px 2px rgba(20,50,30,.06),0 6px 20px rgba(20,50,30,.06);
  --seed-font:"Poppins","Noto Sans Malayalam","SeedMalayalam","NotoSansMalayalam-Regular","Poppins","Noto Sans",system-ui,sans-serif;
}

/* Local Malayalam font fallback (works even if Google Fonts is blocked) */
@font-face{font-family:"SeedMalayalam";src:url("NotoSansMalayalam-Regular.ttf") format("truetype");font-display:swap;}

/* ---------- Base ---------- */
body *:not(.icon-text):not(.fa):not([class^="icon-"]){font-family:var(--seed-font)!important;}
html,body{font-family:var(--seed-font)!important;background:var(--seed-bg)!important;}
body{color:var(--seed-ink)!important;font-size:15px!important;line-height:1.65!important;-webkit-font-smoothing:antialiased;}
.boxed{background:transparent!important;}
a{color:var(--seed-green);}
a:hover{color:var(--seed-leaf)!important;}
::selection{background:var(--seed-leaf);color:#fff;}
img{max-width:100%;}
.common_text,.BodyText,.Heading,.DoubleMainHeading{font-family:var(--seed-font)!important;}
.Heading,.DoubleMainHeading,h3d a{color:var(--seed-ink)!important;font-weight:700!important;line-height:1.45!important;width:auto!important;}
.BodyText{color:var(--seed-muted)!important;line-height:1.75!important;}
.double-split,.single-split,.split-line,.article-split-line{border:0!important;height:0!important;margin:0!important;}

/* ---------- Fluid layout ---------- */
.wrapper{width:auto!important;max-width:1200px;padding:0 20px;box-sizing:border-box;}
.main-content-left{width:calc(100% - 340px)!important;}
.main-content-right{width:320px!important;margin-left:20px!important;}
.main-content-split{display:flex!important;gap:24px;overflow:visible!important;}
.main-content-split .main-split-left,
.main-content-split .main-split-right{float:none!important;flex:1 1 0;min-width:0;width:auto!important;margin-left:0!important;}
.main-content-right .main-content-split{flex-direction:column;gap:0;}

/* ---------- Top bar ---------- */
.header{margin-bottom:24px!important;background:#fff;box-shadow:0 1px 0 var(--seed-line);}
.header-very-top{background:var(--seed-green-dark);padding:0!important;margin:0!important;}
.header-very-top .wrapper{display:flex;align-items:center;justify-content:space-between;min-height:40px;}
.header-very-top .left,.header-very-top .right{float:none!important;}
.very-top-menu{display:flex!important;flex-wrap:wrap;align-items:center;}
.very-top-menu > li{border:0!important;margin:0!important;position:relative;}
.very-top-menu > li > a{color:rgba(255,255,255,.85)!important;font-size:12px!important;letter-spacing:.02em;padding:11px 10px!important;margin:0!important;text-transform:none!important;font-weight:600!important;}
.very-top-menu > li > a:hover{color:#fff!important;}
.very-top-menu > li a span{background:none!important;padding:0!important;}
.very-top-menu > li:hover > a span{padding-bottom:0!important;}
.very-top-menu > li > a span:after{content:" ▾";font-size:10px;opacity:.7;}
.very-top-menu > li ul.sub-menu{background:#fff!important;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.15)!important;padding:8px!important;min-width:200px;top:100%;z-index:200;}
.very-top-menu > li ul.sub-menu:before{display:none!important;}
.very-top-menu > li > ul.sub-menu li{border:0!important;padding:0!important;margin:0!important;}
.very-top-menu > li > ul.sub-menu li a{display:block;padding:8px 12px!important;border-radius:6px;color:var(--seed-ink)!important;font-size:13px!important;text-transform:none!important;font-weight:500!important;}
.very-top-menu > li > ul.sub-menu li a:hover{background:var(--seed-bg);color:var(--seed-green)!important;}
.header .weather-report{display:flex;align-items:center;gap:8px;}
.header .weather-report > b{padding:0!important;}
.header .weather-report > b img{filter:brightness(0) invert(1);opacity:.85;height:18px!important;}
.header .weather-report .weather-meter{background:var(--seed-sun)!important;border-radius:999px;box-shadow:none!important;padding:4px 14px!important;font-weight:700;}
.header .weather-report .weather-meter a{color:var(--seed-ink)!important;}

/* ---------- Logo + banner ---------- */
.header-middle{padding:18px 0!important;margin:0!important;background:#fff;}
.header-middle .wrapper{display:flex;align-items:center;justify-content:space-between;gap:24px;}
.header-middle .logo-image,.header-middle .banner{float:none!important;}
.header-middle .logo-image img{max-height:110px;width:auto;}
.header-middle .banner{width:auto!important;max-width:60%;}
.header-middle .banner img{border-radius:10px;max-height:110px;width:auto!important;}

/* ---------- Main menu ---------- */
.header .header-menu{background:#fff!important;border:0!important;border-top:1px solid var(--seed-line)!important;position:sticky;top:0;z-index:150;}
.header .header-menu .wrapper{display:flex;align-items:center;justify-content:space-between;gap:16px;}
.header .header-menu ul.main-menu{display:flex;flex-wrap:wrap;}
.header .header-menu ul.main-menu > li{background:transparent!important;color:var(--seed-ink)!important;padding:0!important;margin:0!important;float:none!important;position:relative;}
.header .header-menu li:hover{margin:0!important;padding:0!important;}
.header .header-menu ul.main-menu > li > a{color:var(--seed-ink)!important;font-size:14px!important;font-weight:600!important;text-transform:none!important;padding:16px 14px!important;position:relative;}
.header .header-menu ul.main-menu > li > a:after{content:"";position:absolute;left:14px;right:14px;bottom:8px;height:3px;border-radius:3px;background:var(--seed-leaf);transform:scaleX(0);transition:transform .2s;}
.header .header-menu ul.main-menu > li:hover > a{color:var(--seed-green)!important;}
.header .header-menu ul.main-menu > li:hover > a:after{transform:scaleX(1);}
.header .header-menu ul.main-menu{background:transparent!important;}
.header .header-menu ul.main-menu > li > a{background:transparent!important;border:0!important;}
.header .header-menu li > a span{display:inline!important;background:none!important;width:auto!important;height:auto!important;}
.header .header-menu li > a span:after{content:"▾";font-size:10px;margin-left:2px;color:var(--seed-muted);}
.header .header-menu ul.main-menu > li > ul.sub-menu{background:#fff!important;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.15);padding:8px;width:220px!important;top:100%;}
.header .header-menu ul.main-menu > li > ul.sub-menu li{background:transparent!important;border:0!important;}
.header .header-menu ul.main-menu > li > ul.sub-menu li > a{width:auto!important;color:var(--seed-ink)!important;padding:8px 12px!important;border-radius:6px;font-weight:500!important;text-transform:none!important;}
.header .header-menu ul.main-menu > li > ul.sub-menu li:hover > a{background:var(--seed-bg)!important;color:var(--seed-green)!important;}
.header .menu-search{margin:0!important;float:none!important;}
.header .menu-search input[type=text]{border-radius:999px!important;border:1px solid var(--seed-line)!important;background:var(--seed-bg)!important;box-shadow:none!important;padding:9px 40px 9px 16px!important;width:220px;font-size:13px;}
.header .menu-search input[type=text]:focus{border-color:var(--seed-leaf)!important;background:#fff!important;outline:0;}
.header .menu-search input[type=submit]{top:50%!important;transform:translateY(-50%);right:6px!important;}
.seed-nav-toggle{display:none;}
/* the old theme script clones the menu for sticky/phone use — not needed any more */
.header .header-menu.thisisfloat,.header .floatingmainmenu,.header .floatingmainmenu_b,.phone-icon{display:none!important;}

/* ---------- Breaking news ticker ---------- */
.breaking-news{background:#fff;border-radius:999px;box-shadow:var(--seed-shadow);height:44px!important;margin-bottom:24px!important;display:flex!important;align-items:center;overflow:hidden;}
.breaking-news .breaking-title{background:var(--seed-green)!important;border-radius:999px;margin:4px;padding:8px 18px!important;font-weight:700!important;float:none!important;white-space:nowrap;}
.breaking-news .the-corner,.breaking-news .breaking-icon{display:none!important;}
.breaking-news .breaking-block{flex:1;margin-left:12px!important;}
.breaking-news .breaking-block ul{padding-top:0!important;}
.breaking-news .breaking-block ul li a{color:var(--seed-ink)!important;font-weight:600!important;}
.breaking-news .breaking-controls{display:none!important;}
.breaking-news .breaking-block ul li a{font-size:14px!important;}

/* ---------- Section cards ---------- */
.content-panel,.main-nosplit .panel,.main-content-right .panel{background:var(--seed-card);border-radius:var(--seed-radius);box-shadow:var(--seed-shadow);border:0!important;padding:18px!important;margin-bottom:24px!important;margin-top:0!important;box-sizing:border-box;}
.panel{margin-top:0!important;}
.content-panel .content-panel,.panel .panel{box-shadow:none;padding:0!important;}
.content-panel .panel-header{background:transparent!important;height:auto!important;display:flex!important;align-items:center;justify-content:space-between;border-bottom:1px solid var(--seed-line);padding-bottom:12px;margin-bottom:16px!important;overflow:visible!important;}
.content-panel .panel-header b{background:transparent!important;color:var(--seed-ink)!important;padding:0 0 0 14px!important;font-size:16px!important;font-weight:800!important;text-transform:none!important;letter-spacing:.01em;position:relative;float:none!important;}
.content-panel .panel-header b:before{content:"";position:absolute;left:0;top:2px;bottom:2px;width:5px;border-radius:4px;background:var(--seed-leaf);}
.content-panel .panel-header b:after{display:none!important;}
.content-panel .panel-header b .icon-text{display:none!important;}
.content-panel .panel-header .top-right{float:none!important;padding:0!important;}
.content-panel .panel-header .top-right a{font-size:12px!important;font-weight:700!important;color:var(--seed-green)!important;background:#eaf4e4;padding:6px 12px;border-radius:999px;text-transform:none!important;}
.content-panel .panel-header .top-right a:after{content:" →";}
.content-panel .panel-header .top-right a:hover{background:var(--seed-green);color:#fff!important;}

.main-content-right .panel h3,.panel > h3{background:transparent!important;color:var(--seed-ink)!important;font-size:16px!important;font-weight:800!important;text-transform:none!important;padding:0 0 12px 14px!important;margin-bottom:14px!important;border-bottom:1px solid var(--seed-line);position:relative;}
.main-content-right .panel h3:before{content:"";position:absolute;left:0;top:2px;height:18px;width:5px;border-radius:4px;background:var(--seed-leaf);}
.main-content-right .panel h3:after{display:none!important;}

.content-article-title{border-bottom:0!important;color:var(--seed-ink)!important;padding:0 0 0 16px!important;margin-bottom:20px!important;position:relative;}
.content-article-title:before{content:"";position:absolute;left:0;top:2px;bottom:2px;width:6px;border-radius:4px;background:var(--seed-leaf);}
.content-article-title h2{text-transform:none!important;font-weight:800!important;font-size:24px!important;}
.content-article-title .right-title-side a{color:var(--seed-green)!important;}

/* ---------- Articles ---------- */
.article-big-block,.article-small-block{border-bottom:1px solid var(--seed-line)!important;padding-bottom:16px!important;margin-bottom:16px!important;height:auto!important;}
.panel-content > .article-big-block:last-child,.panel-content > .article-small-block:last-child{border-bottom:0!important;margin-bottom:0!important;}
.article-big-block .article-photo,.article-big-block .article-photo img,
.main-nosplit .article-big-block .article-photo,.main-nosplit .article-big-block .article-photo img{width:100%!important;height:auto!important;}
/* Every photo gets the same frame: 4:3, cropped neatly (no stretched or very tall photos) */
.article-photo,.article-photoc,.article-xphoto{float:none!important;width:100%!important;height:auto!important;max-height:none!important;margin:0 0 12px!important;padding:0!important;}
.article-photo img,.article-photoc img,.article-xphoto img,.content-panel .setborder,.panel .setborder{border-radius:10px;object-fit:cover;aspect-ratio:4/3;width:100%!important;height:auto!important;max-width:100%!important;border:0!important;display:block;background:#eef2ee;}
.article-small-block .article-photo{width:120px!important;height:auto!important;margin-right:14px!important;}
.article-small-block .article-photo img{width:120px!important;height:84px!important;aspect-ratio:auto;}
span.image-hover{display:block;overflow:hidden;border-radius:10px;}
span.image-hover img{transition:transform .35s ease!important;}
span.image-hover:hover img{opacity:1!important;transform:scale(1.04);}
.article-big-block .article-header h2 a,.article-small-block .article-header h2 a{color:var(--seed-ink)!important;font-weight:700!important;}
.article-big-block .article-header h2 a:hover,.article-small-block .article-header h2 a:hover{color:var(--seed-green)!important;text-decoration:none!important;}
.article-big-block .article-content p,.article-small-block .article-content p{color:var(--seed-muted)!important;text-align:left!important;font-size:14px!important;line-height:1.75!important;}
.article-links .article-icon-link,.article-big-block .article-links .article-icon-link{display:inline-block;background:var(--seed-green)!important;color:#fff!important;border-radius:999px;padding:7px 16px!important;font-size:12px!important;font-weight:700!important;text-transform:none!important;border:0!important;}
.article-links .article-icon-link:hover{background:var(--seed-leaf)!important;color:#fff!important;}
.article-links .article-icon-link .icon-text{display:none!important;}
.article-array li{padding:8px 0 8px 18px!important;margin:0!important;border-bottom:1px dashed var(--seed-line);}
.article-array li:last-child{border-bottom:0;}
.article-array li:before{background:var(--seed-leaf)!important;border-radius:50%;width:7px!important;height:7px!important;top:16px!important;}
.article-array li a,li a.common_text{color:var(--seed-ink)!important;font-weight:600!important;}
.article-array li a:hover{color:var(--seed-green)!important;text-decoration:none!important;}
.demo-table li{font-size:18px!important;}

/* ---------- Forms & buttons ---------- */
input[type=text],input[type=password],input[type=email],input[type=tel],select,textarea{border:1px solid #d5ddd7!important;border-radius:10px!important;padding:10px 14px!important;font-family:var(--seed-font)!important;font-size:14px!important;box-shadow:none!important;background:#fff;box-sizing:border-box;max-width:100%;}
input[type=text]:focus,input[type=password]:focus,textarea:focus,select:focus{border-color:var(--seed-leaf)!important;outline:0;box-shadow:0 0 0 3px rgba(124,179,66,.2)!important;}
input[type=submit],button,.the-button{background:var(--seed-green)!important;color:#fff!important;border:0!important;border-radius:999px!important;padding:10px 22px!important;font-weight:700!important;cursor:pointer;text-shadow:none!important;box-shadow:none!important;}
input[type=submit]:hover,button:hover,.the-button:hover{background:var(--seed-leaf)!important;}
.header .menu-search input[type=submit]{background:transparent url(../images/icon-search.png) no-repeat center!important;padding:14px!important;}


/* ---------- Article detail page: show the whole photo, same frame size ---------- */
.main-article-content .article-photo img,.main-article-content .article-xphoto img,.news_preview img,.main-article-content .setborder{object-fit:contain!important;aspect-ratio:4/3;width:100%!important;max-width:100%!important;max-height:none!important;background:#eef2ee;border-radius:12px;}
.news_preview{border:0!important;max-height:none!important;}

/* ---------- Photo slider (js/seed-slider.js) ---------- */
.slider{width:100%;}
.seed-slider{position:relative;overflow:hidden;border-radius:12px;background:#eef2ee;margin-bottom:12px;}
.seed-slider__track{display:flex!important;margin:0!important;padding:0!important;list-style:none;transition:transform .45s ease;width:100%!important;}
.seed-slider__slide{flex:0 0 100%;width:100%!important;margin:0!important;padding:0!important;border:0!important;}
.seed-slider__slide img{display:block;width:100%!important;max-width:100%!important;aspect-ratio:4/3;object-fit:cover;margin:0!important;border-radius:0!important;}
.main-article-content .seed-slider__slide img{object-fit:contain;aspect-ratio:16/10;}
.seed-slider__arrow{position:absolute!important;top:50%;transform:translateY(-50%);width:38px;height:38px;padding:0!important;border-radius:50%!important;background:rgba(255,255,255,.92)!important;color:var(--seed-green)!important;font-size:26px!important;line-height:36px!important;box-shadow:0 2px 8px rgba(0,0,0,.2)!important;z-index:3;}
.seed-slider__arrow:hover{background:#fff!important;color:var(--seed-leaf)!important;}
.seed-slider__arrow--prev{left:10px;} .seed-slider__arrow--next{right:10px;}
.seed-slider__count{position:absolute;top:10px;right:10px;background:rgba(0,0,0,.55);color:#fff;font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;z-index:3;}
.seed-slider__dots{position:absolute;bottom:10px;left:0;right:0;display:flex;justify-content:center;gap:6px;z-index:3;}
.seed-slider__dots button{width:8px;height:8px;padding:0!important;border-radius:50%!important;background:rgba(255,255,255,.6)!important;}
.seed-slider__dots button.is-active{background:#fff!important;width:22px;border-radius:999px!important;}

/* ---------- Top-bar school login ---------- */
.seed-login{position:relative;}
.seed-login-btn{background:transparent!important;border:1px solid rgba(255,255,255,.5)!important;padding:4px 14px!important;font-size:12px!important;}
.seed-login-btn:hover{background:rgba(255,255,255,.12)!important;}
.seed-login-form{display:none;position:absolute;right:0;top:calc(100% + 8px);width:240px;background:#fff;border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.18);padding:14px;z-index:300;}
.seed-login.seed-open .seed-login-form{display:block;}
.seed-login-form input[type=text],.seed-login-form input[type=password]{width:100%!important;margin-bottom:8px;}
.seed-login-form input[type=submit]{width:100%;}
.seed-login-error{background:#fdecea;color:#b3261e;font-size:12px;font-weight:600;padding:6px 10px;border-radius:8px;margin-bottom:8px;}

/* ---------- Pagination ---------- */
.pagination a,.pagination strong,.page-pager a,.page-pager span{border-radius:8px!important;margin:2px;padding:7px 12px!important;background:#fff!important;color:var(--seed-ink)!important;border:1px solid var(--seed-line)!important;display:inline-block;}
.pagination strong,.page-pager span.page-numbers,.page-pager a:hover,.pagination a:hover{background:var(--seed-green)!important;color:#fff!important;border-color:var(--seed-green)!important;}
.page-pager{border-top:0!important;}

/* ---------- Footer ---------- */
.footer,#footer{background:var(--seed-green-dark)!important;color:rgba(255,255,255,.75)!important;padding:28px 0!important;margin-top:20px;}
.footer-content{padding:0!important;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;}
.footer-content .left,.footer-content .right,#footer .copyright{float:none!important;color:rgba(255,255,255,.8)!important;font-size:13px!important;}
.footer a,#footer a{color:#fff!important;}

/* ---------- Tablet ---------- */
@media (max-width:1024px){
  .main-content-left{width:calc(100% - 300px)!important;}
  .main-content-right{width:280px!important;}
}

/* ---------- Mobile ---------- */
@media (max-width:860px){
  body{font-size:15px!important;}
  .wrapper{width:auto!important;padding:0 16px!important;}
  .main-content-left,.main-content-right{width:100%!important;float:none!important;margin-left:0!important;}
  .main-content-split{flex-direction:column;gap:0;}
  .header{display:flex;flex-direction:column;}
  .header > *{width:100%!important;box-sizing:border-box;}
  .header-middle{order:1;} .header .header-menu{order:2;} .header-very-top{order:3;}
  .header-very-top{display:none!important;}
  .header.seed-open .header-very-top{display:block!important;background:#fff;border-top:1px solid var(--seed-line);}
  .header.seed-open .header-very-top .wrapper{flex-direction:column;align-items:stretch;padding:0 16px 12px!important;}
  .header.seed-open .very-top-menu{flex-direction:column;align-items:stretch;}
  .header.seed-open .very-top-menu > li > a{color:var(--seed-ink)!important;font-size:14px!important;padding:12px 4px!important;border-bottom:1px solid var(--seed-line);}
  .header.seed-open .very-top-menu > li ul.sub-menu{display:block!important;position:static!important;box-shadow:none!important;border:0!important;background:transparent!important;padding:0 0 0 12px!important;}
  .header.seed-open .header .weather-report > b img,.header.seed-open .weather-report > b img{filter:none;}
  .header.seed-open .header-very-top .right{padding-top:12px;}
  .header-middle{padding:10px 0!important;}
  .header-middle .banner{display:none!important;}
  .header-middle .logo-image img{max-height:64px;}
  .header .header-menu.thisisfixed:not(.thisisfloat):not(.floatingmainmenu){display:block!important;position:sticky;top:0;}
  .header .header-menu .wrapper{flex-wrap:wrap;padding:8px 16px!important;}
  .seed-nav-toggle{display:inline-flex;align-items:center;gap:8px;background:var(--seed-green)!important;color:#fff!important;border-radius:10px!important;padding:9px 14px!important;font-size:14px;}
  .header .header-menu ul.main-menu{display:none!important;width:100%;flex-direction:column;order:3;}
  .header.seed-open .header-menu ul.main-menu{display:flex!important;}
  .header .header-menu ul.main-menu > li > a{padding:12px 4px!important;border-bottom:1px solid var(--seed-line);}
  .header .header-menu ul.main-menu > li > a:after{display:none;}
  .header .header-menu ul.main-menu > li > ul.sub-menu{position:static!important;display:block!important;box-shadow:none;width:auto!important;padding:0 0 0 12px;}
  .right.menu-search{display:block!important;flex:1;}
  .header .menu-search input[type=text]{width:100%!important;}
  .breaking-news{border-radius:12px;}
  .breaking-news .breaking-title b{font-size:12px;}
  .content-panel,.main-nosplit .panel,.main-content-right .panel{padding:14px!important;}
  .content-article-title h2{font-size:20px!important;}
  .article-small-block .article-photo{width:100px!important;}
  .article-small-block .article-photo img{width:100px!important;height:72px!important;}
  .footer-content{flex-direction:column;text-align:center;}
}

/* ---------- News order everywhere: 1) title  2) photo  3) details  4) button ---------- */
.article-classic,.article-big-block,.article-small-block{display:flex!important;flex-direction:column;align-items:stretch;}
.article-classic > *,.article-big-block > *,.article-small-block > *{float:none!important;width:100%!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box;}
.article-classic > .article-header,.article-big-block > .article-header,.article-small-block > .article-header{order:1;text-align:left!important;padding-bottom:10px!important;}
.article-classic > .article-photo,.article-classic > .article-photoc,.article-classic > .article-xphoto,
.article-big-block > .article-photo,.article-big-block > .article-photoc,.article-big-block > .article-xphoto,
.article-small-block > .article-photo{order:2;}
.article-classic > .article-content,.article-classic > .article-contecnt,
.article-big-block > .article-content,.article-small-block > .article-content{order:3;}
.article-classic > .article-links,.article-big-block > .article-links,.article-small-block > .article-links{order:4;}
.article-classic > .clear-float,.article-big-block > .clear-float,.article-small-block > .clear-float{order:5;}
.article-header h2,.article-header h3d,.article-header a{text-align:left!important;display:block;}
.article-classic{padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--seed-line);}
.article-classic:last-of-type{border-bottom:0;}
.article-classic .article-photo span.set-image-border{display:block!important;}
.article-classic .article-photo img,.article-classic img.setborder{max-width:100%!important;width:100%!important;}
.article-links{text-align:left!important;}
.article-small-block > .article-photo,.article-small-block > .article-photo img{width:100%!important;height:auto!important;aspect-ratio:4/3;}

/* ---------- Medium, standard photo size (all photos 16:10, max 440px wide) ---------- */
.article-classic > .article-photo,.article-classic > .article-photoc,.article-classic > .article-xphoto,
.main-nosplit .article-big-block > .article-photo,.main-nosplit .article-big-block > .article-photoc,
.article-small-block > .article-photo{max-width:440px!important;}
.article-photo img,.article-photoc img,.article-xphoto img,.content-panel .setborder,.panel .setborder,
.article-small-block > .article-photo img,.seed-slider__slide img{aspect-ratio:16/10!important;}
/* Full news page: photo/slider medium width, centred */
.main-article-content .article-photo,.main-article-content .article-xphoto,.main-article-content .seed-slider,.news_preview{max-width:600px!important;margin-left:auto!important;margin-right:auto!important;}

/* ---------- Show the WHOLE photo (no cutting of heads/tall photos), same frame size ---------- */
.article-photo img,.article-photoc img,.article-xphoto img,.content-panel .setborder,.panel .setborder,
.article-small-block > .article-photo img,.seed-slider__slide img{object-fit:contain!important;background:#e9efe9!important;}
/* typo'd content classes in old pages (article-contecnt, article-contendt…) keep their place after the photo */
.article-classic > [class^="article-cont"],.article-big-block > [class^="article-cont"],.article-small-block > [class^="article-cont"]{order:3;}

/* ---------- Dropdown menus: no gap between the menu word and its list, so the mouse can reach it ---------- */
.very-top-menu > li ul.sub-menu,.header .header-menu ul.main-menu > li > ul.sub-menu{margin-top:0!important;top:100%!important;}
.very-top-menu > li > ul.sub-menu:after,.header .header-menu ul.main-menu > li > ul.sub-menu:after{content:"";position:absolute;left:0;right:0;top:-14px;height:14px;background:transparent;}
.very-top-menu > li > ul.sub-menu{left:0;}
.header-very-top{position:relative;z-index:300;}
.header .header-menu{z-index:250;}
.very-top-menu > li ul.sub-menu li a,.header .header-menu ul.main-menu > li > ul.sub-menu li > a{cursor:pointer;}

/* ==========================================================================
   Standard card layout for all list pages (news, reporter, school events, events,
   GK, memoirs, articles, turtle …): 2 cards per row, photo on top, title,
   short summary, button. Items without a photo get a SEED placeholder.
   ========================================================================== */
.main-nosplit:has(> .article-classic){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:stretch;}
.main-nosplit:has(> .article-classic) > :not(.article-classic){grid-column:1/-1;}
.main-nosplit > .article-classic{background:#fff;border-radius:14px;box-shadow:var(--seed-shadow);border:0!important;margin:0!important;padding:0 0 16px!important;overflow:hidden;transition:transform .2s,box-shadow .2s;}
.main-nosplit > .article-classic:hover{transform:translateY(-3px);box-shadow:0 2px 4px rgba(20,50,30,.06),0 14px 30px rgba(20,50,30,.12);}
.main-nosplit > .article-classic > *{padding-left:16px!important;padding-right:16px!important;}
/* photo on top, edge to edge */
.main-nosplit > .article-classic > .article-photo{order:0!important;max-width:none!important;padding:0!important;margin:0 0 14px!important;}
.main-nosplit > .article-classic > .article-photo img{border-radius:0!important;aspect-ratio:16/10!important;}
.main-nosplit > .article-classic > .article-photo span.image-hover{border-radius:0;}
/* placeholder when there is no photo */
.main-nosplit > .article-classic:not(:has(img))::before{content:"🌱  SEED";order:0;display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;margin-bottom:14px;background:linear-gradient(135deg,#1e6b3f,#7cb342);color:rgba(255,255,255,.9);font-size:22px;font-weight:800;letter-spacing:.12em;}
/* title */
.main-nosplit > .article-classic > .article-header{order:1!important;padding-top:0!important;padding-bottom:6px!important;}
.main-nosplit > .article-classic .Heading{font-size:16px!important;line-height:1.5!important;}
/* summary: max 3 lines */
.main-nosplit > .article-classic > [class^="article-cont"]{order:2!important;}
.main-nosplit > .article-classic .BodyText{display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:13.5px!important;line-height:1.7!important;float:none!important;margin:4px 0 0!important;}
.main-nosplit > .article-classic .article-rating .demo-table li{font-size:14px!important;}
/* button at the bottom of every card, so cards line up */
.main-nosplit > .article-classic > .article-links{order:3!important;margin-top:auto!important;padding-top:12px!important;}
.main-nosplit > .article-classic > .article-links .article-icon-link{padding:6px 14px!important;font-size:12px!important;}
.main-nosplit > .article-classic > .clear-float{display:none;}
/* pagination centred */
.pagination{text-align:center;margin-top:8px;}
.pagination ul{display:inline-flex;flex-wrap:wrap;gap:4px;list-style:none;padding:0;}
.pagination li.active a{background:var(--seed-green)!important;color:#fff!important;border-color:var(--seed-green)!important;}
@media (max-width:700px){.main-nosplit:has(> .article-classic){grid-template-columns:1fr;}}
/* keep the order you asked for inside cards: title → photo → summary → button */
.main-nosplit > .article-classic > .article-header{order:0!important;padding-top:14px!important;padding-bottom:10px!important;}
.main-nosplit > .article-classic > .article-photo{order:1!important;}
.main-nosplit > .article-classic:not(:has(img))::before{order:1;}
/* School Events: no green SEED placeholder — events without a photo show as a text-only card */
.main-nosplit > .article-classic:has(a[href*="school-preview"]):not(:has(img))::before{display:none!important;content:none!important;}
.main-nosplit > .article-classic:has(a[href*="school-preview"]):not(:has(img)) .BodyText{-webkit-line-clamp:5;}

/* ==========================================================================
   Photo Frame gallery (/photoframe): neat 3-column grid of equal photo cards
   ========================================================================== */
.inner-content-blocks{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;height:auto!important;position:static!important;}
.inner-content-blocks > *:not(.custom-block){display:none!important;}
.inner-content-blocks .custom-block{position:static!important;left:auto!important;top:auto!important;width:auto!important;height:auto!important;float:none!important;margin:0!important;background:#fff;border-radius:14px;box-shadow:var(--seed-shadow);overflow:hidden;color:var(--seed-ink)!important;transition:transform .2s,box-shadow .2s;}
.inner-content-blocks .custom-block:hover{transform:translateY(-3px);box-shadow:0 2px 4px rgba(20,50,30,.06),0 14px 30px rgba(20,50,30,.12);}
.inner-content-blocks .custom-block > h3{display:none!important;}
.inner-content-blocks .custom-block > a.fancybox{display:none;}
.inner-content-blocks .custom-block > a.fancybox:has(img),.inner-content-blocks .custom-block > a.fancybox:has(.hover-block){display:flex!important;flex-direction:column;height:100%;text-decoration:none;color:inherit!important;}
/* photo: same size for every card, whole photo visible */
.inner-content-blocks .custom-block a.fancybox > div{min-height:0!important;max-height:none!important;height:auto!important;border:0!important;aspect-ratio:4/3;background:#e9efe9;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.inner-content-blocks .custom-block a.fancybox > div img{max-width:100%!important;width:100%!important;height:100%!important;object-fit:cover;display:block;transition:transform .35s;}
.inner-content-blocks .custom-block:hover a.fancybox > div img{transform:scale(1.04);}
/* caption under the photo (no more coloured blocks covering the photo) */
.inner-content-blocks .hover-block{position:static!important;display:block!important;height:auto!important;padding:12px 14px 14px!important;background:#fff!important;opacity:1!important;}
.inner-content-blocks .hover-background{display:none!important;}
.inner-content-blocks .hover-block .author{display:block!important;position:static!important;padding:0!important;background:none!important;}
.inner-content-blocks .hover-block .author b.user,.inner-content-blocks .hover-block .author b{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--seed-ink)!important;font-size:15px!important;font-weight:700!important;line-height:1.45!important;}
.inner-content-blocks .hover-block .inner-content{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:auto!important;padding:4px 0 0!important;color:var(--seed-muted)!important;font-size:13px!important;line-height:1.6!important;}
.inner-content-blocks .hover-block .inner-content p{margin:0!important;color:var(--seed-muted)!important;}
.inner-content-blocks .hover-block .inner-content p:empty{display:none;}
@media (max-width:1024px){.inner-content-blocks{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:600px){.inner-content-blocks{grid-template-columns:1fr;}}
.inner-content-blocks .hover-block .author b,.inner-content-blocks .hover-block *{white-space:normal!important;}
/* Photo Frame: use the empty right side too — full width, 4 photos per row */
.main-content-left:has(.inner-content-blocks){width:100%!important;}
.main-content-left:has(.inner-content-blocks) ~ .main-content-right{display:none!important;}
.inner-content-blocks{grid-template-columns:repeat(4,minmax(0,1fr));}
.inner-content-blocks .hover-block b,.inner-content-blocks .hover-block .author b.user{margin:0!important;padding:0!important;}
.inner-content-blocks .hover-block{box-sizing:border-box;width:100%!important;overflow:hidden;}
.inner-content-blocks .custom-block a.fancybox > div{width:100%!important;}
@media (max-width:1100px){.inner-content-blocks{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:800px){.inner-content-blocks{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:520px){.inner-content-blocks{grid-template-columns:1fr;}}

/* ==========================================================================
   Two-column sections (Our Projects and similar pages): wrap into rows of 2
   ========================================================================== */
.main-content-left .main-content-split{flex-wrap:wrap;row-gap:22px;}
.main-content-left .main-content-split > .main-split-left,
.main-content-left .main-content-split > .main-split-right{flex:1 1 calc(50% - 12px)!important;max-width:calc(50% - 12px);}
/* Project cards */
.main-content-split .article-big-block:has(> .article-xphoto){background:#fff;border-radius:14px;box-shadow:var(--seed-shadow);border:0!important;padding:0 0 16px!important;margin:0!important;min-height:0!important;height:100%;overflow:hidden;box-sizing:border-box;transition:transform .2s,box-shadow .2s;}
.main-content-split .article-big-block:has(> .article-xphoto):hover{transform:translateY(-3px);box-shadow:0 2px 4px rgba(20,50,30,.06),0 14px 30px rgba(20,50,30,.12);}
.main-content-split .article-big-block:has(> .article-xphoto) > *{padding-left:16px!important;padding-right:16px!important;}
.main-content-split .article-big-block > .article-xphoto{order:1!important;padding:0!important;margin:0 0 14px!important;max-width:none!important;}
.main-content-split .article-big-block > .article-xphoto li{display:flex!important;align-items:center;justify-content:center;width:100%!important;height:auto!important;aspect-ratio:16/10;margin:0!important;border:0!important;background:#e9efe9;list-style:none;}
.main-content-split .article-big-block > .article-xphoto li a{display:block;width:100%;height:100%;}
.main-content-split .article-big-block > .article-xphoto img{width:100%!important;height:100%!important;aspect-ratio:auto!important;object-fit:contain!important;border-radius:0!important;background:transparent!important;}
.main-content-split .article-big-block:has(> .article-xphoto) > .article-header{order:0!important;padding-top:16px!important;}
.main-content-split .article-big-block:has(> .article-xphoto) > .article-header h2{font-size:18px!important;}
.main-content-split .article-big-block:has(> .article-xphoto) > .article-header h2 a{color:var(--seed-ink)!important;}
.main-content-split .article-big-block:has(> .article-xphoto) .article-content p{display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:var(--seed-muted)!important;font-size:14px!important;}
.main-content-split .article-big-block:has(> .article-xphoto) > .article-links{order:4;margin-top:auto!important;}
@media (max-width:700px){
  .main-content-left .main-content-split > .main-split-left,
  .main-content-left .main-content-split > .main-split-right{flex-basis:100%!important;max-width:100%;}
}
/* Empty right sidebar (detected by js/seed-slider.js): hide it and let the page use the full width */
.seed-no-sidebar > .main-content-right{display:none!important;}
.seed-no-sidebar > .main-content-left{width:100%!important;}
.seed-no-sidebar > .main-content-left .main-content-split > .main-split-left,
.seed-no-sidebar > .main-content-left .main-content-split > .main-split-right{flex-basis:calc(33.333% - 16px)!important;max-width:calc(33.333% - 16px);}
@media (max-width:1000px){
.seed-no-sidebar > .main-content-left .main-content-split > .main-split-left,
.seed-no-sidebar > .main-content-left .main-content-split > .main-split-right{flex-basis:calc(50% - 12px)!important;max-width:calc(50% - 12px);}}
@media (max-width:700px){
.seed-no-sidebar > .main-content-left .main-content-split > .main-split-left,
.seed-no-sidebar > .main-content-left .main-content-split > .main-split-right{flex-basis:100%!important;max-width:100%;}}

/* ==========================================================================
   No empty grey space around photos: a soft blurred copy of the same photo
   fills the frame, the full photo sits on top (set up by js/seed-slider.js)
   ========================================================================== */
.seed-blurfill{position:relative;overflow:hidden;isolation:isolate;border-radius:10px;}
.seed-blurfill::before{content:"";position:absolute;inset:-20px;background:var(--seed-bg) center/cover no-repeat;filter:blur(18px) saturate(1.1) brightness(.92);z-index:0;}
.seed-blurfill img{position:relative;z-index:1;background:transparent!important;}
.seed-blurfill span.image-hover,.seed-blurfill span.set-image-border,.seed-blurfill a{position:relative;z-index:1;background:transparent!important;}
.seed-slider__slide.seed-blurfill{border-radius:0;}
.main-nosplit > .article-classic > .article-photo.seed-blurfill,.inner-content-blocks .seed-blurfill{border-radius:0;}

/* ==========================================================================
   Homepage sections: a header-only panel becomes a clean section title,
   no more empty white boxes
   ========================================================================== */
.content-panel:has(> .panel-header:only-child){background:transparent!important;box-shadow:none!important;padding:0!important;margin:8px 0 14px!important;}
.content-panel:has(> .panel-header:only-child) .panel-header{margin-bottom:0!important;}
.article-big-block > .article-header:not(:has(*)),.main-content-split .article-header:not(:has(*)){display:none!important;}
/* homepage news items under a section title: neat white cards */
.main-content-split .article-small-block,.main-content-split .article-big-block > .article-classic{background:#fff;border-radius:14px;box-shadow:var(--seed-shadow);border:0!important;padding:14px 16px 16px!important;margin:0 0 18px!important;}
.main-content-split .article-small-block > .article-photo{max-width:none!important;width:100%!important;margin:4px 0 10px!important;}
.main-content-split .article-small-block .BodyText{display:-webkit-box!important;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;}
/* sidebar headings readable */
.main-content-right .panel h3 a{color:var(--seed-ink)!important;}
.seed-blurfill span.image-hover,.seed-blurfill span.set-image-border{display:block!important;width:100%!important;}
.seed-blurfill span.drop-icons{position:absolute!important;inset:0;z-index:2;}
.article-photo.seed-blurfill img,.article-xphoto .seed-blurfill img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:16/10!important;object-fit:contain!important;margin:0!important;}
.article-photo.seed-blurfill{height:auto!important;padding:0!important;line-height:0;}
.article-photo.seed-blurfill,.article-small-block > .article-photo.seed-blurfill{aspect-ratio:auto!important;}

/* sidebar link-only panels (Season Watch, Articles, Cradle For Turtle) as compact cards */
.main-content-right .panel:has(> h3:only-child),.main-content-right .panel:has(> a:only-child){padding:14px 18px!important;}
.main-content-right .panel:has(> h3:only-child) h3,.main-content-right .panel:has(> a:only-child) h3{border-bottom:0!important;margin-bottom:0!important;padding-bottom:0!important;}
.main-content-right .panel:has(> h3:only-child) h3 a:after,.main-content-right .panel:has(> a:only-child) h3:after{content:" →";color:var(--seed-leaf);}

/* Sidebar "Related News" list (homepage) */
.seed-side-news{margin-top:0!important;}
.seed-side-list{list-style:none;margin:0;padding:0;}
.seed-side-list li{border-bottom:1px solid var(--seed-line);}
.seed-side-list li:last-child{border-bottom:0;}
.seed-side-list a{display:flex;gap:12px;align-items:flex-start;padding:10px 0;color:var(--seed-ink)!important;}
.seed-side-list a:hover b{color:var(--seed-green)!important;}
.seed-side-thumb{flex:0 0 78px;width:78px;height:58px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1e6b3f,#7cb342);display:block;}
.seed-side-thumb img{width:100%!important;height:100%!important;object-fit:cover!important;aspect-ratio:auto!important;display:block;border-radius:0!important;}
.seed-side-text{display:flex;flex-direction:column;gap:3px;min-width:0;}
.seed-side-text b{font-size:13.5px!important;font-weight:700!important;line-height:1.45!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.seed-side-text small{font-size:11.5px;color:var(--seed-muted);}

@media (min-width:861px){.content-panel.seed-side-news{float:right;clear:right;width:320px;box-sizing:border-box;}}
@media (max-width:1024px) and (min-width:861px){.content-panel.seed-side-news{width:280px;}}

.content-panel.seed-side-news .panel-header .top-right a{white-space:nowrap;}
.seed-turtle-panel #calendar_wrap img{width:100%;height:auto;border-radius:10px;display:block;}

/* Homepage section = one white card: title + its news items (built by js/seed-slider.js) */
.seed-section-card{background:#fff;border-radius:var(--seed-radius);box-shadow:var(--seed-shadow);padding:18px;margin:0 0 24px;box-sizing:border-box;}
.seed-section-card > .content-panel{background:transparent!important;box-shadow:none!important;padding:0!important;margin:0 0 14px!important;}
.seed-section-card .panel-header{margin-bottom:0!important;}
.seed-section-card .article-small-block,.seed-section-card .article-classic,.seed-section-card > .article-big-block{background:transparent!important;box-shadow:none!important;border-radius:0!important;padding:0 0 16px!important;margin:0 0 16px!important;border-bottom:1px solid var(--seed-line)!important;}
.seed-section-card > :last-child,.seed-section-card .article-small-block:last-child,.seed-section-card .article-classic:last-child{border-bottom:0!important;margin-bottom:0!important;padding-bottom:0!important;}

/* ==========================================================================
   Talent Showcase (/talent_showcase): filter pills + equal 3-per-row cards
   ========================================================================== */
.filter{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 20px!important;padding:0!important;border:0!important;}
.filter b{font-size:13px;color:var(--seed-muted);margin-right:4px;text-transform:none;}
.filter a{background:#fff!important;border:1px solid var(--seed-line)!important;color:var(--seed-ink)!important;border-radius:999px!important;padding:6px 16px!important;font-size:13px!important;font-weight:600!important;text-transform:none!important;margin:0!important;}
.filter a:hover{border-color:var(--seed-leaf)!important;color:var(--seed-green)!important;}
.filter a.active{background:var(--seed-green)!important;border-color:var(--seed-green)!important;color:#fff!important;}
.archive .archive-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;width:auto!important;margin:0!important;}
.archive .archive-row > [id^="inline"]{display:none!important;}
.archive .archive-block{width:auto!important;float:none!important;margin:0!important;padding:0!important;display:flex;}
.archive .archive-block > .content-panel{flex:1;display:flex;flex-direction:column;margin:0!important;padding:0!important;overflow:hidden;}
.archive .archive-block .panel-content{flex:1;display:flex;flex-direction:column;}
.archive .archive-block .article-big-block{flex:1;display:flex!important;flex-direction:column;padding:16px 18px 18px!important;margin:0!important;border:0!important;}
.archive .archive-block .article-big-block > .article-header{order:1;padding:0 0 10px!important;}
.archive .archive-block .article-big-block > .article-photo{order:2;max-height:none!important;margin:0 0 12px!important;}
.archive .archive-block .article-big-block > .article-content{order:3;max-height:none!important;min-height:0!important;}
.archive .archive-block .article-big-block > .bottom-button{order:4;position:static!important;margin-top:auto!important;padding-top:12px;}
/* title: plain bold text (not a green button) */
.archive .article-header h2{margin:0!important;}
.archive .article-header h2 a.the-button{background:transparent!important;color:var(--seed-ink)!important;padding:0!important;border-radius:0!important;font-size:17px!important;font-weight:800!important;line-height:1.45!important;display:block;text-align:left;}
.archive .article-header h2 a.the-button:hover{color:var(--seed-green)!important;}
.archive .article-header br{display:none;}
.archive .article-header h3{margin:6px 0 0!important;font-size:12.5px!important;font-weight:500!important;color:var(--seed-muted)!important;line-height:1.5!important;}
.archive .article-header h3 > a{color:var(--seed-green)!important;font-weight:700;}
.archive .article-header h3 p{margin:2px 0 0!important;}
.archive .article-header h3 p b{color:var(--seed-ink)!important;font-weight:600!important;font-size:12.5px!important;}
.archive .article-content p,.archive .article-content p b{font-weight:400!important;color:var(--seed-muted)!important;font-size:14px!important;line-height:1.7!important;}
.archive .article-content p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0!important;}
.archive .article-content br{display:none;}
.archive .bottom-button a.the-button{display:inline-flex;align-items:center;gap:6px;padding:7px 16px!important;font-size:12.5px!important;}
.archive .bottom-button a.the-button .icon-text{font-family:inherit!important;}
@media (max-width:1000px){.archive .archive-row{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:620px){.archive .archive-row{grid-template-columns:1fr;}}
/* Talent Showcase: old markup puts 2 items per row — let all items flow in one grid */
.archive:has(.archive-row){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;width:auto!important;}
.archive .archive-row{display:contents!important;}
.archive > :not(.archive-row){grid-column:1/-1;}
@media (max-width:1000px){.archive:has(.archive-row){grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:620px){.archive:has(.archive-row){grid-template-columns:1fr;}}
.archive .archive-block{display:flex!important;flex-direction:column!important;align-items:stretch!important;}
.archive .archive-block > .content-panel{width:100%!important;flex:1 1 auto!important;}
/* Talent Showcase: cards without a picture — same-size placeholder, and no clipped button */
.archive .archive-block > .content-panel,.archive .archive-block .panel-content,.archive .archive-block .article-big-block{overflow:visible!important;height:auto!important;max-height:none!important;min-height:0!important;}
.archive .archive-block .article-big-block:not(:has(img))::before{content:"🌱  SEED Talent";order:2;display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;margin:0 0 12px;border-radius:10px;background:linear-gradient(135deg,#1e6b3f,#7cb342);color:rgba(255,255,255,.92);font-size:20px;font-weight:800;letter-spacing:.06em;}
.archive .archive-block .article-big-block > .articcle-photo{display:none!important;}

/* No green placeholder pictures anywhere: items without a photo simply show as text cards */
.main-nosplit > .article-classic:not(:has(img))::before,
.archive .archive-block .article-big-block:not(:has(img))::before{display:none!important;content:none!important;}
.main-nosplit > .article-classic:not(:has(img)) .BodyText,
.archive .archive-block .article-big-block:not(:has(img)) .article-content p{-webkit-line-clamp:6;}
.archive .archive-block.seed-no-more .bottom-button{display:none!important;}

/* Pop-up viewer (js/seed-slider.js) */
.seed-pop{position:fixed;inset:0;z-index:10000;background:rgba(10,25,15,.72);display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box;}
html.seed-pop-open,html.seed-pop-open body{overflow:hidden!important;}
.seed-pop__box{position:relative;background:#fff;border-radius:16px;max-width:820px;width:100%;max-height:calc(100vh - 48px);overflow:auto;box-shadow:0 20px 60px rgba(0,0,0,.35);}
.seed-pop__body{padding:28px 30px 30px;}
.seed-pop__body > div{float:none!important;width:auto!important;height:auto!important;background:#fff!important;padding:0!important;}
.seed-pop__body h3,.seed-pop__body h3 a{font-size:20px!important;font-weight:800!important;color:var(--seed-ink)!important;border:0!important;margin:0 0 8px!important;}
.seed-pop__body p,.seed-pop__body .common_text{font-size:15.5px!important;line-height:1.85!important;color:var(--seed-ink)!important;}
.seed-pop__body img{max-width:100%;height:auto;border-radius:10px;display:block;margin:10px auto;}
.seed-pop__body iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:10px;}
.seed-pop__cap{text-align:center;color:var(--seed-muted)!important;font-size:14px!important;margin-top:8px;}
.seed-pop__close{position:sticky!important;top:10px;float:right;margin:10px 10px 0 0;width:38px;height:38px;padding:0!important;border-radius:50%!important;background:var(--seed-bg)!important;color:var(--seed-ink)!important;font-size:24px!important;line-height:36px!important;z-index:2;}
.seed-pop__close:hover{background:var(--seed-green)!important;color:#fff!important;}
@media (max-width:600px){.seed-pop{padding:10px}.seed-pop__body{padding:20px 18px 22px}}
/* main menu: show the ▾ arrow only on items that really have a dropdown */
.header .header-menu ul.main-menu > li:not(:has(> ul.sub-menu)) > a span:after{content:none!important;}
.header .header-menu ul.main-menu > li > ul.sub-menu{z-index:300;}

/* ==========================================================================
   Photo viewer (fancybox) caption: was one endless line running off the
   screen. Now a readable caption box over the bottom of the photo.
   ========================================================================== */
.fancybox-skin{border-radius:14px!important;}
.fancybox-title-float-wrap{position:absolute!important;left:15px!important;right:15px!important;bottom:15px!important;margin:0!important;text-align:left!important;z-index:8040;}
.fancybox-title-float-wrap .child{display:block!important;white-space:normal!important;margin:0!important;border-radius:0 0 4px 4px!important;background:linear-gradient(to bottom,rgba(0,0,0,0),rgba(0,0,0,.72) 30%,rgba(0,0,0,.86))!important;color:#fff!important;text-shadow:none!important;font-family:var(--seed-font)!important;font-weight:400!important;font-size:14px!important;line-height:1.7!important;padding:42px 20px 14px!important;max-height:190px;overflow:auto;}
.fancybox-title-float-wrap .child::first-line{font-weight:700;font-size:16px;}
.fancybox-title-float-wrap .child::-webkit-scrollbar{width:6px}
.fancybox-title-float-wrap .child::-webkit-scrollbar-thumb{background:rgba(255,255,255,.4);border-radius:3px}

/* Share row on news pages (replaces the old moving share box) */
.social-icons-float{display:none!important;}
.seed-share{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0 18px;padding:10px 0;border-top:1px solid var(--seed-line);border-bottom:1px solid var(--seed-line);}
.seed-share__label{font-size:13px;font-weight:700;color:var(--seed-muted);margin-right:4px;}
.seed-share__btn{display:inline-flex!important;align-items:center;gap:6px;height:34px;padding:0 14px!important;border-radius:999px!important;border:0!important;color:#fff!important;font-size:13px!important;font-weight:600!important;text-decoration:none!important;cursor:pointer;transition:transform .15s,filter .15s;box-shadow:none!important;}
.seed-share__btn svg{width:16px;height:16px;fill:currentColor;flex:0 0 16px;}
.seed-share__btn:hover{transform:translateY(-1px);filter:brightness(1.08);color:#fff!important;}
.seed-share__btn--wa{background:#25d366!important;}
.seed-share__btn--fb{background:#1877f2!important;}
.seed-share__btn--x{background:#111!important;}
.seed-share__btn--li{background:#0a66c2!important;}
.seed-share__btn--cp{background:#eef3ee!important;color:var(--seed-ink)!important;}
.seed-share__btn--cp:hover{color:var(--seed-ink)!important;background:#e2ebe2!important;}
@media (max-width:600px){.seed-share__btn span{display:none}.seed-share__btn{width:38px;height:38px;padding:0!important;justify-content:center}}

/* Share bar — computers: fixed on the left side (same place as the old box, but it no longer moves) */
.seed-share--side{position:fixed;left:18px;top:50%;transform:translateY(-50%);z-index:200;flex-direction:column;flex-wrap:nowrap;gap:10px;margin:0;padding:14px 10px;border:0;background:#fff;border-radius:18px;box-shadow:0 2px 6px rgba(20,50,30,.08),0 12px 28px rgba(20,50,30,.12);}
.seed-share--side .seed-share__label{margin:0 0 2px;font-size:11px;text-transform:uppercase;letter-spacing:.08em;}
.seed-share--side .seed-share__btn{width:42px;height:42px;padding:0!important;justify-content:center;position:relative;}
.seed-share--side .seed-share__btn svg{width:18px;height:18px;flex-basis:18px;}
.seed-share--side .seed-share__btn span{position:absolute;left:52px;top:50%;transform:translateY(-50%) translateX(-6px);background:var(--seed-ink);color:#fff;font-size:12px;font-weight:600;padding:5px 10px;border-radius:6px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;}
.seed-share--side .seed-share__btn:hover span,.seed-share--side .seed-share__btn.is-copied span{opacity:1;transform:translateY(-50%) translateX(0);}
.seed-share--side .seed-share__btn.is-copied span{font-size:0;}
.seed-share--side .seed-share__btn.is-copied span:after{content:"Copied!";font-size:12px;}
.seed-share--side .seed-share__btn:hover{transform:scale(1.08);}
.seed-share--inline{display:none;}
/* small screens / phones: hide the side bar, show the row under the title */
@media (max-width:1360px){
  .seed-share--side{display:none!important;}
  .seed-share--inline{display:flex;}
}
/* share buttons: original colours of the old share box */
.seed-share__btn--fb{background:#495fbd!important;}
.seed-share__btn--tw{background:#43bedd!important;}
.seed-share__btn--gp{background:#df6149!important;}
.seed-share__btn--pi{background:#d23131!important;}
.seed-share__btn--li{background:#2f4c86!important;}
/* dashboard: "activity submitted" message */
.seed-submit-ok{background:#e8f5e9;border:1px solid #a5d6a7;color:#1b5e20;border-radius:12px;padding:14px 18px;margin:0 0 18px;font-size:15px;line-height:1.6;}
.seed-submit-ok strong{color:#1b5e20;}
/* comment section removed */
.comment-form,#disqus_thread{display:none!important;}
/* top bar: School Login button (opens /login) */
.header .weather-report a.seed-login-link{display:inline-block;color:#fff!important;border:1px solid rgba(255,255,255,.55);border-radius:999px;padding:4px 14px;font-size:12px;font-weight:700;text-decoration:none;}
.header .weather-report a.seed-login-link:hover{background:#fff;color:var(--seed-green)!important;}

/* ==========================================================================
   Video gallery (/videos): equal 16:9 thumbnails, white cards, play button
   ========================================================================== */
.inner-content-blocks .custom-block:has(> a.venobox){background:#fff!important;color:var(--seed-ink)!important;}
.inner-content-blocks .custom-block > a.venobox{display:flex!important;flex-direction:column;height:100%;text-decoration:none;color:inherit!important;}
.inner-content-blocks .custom-block a.venobox > div{position:relative;width:100%!important;min-height:0!important;max-height:none!important;height:auto!important;border:0!important;aspect-ratio:16/9;background:#1b1f1c;overflow:hidden;}
.inner-content-blocks .custom-block a.venobox > div img{width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;display:block;transition:transform .35s;}
.inner-content-blocks .custom-block:hover a.venobox > div img{transform:scale(1.04);}
.inner-content-blocks .custom-block a.venobox > div::after{content:"";position:absolute;left:50%;top:50%;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;background:rgba(0,0,0,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/26px no-repeat;box-shadow:0 2px 8px rgba(0,0,0,.3);transition:background-color .2s,transform .2s;}
.inner-content-blocks .custom-block:hover a.venobox > div::after{background-color:#e62117;transform:scale(1.08);}
.inner-content-blocks .custom-block a.venobox .hover-block{flex:1;}

/* Queries page (/queries): keep the "Ask Your Questions" form visible */
.comment-form:has(form[action$="verification"]){display:block!important;background:#fff;border-radius:14px;box-shadow:var(--seed-shadow);padding:20px 22px 8px;margin:0 0 24px;}
.comment-form form[action$="verification"] p{margin:0 0 14px!important;padding:0!important;width:auto!important;max-width:none!important;float:none!important;}
.comment-form form[action$="verification"] label{display:block!important;position:static!important;left:auto!important;top:auto!important;text-align:left!important;float:none!important;width:auto!important;margin:0 0 6px!important;font-weight:600;font-size:14px;color:var(--seed-ink);}
.comment-form form[action$="verification"] label .required{position:static!important;color:#c62828;margin-left:2px;}
.comment-form form[action$="verification"] input.tb1,.comment-form form[action$="verification"] textarea.tb1{display:block;width:100%!important;max-width:520px;box-sizing:border-box;padding:9px 12px;border:1px solid #d5e0d5;border-radius:8px;background:#fff;font-size:14px;font-family:inherit;}
.comment-form form[action$="verification"] textarea.tb1{max-width:100%!important;min-height:110px;resize:vertical;}
.comment-form form[action$="verification"] input[name="captcha"]{width:100px!important;}
.comment-form form[action$="verification"] input.tb1:focus,.comment-form form[action$="verification"] textarea.tb1:focus{outline:0;border-color:#7cb342;box-shadow:0 0 0 3px rgba(124,179,66,.2);}
.comment-form form[action$="verification"] .submit-button{background:var(--seed-green,#1e6b3f)!important;color:#fff!important;border:0!important;border-radius:999px!important;padding:10px 24px!important;font-weight:700;font-size:14px;cursor:pointer;height:auto!important;}
.comment-form form[action$="verification"] .submit-button:hover{filter:brightness(1.12);}
.comment-form:has(form[action$="verification"]) .split-line{display:none;}

/* Home page: Federal Bank + Mathrubhumi logos in one row (white card, two equal halves) */
.banner:has(> .seed-partner-row){margin:0 0 24px!important;padding:0!important;background:transparent!important;}
.seed-partner-row{display:grid;grid-template-columns:1fr 1fr;align-items:center;background:#fff;border-radius:14px;box-shadow:0 1px 2px rgba(20,50,30,.06),0 6px 18px rgba(20,50,30,.08);overflow:hidden;}
.seed-partner-row .seed-partner-logo{display:flex;align-items:center;justify-content:center;height:96px;padding:0 24px;box-sizing:border-box;}
.seed-partner-row .seed-partner-logo + .seed-partner-logo{border-left:1px solid #e6ece6;}
.seed-partner-row img{display:block;max-height:46px!important;max-width:100%!important;width:auto!important;height:auto!important;object-fit:contain;margin:0!important;}
@media (max-width:600px){.seed-partner-row{grid-template-columns:1fr;}.seed-partner-row .seed-partner-logo{height:80px;}.seed-partner-row .seed-partner-logo + .seed-partner-logo{border-left:0;border-top:1px solid #e6ece6;}}

/* Latest News / Related News now sit inside the right column: no float, full column width */
.main-content-right > .content-panel.seed-side-news{float:none!important;clear:none!important;width:auto!important;}

/* top bar: School Login button in yellow */
.header .weather-report a.seed-login-link{background:#ffc107!important;border-color:#ffc107!important;color:#1b4d2e!important;}
.header .weather-report a.seed-login-link:hover{background:#ffd54f!important;border-color:#ffd54f!important;color:#1b4d2e!important;}

/* Latest Article (right sidebar): article photo under the title */
.seed-latest-article-photo{display:block;margin:10px 0 8px;border-radius:10px;overflow:hidden;background:#e9efe9;aspect-ratio:4/3;}
.seed-latest-article-photo img{display:block;width:100%!important;height:100%!important;object-fit:cover;}

/* News card with no photo: SEED logo on a soft green panel */
.seed-noimg{display:flex!important;align-items:center;justify-content:center;background:linear-gradient(135deg,#eef6ea,#dfeedd)!important;border-radius:12px;aspect-ratio:16/10;overflow:hidden;}
.seed-noimg::before,.seed-noimg::after{display:none!important;}
.seed-noimg a{display:flex;align-items:center;justify-content:center;width:100%;height:100%;}
.seed-noimg img{width:auto!important;height:auto!important;max-width:38%!important;max-height:60%!important;object-fit:contain!important;border:0!important;box-shadow:none!important;}
.main-article-content .article-photo.seed-noimg{max-height:340px;margin:12px 0 18px;}
.main-article-content .article-photo.seed-noimg img{width:200px!important;max-width:45%!important;height:auto!important;max-height:none!important;object-fit:contain!important;}
.article-classic .article-photo.seed-noimg img,.article-big-block .article-photo.seed-noimg img,.article-small-block .article-photo.seed-noimg img{width:150px!important;max-width:45%!important;height:auto!important;max-height:none!important;object-fit:contain!important;}
/* Partners page: cards open in place to show the full description */
.seed-partners .article-classic .article-photo,.seed-partners .article-classic .article-header a{cursor:pointer;}
.seed-partners .article-classic.seed-open .BodyText{-webkit-line-clamp:unset!important;display:block!important;overflow:visible!important;max-height:none!important;}
.seed-partners .article-classic .article-header h3d a{color:#fff!important;border-radius:6px;}

/* Cards: heading, photo, stars, text, button - also for blocks whose text box class is misspelled (article-conctent, article-contecnt, ...) */
.article-classic > [class^="article-con"], .article-big-block > [class^="article-con"], .article-small-block > [class^="article-con"]{order:2;}
