/*
Theme Name: Astra Child
Theme URI: https://mugdhoacademy.com
Description: Mugdho Academy Child Theme
Template: astra
Version: 1.3.0
*/

/* ---------- 0. Always light (stops auto-dark-mode text clashes) ---------- */
:root{color-scheme:light}

/* ---------- 1. Premium headings: brand gradient (posts + ALL pages) ---------- */
body.single-post h1.entry-title,
body.page h1.entry-title,
body.category .page-title{
  color:#16A148 !important;
  font-family:"Cormorant Garamond","Hind Siliguri",serif !important;
  font-weight:700 !important;line-height:1.25 !important;
  font-size:clamp(1.8rem,6vw,3rem) !important;
}
body.single-post h1.entry-title,
body.page h1.entry-title{display:inline-block !important;text-align:left}
body.single-post h1.entry-title{max-width:100%;margin:0 0 14px !important}
body.page h1.entry-title{max-width:calc(100% - 40px);margin:28px 20px 14px !important}
body.single-post h1.entry-title::after,
body.page h1.entry-title::after{
  content:"";display:block;width:100%;height:6px;margin-top:12px;border-radius:3px;
  background:linear-gradient(90deg,#16A148 0%,#1DB954 50%,#11C39F 100%);
}
body.single-post .entry-content > h2,
body.page:not(.elementor-page) .entry-content > h2{
  display:inline-block;max-width:100%;color:#16A148 !important;
  font-family:"Cormorant Garamond","Hind Siliguri",serif !important;
  font-weight:700 !important;line-height:1.35 !important;
}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  body.single-post h1.entry-title,
  body.page h1.entry-title,
  body.single-post .entry-content > h2,
  body.page:not(.elementor-page) .entry-content > h2{
    background:linear-gradient(90deg,#16A148 0%,#1DB954 50%,#11C39F 100%) !important;
    -webkit-background-clip:text !important;background-clip:text !important;
    -webkit-text-fill-color:transparent !important;color:transparent !important;
  }
}
body.single-post .entry-content > h3,
body.single-post .entry-content > h4,
body.page:not(.elementor-page) .entry-content > h3,
body.page:not(.elementor-page) .entry-content > h4{
  color:#102041 !important;
  font-family:"Cormorant Garamond","Hind Siliguri",serif !important;
  font-weight:700 !important;line-height:1.4 !important;
}

/* ---------- 2. Readability guards ---------- */
body.single-post .entry-content > p,
body.single-post .entry-content > ul,
body.single-post .entry-content > ol,
body.single-post .entry-content > blockquote{color:#1F2D26}
.entry-content [class*="reveal"],
.entry-content [class*="fade-in"],
.entry-content [class*="animate-on"]{
  opacity:1 !important;transform:none !important;visibility:visible !important;
}

/* ---------- 3. Category tabs ---------- */
.mdg-cats{margin:0 0 28px}
.mdg-cats-in{display:flex;gap:10px;overflow-x:auto;padding:6px 2px 12px;scrollbar-width:thin}
.mdg-cat{
  position:relative;flex:0 0 auto;display:inline-block;
  background:#FFFFFF;color:#102041 !important;border:1px solid #D6E0D9;
  border-radius:999px;padding:10px 22px 14px;
  font-family:"DM Sans","Hind Siliguri",sans-serif;font-weight:700;font-size:15px;
  text-decoration:none !important;line-height:1.2;
}
.mdg-cat::after{
  content:"";position:absolute;left:18px;right:18px;bottom:7px;height:3px;border-radius:3px;
  background:linear-gradient(90deg,#16A148,#1DB954,#11C39F);
  transform:scaleX(0);transform-origin:right;transition:transform .45s ease;
}
.mdg-cat:hover,.mdg-cat:focus-visible,.mdg-cat:active,.mdg-cat.is-active{color:#16A148 !important}
.mdg-cat:hover::after,.mdg-cat:focus-visible::after,.mdg-cat:active::after,.mdg-cat.is-active::after{
  transform:scaleX(1);transform-origin:left;
}
.mdg-cat:focus-visible{outline:3px solid #1DB954;outline-offset:2px}

/* ---------- 4. Premium post grid (blog page + category pages) ---------- */
body.blog #primary .ast-row,
body.archive.category #primary .ast-row{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)) !important;
  gap:24px !important;margin:0 !important;
}
body.blog #primary .ast-row::before,body.blog #primary .ast-row::after,
body.archive.category #primary .ast-row::before,body.archive.category #primary .ast-row::after{display:none !important}

body.blog #primary article.ast-article-post,
body.archive.category #primary article.ast-article-post{
  position:relative;width:100% !important;max-width:100% !important;flex:none !important;
  margin:0 !important;padding:0 !important;
  background:#FFFFFF;border:1px solid #E1E9E3;border-radius:16px;overflow:hidden;
  box-shadow:0 6px 18px #E6ECE8;
  transition:transform .3s ease,box-shadow .3s ease;
}
body.blog #primary article.ast-article-post:hover,
body.blog #primary article.ast-article-post:focus-within,
body.archive.category #primary article.ast-article-post:hover,
body.archive.category #primary article.ast-article-post:focus-within{
  transform:translateY(-4px);box-shadow:0 14px 28px #D5DED8;
}
body.blog #primary article.ast-article-post::after,
body.archive.category #primary article.ast-article-post::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:4px;
  background:linear-gradient(90deg,#16A148,#1DB954,#11C39F);
  transform:scaleX(0);transform-origin:right;transition:transform .45s ease;
}
body.blog #primary article.ast-article-post:hover::after,
body.blog #primary article.ast-article-post:focus-within::after,
body.archive.category #primary article.ast-article-post:hover::after,
body.archive.category #primary article.ast-article-post:focus-within::after{
  transform:scaleX(1);transform-origin:left;
}
body.blog .ast-article-post .ast-article-inner,
body.archive.category .ast-article-post .ast-article-inner{
  background:transparent !important;box-shadow:none !important;border:0 !important;
  border-radius:0 !important;padding:0 !important;margin:0 !important;
}
body.blog .ast-article-post .post-content,
body.archive.category .ast-article-post .post-content{padding:24px !important}

body.blog .ast-article-post .entry-title,
body.archive.category .ast-article-post .entry-title{font-size:1.3rem !important;line-height:1.4 !important}
body.blog .ast-article-post .entry-title a,
body.archive.category .ast-article-post .entry-title a{
  color:#102041 !important;font-weight:700 !important;
  font-family:"Cormorant Garamond","Hind Siliguri",serif !important;
}
body.blog .ast-article-post .entry-title a:hover,
body.archive.category .ast-article-post .entry-title a:hover{color:#16A148 !important}
body.blog .ast-article-post .cat-links a,
body.archive.category .ast-article-post .cat-links a{
  color:#16A148 !important;font-family:"DM Sans",sans-serif;font-weight:700;
  font-size:12px;letter-spacing:1px;text-transform:uppercase;
}
body.blog .ast-article-post .entry-meta,
body.blog .ast-article-post .entry-meta a,
body.archive.category .ast-article-post .entry-meta,
body.archive.category .ast-article-post .entry-meta a{
  color:#16A148 !important;font-family:"DM Sans",sans-serif;font-size:13px;
}
body.blog .ast-article-post .ast-excerpt-container,
body.blog .ast-article-post .ast-excerpt-container p,
body.archive.category .ast-article-post .ast-excerpt-container,
body.archive.category .ast-article-post .ast-excerpt-container p{
  color:#3E4C45 !important;font-size:15px;line-height:1.7;
}

/* ---------- 5. Thin premium frame around each post ---------- */
body.single-post article.ast-article-single{
  border:1px solid #1DB954 !important;border-radius:18px !important;
  box-shadow:0 0 0 6px #ECF8F0,0 14px 30px #DDE6E0 !important;
  background:#FFFFFF;
}
