/* =====================================================================
   Sankalp Computer Institute — "Hand-Drawn" Design System
   ===================================================================== */

:root{
  --bg:#fdfbf7;
  --fg:#2d2d2d;
  --muted:#e5e0d8;
  --accent:#ff4d4d;
  --accent-dark:#d63c3c;
  --secondary:#2d5da1;
  --postit:#fff9c4;
  --border:#2d2d2d;
  --wobbly: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --wobbly-md: 76px 24px 61px 24px / 24px 61px 24px 76px;
  --wobbly-sm: 30px 8px 24px 8px / 8px 24px 8px 30px;
  --shadow-sm: 3px 3px 0px 0px var(--border);
  --shadow-md: 4px 4px 0px 0px var(--border);
  --shadow-lg: 8px 8px 0px 0px var(--border);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background-color:var(--bg);
  background-image: radial-gradient(var(--muted) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  color:var(--fg);
  font-family:'Patrick Hand', cursive;
  font-size:18px;
  line-height:1.6;
  overflow-x:hidden;
}
h1,h2,h3,h4,.heading-font{
  font-family:'Kalam', cursive;
  font-weight:700;
  line-height:1.25;
  margin:0 0 .5em;
}
h1{font-size:clamp(2.2rem,5vw,3.4rem);}
h2{font-size:clamp(1.8rem,4vw,2.6rem);}
h3{font-size:clamp(1.3rem,3vw,1.8rem);}
p{margin:0 0 1em;}
a{color:var(--secondary);text-decoration:none;}
img{max-width:100%;display:block;}
.container{max-width:1080px;margin:0 auto;padding:0 20px;}
.section{padding:70px 0;}
.section-head{text-align:center;max-width:680px;margin:0 auto 46px;}
.section-head .tag{
  display:inline-block;background:var(--postit);
  border:2px solid var(--border);border-radius:var(--wobbly-sm);
  padding:6px 18px;font-family:'Kalam',cursive;font-size:.95rem;
  transform:rotate(-2deg);box-shadow:var(--shadow-sm);margin-bottom:14px;
}
.wavy-underline{position:relative;display:inline-block;}
.wavy-underline::after{
  content:"";position:absolute;left:0;right:0;bottom:-6px;height:8px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath d='M0 5 Q 10 0 20 5 T 40 5 T 60 5 T 80 5 T 100 5' fill='none' stroke='%23ff4d4d' stroke-width='3'/%3E%3C/svg%3E") repeat-x;
  background-size:40px 10px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:8px;justify-content:center;
  font-family:'Patrick Hand',cursive;font-size:1.15rem;
  padding:12px 30px;min-height:48px;
  background:#fff;color:var(--fg);border:3px solid var(--border);
  border-radius:var(--wobbly);box-shadow:var(--shadow-md);
  cursor:pointer;transition:transform .1s ease, box-shadow .1s ease, background .15s ease, color .15s ease;
  text-align:center;
}
.btn:hover{background:var(--accent);color:#fff;box-shadow:2px 2px 0px 0px var(--border);transform:translate(2px,2px) rotate(-1deg);}
.btn:active{box-shadow:none;transform:translate(4px,4px);}
.btn-secondary{background:var(--muted);}
.btn-secondary:hover{background:var(--secondary);color:#fff;}
.btn-block{width:100%;}
.btn-sm{padding:8px 18px;font-size:1rem;min-height:38px;}

/* ---------- Navbar ---------- */
.navbar{
  position:sticky;top:0;z-index:100;background:var(--bg);
  border-bottom:3px solid var(--border);
}
.navbar-inner{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;max-width:1080px;margin:0 auto;}
.brand{display:flex;align-items:center;gap:12px;}
.brand img{height:52px;width:52px;object-fit:cover;border:3px solid var(--border);border-radius:var(--wobbly-sm);box-shadow:var(--shadow-sm);background:#fff;}
.brand-text .site-name{font-family:'Kalam',cursive;font-size:1.4rem;font-weight:700;}
.brand-text .tagline{font-size:.85rem;opacity:.75;display:block;margin-top:-4px;}
.nav-links{display:flex;gap:6px;list-style:none;margin:0;padding:0;align-items:center;flex-wrap:wrap;}
.nav-links a{
  padding:8px 14px;font-family:'Patrick Hand',cursive;font-size:1.1rem;position:relative;
}
.nav-links a::after{
  content:"";position:absolute;left:14px;right:14px;bottom:2px;height:3px;
  background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .2s;
  border-radius:5px;
}
.nav-links a:hover::after,.nav-links a.active::after{transform:scaleX(1);}
.nav-links a.active{color:var(--accent-dark);}
.nav-toggle{display:none;background:none;border:3px solid var(--border);border-radius:var(--wobbly-sm);padding:8px 10px;cursor:pointer;}
.admit-btn{margin-left:8px;}

@media (max-width:900px){
  .nav-toggle{display:block;}
  .nav-links{
    display:none;position:absolute;top:100%;left:0;right:0;background:var(--bg);
    flex-direction:column;align-items:stretch;border-bottom:3px solid var(--border);padding:10px 20px 20px;
  }
  .nav-links.open{display:flex;}
  .admit-btn{margin-left:0;margin-top:8px;}
}

/* ---------- Marquee Notice Bar ---------- */
.notice-bar{background:var(--fg);color:var(--bg);padding:9px 0;overflow:hidden;border-bottom:3px solid var(--border);}
.notice-bar .label{
  background:var(--accent);color:#fff;font-family:'Kalam',cursive;font-weight:700;
  padding:4px 14px;border-radius:var(--wobbly-sm);margin-left:14px;flex:0 0 auto;
  transform:rotate(-1deg);
}
.marquee-wrap{display:flex;align-items:center;gap:14px;}
.marquee-track{display:flex;gap:60px;white-space:nowrap;animation:marquee 28s linear infinite;}
.marquee-track span{font-family:'Patrick Hand',cursive;font-size:1.05rem;}
@keyframes marquee{from{transform:translateX(0);}to{transform:translateX(-50%);}}

/* ---------- Hero (image-only banner) ---------- */
.hero-banner{position:relative;border-bottom:3px solid var(--border);background:var(--muted);}
.hero-banner img{width:100%;max-height:560px;object-fit:cover;}
.hero-arrow{position:absolute;bottom:20px;right:8%;display:none;}
@media(min-width:900px){.hero-arrow{display:block;}}

/* ---------- Cards ---------- */
.card{
  background:#fff;border:2px solid var(--border);border-radius:var(--wobbly-md);
  box-shadow:3px 3px 0px 0px rgba(45,45,45,.15);padding:26px;position:relative;
  transition:transform .12s ease;
}
.card:hover{transform:rotate(-1deg);}
.card.tilt-r:hover{transform:rotate(1deg);}
.card .tape{
  position:absolute;top:-14px;left:50%;transform:translateX(-50%) rotate(-3deg);
  width:90px;height:26px;background:rgba(150,150,150,.35);border:1px solid rgba(0,0,0,.15);
}
.card .tack{
  position:absolute;top:-11px;left:50%;transform:translateX(-50%);
  width:20px;height:20px;border-radius:50%;background:var(--accent);border:2px solid var(--border);
}
.postit{background:var(--postit) !important;}

/* Icon circle */
.icon-circle{
  width:64px;height:64px;border-radius:50%;border:3px solid var(--border);
  display:flex;align-items:center;justify-content:center;background:#fff;
  box-shadow:var(--shadow-sm);margin-bottom:14px;flex:0 0 auto;
}
.icon-circle.blue{background:var(--secondary);color:#fff;}
.icon-circle.red{background:var(--accent);color:#fff;}

/* ---------- Grids ---------- */
.grid{display:grid;gap:28px;}
.grid-2{grid-template-columns:repeat(2,1fr);}
.grid-3{grid-template-columns:repeat(3,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-2,.grid-3,.grid-4{grid-template-columns:1fr;}}

/* ---------- Highlights / Why choose us ---------- */
.highlight-card{text-align:left;}
.highlight-card h3{margin-bottom:6px;}
.highlight-card p{margin:0;opacity:.85;font-size:1rem;}

/* ---------- Stats ---------- */
.stat-box{
  text-align:center;background:#fff;border:3px solid var(--border);
  border-radius:var(--wobbly);box-shadow:var(--shadow-md);
  padding:24px 10px;
}
.stat-box .num{font-family:'Kalam',cursive;font-size:2.2rem;color:var(--accent-dark);}
.stat-box .label{font-size:.95rem;}

/* ---------- Course card ---------- */
.course-card{display:flex;flex-direction:column;height:100%;}
.course-card img{border:2px solid var(--border);border-radius:var(--wobbly-sm);height:170px;object-fit:cover;margin-bottom:14px;}
.course-card .fee-tag{
  display:inline-block;background:var(--postit);border:2px solid var(--border);
  border-radius:var(--wobbly-sm);padding:2px 12px;font-family:'Kalam',cursive;font-size:.95rem;
  transform:rotate(-2deg);margin:8px 0;
}
.course-card .popular-badge{
  position:absolute;top:-12px;right:14px;background:var(--accent);color:#fff;
  border:2px solid var(--border);border-radius:var(--wobbly-sm);padding:3px 12px;
  font-family:'Kalam',cursive;transform:rotate(4deg);box-shadow:var(--shadow-sm);
}

/* ---------- Gallery ---------- */
.gallery-item{border:2px solid var(--border);border-radius:var(--wobbly-sm);overflow:hidden;box-shadow:var(--shadow-sm);}
.gallery-item img{height:220px;width:100%;object-fit:cover;transition:transform .2s;}
.gallery-item:hover img{transform:scale(1.06);}

/* ---------- Forms ---------- */
label{font-family:'Kalam',cursive;display:block;margin-bottom:6px;}
.form-group{margin-bottom:20px;}
input[type=text],input[type=email],input[type=tel],input[type=date],input[type=number],input[type=password],select,textarea{
  width:100%;font-family:'Patrick Hand',cursive;font-size:1.05rem;
  border:2px solid var(--border);border-radius:var(--wobbly-sm);
  padding:12px 16px;background:#fff;color:var(--fg);
}
input::placeholder,textarea::placeholder{color:rgba(45,45,45,.4);}
input:focus,select:focus,textarea:focus{
  outline:none;border-color:var(--secondary);
  box-shadow:0 0 0 4px rgba(45,93,161,.2);
}
textarea{min-height:120px;resize:vertical;}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
@media(max-width:600px){.form-row{grid-template-columns:1fr;}}

/* ---------- Speech bubble testimonial ---------- */
.speech-bubble{position:relative;background:#fff;border:2px solid var(--border);border-radius:var(--wobbly-md);padding:24px;box-shadow:var(--shadow-sm);}
.speech-bubble::after{
  content:"";position:absolute;bottom:-16px;left:40px;
  border-width:16px 16px 0 0;border-style:solid;border-color:#fff transparent transparent transparent;
  filter:drop-shadow(2px 2px 0 var(--border));
}

/* ---------- Footer ---------- */
footer{background:var(--fg);color:var(--bg);border-top:3px solid var(--border);padding:60px 0 0;margin-top:60px;}
footer h4{color:var(--bg);font-family:'Kalam',cursive;position:relative;display:inline-block;margin-bottom:16px;}
footer a{color:var(--bg);opacity:.85;}
footer a:hover{opacity:1;text-decoration:line-through;}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.4fr;gap:36px;}
@media(max-width:900px){.footer-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:600px){.footer-grid{grid-template-columns:1fr;}}
.footer-grid ul{list-style:none;padding:0;margin:0;}
.footer-grid li{margin-bottom:10px;}
.footer-bottom{border-top:1px dashed rgba(253,251,247,.3);margin-top:40px;padding:18px 0;text-align:center;font-size:.9rem;opacity:.8;}
.map-embed{border:2px solid var(--bg);border-radius:var(--wobbly-sm);overflow:hidden;width:100%;height:180px;}
.map-embed iframe{width:100%;height:100%;border:0;}
.social-icons{display:flex;gap:10px;margin-top:10px;}
.social-icons a{
  width:38px;height:38px;border:2px solid var(--bg);border-radius:50%;
  display:flex;align-items:center;justify-content:center;
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float{
  position:fixed;bottom:24px;right:24px;z-index:999;
  background:#25D366;color:#fff;width:62px;height:62px;border-radius:50% 45% 50% 48%/48% 50% 45% 50%;
  display:flex;align-items:center;justify-content:center;border:3px solid var(--border);
  box-shadow:var(--shadow-md);animation:bounce-gentle 3s ease-in-out infinite;
}
.whatsapp-float:hover{transform:translate(2px,2px);box-shadow:2px 2px 0 0 var(--border);}
@keyframes bounce-gentle{0%,100%{transform:translateY(0);}50%{transform:translateY(-6px);}}

/* ---------- Result / Certificate Design ---------- */
.result-sheet, .certificate-sheet{
  background:#fff;border:4px solid var(--border);border-radius:18px;
  box-shadow:var(--shadow-lg);padding:40px;position:relative;
}
.certificate-sheet{
  background:#fffdf5;border:10px double var(--secondary);text-align:center;padding:50px 40px;
  background-image: radial-gradient(var(--muted) 1px, transparent 1px);
  background-size:20px 20px;
}
.certificate-sheet .cert-header{font-family:'Kalam',cursive;font-size:2.4rem;color:var(--accent-dark);margin-bottom:0;}
.certificate-sheet .cert-sub{letter-spacing:2px;text-transform:uppercase;font-size:.9rem;opacity:.7;}
.certificate-sheet .cert-name{font-family:'Kalam',cursive;font-size:2.2rem;color:var(--secondary);margin:18px 0;border-bottom:3px dashed var(--border);display:inline-block;padding-bottom:6px;}
.certificate-sheet .cert-seal{
  width:110px;height:110px;border-radius:50%;border:3px solid var(--accent);
  display:flex;align-items:center;justify-content:center;margin:20px auto 0;
  font-family:'Kalam',cursive;color:var(--accent-dark);transform:rotate(-6deg);
  box-shadow:var(--shadow-sm);text-align:center;font-size:.8rem;padding:8px;
}
.result-table{width:100%;border-collapse:collapse;margin-top:20px;}
.result-table th,.result-table td{border:2px solid var(--border);padding:12px;text-align:left;}
.result-table th{background:var(--muted);font-family:'Kalam',cursive;}
.result-status.pass{color:#1a7a1a;font-family:'Kalam',cursive;font-size:1.3rem;}
.result-status.fail{color:var(--accent-dark);font-family:'Kalam',cursive;font-size:1.3rem;}
.print-btn-wrap{text-align:center;margin:24px 0;}
@media print{
  .navbar,.notice-bar,footer,.whatsapp-float,.print-btn-wrap,.no-print{display:none !important;}
  body{background:#fff;}
  .result-sheet,.certificate-sheet{box-shadow:none;border-width:2px;}
}

/* ---------- Alerts ---------- */
.alert{
  border:2px solid var(--border);border-radius:var(--wobbly-sm);padding:14px 20px;margin-bottom:20px;
  font-family:'Patrick Hand',cursive;box-shadow:var(--shadow-sm);
}
.alert-success{background:#e3f5e1;}
.alert-error{background:#ffe1e1;}

/* ---------- Misc decorative ---------- */
.rotate-1{transform:rotate(1deg);}
.rotate-neg-1{transform:rotate(-1deg);}
.rotate-2{transform:rotate(2deg);}
.rotate-neg-2{transform:rotate(-2deg);}
.dashed-divider{border:none;border-top:3px dashed var(--border);margin:40px 0;}
.bounce{animation:bounce-gentle 3s ease-in-out infinite;}

.breadcrumb-hero{
  background:var(--muted);border-bottom:3px solid var(--border);padding:50px 0 40px;text-align:center;
}
