/*
Theme Name: NCHMCT JEE
Description: Matches the nchmctjee.com website: crimson brand colour, Playfair Display headings, DM Sans text.
Version: 1.0
Author: NCHMCT JEE
Text Domain: nchmct-jee
*/
:root{--brand-50:#FDF2F7;--brand-100:#FCE7F0;--brand-200:#F8C9DE;--brand-300:#F09FC1;--brand-500:#C93670;--brand-600:#AA004F;--brand-700:#8A0040;--ink:#0E0D18;--g-100:#f3f4f6;--g-200:#e5e7eb;--g-400:#9ca3af;--g-500:#6b7280;--g-600:#4b5563;--g-700:#374151;--g-900:#111827}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:'DM Sans',ui-sans-serif,system-ui,sans-serif;color:var(--g-900);background:#fff;line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto}
a{color:var(--brand-600);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:80rem;margin:0 auto;padding:0 1rem}
@media(min-width:640px){.wrap{padding:0 1.5rem}}
@media(min-width:1024px){.wrap{padding:0 2rem}}
.narrow{max-width:48rem;margin:0 auto;padding:0 1rem}
h1,h2,h3,h4{color:var(--ink);line-height:1.2}

/* header */
.site-header{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.9);backdrop-filter:blur(8px);border-bottom:1px solid var(--g-100)}
.admin-bar .site-header{top:32px}
.site-header .bar{display:flex;align-items:center;justify-content:space-between;height:4rem}
.brand{display:flex;align-items:center;gap:.5rem;font-weight:800;font-size:1.125rem;color:var(--g-900)}
.brand:hover{text-decoration:none}
.brand img{width:2rem;height:2rem;border-radius:.5rem}
.main-nav{display:none;align-items:center;gap:2rem;font-size:.875rem;font-weight:500;white-space:nowrap}
.main-nav a{color:var(--g-600)}
.main-nav a:hover,.main-nav a.current{color:var(--brand-600);text-decoration:none}
@media(min-width:1280px){.main-nav{display:flex}.menu-mobile{display:none}}
.actions{display:flex;align-items:center;gap:.75rem}
.link-plain{padding:.5rem 1rem;font-size:.875rem;font-weight:500;color:var(--g-700)}
.link-plain:hover{color:var(--brand-600);text-decoration:none}
.btn{display:inline-block;padding:.5rem 1rem;font-size:.875rem;font-weight:600;color:#fff!important;background:var(--brand-600);border-radius:.375rem;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.btn:hover{background:var(--brand-700);text-decoration:none}
.menu-mobile{border-top:1px solid var(--g-100);font-size:.875rem}
.menu-mobile summary{padding:.625rem 0;font-weight:500;color:var(--g-700);cursor:pointer;list-style:none}
.menu-mobile summary::-webkit-details-marker{display:none}
.menu-mobile .links{display:flex;gap:1.5rem;padding-bottom:.75rem;font-weight:500}
.menu-mobile .links a{color:var(--g-700)}
@media(max-width:500px){.actions .link-plain{display:none}}

/* hero */
.hero{padding:4rem 0;text-align:center;background:linear-gradient(to bottom,var(--brand-50),#fff 50%,#fff)}
.hero h1{margin:0;font-size:2.25rem;font-family:'Playfair Display',Georgia,serif;font-weight:800}
.hero p{max-width:42rem;margin:1rem auto 0;color:var(--g-600);font-size:1.125rem}
.hero .crumbs{margin-bottom:1rem;font-size:.875rem;color:var(--g-500)}
.hero .crumbs a{color:var(--g-500)}
.hero .crumbs a:hover{color:var(--brand-600)}
.hero .meta{margin-top:1rem;font-size:.875rem;color:var(--g-500)}
@media(min-width:640px){.hero h1{font-size:2.75rem}}

/* cards */
.section{padding:3rem 0;background:#fff}
.grid{display:grid;gap:1.5rem;grid-template-columns:1fr}
@media(min-width:640px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.grid{grid-template-columns:repeat(3,1fr)}}
.card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--g-200);border-radius:.75rem;overflow:hidden;transition:box-shadow .2s,transform .2s}
.card:hover{box-shadow:0 10px 25px rgba(0,0,0,.08);transform:translateY(-2px)}
.card .thumb{display:block;aspect-ratio:16/9;background:var(--brand-50);object-fit:cover;width:100%}
.card .body{padding:1.5rem;display:flex;flex-direction:column;flex:1}
.card .tag{align-self:flex-start;padding:.125rem .625rem;font-size:.75rem;font-weight:600;color:var(--brand-700);background:var(--brand-100);border-radius:999px}
.card h2{margin:.75rem 0 0;font-size:1.125rem;font-weight:600}
.card h2 a{color:var(--g-900)}
.card h2 a:hover{color:var(--brand-700);text-decoration:none}
.card p{margin:.5rem 0 0;font-size:.875rem;color:var(--g-500)}
.card .more{margin-top:auto;padding-top:1rem;font-size:.875rem;font-weight:600;color:var(--brand-600)}
.card .date{margin-top:.75rem;font-size:.75rem;color:var(--g-400)}
.empty{padding:2.5rem;text-align:center;color:var(--g-500);border:1px solid var(--g-200);border-radius:.75rem}
.pagination{display:flex;gap:.5rem;justify-content:center;margin-top:2.5rem}
.pagination .page-numbers{padding:.5rem .875rem;font-size:.875rem;font-weight:600;color:var(--g-700);border:1px solid var(--g-200);border-radius:.375rem}
.pagination .page-numbers.current,.pagination .page-numbers:hover{color:#fff;background:var(--brand-600);border-color:var(--brand-600);text-decoration:none}

/* article */
.prose{max-width:48rem;margin:0 auto;color:var(--g-700);font-size:1.0625rem}
.prose h2,.prose h3,.prose h4{font-family:'Playfair Display',Georgia,serif;font-weight:800;margin:2rem 0 .75rem}
.prose h2{font-size:1.75rem}
.prose h3{font-size:1.375rem}
.prose a{font-weight:600}
.prose strong{color:var(--ink)}
.prose ul,.prose ol{padding-left:1.5rem}
.prose li::marker{color:var(--brand-300)}
.prose blockquote{margin:1.5rem 0;padding:.25rem 1.25rem;border-left:4px solid var(--brand-300);background:var(--brand-50);color:var(--g-700)}
.prose img{border-radius:.5rem}
.prose table{width:100%;border-collapse:collapse;font-size:.9375rem}
.prose th,.prose td{padding:.5rem .75rem;border:1px solid var(--g-200);text-align:left}
.prose th{background:var(--brand-50)}
.prose pre{overflow:auto;padding:1rem;background:var(--ink);color:#fff;border-radius:.5rem}
.cta{max-width:48rem;margin:3rem auto 0;padding:1.5rem;text-align:center;background:var(--brand-50);border:1px solid var(--brand-200);border-radius:.75rem}
.cta h3{margin:0 0 .5rem;font-family:'Playfair Display',Georgia,serif;font-weight:800}
.cta p{margin:0 0 1rem;color:var(--g-600)}
.post-nav{max-width:48rem;margin:2rem auto 0;display:flex;justify-content:space-between;gap:1rem;font-size:.875rem;font-weight:600}
.search-form{display:flex;gap:.5rem;max-width:28rem;margin:1.5rem auto 0}
.search-form input[type=search]{flex:1;padding:.5rem .75rem;border:1px solid var(--g-200);border-radius:.375rem;font:inherit}
.search-form button{padding:.5rem 1rem;font:inherit;font-weight:600;color:#fff;background:var(--brand-600);border:0;border-radius:.375rem;cursor:pointer}
.comments{max-width:48rem;margin:3rem auto 0}

/* footer */
.site-footer{padding:2.5rem 0;background:var(--ink);color:var(--g-400);font-size:.875rem}
.site-footer .row{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:1rem}
@media(min-width:640px){.site-footer .row{flex-direction:row}}
.site-footer .fbrand{display:flex;align-items:center;gap:.5rem;font-weight:700;color:#fff}
.site-footer .fbrand img{width:1.75rem;height:1.75rem;border-radius:.375rem}
.site-footer p{margin:0}
.site-footer nav{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.5rem}
.site-footer a{color:var(--g-400)}
.site-footer a:hover{color:#fff;text-decoration:none}
.screen-reader-text{position:absolute;left:-9999px}
.wp-caption{max-width:100%}
