body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin:0; background:#f7f7f9; color:#222; }
.container { max-width: 1100px; margin: 20px auto; background:#fff; padding:20px; border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,.06); }
.navbar:not(.navbar-light) { display:flex; justify-content:space-between; align-items:center; background:#1f3a8a; color:#fff; padding:10px 20px; }
.navbar:not(.navbar-light) a { color:#fff; margin-left:15px; text-decoration:none; }
.brand a { color:#fff; font-weight:bold; }
h2, h3 { color:#1f2937; }
.muted { color:#64748b; }
label { display:block; margin-top:10px; }
input, select, textarea { width:100%; padding:8px; margin-top:4px; border:1px solid #ccc; border-radius:4px; }
.btn { display:inline-block; padding:8px 12px; background:#2563eb; color:#fff; border-radius:4px; text-decoration:none; margin-right:8px; }
.btn:hover { background:#1d4ed8; }
.chip { display:inline-block; padding:4px 8px; border-radius:999px; background:#eef2ff; border:1px solid #c7d2fe; color:#1f2937; font-size:12px; }
.virtual-card { position:relative; width:100%; max-width:420px; border-radius:16px; padding:16px; color:#fff; background: linear-gradient(135deg, #0f172a, #1f3a8a 60%, #2563eb); box-shadow:0 10px 24px rgba(15, 23, 42, 0.25); }
.card-viewport { perspective: 1000px; }
.virtual-card { transform-style: preserve-3d; will-change: transform; transition: transform .15s ease, box-shadow .15s ease; }
.virtual-card .gloss { position:absolute; inset:0; background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02)); border-radius:16px; opacity:.6; pointer-events:none; transform: translateZ(20px); }
.virtual-card .number { transform: translateZ(10px); }
.virtual-card .row { transform: translateZ(8px); }
.virtual-card:hover { box-shadow: 0 16px 36px rgba(15,23,42,0.35); }
.virtual-card .top { display:flex; align-items:center; justify-content:space-between; }
.virtual-card .chip { width:42px; height:32px; border-radius:6px; background: linear-gradient(180deg, #e5e7eb, #9ca3af); box-shadow: inset 0 0 0 2px rgba(0,0,0,0.15); }
.virtual-card .brand { font-weight:700; letter-spacing:1px; font-size:16px; }
.virtual-card .brand-sub { color:#cbd5e1; font-size:12px; letter-spacing:1px; }
.virtual-card .contactless { font-size:18px; color:#e5e7eb; margin-left:8px; }
.virtual-card .number { font-size:22px; letter-spacing:2px; margin:12px 0; }
.virtual-card .row { display:flex; justify-content:space-between; align-items:center; font-size:14px; }
.virtual-card .label { color:#e5e7eb; font-size:12px; }
.virtual-card .name { text-transform:uppercase; font-weight:600; }
table { width:100%; border-collapse:collapse; margin-top:10px; }
th, td { border:1px solid #e5e7eb; padding:8px; text-align:left; }
.alert { background:#fee2e2; color:#991b1b; padding:10px; border-radius:4px; margin-bottom:10px; }
.footer { text-align:center; padding:20px; color:#e5e7eb; background: linear-gradient(135deg, #0f172a, #1f3a8a); }
.footer .container { background: transparent; box-shadow: none; border-radius: 0; }
.footer .useful-links { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; align-items:center; }
.footer .footer-link { display:inline-block; color:#e5e7eb; text-decoration:none; padding:4px 10px; border:1px solid rgba(255,255,255,0.18); border-radius:999px; }
.footer .footer-link:hover { background: rgba(255,255,255,0.12); color:#fff; }
.footer .useful-links span { color:#cbd5e1; margin-right:6px; }
.footer .footer-link::before { content:'🔗 '; }
.footer-bottom { background:#0b1220; color:#9ca3af; }

/* New: grid cards */
.grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap:16px; margin-top:10px; }
.card { border:1px solid #e5e7eb; border-radius:8px; padding:14px; background:#fafafa; }
.card:hover { box-shadow:0 8px 20px rgba(0,0,0,.06); transform: translateY(-1px); transition: .15s ease; }
.card-header { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.card .icon { font-size:20px; }
.card .muted { color:#6b7280; margin:0; }
.muted-highlight { color:#0ea5e9; background: linear-gradient(90deg, rgba(14,165,233,.12), rgba(14,165,233,0)); padding:2px 6px; border-radius:6px; display:inline-block; border-left:3px solid #0ea5e9; }
.navbar-light.bg-light, .navbar-light.bg-white { color:#000; }
.navbar-light.bg-light .navbar-brand, .navbar-light.bg-white .navbar-brand { color:#000 !important; font-weight:600; }
.navbar-light.bg-light .nav-link, .navbar-light.bg-white .nav-link { color:#000 !important; }
.navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .nav-link.show { color:#000 !important; }
.navbar-light .navbar-nav .nav-link:hover { color:#000 !important; }
.card .address { color:#374151; font-size:14px; }
.card .actions { margin-top:8px; display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.filters { display:grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap:10px; margin-bottom:10px; }

/* Hero */
.hero { background: linear-gradient(135deg, #1f3a8a, #2563eb); color:#fff; border-radius:8px; padding:24px; margin-bottom:16px; }
.hero h1 { margin:0 0 8px 0; }
.hero p { margin:0 0 12px 0; color:#e5e7eb; }
.hero .hero-actions .btn { background:#fff; color:#1f3a8a; }
.btn-secondary { background:#0ea5e9; }

/* Seals */
.seal-badge { display:inline-block; margin-left:8px; padding:4px 8px; border-radius:999px; font-size:12px; font-weight:600; }
.seal-badge.trusted { background:#e8f5e9; color:#2e7d32; border:1px solid #a5d6a7; }
.seal-badge.verified { background:#e3f2fd; color:#1565c0; border:1px solid #90caf9; }

/* Slider */
.slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    margin: 16px 0 24px;
    background: #000;
}
.slide {
    display: none;
    width: 100%;
}
.slide.active { display: block; }
.slide img { width: 100%; display: block; }
.caption {
    position: absolute;
    left: 16px; bottom: 16px;
    background: rgba(0,0,0,0.55);
    color: #fff; padding: 8px 12px; border-radius: 8px;
    font-size: 0.95rem;
}
.slider .prev, .slider .next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: 0; border-radius: 999px; width: 36px; height: 36px;
    cursor: pointer; font-size: 22px; line-height: 36px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.slider .prev { left: 12px; }
.slider .next { right: 12px; }

/* Mobile tweaks */
@media (max-width: 768px) {
    .caption { font-size: 0.9rem; left: 12px; bottom: 12px; }
    .slider .prev, .slider .next { width: 32px; height: 32px; font-size: 20px; }
}
.slides { display:flex; transition: transform .5s ease; }
.slide { display:none; min-width:100%; position:relative; height:220px; background:#1f3a8a; align-items:flex-end; }
.slide img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.slide-caption { position:relative; z-index:1; width:100%; background:linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.2)); color:#fff; padding:12px; }
.slide-caption h3 { margin:0 0 6px; }
.slide-caption p { margin:0 0 10px; color:#e5e7eb; }
.slide-caption .icon { font-size:22px; margin-right:8px; }

/* Institute slider nav */
.institute-slider .slider-prev,
.institute-slider .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
}
.institute-slider .slider-prev { left: 8px; }
.institute-slider .slider-next { right: 8px; }
.slider-dots { position:absolute; bottom:8px; left:50%; transform:translateX(-50%); display:flex; gap:6px; }
.slider-dots button { width:8px; height:8px; border-radius:50%; border:none; background:#fff; opacity:.6; cursor:pointer; }
.slider-dots button.active { opacity:1; background:#2563eb; }

.slide.no-image { background:linear-gradient(135deg,#1f3a8a,#2563eb); }

.slide.active { display:flex; }

/* Stats, sections, categories, testimonials */
.stats { display:flex; gap:16px; margin:12px 0 18px; }
.stat { flex:1; background:#f9fafb; border:1px solid #e5e7eb; border-radius:8px; padding:12px; text-align:center; }
.stat-value { font-size:22px; font-weight:bold; color:#1f2937; }
.stat-label { color:#6b7280; }
.section { margin:20px 0; }
.section-header { display:flex; align-items:baseline; justify-content:space-between; }
.section-header .muted { color:#6b7280; }
.categories { display:grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap:12px; margin-top:10px; }
.category-card { display:flex; align-items:center; gap:8px; border:1px solid #e5e7eb; background:#fafafa; border-radius:8px; padding:12px; text-decoration:none; color:#1f2937; }
.category-card:hover { background:#f3f4f6; }
.category-card .icon { font-size:20px; }
/* Support older markup using .category */
.category { display:flex; align-items:center; gap:8px; border:1px solid #e5e7eb; background:#fafafa; border-radius:8px; padding:12px; color:#1f2937; }
.category:hover { background:#f3f4f6; }
.category .icon { font-size:20px; }

/* Institute logo wrapper with fallback */
.inst-logo { position:relative; width:100%; height:120px; border-radius:8px; background:#f3f4f6; display:flex; align-items:center; justify-content:center; margin-bottom:8px; overflow:hidden; }
.inst-logo img { width:100%; height:100%; object-fit:cover; display:block; }
.inst-logo .placeholder { position:absolute; font-size:32px; color:#6b7280; }
.price { font-weight:bold; color:#065f46; }
.testimonials .card p { margin:0 0 6px; }
.how .card { background:#eef2ff; border-color:#c7d2fe; }

/* Base responsive utilities */
img, video { max-width:100%; height:auto; }
.news-content iframe { width:100%; border:0; }
.news-content table { width:100%; border-collapse:collapse; margin:10px 0; }
.news-content th, .news-content td { border:1px solid #e5e7eb; padding:8px; }
.news-content img, .news-content video { max-width:100%; height:auto; border-radius:8px; }

/* Reviews */
.rating-summary { display:flex; align-items:center; justify-content:space-between; margin:12px 0; }
.rating-summary .avg { font-size:32px; font-weight:700; color:#1f2937; }
.rating-summary .stars { font-size:20px; }
.rating-summary .star.filled { color:#f59e0b; }
.rating-summary .star.empty { color:#e5e7eb; }
.rating-summary .count { color:#6b7280; }
.review-card .review-header { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.review-card .avatar { font-size:22px; }
.review-card .meta { display:flex; flex-direction:column; }
.review-card .stars { font-size:18px; }

/* Mobile (<=640px) */
@media (max-width: 640px) {
  .container { margin:10px; padding:12px; }

  .navbar { flex-wrap:wrap; }
  .navbar .links { margin-top:8px; display:flex; flex-wrap:wrap; gap:8px; }
  .navbar a { margin:6px 8px 0 0; }

  .section-header { flex-direction:column; gap:4px; }

  .stats { flex-direction:column; }
  .stat { text-align:left; }

  .grid { grid-template-columns: 1fr; }
  .card { padding:12px; }

  .categories { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }

  .hero { padding:16px; }
  .slide { height:160px; }
  .slider-prev, .slider-next { width:28px; height:28px; }
  .slider-dots { bottom:6px; }
}

/* Tablet (641px–1023px) */
@media (min-width: 641px) and (max-width: 1023px) {
  .container { max-width: 900px; margin: 16px auto; padding:16px; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .categories { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .filters { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

  .slide { height:220px; }
  .slider-prev, .slider-next { width:30px; height:30px; }
}

/* Desktop (>=1024px) */
@media (min-width: 1024px) {
  .container { max-width: 1200px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .categories { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .filters { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

  .hero { padding:32px; }
  .slide { height:320px; }
  .slider-prev, .slider-next { width:36px; height:36px; }
}

/* Admin Dashboard Layout */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}
.admin-sidebar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.3);
    position: sticky;
    top: 80px; /* below header */
}
.student-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.student-sidebar { background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%); color: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 10px 30px rgba(2, 6, 23, 0.25); position: sticky; top: 80px; }
.student-sidebar .brand { font-weight: 700; font-size: 1.15rem; margin-bottom: 12px; display:flex; align-items:center; gap:8px; }
.student-sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; color: #e2e8f0; text-decoration: none; border:1px solid rgba(255,255,255,0.18); transition: .2s ease; }
.student-sidebar nav a:hover { background: rgba(255,255,255,0.12); color: #fff; transform: translateX(2px); }
.admin-sidebar .brand {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 10px;
    color: #e2e8f0;
    text-decoration: none;
    transition: 0.2s ease;
}
.admin-sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(2px);
}
.admin-sidebar nav a.active {
    background: rgba(59, 130, 246, 0.25);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.5);
}
.admin-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* Responsive: stack sidebar above content */
@media (max-width: 992px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: relative; top: 0; }
}

/* Action buttons row */
.card .actions,
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.actions .btn {
    padding: 8px 12px;
    font-size: 0.95rem;
}

.animated-gradient { background-image: linear-gradient(135deg, #7c3aed, #2563eb, #0ea5e9, #10b981); background-size: 400% 400%; animation: gradientShift 12s ease infinite; }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.badge-animated { background-image: linear-gradient(135deg, #22c55e, #3b82f6); color:#fff; border:0; box-shadow: 0 4px 12px rgba(59,130,246,.35); }
.icon-pulse { animation: iconPulse 1.8s ease-in-out infinite; }
@keyframes iconPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .85; } }
.premium-hero { position: relative; }
.premium-hero::before { content:""; position:absolute; inset:-8px -8px auto -8px; height:8px; border-radius:12px 12px 0 0; background-image: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e, #3b82f6, #8b5cf6); background-size: 300% 100%; animation: gradientShift 10s linear infinite; }
.glow-hover { transition: box-shadow .2s ease, transform .2s ease; }
.glow-hover:hover { box-shadow: 0 16px 36px rgba(59,130,246,.25); transform: translateY(-2px); }

.btn-premium { background-image: linear-gradient(135deg, #2563eb, #7c3aed); color:#fff; border: none; box-shadow: 0 8px 20px rgba(37,99,235,.35); }
.btn-premium:hover { filter: brightness(1.05); box-shadow: 0 12px 28px rgba(37,99,235,.4); }
.btn-premium:active { transform: translateY(1px); }
.section-divider { height: 4px; border-radius: 999px; background-image: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e, #3b82f6, #8b5cf6); background-size: 300% 100%; animation: gradientShift 10s linear infinite; opacity:.8; margin: 16px 0; }
.glass-card { background: rgba(255,255,255,0.7); border:1px solid rgba(0,0,0,.06); backdrop-filter: saturate(140%) blur(8px); }
.ribbon { position:absolute; top:12px; left:-12px; transform: rotate(-12deg); background-image: linear-gradient(135deg, #22c55e, #3b82f6); color:#fff; padding:6px 14px; font-weight:700; box-shadow: 0 8px 16px rgba(59,130,246,.35); border-radius:6px; }

/* Compact on small screens */
@media (max-width: 600px) {
    .actions {
        gap: 6px;
    }
    .actions .btn {
        font-size: 0.9rem;
        padding: 7px 10px;
    }
}

/* Institute detail */
.institute-header { display:flex; gap:16px; align-items:center; margin-bottom:16px; }
.institute-logo { width:72px; height:72px; border-radius:8px; object-fit:cover; background:#f3f4f6; }
.institute-slider { position:relative; margin:16px 0; }
.institute-slider .slides { display:flex; overflow:auto; gap:12px; scroll-snap-type:x mandatory; padding-bottom:6px; }
.institute-slider .slide { min-width:280px; scroll-snap-align:start; }
.institute-slider img { width:100%; border-radius:10px; }
.institute-about, .institute-summary, .institute-services, .institute-hours,
.institute-contact, .institute-notifications, .institute-reviews { margin:20px 0; }
.institute-notifications ul { list-style:none; padding:0; }
.institute-notifications li { margin-bottom:10px; }
.hours-block { background:#f8fafc; padding:10px; border-radius:8px; white-space:pre-wrap; }
.reviews-list .review { border:1px solid #e5e7eb; border-radius:10px; padding:10px; margin-bottom:10px; }
.reviews-list .review-header { display:flex; gap:8px; align-items:center; }

/* Action buttons in institute page */
.container .actions { display:flex; gap:8px; margin:12px 0; }
.container .actions .btn { background:#2563eb; color:#fff; }

.institute-hero { display:flex; gap:16px; align-items:center; padding:16px; border-radius:12px; background:linear-gradient(135deg,#1f3a8a,#2563eb); color:#fff; margin-bottom:16px; }
.institute-hero h2 { margin:0; color:#fff; }
.institute-hero .muted { color:#e5e7eb; }
.badge { display:inline-block; margin-left:8px; padding:4px 10px; font-size:.85rem; border-radius:999px; background:#0ea5e9; color:#fff; }
.rating-badge { color:#ffd700; font-weight:600; }
.btn-outline { background:transparent; color:#fff; border:1px solid rgba(255,255,255,.7); }

.section-title { display:flex; align-items:center; gap:10px; padding:10px 14px; border-radius:12px; background: linear-gradient(135deg, #0ea5e9, #2563eb); color:#fff; margin:16px 0 10px; box-shadow: 0 6px 16px rgba(37,99,235,0.25); }
.section-title .icon { font-size:22px; }
.blog-hero { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px; background:#f8fafc; border-radius:12px; margin-bottom:16px; }
.blog-hero h2 { margin:0; }
.blog-hero .newsletter { display:flex; gap:8px; }
.blog-hero .newsletter input[type=email] { padding:10px; border:1px solid #e5e7eb; border-radius:8px; min-width:240px; }
.blog-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap:12px; }
.alert { background:#dcfce7; color:#065f46; padding:8px 10px; border-radius:8px; margin-bottom:10px; }
.chip { display:inline-block; padding:4px 10px; border-radius:999px; border:1px solid #e5e7eb; background:#f8fafc; color:#334155; font-size:14px; }
.badge { display:inline-block; padding:2px 8px; border-radius:999px; background:#eef2ff; color:#3730a3; border:1px solid #c7d2fe; font-size:12px; }
.kv-line { display:flex; gap:10px; align-items:flex-start; }
.kv-line label { font-size:12px; color:#6b7280; }
.kv-line .kv-icon { width:24px; height:24px; display:inline-flex; align-items:center; justify-content:center; }