/* ==========================================================================
   TUTORS HABIGANJ - MODEL TEST LANDING PAGE STYLES
   ========================================================================== */

:root {
  --primary: #293488;
  --primary-hover: #1e2669;
  --primary-light: #eff2ff;
  --primary-glow: rgba(41, 52, 136, 0.15);
  
  --secondary: #111827;
  --accent: #2563eb;
  --accent-cyan: #0284c7;
  --accent-gold: #d97706;
  --accent-emerald: #059669;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-soft: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-focus: #93c5fd;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(41, 52, 136, 0.08);
  --shadow-lg: 0 10px 30px -4px rgba(41, 52, 136, 0.12);
  --shadow-hover: 0 20px 35px -5px rgba(41, 52, 136, 0.16);

  --font-bn: 'Hind Siliguri', 'Noto Sans Bengali', -apple-system, sans-serif;
  --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-bn);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-bn);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

p, span, li, a, button, input {
  font-family: var(--font-bn);
}

.en-num {
  font-family: var(--font-en);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 74px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.03);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition);
}

.admin-nav-btn:hover {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(41, 52, 136, 0.25);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 48px 0 36px;
  background: linear-gradient(180deg, #eff3ff 0%, #ffffff 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-bg-accent {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(41, 52, 136, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--primary);
  border: 1px solid #c7d2fe;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(41, 52, 136, 0.06);
  margin-bottom: 18px;
}

.hero-title {
  font-size: 2.65rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  color: var(--primary);
  background: linear-gradient(135deg, #293488 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.hero-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.feature-tag svg {
  color: var(--accent-emerald);
}

/* CTA Toggle Buttons */
/* ==========================================================================
   ULTRA-PREMIUM HERO ACTION BUTTONS
   ========================================================================== */
.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-hero-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 26px 14px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  min-width: 290px;
}

/* Subtle Shimmer Ray */
.btn-hero-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: all 0.75s ease;
  pointer-events: none;
}

.btn-hero-card:hover::after {
  left: 130%;
}

/* Class 3 Button: Royal Deep Navy & Sapphire Blue */
.btn-c3 {
  background: linear-gradient(135deg, #182064 0%, #293488 55%, #2563eb 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px -4px rgba(41, 52, 136, 0.45);
}

.btn-c3:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 38px -4px rgba(41, 52, 136, 0.55);
}

/* Class 6 Button: Rich Emerald Forest & Jade Green */
.btn-c6 {
  background: linear-gradient(135deg, #064e3b 0%, #059669 55%, #10b981 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px -4px rgba(5, 150, 105, 0.45);
}

.btn-c6:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 38px -4px rgba(5, 150, 105, 0.55);
}

/* Left Icon Bubble */
.btn-icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.btn-hero-card:hover .btn-icon-bubble {
  transform: scale(1.1) rotate(-5deg);
}

/* Text Center */
.btn-text-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}

.btn-subtext {
  font-size: 0.76rem;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-transform: uppercase;
}

.btn-maintext {
  font-size: 1.22rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

/* Right Arrow Bubble */
.btn-arrow-bubble {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}

.btn-hero-card:hover .btn-arrow-bubble {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   CONTENT SECTION & MODEL TEST CARDS
   ========================================================================== */
.content-section {
  padding: 40px 0 60px;
  background: var(--bg-main);
  min-height: 400px;
}

.class-block {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-head-simple {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-icon-sm {
  font-size: 1.5rem;
}

.section-title-simple {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
}

.section-badge-pill {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.section-badge-pill.green {
  background: #ecfdf5;
  color: #047857;
}

/* Tests Grid */
.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

/* Test Card */
.test-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.test-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, #3b82f6 100%);
  opacity: 0;
  transition: var(--transition);
}

.test-card.green-accent::before {
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

.test-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.test-card:hover::before {
  opacity: 1;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.test-no-pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
}

.test-card.green-accent .test-no-pill {
  background: #ecfdf5;
  color: #047857;
}

.subject-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.meta-chip {
  display: flex;
  align-items: center;
  gap: 5px;
}

.meta-chip svg {
  color: var(--text-light);
}

.card-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-card-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid #cbd5e1;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-card-preview:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.btn-card-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(41, 52, 136, 0.2);
  transition: var(--transition);
}

.test-card.green-accent .btn-card-download {
  background: #059669;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.2);
}

.btn-card-download:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-solution-row {
  grid-column: span 2;
  margin-top: 4px;
}

.btn-card-solution {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: #fffbeb;
  color: #b45309;
  border: 1px dashed #fde68a;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-card-solution:hover {
  background: #fef3c7;
  color: #92400e;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  background: #ffffff;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   MINIMAL CLEAN FOOTER
   ========================================================================== */
.minimal-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  margin-top: auto;
}

.footer-simple-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-copy strong {
  color: var(--primary);
}

.footer-admin-btn {
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.82rem;
  transition: var(--transition);
}

.footer-admin-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.pdf-modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 960px;
  height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: scale(0.96) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.pdf-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-color);
}

.pdf-modal-title-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
}

.pdf-modal-title-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  padding: 7px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.modal-btn-download:hover {
  background: var(--primary-hover);
}

.modal-btn-close {
  background: #e2e8f0;
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.modal-btn-close:hover {
  background: #cbd5e1;
}

.pdf-iframe-container {
  flex: 1;
  background: #475569;
  position: relative;
}

.pdf-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Admin Login Modal Container */
.auth-modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.auth-modal-logo {
  height: 52px;
  margin-bottom: 16px;
}

.auth-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.auth-modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.auth-form-group {
  margin-bottom: 20px;
  text-align: left;
}

.auth-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.auth-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-auth-submit {
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-auth-submit:hover {
  background: var(--primary-hover);
}

.auth-error-msg {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 10px;
  display: none;
}

/* ==========================================================================
   DEDICATED SUBPAGE (CLASS 3 & CLASS 6) STYLES
   ========================================================================== */
.home-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-hero-fullscreen {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.nav-wrapper-page {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 74px;
}

.subpage-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-page-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-page-nav:hover {
  background: var(--bg-soft);
  border-color: #cbd5e1;
}

.btn-page-nav.accent {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #c7d2fe;
}

.btn-page-nav.accent:hover {
  background: var(--primary);
  color: #ffffff;
}

.page-banner {
  background: linear-gradient(180deg, #eff3ff 0%, #ffffff 100%);
  padding: 44px 0 28px;
  border-bottom: 1px solid var(--border-color);
}

.page-banner.green-banner {
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
}

.page-banner-content {
  max-width: 820px;
}

.badge-pill.green-pill {
  color: #047857;
  border-color: #a7f3d0;
}

.page-banner-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 10px;
}

.page-banner-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.modal-btn-download.green-btn {
  background: #059669;
}

.modal-btn-download.green-btn:hover {
  background: #047857;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.9rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .page-banner-title {
    font-size: 1.8rem;
  }
  .page-banner-desc {
    font-size: 0.95rem;
  }
  .nav-wrapper-page {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
    gap: 10px;
  }
  .tests-grid {
    grid-template-columns: 1fr;
  }
  .card-actions-row {
    grid-template-columns: 1fr;
  }
  .btn-solution-row {
    grid-column: span 1;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
}

