/*
Theme Name: ShantiMaya
Theme URI: https://shantimayaacademy.com/
Author: ShantiMaya Development
Description: Lightweight Bengali-first education theme for WordPress.
Version: 0.4.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shantimaya
Tags: education, blog, custom-logo, custom-menu, translation-ready
*/
:root{--green:#168b69;--blue:#0ea5e9;--ink:#15263b;--muted:#64748b;--border:#e5eaf0;--soft:#f5faf8;--radius:16px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:#fff;font-family:'Hind Siliguri',system-ui,sans-serif;line-height:1.7}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--blue);outline-offset:3px}img{max-width:100%;height:auto}.container{width:min(1200px,calc(100% - 36px));margin:auto}.skip-link{position:absolute;top:-100px;left:10px;background:#fff;padding:8px;z-index:20}.skip-link:focus{top:10px}.site-header{border-bottom:1px solid var(--border);background:#fff}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:78px}.brand{font-size:25px;font-weight:800;color:var(--green)}.custom-logo{max-height:56px;width:auto}.site-nav ul{display:flex;gap:25px;align-items:center;list-style:none;padding:0;margin:0}.site-nav a{font-weight:600;color:var(--ink)}.nav-toggle{display:none;background:white;border:1px solid var(--border);border-radius:8px;padding:8px 14px;font:inherit}.notice{background:#eaf8f4;color:#125e49;padding:9px 0;text-align:center;font-size:14px}.hero{background:linear-gradient(120deg,#f0fbf6,#f5fbff);padding:80px 0;text-align:center}.eyebrow{color:var(--green);font-weight:700}.hero h1{font-size:clamp(30px,4.8vw,58px);line-height:1.25;max-width:850px;margin:14px auto}.hero p{font-size:19px;color:var(--muted);max-width:750px;margin:0 auto 24px}.actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.btn{display:inline-block;border:1px solid var(--green);background:var(--green);color:#fff;border-radius:10px;padding:11px 23px;font-weight:700}.btn:hover{color:#fff}.btn-outline{background:#fff;color:var(--green)}.btn-outline:hover{color:var(--green)}.searchbar{max-width:550px;margin:25px auto 0;display:flex;gap:8px}.searchbar input{flex:1;min-width:0;border:1px solid #cbd5e1;padding:13px;border-radius:9px;font:inherit}.section{padding:60px 0}.section.alt{background:#f8fafc}.section-head{text-align:center;margin-bottom:30px}.section-head h2{font-size:clamp(25px,3vw,36px);margin:0}.section-head p{color:var(--muted);margin:5px 0}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:24px;box-shadow:0 5px 20px rgba(15,23,42,.025)}.card h3{margin:8px 0;font-size:21px}.card p{color:var(--muted);margin:4px 0 15px}.card-icon{width:48px;height:48px;background:#e7f8f1;border-radius:12px;display:grid;place-items:center;font-size:23px}.pill{display:inline-block;padding:3px 10px;border-radius:100px;background:#e7f8f1;color:#086347;font-size:13px}.pricing{border:2px solid #bde9d9}.page-main{padding:45px 0;min-height:45vh}.page-main h1{line-height:1.25}.entry-content{max-width:850px}.entry-content img{border-radius:10px}.site-footer{background:#102c35;color:#e2e8f0;padding:42px 0 18px}.site-footer a{color:#d2f7e8}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:25px}.copyright{border-top:1px solid #31505a;margin-top:25px;padding-top:15px;color:#a6c2c6;font-size:14px}.site-footer h3{color:#fff}.post-meta{color:var(--muted);font-size:14px}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}@media(max-width:850px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.nav-toggle{display:block}.site-nav{display:none;position:absolute;top:77px;left:0;right:0;background:#fff;z-index:5;border-bottom:1px solid var(--border);padding:16px}.site-nav.open{display:block}.site-nav ul{flex-direction:column;align-items:flex-start}.header-inner{position:relative}}@media(max-width:560px){.hero{padding:55px 0}.hero p{font-size:16px}.grid,.grid.three,.footer-grid{grid-template-columns:1fr}.section{padding:42px 0}.card{padding:20px}.searchbar{flex-direction:column}}

/* Approved UI foundation: reusable interior-page layout */
.sm-template{padding:1.5rem 0 5rem;background:#f8fcfa;min-height:60vh}
.sm-breadcrumb{font-size:.9rem;color:#526576;margin:0 0 1.5rem}
.sm-breadcrumb a{color:#087e57;text-decoration:none}
.sm-template-hero{padding:clamp(2rem,5vw,4rem);background:linear-gradient(120deg,#e8fff3,#f4fcff);border-radius:1.25rem;margin-bottom:2rem}
.sm-kicker{display:inline-block;padding:.3rem .8rem;border-radius:2rem;background:#c9f5d8;color:#075b40;font-weight:700}
.sm-template-hero h1{margin:.7rem 0;font-size:clamp(2rem,4vw,3.25rem);line-height:1.25;color:#0a4936}
.sm-template-hero p{margin:0;color:#435769}
.sm-template-content{background:#fff;border:1px solid #e4eee9;border-radius:1rem;padding:clamp(1.25rem,3vw,2.5rem);min-height:12rem}
.sm-template-content:empty{display:none}
.sm-template a:focus-visible{outline:3px solid #007d59;outline-offset:3px}
@media(max-width:600px){.sm-template{padding:1rem 0 3rem}.sm-template-hero{border-radius:.85rem}}

/* Phase 2: approved homepage, header and footer */
:root{--green:#087e57;--dark-green:#056744;--ink:#10213b;--muted:#637186;--soft:#f0fbf6;--border:#e5eeea;--radius:15px}
body{font-family:'Hind Siliguri',system-ui,sans-serif;color:var(--ink)}.container{width:min(1390px,calc(100% - 72px))}
.site-header{position:relative;z-index:20;box-shadow:0 1px 8px #15382b0a}.header-inner{min-height:70px;gap:20px}.site-identity{display:flex;align-items:center;gap:11px;flex-shrink:0;text-decoration:none}.site-identity:hover{text-decoration:none}.brand-symbol{font-size:39px;color:#087e57;line-height:1}.brand-copy{display:flex;flex-direction:column;line-height:1.2}.brand-copy strong{font-size:24px;color:#078056;font-weight:700}.brand-copy small{font-size:12px;color:#23745d;font-weight:600}.site-identity .custom-logo{max-height:44px;width:auto}.site-nav{flex:1}.site-nav ul{gap:clamp(10px,1.45vw,22px);justify-content:center}.site-nav a{font-size:14px;font-weight:600;white-space:nowrap}.site-nav a:hover,.site-nav .current-menu-item>a{color:var(--green);text-decoration:none}.header-actions{display:flex;align-items:center;gap:10px}.header-search{background:#f4faf7;padding:0 12px;border-radius:10px;font-size:29px;line-height:41px;color:#163e35}.btn{background:var(--green);border-color:var(--green);border-radius:9px;text-decoration:none;transition:background .15s,transform .15s}.btn:hover{background:#056a49;text-decoration:none}.btn-outline{background:#fff;color:var(--green)}.btn-outline:hover{background:#e8f7f0;color:var(--green)}.btn-small{font-size:14px;padding:9px 16px;white-space:nowrap}
.hero{padding:0;text-align:left;background:linear-gradient(100deg,#f9fefb 0%,#e9faef 64%,#d8f5e4 100%);overflow:hidden}.hero-grid{display:grid;grid-template-columns:1.07fr .93fr;align-items:center;min-height:415px;gap:30px}.hero-copy{padding:42px 0 34px}.eyebrow{display:inline-flex;align-items:center;gap:7px;background:#d9f4e6;padding:5px 15px;border-radius:30px;color:#087e57;font-size:14px}.hero h1{font-size:clamp(35px,4.4vw,64px);line-height:1.21;margin:18px 0 16px;max-width:760px;font-weight:700;letter-spacing:-.5px}.hero h1 span{color:#087e57}.hero p{margin:0 0 23px;color:#435464;font-size:17px;line-height:1.85;max-width:740px}.hero-search{display:flex;align-items:center;background:#fff;border:1px solid #cfe6db;border-radius:12px;padding:5px 5px 5px 14px;max-width:665px;box-shadow:0 4px 20px #13563d08}.hero-search>span{font-size:30px;color:#6b7887}.hero-search input{width:100%;min-width:0;border:0;outline:0;padding:12px;font:inherit;color:#243c4c}.hero-search button{font:inherit;font-size:28px;line-height:1;min-width:56px;min-height:48px;background:#007d58;color:#fff;border:0;border-radius:9px;cursor:pointer}.popular-search{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:13px;font-size:13px}.popular-search strong{font-weight:600}.popular-search a{background:#e1f4e9;padding:3px 10px;border-radius:30px;color:#2d6652}.hero-visual{height:415px;position:relative;display:flex;justify-content:center;align-items:end}.hero-visual img{width:auto;height:100%;max-width:100%;object-fit:contain;object-position:center bottom;mix-blend-mode:multiply}.hero-quote{position:absolute;top:90px;right:0;background:#fff;border-radius:18px;box-shadow:0 15px 40px #0b4b3020;padding:17px 20px;max-width:180px;font-weight:700;line-height:1.6;color:#1d4235}
.class-section{padding:17px 0 20px}.class-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.class-card{display:flex;align-items:center;gap:12px;min-height:154px;border-radius:15px;overflow:hidden;padding:16px;background:#eaf9ef}.class-card.ssc{background:#e6f4ff}.class-card.hsc{background:#fff1e4}.class-card.english{background:#f2eaff}.class-avatar{font-size:65px;line-height:1.2;min-width:80px;text-align:center}.class-info h2{font-size:27px;line-height:1.2;margin:0 0 5px;color:#086a4d}.class-card.ssc h2,.class-card.hsc h2{color:#174778}.class-card.english h2{color:#5d3192}.class-info p{font-size:13px;color:#5e6570;line-height:1.5;margin:0 0 13px}.class-cta{display:inline-block;border-radius:25px;padding:7px 16px;background:#087e57;color:#fff;font-size:13px;font-weight:700}.class-cta:hover{color:#fff;background:#066344;text-decoration:none}
.feature-strip{background:linear-gradient(90deg,#effbf5,#f4fcf9);padding:18px 0}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr)}.feature-grid>div{display:flex;gap:14px;align-items:center;padding:0 25px;border-right:1px solid #cbe7d9}.feature-grid>div:last-child{border-right:0}.feature-grid span{display:grid;place-items:center;background:#d8f3e4;color:#067c54;width:49px;height:49px;flex-shrink:0;border-radius:50%;font-size:26px;font-weight:700}.feature-grid p{margin:0;line-height:1.5}.feature-grid strong{display:block;font-size:16px}.feature-grid small{display:block;color:#78848d;font-size:12px}
.section{padding:48px 0}.section-muted{background:#f6faf9}.section-title{display:flex;align-items:end;justify-content:space-between;margin-bottom:22px;gap:15px}.section-title h2{font-size:29px;line-height:1.3;margin:0 0 4px;padding-left:19px;position:relative}.section-title h2:before{content:'';position:absolute;left:0;top:5px;width:6px;height:26px;border-radius:5px;background:#087e57}.section-title p{margin:0;color:#6e7887}.section-title>a{font-weight:700;white-space:nowrap}.subject-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px}.subject-card{border:1px solid #e7ecea;border-radius:13px;padding:18px;background:#fff;box-shadow:0 4px 14px #183b2a07}.subject-icon{display:grid;place-items:center;background:var(--subject-color);color:white;width:42px;height:42px;border-radius:9px;font-weight:700;font-size:19px;margin-bottom:11px}.subject-card h3{font-size:17px;line-height:1.4;margin:0 0 7px}.subject-card p{font-size:12px;color:#77838c;margin:0 0 9px}.subject-card a{font-size:12px;font-weight:700}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.card{box-shadow:0 6px 22px #123a2809}.exam-icon{display:grid;place-items:center;background:#e5f8ee;color:#007d55;border-radius:12px;font-size:25px;width:49px;height:49px}.exam-card a{font-weight:700}.plan{display:flex;flex-direction:column;gap:6px}.plan h3{margin:0}.plan-price{font-size:32px;font-weight:700;color:#10213b}.plan-price small{font-size:15px;font-weight:500;color:#687789}.plan ul{padding-left:20px;margin:5px 0 20px;line-height:2}.plan .btn{margin-top:auto;text-align:center}.plan-featured{border:2px solid #22ae7b;background:#f8fffb}.pill{align-self:start}.pill-purple{background:#f0e8ff;color:#6b3eb4}.btn-purple{background:#7652dc;border-color:#7652dc}.btn-purple:hover{background:#6042b5}.blog-card{padding:0;overflow:hidden}.blog-card img{width:100%;height:170px;object-fit:cover}.blog-body{padding:18px}.blog-body h3{font-size:19px}.blog-body h3 a{color:#14243b}.blog-body small{color:#7b8895}
.site-footer{background:#10352e;padding:55px 0 22px}.footer-grid{grid-template-columns:2fr 1fr 1fr 1.5fr;gap:45px}.footer-grid h3{font-size:18px;margin:0 0 18px}.footer-grid a:not(.footer-contact){display:block;margin-bottom:8px}.footer-grid p{max-width:340px;color:#c2dfd3}.footer-logo{font-size:27px;font-weight:700;color:#fff}.footer-contact{display:inline-block;border:1px solid #6eb89a;padding:9px 15px;border-radius:9px}.copyright{margin-top:40px}
@media(max-width:1250px){.container{width:min(1200px,calc(100% - 40px))}.header-inner{gap:10px}.site-nav ul{gap:12px}.site-nav a{font-size:12px}.header-actions{gap:6px}.btn-small{padding:8px 11px}.hero-quote{display:none}.class-avatar{font-size:47px;min-width:55px}.class-info h2{font-size:23px}.feature-grid>div{padding:0 12px}.subject-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.header-inner{min-height:68px}.nav-toggle{display:block;margin-left:auto;order:3}.site-nav{display:none;position:absolute;top:68px;left:0;right:0;background:#fff;padding:15px 20px;box-shadow:0 15px 20px #143e2920}.site-nav.open{display:block}.site-nav ul{flex-direction:column;align-items:stretch;gap:0}.site-nav li a{display:block;padding:9px}.header-actions{margin-left:auto}.hero-grid{grid-template-columns:1fr 0.75fr;gap:10px}.hero h1{font-size:39px}.hero p{font-size:15px}.hero-visual{height:345px}.class-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.feature-grid{grid-template-columns:repeat(2,1fr);gap:16px}.feature-grid>div:nth-child(2){border:0}.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.container{width:calc(100% - 30px)}.site-identity .brand-copy strong{font-size:19px}.brand-copy small{font-size:10px}.brand-symbol{font-size:28px}.header-actions{display:none}.hero-grid{display:flex;flex-direction:column;gap:0}.hero-copy{padding:32px 0 10px}.hero h1{font-size:35px}.hero p{font-size:15px}.hero-visual{height:270px;width:100%;overflow:hidden}.hero-visual img{height:100%}.class-grid{grid-template-columns:1fr 1fr;gap:9px}.class-card{padding:10px;min-height:130px;flex-direction:column;text-align:center;gap:2px}.class-avatar{font-size:39px}.class-info h2{font-size:19px}.class-info p{font-size:11px;margin-bottom:7px}.class-cta{padding:5px 10px;font-size:11px}.feature-grid{gap:12px}.feature-grid>div{padding:0;gap:8px}.feature-grid span{width:37px;height:37px;font-size:20px}.feature-grid strong{font-size:12px}.feature-grid small{font-size:10px}.section{padding:35px 0}.section-title h2{font-size:23px}.section-title p{font-size:13px}.subject-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.subject-card{padding:13px}.grid.three{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr;gap:20px}.hero-search input{font-size:12px}.hero-search button{min-width:44px}.popular-search{font-size:11px}}

/* Phase 3: consolidated homepage adjustments; scoped to avoid changing interior templates */
.site-header .container{width:min(1440px,calc(100% - 36px))}
.header-inner{min-height:76px}.site-nav ul{gap:clamp(8px,1vw,17px)}.site-nav a{font-size:clamp(11px,.95vw,14px)}
.brand-symbol{font-size:40px}.hero-grid{min-height:480px;grid-template-columns:1.08fr .92fr}.hero-copy{padding:56px 0}.hero h1{font-size:clamp(38px,4.4vw,65px)}.hero-visual{height:470px}.hero-visual img{border-radius:0 0 16px 16px}
.hero-quote{top:115px;right:4px}.class-section{padding:24px 0}.class-card{min-height:165px}.subject-card{transition:transform .18s,box-shadow .18s}.subject-card:hover,.class-card:hover{transform:translateY(-2px);box-shadow:0 12px 25px #0d684014}
.sm-resource-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.sm-resource-card{display:flex;flex-direction:column;gap:7px;border:1px solid #e2ede7;border-radius:15px;padding:22px;min-height:205px;background:#fff;color:#16243b;transition:transform .15s}.sm-resource-card:hover{transform:translateY(-2px);text-decoration:none}.sm-resource-card.rose{background:#fff3f5}.sm-resource-card.blue{background:#eef6ff}.sm-resource-card.mint{background:#edfaf5}.sm-resource-card.violet{background:#f5f1ff}.sm-resource-icon{font-size:31px}.sm-resource-category{font-size:13px;color:#0b805c}.sm-resource-card strong{font-size:20px}.sm-resource-card small{color:#596c7b}.sm-resource-link{margin-top:auto;font-size:13px;font-weight:700;color:#087e57}
.sm-bottom-cta{background:linear-gradient(110deg,#d9f7e7,#f2fbf6);padding:48px 0}.sm-cta-inner{display:flex;align-items:center;justify-content:space-between;gap:22px}.sm-cta-inner h2{font-size:clamp(25px,3vw,37px);margin:10px 0 0}.sm-cta-inner p{margin:0;color:#546b65}.sm-faq-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sm-faq details{border:1px solid #e1eae7;border-radius:10px;padding:15px 18px;background:#fff}.sm-faq summary{cursor:pointer;font-weight:600}.sm-faq details p{margin:8px 0 0;color:#566b73}
.site-footer .footer-grid{grid-template-columns:2fr 1fr 1fr 1.4fr}.site-footer .footer-grid h3{margin:0 0 12px}
@media(max-width:1100px){.site-nav a{font-size:11px}.header-actions .btn-small{padding:7px 9px}.header-inner{gap:9px}.sm-resource-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.site-nav{top:76px}.hero-grid{min-height:0}.hero-visual{height:340px}.hero-copy{padding:35px 0}.hero h1{font-size:39px}}
@media(max-width:650px){.hero-grid{display:flex}.hero-visual{height:280px}.hero h1{font-size:34px}.sm-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sm-resource-card{padding:14px;min-height:190px}.sm-resource-card strong{font-size:16px}.sm-cta-inner{align-items:flex-start;flex-direction:column}.sm-faq-grid{grid-template-columns:1fr}.site-footer .footer-grid{grid-template-columns:1fr}.header-inner{min-height:68px}.site-nav{top:68px}}
@media(max-width:380px){.sm-resource-grid{grid-template-columns:1fr}.class-grid{grid-template-columns:1fr 1fr}.hero h1{font-size:30px}}

/* Phase 4: education content and account templates */
.sm-dynamic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:28px 0}.sm-dynamic-card{background:#fff;border:1px solid #e2ebe7;border-radius:16px;padding:20px;box-shadow:0 4px 15px rgba(13,69,51,.04)}.sm-dynamic-card img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:12px}.sm-dynamic-card h3{font-size:20px;line-height:1.35;margin:14px 0 8px}.sm-dynamic-card p{color:#657786;margin:0 0 14px}.sm-more{font-weight:700}.sm-empty{background:#fff;border:1px dashed #b9d8cb;border-radius:12px;padding:20px}.sm-dashboard-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:25px 0}.sm-dashboard-stats>div{background:#fff;border:1px solid #dcece5;border-radius:14px;padding:24px}.sm-dashboard-stats strong{font-size:32px;color:#087c55;display:block}.sm-dashboard-stats span{color:#526576}.sm-template-content form input:not([type=checkbox]){max-width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:8px}.sm-template-content form input[type=submit]{background:#087e57;color:#fff;border:0;cursor:pointer;padding:10px 24px}@media(max-width:800px){.sm-dynamic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.sm-dynamic-grid,.sm-dashboard-stats{grid-template-columns:1fr}}
