/*
Theme Name: Shiksha Sangam
Theme URI: https://shikshasangam.in.net/
Author: Shiksha Sangam
Description: Shiksha Sangam Custom WordPress Theme
Version: 1.0
*/

:root{
  --primary:#0f2d5e;
  --primary2:#1a4a9e;
  --accent:#f59e0b;
  --accent2:#ef4444;
  --green:#10b981;
  --purple:#7c3aed;
  --teal:#0891b2;
  --bg:#f0f4ff;
  --white:#fff;
  --text:#1e293b;
  --muted:#64748b;
  --border:#e2e8f0;
  --shadow:0 4px 24px rgba(15,45,94,.10);
  --shadow-lg:0 12px 48px rgba(15,45,94,.18);
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Poppins','Noto Sans Devanagari',sans-serif;
  background:var(--bg);
  color:var(--text);
  font-size:15px;
}

::-webkit-scrollbar{
  width:5px;
}

::-webkit-scrollbar-track{
  background:#e2e8f0;
}

::-webkit-scrollbar-thumb{
  background:var(--primary2);
  border-radius:10px;
}

/* NAVBAR */
.navbar{
  position:sticky;
  top:0;
  z-index:999;
  background:var(--primary);
  box-shadow:0 2px 20px rgba(0,0,0,.25);
}

.nav-inner{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 20px;
  min-height:68px;
}

.nav-brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}

.nav-brand-text span{
  color:#fff;
  font-size:1.1rem;
  font-weight:900;
  display:block;
  line-height:1.1;
}

.nav-brand-text span b{
  color:var(--accent);
}

.nav-brand-text small{
  color:rgba(255,255,255,.7);
  font-size:.62rem;
  display:block;
  margin-top:3px;
}

.logo3d{
  position:relative;
  width:52px;
  height:52px;
  flex-shrink:0;
}

.logo3d .ring{
  position:absolute;
  inset:0;
  border-radius:50%;
  background:conic-gradient(
    from 0deg,
    #1a4a9e,
    #3b82f6,
    #f59e0b,
    #ef4444,
    #1a4a9e
  );
  animation:spin 8s linear infinite;
}

.logo3d .ring::before{
  content:"";
  position:absolute;
  inset:3px;
  background:#fff;
  border-radius:50%;
}

.logo3d .core{
  position:absolute;
  inset:6px;
  border-radius:50%;
  background:linear-gradient(135deg,#fff,#eef2ff);
  display:grid;
  place-items:center;
  font-size:1.3rem;
  z-index:2;
}

@keyframes spin{
  to{
    transform:rotate(360deg);
  }
}

.nav-menu{
  display:flex;
  align-items:center;
  gap:3px;
  flex-wrap:wrap;
}

.nav-menu a{
  color:rgba(255,255,255,.85);
  text-decoration:none;
  font-size:.78rem;
  font-weight:600;
  padding:7px 10px;
  border-radius:8px;
}

.nav-menu a:hover,
.nav-menu a.active{
  background:var(--accent);
  color:var(--primary);
}

/* TICKER */
.ticker{
  background:var(--accent);
  color:var(--primary);
  font-weight:700;
  font-size:.85rem;
  overflow:hidden;
  padding:7px 0;
}

.ticker-track{
  display:flex;
  white-space:nowrap;
}

/* HERO */
.hero{
  background:linear-gradient(
    135deg,
    #081828 0%,
    #0f2d5e 50%,
    #1a4a9e 100%
  );
  color:#fff;
  padding:72px 20px 60px;
  text-align:center;
  position:relative;
  overflow:hidden;
}

.hero-eye{
  display:inline-block;
  background:rgba(245,158,11,.18);
  border:1px solid rgba(245,158,11,.5);
  color:var(--accent);
  font-size:.78rem;
  font-weight:700;
  padding:5px 16px;
  border-radius:50px;
  margin-bottom:18px;
}

.hero h1{
  font-size:clamp(1.8rem,5vw,3rem);
  font-weight:900;
  line-height:1.2;
  margin-bottom:16px;
}

.hero h1 em{
  color:var(--accent);
  font-style:normal;
}

.hero-sub{
  font-size:1rem;
  opacity:.88;
  max-width:580px;
  margin:0 auto 30px;
  line-height:1.75;
}

.hero-actions{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:12px 24px;
  border-radius:50px;
  font-size:.9rem;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
}

.btn-gold{
  background:var(--accent);
  color:var(--primary);
}

.btn-wa{
  background:#25d366;
  color:#fff;
}

.btn-outline{
  background:transparent;
  color:#fff;
  border:2px solid rgba(255,255,255,.45);
}

/* SECTION */
.section{
  padding:60px 20px;
}

.sec-inner{
  max-width:1200px;
  margin:0 auto;
}

.sec-head{
  text-align:center;
  margin-bottom:42px;
}

.stag{
  display:inline-block;
  background:rgba(15,45,94,.08);
  color:var(--primary);
  font-size:.72rem;
  font-weight:700;
  padding:4px 14px;
  border-radius:50px;
  margin-bottom:10px;
}

.sec-head h2{
  font-size:clamp(1.45rem,3vw,2rem);
  font-weight:800;
  color:var(--primary);
  margin-bottom:8px;
}

.sec-head h2 span{
  color:var(--accent2);
}

.sec-head p{
  color:var(--muted);
  font-size:.93rem;
  max-width:500px;
  margin:0 auto;
  line-height:1.7;
}

/* CARDS */
.g3{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(255px,1fr));
  gap:20px;
}

.g4{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(215px,1fr));
  gap:18px;
}

.card{
  background:#fff;
  border-radius:16px;
  padding:26px 20px;
  box-shadow:var(--shadow);
  border:1.5px solid var(--border);
  transition:.25s;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-lg);
}

.card-ic{
  width:50px;
  height:50px;
  border-radius:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.45rem;
}

.card h3{
  font-size:.97rem;
  font-weight:700;
  color:var(--primary);
}

.card p{
  font-size:.83rem;
  color:var(--muted);
  line-height:1.65;
}

/* MOBILE */
@media(max-width:768px){

  .nav-inner{
    min-height:60px;
  }

  .nav-menu{
    gap:1px;
  }

  .nav-menu a{
    font-size:.7rem;
    padding:6px;
  }

  .hero{
    padding:50px 15px;
  }

  .section{
    padding:45px 15px;
  }

  .g3,
  .g4{
    grid-template-columns:1fr;
  }
}
/* ================================
   SERVICE DETAIL PAGE
================================ */

.service-single-header {
    text-align: center;
    margin-bottom: 35px;
}

.service-single-header .card-ic {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.service-single-header h1 {
    margin: 0;
    font-size: 36px;
    color: #123b72;
}

.service-single-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 35px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.service-excerpt {
    font-size: 19px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.service-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.service-content h2,
.service-content h3 {
    color: #123b72;
    margin-top: 25px;
}

.service-content ul,
.service-content ol {
    padding-left: 25px;
}

.service-content li {
    margin-bottom: 8px;
}

.service-back {
    text-align: center;
    margin-top: 30px;
}

.service-back a {
    display: inline-block;
    padding: 12px 22px;
    background: #123b72;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
}

.service-back a:hover {
    background: #f59e0b;
}


/* Mobile */
@media (max-width: 600px) {

    .service-single-header h1 {
        font-size: 28px;
    }

    .service-single-box {
        padding: 22px;
        border-radius: 15px;
    }

    .service-content {
        font-size: 16px;
    }

}


/* === Responsive layout and consistent Shiksha Sangam colours === */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
img, video, iframe, embed, object {
  max-width: 100%;
}
button, input, select, textarea {
  max-width: 100%;
}
.nav-inner, .section, .sec-inner, .footer-inner {
  width: 100%;
  max-width: 1200px;
}
.nav-inner { gap: 12px; }
.nav-menu { min-width: 0; }
.nav-menu a {
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.nav-menu a#n-staff-portal {
  background: var(--accent);
  color: #172554;
  font-weight: 700;
}
.nav-menu a#n-staff-portal:hover {
  background: #fff;
  color: var(--primary);
}
.section, .hero, .ticker { max-width: 100%; }
.g3, .g4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.card, .service-single-box {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .nav-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
  }
  .nav-menu {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  .nav-inner { align-items: center; gap: 8px; }
  .nav-menu { gap: 4px; }
  .nav-menu a { font-size: .78rem; padding: 8px 9px; }
  .nav-menu a#n-staff-portal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .section { padding-left: 16px; padding-right: 16px; }
  .service-single-box { padding: 18px; }
}
