/*
Theme Name: Shaswat Career Institute — Professional
Theme URI: https://groyaatech.com/software-company-in-ayodhya
Author: Groyaa Technology
Author URI: https://groyaatech.com/software-company-in-ayodhya
Description: A polished, corporate-style theme for Shaswat Career Institute, Ayodhya, featuring a fully editable homepage slider, Customizer-driven institute details, a Courses custom post type, and a working enquiry form.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shaswat
Tags: education, custom-colors, custom-logo, custom-menu, threaded-comments, translation-ready, one-column, footer-widgets, featured-images
*/

/* ============================================================
   SHASWAT CAREER INSTITUTE — PROFESSIONAL design system
   Palette: deep navy / teal / gold accent / warm paper
   Display: Poppins · Body: Inter
   Signature motif: a gold rule under headings, sharp geometry,
   a diagonal-cut hero, and a full homepage slider.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --navy:        #0B2545;
  --navy-deep:   #071A33;
  --teal:        #0F7173;
  --teal-deep:   #0B5A5B;
  --gold:        #C9A227;
  --gold-deep:   #A5821A;
  --paper:       #FAFAF8;
  --paper-dim:   #F1EFE8;
  --card:        #FFFFFF;
  --ink:         #16233B;
  --ink-soft:    #4C5A72;
  --line:        rgba(11,37,69,0.12);
  --line-soft:   rgba(11,37,69,0.07);
  --shadow:      0 2px 4px rgba(11,37,69,0.06), 0 14px 34px rgba(11,37,69,0.09);
  --shadow-sm:   0 1px 2px rgba(11,37,69,0.08);

  --display: 'Poppins', sans-serif;
  --body: 'Inter', sans-serif;

  --maxw: 1200px;
  --radius: 6px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--body); font-size:16px; line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--display); font-weight:700; margin:0 0 .5em; letter-spacing:-0.01em; color:var(--navy); line-height:1.2; }
p{ margin:0 0 1em; }
.container{ max-width:var(--maxw); margin:0 auto; padding:0 28px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- gold-rule heading accent (replaces the old OMR motif) ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--display); font-size:12.5px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--teal-deep); margin-bottom:14px; font-weight:700;
}
.eyebrow::before{ content:''; width:26px; height:3px; background:var(--gold); border-radius:2px; }

.section-head h2::after, .page-head h1::after{
  content:''; display:block; width:64px; height:4px; background:var(--gold);
  margin-top:16px; border-radius:2px;
}

/* subtle background texture used on page headers (kept the .omr-field
   class name for compatibility with existing templates; renders as a
   fine diagonal pinstripe here instead of bubbles) */
.omr-field{
  background-image: repeating-linear-gradient(135deg, rgba(11,37,69,0.035) 0 2px, transparent 2px 14px);
}
.omr-row, .omr-bubble{ display:none; } /* not used in this skin */
.omr-rule{ height:1px; background:var(--line); border:none; margin:0; }

/* ---------- Topbar ---------- */
.topbar{
  background:var(--navy-deep); color:#D8DEE9; font-family:var(--body); font-size:12.5px; letter-spacing:.01em;
}
.topbar .container{ display:flex; justify-content:space-between; align-items:center; padding:9px 0; gap:16px; flex-wrap:wrap; }
.topbar a{ color:#D8DEE9; }
.topbar a:hover{ color:var(--gold); }
.topbar .tag{ color:var(--gold); font-weight:600; }
.topbar .divider{ opacity:.35; margin:0 10px; }

/* ---------- Header / Nav ---------- */
header.site{
  background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50;
  transition:box-shadow .2s ease;
}
header.site.is-scrolled{ box-shadow:0 4px 18px rgba(11,37,69,0.10); }
.nav-wrap{ display:flex; align-items:center; justify-content:space-between; padding:16px 0; gap:24px; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand img, .brand .custom-logo{ width:50px; height:50px; border-radius:8px; object-fit:cover; }
.brand-text{ line-height:1.15; }
.brand-text .name{ font-family:var(--display); font-weight:800; font-size:19px; color:var(--navy); }
.brand-text .sub{ font-family:var(--body); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--teal-deep); font-weight:600; }

nav.main ul.menu{ display:flex; align-items:center; gap:4px; list-style:none; margin:0; padding:0; }
nav.main li{ list-style:none; position:relative; }
nav.main a{
  padding:10px 16px; font-size:14.5px; font-weight:600; color:var(--ink); display:block;
  position:relative;
}
nav.main a::after{
  content:''; position:absolute; left:16px; right:16px; bottom:5px; height:2px; background:var(--gold);
  transform:scaleX(0); transform-origin:left; transition:transform .18s ease;
}
nav.main a:hover::after, nav.main .current-menu-item > a::after, nav.main .current_page_item > a::after{ transform:scaleX(1); }
nav.main .current-menu-item > a, nav.main .current_page_item > a{ color:var(--navy); }

.nav-cta{
  display:inline-flex; align-items:center; gap:8px; background:var(--gold); color:var(--navy-deep) !important;
  padding:12px 22px; border-radius:var(--radius); font-weight:700; font-size:14px; box-shadow:var(--shadow-sm);
}
.nav-cta:hover{ background:var(--gold-deep); }
.nav-toggle{ display:none; }
.mobile-menu{ display:none; }

nav.main ul.sub-menu{
  display:none; position:absolute; top:100%; left:0; min-width:220px; background:#fff; border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:var(--shadow); padding:6px; z-index:60; flex-direction:column;
}
nav.main li:hover > ul.sub-menu, nav.main li:focus-within > ul.sub-menu{ display:flex; }
nav.main ul.sub-menu a::after{ display:none; }
.mobile-menu ul.sub-menu{ padding-left:16px; }

@media (max-width:960px){
  nav.main{ display:none; }
  .nav-toggle{
    display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px;
    border-radius:var(--radius); border:1.4px solid var(--line); background:#fff; cursor:pointer; font-size:18px;
  }
  .mobile-menu{ display:none; flex-direction:column; padding:10px 0 20px; border-top:1px solid var(--line); }
  .mobile-menu.open{ display:flex; }
  .mobile-menu ul.menu{ display:flex; flex-direction:column; list-style:none; margin:0; padding:0; }
  .mobile-menu a{ padding:13px 4px; font-weight:600; color:var(--ink); border-bottom:1px dashed var(--line-soft); display:block; }
}

/* Simple hero fallback (used by pages without the slider, e.g. 404) */
.hero{ padding:70px 0 56px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.hero .lead{ font-size:18px; }

/* ---------- HERO SLIDER ---------- */
.hero-slider{
  position:relative; overflow:hidden; background:var(--navy);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}
.slide{
  display:none; position:relative; min-height:560px; align-items:center;
  background-size:cover; background-position:center;
}
.slide.is-active{ display:flex; }
.slide::before{
  content:''; position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(7,26,51,0.94) 0%, rgba(7,26,51,0.78) 45%, rgba(11,37,69,0.55) 100%);
}
.slide-inner{ position:relative; z-index:2; padding:90px 0 110px; max-width:640px; }
.slide-inner .eyebrow{ color:var(--gold); }
.slide-inner .eyebrow::before{ background:#fff; }
.slide-inner h1, .slide-inner h1 *{ color:#fff; }
.slide-inner h1{ font-size:clamp(30px,4.6vw,48px); }
.slide-inner p{ color:#D8DEE9; font-size:17px; max-width:52ch; }
.slide-actions{ display:flex; gap:14px; margin-top:26px; flex-wrap:wrap; }

.slider-nav{
  position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  width:46px; height:46px; border-radius:50%; background:rgba(255,255,255,0.14);
  border:1.4px solid rgba(255,255,255,0.4); color:#fff; display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:18px; backdrop-filter:blur(2px);
}
.slider-nav:hover{ background:rgba(255,255,255,0.26); }
.slider-prev{ left:24px; } .slider-next{ right:24px; }

.slider-dots{
  position:absolute; bottom:34px; left:0; right:0; z-index:3;
  display:flex; justify-content:center; gap:10px;
}
.slider-dot{
  width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,0.35); border:none; cursor:pointer; padding:0;
}
.slider-dot.is-active{ background:var(--gold); width:26px; border-radius:6px; transition:width .2s ease; }

@media (max-width:760px){
  .slide{ min-height:480px; }
  .slide-inner{ padding:70px 0 90px; }
  .slider-prev{ left:10px; } .slider-next{ right:10px; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px; padding:14px 26px; border-radius:var(--radius);
  font-weight:700; font-size:14.5px; border:1.6px solid var(--navy); cursor:pointer; font-family:var(--display);
}
.btn-primary{ background:var(--gold); border-color:var(--gold); color:var(--navy-deep); box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--gold-deep); border-color:var(--gold-deep); }
.btn-ghost{ background:transparent; border-color:#fff; color:#fff; }
.btn-ghost:hover{ background:#fff; color:var(--navy); }
.btn-marigold{ background:var(--teal); border-color:var(--teal); color:#fff; }
.btn-marigold:hover{ background:var(--teal-deep); border-color:var(--teal-deep); }

/* Ghost buttons default to white (for dark hero/CTA backgrounds).
   On light card surfaces, they need a dark border instead. */
.card .btn-ghost, .course-card .btn-ghost{ border-color:var(--navy); color:var(--navy); }
.card .btn-ghost:hover, .course-card .btn-ghost:hover{ background:var(--navy); color:#fff; }

/* ---------- Stat strip ---------- */
.stat-strip{ background:var(--navy-deep); color:#fff; margin-top:-2px; }
.stat-strip .container{ display:grid; grid-template-columns:repeat(4,1fr); }
.stat{ padding:34px 20px; text-align:center; border-left:1px solid rgba(255,255,255,0.10); }
.stat:first-child{ border-left:none; }
.stat .num{ font-family:var(--display); font-size:clamp(26px,3.2vw,36px); font-weight:800; color:var(--gold); }
.stat .lbl{ font-size:12.5px; color:#B9C2D4; margin-top:6px; }
@media (max-width:760px){
  .stat-strip .container{ grid-template-columns:repeat(2,1fr); }
  .stat{ border-left:none; border-top:1px solid rgba(255,255,255,0.10); }
}

/* ---------- Sections ---------- */
section{ padding:80px 0; }
section.tight{ padding:52px 0; }
.section-head{ max-width:660px; margin-bottom:44px; }
.section-head h2{ font-size:clamp(26px,3.2vw,36px); }
.section-head p{ color:var(--ink-soft); font-size:16.5px; }
.bg-paper-dim{ background:var(--paper-dim); }
.bg-ink{ background:var(--navy); color:#D8DEE9; }
.bg-ink h2, .bg-ink h3{ color:#fff; }
.bg-ink .section-head p{ color:#B9C2D4; }

/* ---------- Grids / cards ---------- */
.grid{ display:grid; gap:26px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:900px){ .grid-3,.grid-4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .grid-3,.grid-4,.grid-2{ grid-template-columns:1fr; } }

.card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:28px;
  box-shadow:var(--shadow-sm); border-top:3px solid var(--teal);
}
.card h3{ font-size:19px; margin-bottom:8px; }
.card p{ color:var(--ink-soft); font-size:15px; margin-bottom:0; }
.card .icon{
  width:46px; height:46px; border-radius:var(--radius); margin-bottom:16px;
  display:flex; align-items:center; justify-content:center; background:var(--navy); color:var(--gold);
}
.tag-index{ font-family:var(--display); font-size:12px; color:var(--teal-deep); font-weight:800; margin-bottom:10px; display:block; }

/* Course card */
.course-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--shadow-sm); display:flex; flex-direction:column;
}
.course-card .band{ height:5px; background:linear-gradient(90deg,var(--teal),var(--gold)); }
.course-card .body{ padding:28px; flex:1; display:flex; flex-direction:column; }
.course-card h3{ font-size:20px; }
.course-card .meta{ display:flex; gap:12px; font-family:var(--body); font-size:12px; color:var(--teal-deep); font-weight:700; margin:12px 0 16px; flex-wrap:wrap; }
.course-card ul{ margin:0 0 20px; }
.course-card ul li{ padding:7px 0 7px 22px; position:relative; font-size:14.5px; color:var(--ink-soft); border-bottom:1px dashed var(--line-soft); }
.course-card ul li:last-child{ border-bottom:none; }
.course-card ul li::before{ content:'✓'; position:absolute; left:0; top:6px; color:var(--teal); font-weight:800; font-size:13px; }
.course-card .foot{ margin-top:auto; display:flex; justify-content:space-between; align-items:center; }

/* Quote block */
.quote-block{ background:var(--navy); color:#fff; border-radius:var(--radius); padding:52px; position:relative; border-left:5px solid var(--gold); }
.quote-block .mark{ font-family:var(--display); font-size:64px; line-height:0; color:var(--gold); position:relative; top:24px; }
.quote-block blockquote{ font-family:var(--display); font-weight:500; font-size:clamp(19px,2.2vw,25px); line-height:1.5; margin:0 0 18px; color:#fff; }
.quote-block cite{ font-family:var(--body); font-size:12.5px; letter-spacing:.05em; color:var(--gold); font-style:normal; font-weight:600; }

/* Timeline / steps */
.steps{ counter-reset:step; }
.step{ display:grid; grid-template-columns:56px 1fr; gap:20px; padding:28px 0; border-bottom:1px solid var(--line); }
.step:last-child{ border-bottom:none; }
.step .num{
  font-family:var(--display); font-size:16px; font-weight:800; color:#fff; width:44px; height:44px; border-radius:var(--radius);
  background:var(--navy); display:flex; align-items:center; justify-content:center;
}
.step h3{ font-size:18px; margin-bottom:6px; }
.step p{ color:var(--ink-soft); margin:0; font-size:15px; }

/* College chips */
.college-chip{ border:1px solid var(--line); border-radius:var(--radius); padding:18px 20px; display:flex; align-items:center; gap:14px; background:var(--card); border-left:4px solid var(--gold); }
.college-chip .dot{ display:none; }
.college-chip .name{ font-family:var(--display); font-weight:800; font-size:16px; color:var(--navy); }
.college-chip .type{ font-size:12px; color:var(--ink-soft); }

/* Trust bar (college / partner badges) */
.trust-bar{ display:flex; flex-wrap:wrap; gap:14px; justify-content:center; }
.trust-badge{
  font-family:var(--display); font-weight:700; font-size:13px; color:var(--navy);
  border:1.4px solid var(--line); border-radius:999px; padding:10px 20px; background:#fff;
}

/* Gallery tiles */
.gallery-tile{
  aspect-ratio:4/3; border-radius:var(--radius); border:1px solid var(--line);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  text-align:center; padding:18px; overflow:hidden; position:relative;
}
.gallery-tile .cap{ font-family:var(--body); font-size:11.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-soft); }
.gallery-tile .glabel{ font-family:var(--display); font-size:18px; font-weight:700; }

/* Form */
.form-card{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:34px; box-shadow:var(--shadow); border-top:4px solid var(--gold); }
.field{ margin-bottom:18px; }
.field label{ display:block; font-family:var(--display); font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:7px; font-weight:600; }
.field input, .field select, .field textarea{
  width:100%; padding:13px 14px; border-radius:4px; border:1.4px solid var(--line); font-family:var(--body); font-size:14.5px; background:var(--paper); color:var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:2.5px solid var(--gold); outline-offset:1px; border-color:var(--gold-deep); }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:600px){ .field-row{ grid-template-columns:1fr; } }

/* Contact info list */
.info-row{ display:flex; gap:16px; padding:18px 0; border-bottom:1px solid var(--line); }
.info-row:last-child{ border-bottom:none; }
.info-row .ic{ width:40px; height:40px; border-radius:var(--radius); background:var(--navy); color:var(--gold); display:flex; align-items:center; justify-content:center; flex:none; }
.info-row .lbl{ font-family:var(--display); font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:3px; font-weight:600; }
.info-row .val{ font-weight:600; font-size:15px; }
.info-row .val a:hover{ color:var(--teal-deep); }

/* CTA band */
.cta-band{ background:linear-gradient(120deg, var(--navy) 0%, var(--teal-deep) 100%); color:#fff; border-radius:var(--radius); padding:52px; text-align:center; }
.cta-band h2{ color:#fff; }
.cta-band h2::after{ margin-left:auto; margin-right:auto; }
.cta-band p{ color:#D8DEE9; max-width:56ch; margin-left:auto; margin-right:auto; }

/* ---------- Footer ---------- */
footer.site{ background:var(--navy-deep); color:#B9C2D4; padding:60px 0 26px; font-size:14.5px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.1fr; gap:40px; padding-bottom:36px; }
.footer-grid h4{ color:#fff; font-family:var(--display); font-size:13px; letter-spacing:.08em; text-transform:uppercase; margin-bottom:16px; }
.footer-grid a{ display:block; padding:6px 0; color:#B9C2D4; }
.footer-grid a:hover{ color:var(--gold); }
.footer-brand{ display:flex; gap:12px; align-items:center; margin-bottom:14px; }
.footer-brand img, .footer-brand .custom-logo{ width:44px; height:44px; border-radius:8px; object-fit:cover; }
.footer-brand .name{ font-family:var(--display); font-weight:800; color:#fff; font-size:18px; }
.footer-bottom{ border-top:1px solid rgba(185,194,212,0.16); padding-top:20px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:13px; }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }

/* Page header (interior pages) */
.page-head{ padding:52px 0 46px; border-bottom:1px solid var(--line); background:var(--paper-dim); }
.page-head h1{ font-size:clamp(30px,4vw,42px); }
.page-head p{ color:var(--ink-soft); font-size:16.5px; max-width:60ch; margin:0; }

/* Utility */
.center{ text-align:center; }
.small{ font-size:13px; color:var(--ink-soft); }

/* ============================================================
   WordPress-specific additions
   ============================================================ */
.mobile-menu li{ list-style:none; }
.brand .custom-logo{ width:50px; height:50px; }
.footer-brand .custom-logo{ width:44px; height:44px; }

.entry-content, .lead{ font-size:16.5px; color:var(--ink-soft); }
.entry-content h2::after{ display:none; }
.entry-content h2{ margin-top:1.4em; }
.entry-content h3{ margin-top:1.2em; }
.entry-content p{ margin-bottom:1.1em; }
.entry-content ul, .entry-content ol{ margin:0 0 1.1em 1.4em; padding:0; }
.entry-content li{ margin-bottom:.4em; }
.entry-content img{ border-radius:var(--radius); }
.entry-content a{ color:var(--teal-deep); text-decoration:underline; }
.entry-content blockquote{
  border-left:3px solid var(--gold); padding:4px 0 4px 18px; margin:1.4em 0; font-family:var(--display); font-style:normal; color:var(--navy);
}

.alignleft{ float:left; margin:0 20px 16px 0; }
.alignright{ float:right; margin:0 0 16px 20px; }
.aligncenter{ display:block; margin:0 auto 16px; }
.wp-caption{ max-width:100%; }
.wp-caption-text{ font-size:13px; color:var(--ink-soft); text-align:center; padding-top:6px; }
.screen-reader-text{ position:absolute !important; clip:rect(1px,1px,1px,1px); width:1px; height:1px; overflow:hidden; }

.comment-list, .children{ list-style:none; margin:0; padding:0; }
.comment-body{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:20px; margin-bottom:16px; border-top:3px solid var(--teal); }
.comment-meta .fn{ font-weight:700; font-style:normal; }
.comment-meta .comment-metadata{ font-family:var(--body); font-size:11.5px; color:var(--ink-soft); }
.comment-content p{ margin-bottom:.6em; }
.children{ margin-left:28px; }

.pagination, .nav-links{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:center; }
.pagination .page-numbers, .nav-links .page-numbers{ padding:10px 15px; border:1.4px solid var(--line); border-radius:4px; font-family:var(--display); font-size:13px; font-weight:600; }
.pagination .page-numbers.current, .nav-links .page-numbers.current{ background:var(--navy); border-color:var(--navy); color:#fff; }
