/* EduManage Pro — Public site styles */
:root {
  --brand: #2563eb;
  --brand-2: #0ea5e9;
  --brand-dark: #1e3a8a;
  --ink: #0f172a;
  --muted: #64748b;
}

body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--ink); }
.site-main { padding-top: 76px; min-height: 70vh; }

/* Navbar */
#mainNav { background: rgba(255,255,255,.95); backdrop-filter: blur(10px); transition: all .3s; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
#mainNav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
#mainNav .nav-link { font-weight: 500; color: #475569; }
#mainNav .nav-link:hover { color: var(--brand); }
.brand-icon { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-radius: 10px; font-size: 18px; }

/* Buttons */
.btn-gradient { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border: none; font-weight: 600; border-radius: 50px; transition: all .25s; }
.btn-gradient:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(37,99,235,.3); }
.btn-outline-brand { border: 2px solid var(--brand); color: var(--brand); border-radius: 50px; font-weight: 600; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

/* Hero */
.hero { position: relative; height: 90vh; min-height: 600px; overflow: hidden; }
.hero .swiper-slide { display: flex; align-items: center; }
.hero .slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero .slide-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15,23,42,.92), rgba(15,23,42,.6) 60%, rgba(15,23,42,.3)); }
.hero .slide-content { position: relative; z-index: 2; max-width: 720px; color: #fff; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.1; }
.hero .lead { font-size: 1.25rem; opacity: .9; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2); padding: 6px 16px; border-radius: 50px; font-size: .85rem; font-weight: 600; backdrop-filter: blur(8px); }
.swiper-pagination-bullet { background: #fff; opacity: .5; }
.swiper-pagination-bullet-active { opacity: 1; }

/* Sections */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-eyebrow { display: inline-block; background: #eff6ff; color: var(--brand); font-weight: 700; font-size: .8rem; padding: 6px 16px; border-radius: 50px; text-transform: uppercase; letter-spacing: .05em; }
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; margin: 1rem 0; color: var(--ink); }
.section-sub { color: var(--muted); font-size: 1.1rem; }

/* Cards */
.feature-card { border: 1px solid #e2e8f0; border-radius: 16px; padding: 1.75rem; height: 100%; transition: all .3s; background: #fff; }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15,23,42,.1); border-color: transparent; }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 22px; margin-bottom: 1rem; }

.module-card { border: 1px solid #e2e8f0; border-radius: 18px; overflow: hidden; transition: all .3s; background: #fff; height: 100%; }
.module-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15,23,42,.12); }
.module-card .card-img { height: 200px; background-size: cover; background-position: center; position: relative; }
.module-card .card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,.75), transparent 60%); }
.module-card h4 { position: absolute; bottom: 1rem; left: 1.25rem; color: #fff; z-index: 2; font-weight: 700; }

.stat-card { background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(15,23,42,.08); padding: 2.5rem; }
.stat-num { font-size: 2.75rem; font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; padding: 4rem 0; }

/* Testimonial */
.testimonial-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 2rem; height: 100%; }
.testimonial-card .stars { color: #fbbf24; }

/* Clients */
.client-logo { filter: grayscale(1); opacity: .7; transition: all .25s; }
.client-logo:hover { filter: none; opacity: 1; }

/* Footer */
.footer { background: #0f172a; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.footer-contact li { color: #94a3b8; margin-bottom: .5rem; }
.social-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: #1e293b; color: #94a3b8; border-radius: 8px; transition: all .2s; text-decoration: none; }
.social-btn:hover { background: var(--brand); color: #fff; }

/* WhatsApp float */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px;
  box-shadow: 0 8px 24px rgba(37,211,102,.4); z-index: 999; text-decoration: none; }
.whatsapp-float:hover { color: #fff; transform: scale(1.05); }

/* Forms */
.form-control, .form-select { border-radius: 10px; padding: .65rem .9rem; border-color: #e2e8f0; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(37,99,235,.15); }
.form-label { font-weight: 500; color: #334155; }

/* FAQ */
.accordion-item { border-radius: 12px !important; overflow: hidden; margin-bottom: 1rem; border: 1px solid #e2e8f0; }
.accordion-button:not(.collapsed) { background: #eff6ff; color: var(--brand); }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 7rem 0 4rem; }
.page-hero h1 { font-weight: 800; }

/* Blog */
.blog-card { border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; transition: all .3s; background: #fff; height: 100%; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(15,23,42,.1); }
.blog-card .blog-img { height: 200px; background-size: cover; background-position: center; }

/* Download card */
.download-card { border: 1px solid #e2e8f0; border-radius: 16px; padding: 1.75rem; transition: all .3s; background: #fff; height: 100%; }
.download-card:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(15,23,42,.1); border-color: var(--brand); }

/* Alert overrides for flash messages */
.alert { border-radius: 12px; }

/* Why-choose gradient section */
.why-section { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; }
.why-stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 16px; padding: 1.5rem; backdrop-filter: blur(8px); }
