/*
Theme Name:   PCMSD College
Theme URI:    https://pcmsd.ac.in/
Author:       Parbraham Sharma
Description:  Theme for Prem Chand Markanda S.D. College for Women, Jalandhar. Own custom fields (no ACF Pro), own post types (no CPT UI), coded homepage with Sections & Order, branded dashboard and built-in security.
Version:      2.3.3
Requires at least: 6.0
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  pcmsd
*/

/* ========== Fonts (inside the theme – fast, no Google request) ========== */
@font-face{font-family:"Marcellus";font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/marcellus-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0100-024F,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+20B9,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:200 900;font-display:swap;src:url(assets/fonts/source-sans-3-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0100-024F,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+20B9,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ========== Design tokens ========== */
:root{
  --m:#7A1518;--md:#5C0F12;--mx:#3C080C;--g:#B8862F;--gl:#D9B062;
  --ink:#1E1B2E;--body:#4B4757;--mute:#8C8178;--line:#E8E1D7;--stone:#F6F3EE;
  --ff-h:"Marcellus",Georgia,serif;--ff:"Source Sans 3","Source Sans Pro","Segoe UI",Roboto,Arial,sans-serif;
  --r:20px;--shadow:0 0 0 1px var(--line),0 22px 44px -32px rgba(30,15,20,.5);
}

/* ========== Base ========== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
html,body{max-width:100%;overflow-x:clip}
body{margin:0;background:#fff;color:var(--body);font-family:var(--ff);font-size:17px;line-height:1.7;-webkit-font-smoothing:antialiased}
img,svg,video,iframe{max-width:100%}
img{height:auto}
a{color:var(--m)}
a:hover{color:var(--md)}
h1,h2,h3,h4,h5,h6{font-family:var(--ff-h);font-weight:400;color:var(--ink);line-height:1.2;margin:0 0 .5em}
p{margin:0 0 1em}
button,input,select,textarea{font:inherit}
:focus-visible{outline:2px solid var(--g);outline-offset:2px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;padding:0;margin:-1px}
.pcmt-skip{position:absolute;left:-9999px;top:8px;z-index:100000;padding:10px 16px;border-radius:8px;background:#fff;color:var(--m);font-weight:700}
.pcmt-skip:focus{left:12px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* ========== Layout helpers ========== */
.pcmt-wrap{max-width:1240px;margin:0 auto;padding:0 20px}
.pcmt-sec{padding:56px 0}
.pcmt-eyebrow{display:flex;align-items:center;gap:12px;margin:0 0 12px;font-size:14px;font-weight:700;letter-spacing:2.6px;text-transform:uppercase;color:var(--m)}
.pcmt-eyebrow::before{content:"";width:34px;height:2px;background:linear-gradient(90deg,var(--m),var(--g))}
.pcmt-h1{font-size:clamp(32px,4.4vw,52px);line-height:1.12;margin:0 0 14px}
.pcmt-h2{position:relative;font-size:clamp(26px,2.8vw,38px);margin:0 0 24px;padding-bottom:14px}
.pcmt-h2::after{content:"";position:absolute;left:0;bottom:0;width:54px;height:3px;border-radius:3px;background:linear-gradient(90deg,var(--m),var(--g))}
.pcmt-lead{max-width:64ch;font-size:18px;line-height:1.65}

/* ========== Homepage ========== */
@media (min-width:1025px){.pcmt-hide-d{display:none!important}}
@media (min-width:641px) and (max-width:1024px){.pcmt-hide-t{display:none!important}}
@media (max-width:640px){.pcmt-hide-m{display:none!important}}
.pcmt-home .pcmt-sec{padding:0}
.pcmt-home>.pcmt-sec{display:block}
.pcmt-campus{padding:64px 0;background:var(--stone)}

/* ========== Page hero (normal pages, posts, archives, search, 404) ========== */
.pcmt-hero{position:relative;overflow:hidden;background:var(--md);color:rgba(255,255,255,.88)}
.pcmt-hero-bg{position:absolute;inset:0;background:url("https://pcmsd.ac.in/wp-content/uploads/2023/06/DSC_39592-1.png") center/cover no-repeat;opacity:.2}
.pcmt-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(60,8,12,.96),rgba(92,15,18,.8) 55%,rgba(122,21,24,.6)),radial-gradient(rgba(255,255,255,.06) 1px,transparent 1px);background-size:auto,16px 16px;pointer-events:none}
.pcmt-hero>.pcmt-wrap{position:relative;z-index:1;padding-top:38px;padding-bottom:56px}
.pcmt-hero .pcmt-eyebrow{color:var(--gl)}.pcmt-hero .pcmt-eyebrow::before{background:linear-gradient(90deg,var(--gl),transparent)}
.pcmt-hero .pcmt-h1{color:#fff;max-width:22ch}
.pcmt-hero .pcmt-lead,.pcmt-hero .pcmt-lead p{color:rgba(255,255,255,.88)}
.pcmt-crumb{margin:0 0 22px;font-size:14px;color:rgba(255,255,255,.62)}
.pcmt-crumb a{color:rgba(255,255,255,.85);text-decoration:none}.pcmt-crumb a:hover{color:var(--gl)}

/* ========== Content (the editor) ========== */
.pcmt-prose{max-width:860px}
.pcmt-prose>*:first-child{margin-top:0}
.pcmt-prose h2{font-size:30px;margin:34px 0 14px}.pcmt-prose h3{font-size:24px;margin:28px 0 12px}
.pcmt-prose ul,.pcmt-prose ol{padding-left:22px;margin:0 0 18px}
.pcmt-prose li{margin:0 0 6px}
.pcmt-prose blockquote{margin:22px 0;padding:16px 22px;border-left:3px solid var(--g);border-radius:0 14px 14px 0;background:var(--stone);font-family:var(--ff-h);font-size:20px;color:var(--ink)}
.pcmt-prose img{border-radius:14px}
.pcmt-prose a{text-underline-offset:3px;text-decoration-color:rgba(184,134,47,.6)}
.pcmt-table{overflow-x:auto;margin:0 0 18px;border-radius:14px;box-shadow:0 0 0 1px var(--line)}
.pcmt-prose table{width:100%;border-collapse:collapse;font-size:15.5px;background:#fff}
.pcmt-prose th{background:var(--md);color:#fff;text-align:left;padding:11px 14px;font-weight:600}
.pcmt-prose td{padding:10px 14px;border-top:1px solid var(--line);vertical-align:top}
.pcmt-prose tr:nth-child(even) td{background:#FBF8F4}
.pcmt-feat{margin:0 0 26px}.pcmt-feat img{width:100%;border-radius:18px}
.pcmt-back{margin:34px 0 0;padding-top:18px;border-top:1px solid var(--line)}.pcmt-back a{font-weight:700;text-decoration:none}
.alignleft{float:left;margin:0 22px 14px 0}.alignright{float:right;margin:0 0 14px 22px}.aligncenter{display:block;margin-left:auto;margin-right:auto}
.wp-caption{max-width:100%}.wp-caption-text,figcaption{font-size:14px;color:var(--mute);margin-top:6px}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}.gallery img{border-radius:12px}

/* ========== Lists (archives, search) ========== */
.pcmt-list{margin:0;padding:0;list-style:none;display:grid;gap:14px}
.pcmt-item a{display:flex;gap:18px;align-items:center;padding:16px;border-radius:18px;background:#fff;box-shadow:var(--shadow);text-decoration:none;color:var(--body);transition:transform .3s,box-shadow .3s}
.pcmt-item a:hover{transform:translateY(-3px);box-shadow:0 0 0 1px rgba(184,134,47,.5),0 26px 46px -30px rgba(122,21,24,.5)}
.pcmt-thumb{flex:none;width:150px;aspect-ratio:4/3;border-radius:12px;overflow:hidden}.pcmt-thumb img{width:100%;height:100%;object-fit:cover}
.pcmt-item-body{display:flex;flex-direction:column;gap:4px}
.pcmt-item-body small{font-size:13px;font-weight:600;color:var(--mute)}
.pcmt-item-body b{font-family:var(--ff-h);font-weight:400;font-size:21px;color:var(--ink);line-height:1.3}
.pcmt-pages{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:34px 0 0}
.pcmt-pages .page-numbers{min-width:40px;height:40px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:#fff;box-shadow:0 0 0 1px var(--line);color:var(--ink);font-weight:600;text-decoration:none}
.pcmt-pages .current{background:var(--m);color:#fff;box-shadow:none}
.pcmt-empty{padding:24px;border-radius:16px;background:var(--stone)}
.pcmt-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:24px 0 0;padding:0;list-style:none}
.pcmt-tiles a{display:block;padding:20px;border-radius:18px;background:#fff;box-shadow:var(--shadow);text-decoration:none;color:var(--ink)}
.pcmt-tiles b{display:block;font-family:var(--ff-h);font-weight:400;font-size:21px}.pcmt-tiles span{font-size:14.5px;color:var(--mute)}

/* ========== Search form ========== */
.pcmt-search{display:flex;gap:8px;max-width:620px}
.pcmt-search input{flex:1;min-width:0;padding:12px 18px;border-radius:999px;border:1px solid #D9CFC3;background:#fff}
.pcmt-search input:focus{outline:none;border-color:var(--g);box-shadow:0 0 0 3px rgba(184,134,47,.2)}
.pcmt-search button{padding:12px 22px;border:0;border-radius:999px;background:var(--m);color:#fff;font-weight:700;cursor:pointer}
.pcmt-search button:hover{background:var(--md)}
.pcmt-searchbar{margin:0 0 24px}

/* ========== Elementor pages (until they are converted) ========== */
.pcmt-elementor{display:block}

/* ========== Small footer (only if the PCM footer module is missing) ========== */
.pcmt-mini-foot{padding:26px 0;background:var(--mx);color:rgba(255,255,255,.75);font-size:14px}

@media (max-width:700px){
  body{font-size:16px}
  .pcmt-sec{padding:42px 0}
  .pcmt-item a{flex-direction:column;align-items:flex-start}
  .pcmt-thumb{width:100%}
  .alignleft,.alignright{float:none;margin:0 0 14px}
}

/* ========== Smooth interactions everywhere ========== */
a,button,.button,input[type=submit]{transition:color .3s ease,background-color .3s ease,border-color .3s ease,box-shadow .35s ease,transform .35s cubic-bezier(.16,1,.3,1)}
