:root {
  /* Card Section Colors */
  --bg-light-blue: #eff6ff;
  --bg-light-yellow: #fefce8;
  --bg-light-orange: #fff7ed;
  --heading-navy: #0f172a;
  --btn-blue-text: #2563eb;
  --btn-blue-hover: #3b82f6;
  --btn-yellow-text: #ca8a04;
  --btn-yellow-hover: #eab308;
  --btn-orange-text: #ea580c;
  --btn-orange-hover: #f97316;
  --btn-mcq-text: #9C27B0;
  --bg-light-purple: #f3e8f5;
  --btn-pyq-text: #E91E63;
  --bg-light-pink: #fce4ec;
  --btn-dpp-text: #009688;
  --bg-light-teal: #e0f2f1;

  /* Blended Bottom Section Colors */
  --blend-dark-green: #1A531A; 
  --blend-ivory: #FDFCF0;      
  --blend-light-bg: #F2F9F3;   
  --blend-text-main: #2D3748;  
  --blend-text-accent: #0B2F0B;
}

.sc-widget-container {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px;
  box-sizing: border-box;
  line-height: 1.3;
  position: relative;
  background: #fcfcfc;
  border: 1px solid rgba(23, 102, 67, 0.4);
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(23, 102, 67, 0.15), 0 8px 30px rgba(23, 102, 67, 0.08);
}

.sc-widget-container * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- SVG HOVER ANIMATION --- */
.sc-svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center bottom;
  transition: transform 0.3s ease;
}

@keyframes sc-svg-bounce {
  0% { transform: scale(1) translateY(0); }
  30% { transform: scale(1.15) translateY(-3px) rotate(-8deg); }
  60% { transform: scale(1.15) translateY(-3px) rotate(8deg); }
  100% { transform: scale(1) translateY(0) rotate(0deg); }
}

.sc-feature-item:hover .sc-svg-icon,
.sc-cta-content:hover .sc-svg-icon,
.sc-cta-btn:hover .sc-svg-icon,
.sc-card-links a:not(.sc-locked):hover .sc-svg-icon {
  animation: sc-svg-bounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* --- MAIN GRID --- */       
.sc-main-grid { display: flex; flex-direction: column; gap: 30px; margin-bottom: 20px; }
.sc-column { width: 100%; padding: 0 15px 20px 15px; border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,0.04); position: relative; transition: box-shadow 0.3s; }
.sc-column:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.sc-column-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; pointer-events: none; opacity: 0.4; }

.sc-column-a { background-color: var(--bg-light-blue); border: 2px solid #dbeafe; }
.sc-column-b { background-color: var(--bg-light-yellow); border: 2px solid #fef08a; }
.sc-column-c { background-color: var(--bg-light-orange); border: 2px solid #fed7aa; }

.sc-section-title {
  font-size: 14px; letter-spacing: 0.5px; font-weight: 800; text-transform: uppercase;
  color: var(--heading-navy); text-align: center; background: #ffffff;
  padding: 6px 22px; border-radius: 50px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  width: fit-content; margin: -18px auto 20px auto; position: relative; z-index: 2; 
}
.sc-column-a .sc-section-title { border: 2px solid #93c5fd; }
.sc-column-b .sc-section-title { border: 2px solid #facc15; }
.sc-column-c .sc-section-title { border: 2px solid #fdba74; }

.sc-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; z-index: 2; }
.sc-custom-card {
  background-color: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 8px 12px rgba(0,0,0,0.03);
  padding: 12px; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex; flex-direction: column; justify-content: space-between;
}
.sc-custom-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: #cbd5e1; }
.sc-custom-card h4 { font-size: 14px; font-weight: 700; margin: 8px 0 12px; color: var(--heading-navy); text-align: center; flex-grow: 1; }

.sc-unit-badge { display: flex; justify-content: space-between; align-items: center; padding: 3px 6px 3px 8px; font-size: 10.5px; font-weight: 700; background: #fff5eb; border-radius: 6px; color: #9a3412; width: 100%; margin-bottom: 8px; }
.sc-unit-badge span:nth-child(2) {
  padding: 3px 8px; border-radius: 5px; color: #7c2d12; font-weight: 700;
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.4) 100%);
  border: 1px solid rgba(255,255,255,0.9); box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 2px 4px rgba(0,0,0,0.05); text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
}

.sc-card-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: auto; }
.sc-card-links a:only-child { grid-column: span 3; }
.sc-card-links a {
  text-align: center; padding: 5px 3px; border-radius: 6px; text-decoration: none;
  font-weight: 600; font-size: 10.5px; border: 1px solid transparent; transition: all 0.25s ease;
  display: flex; justify-content: center; align-items: center; gap: 4px; white-space: nowrap; 
}

.sc-btn-oneshot { background-color: var(--bg-light-blue); color: var(--btn-blue-text); border-color: #dbeafe; }
.sc-btn-notes { background-color: var(--bg-light-yellow); color: var(--btn-yellow-text); border-color: #fef08a; }
.sc-btn-pro { background-color: var(--bg-light-orange); color: var(--btn-orange-text); border-color: #ffedd5; }
.sc-btn-mcq { background-color: var(--bg-light-purple); color: var(--btn-mcq-text); border-color: #f3e8f5; }
.sc-btn-pyq { background-color: var(--bg-light-pink); color: var(--btn-pyq-text); border-color: #fce4ec; }
.sc-btn-dpp { background-color: var(--bg-light-teal); color: var(--btn-dpp-text); border-color: #e0f2f1; }

.sc-card-links a:hover { color: #fff !important; border-color: transparent; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.sc-card-links a.sc-btn-oneshot:hover { background: var(--btn-blue-hover); }
.sc-card-links a.sc-btn-notes:hover { background: var(--btn-yellow-hover); }
.sc-card-links a.sc-btn-pro:hover { background: var(--btn-orange-hover); }
.sc-card-links a.sc-btn-mcq:hover { background: #ab47bc; }
.sc-card-links a.sc-btn-pyq:hover { background: #f06292; }
.sc-card-links a.sc-btn-dpp:hover { background: #26a69a; }

/* --- LOCKED LINKS OVERRIDE --- */
.sc-card-links a.sc-locked {
  background-color: #f1f5f9 !important; color: #94a3b8 !important; border-color: #e2e8f0 !important;
  cursor: not-allowed; box-shadow: none !important; transform: none !important;
}

/* --- BOTTOM SECTION --- */
.sc-bottom-blended-wrapper { border-radius: 16px; overflow: hidden; border: 1px solid rgba(26, 83, 26, 0.1); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); margin-top: 10px; }
.sc-top-cta { background: var(--blend-dark-green); padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.sc-cta-content { display: flex; align-items: center; gap: 14px; }
.sc-cta-icon { background: #ffffff; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color:#1A531A; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }
.sc-cta-text h4 { color: var(--blend-ivory); font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.sc-cta-text p { color: rgba(253, 252, 240, 0.75); font-size: 13px; }
.sc-cta-btn { background: #0B2F0B; color: var(--blend-ivory); text-decoration: none; padding: 8px 20px; border-radius: 30px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; transition: 0.3s; box-shadow: 0 4px 12px rgba(11, 47, 11, 0.3); }
.sc-cta-btn:hover { background: #072007; transform: translateY(-2px); }

.sc-middle-section { background: linear-gradient(180deg, #E6F4EB 0%, var(--blend-light-bg) 40%, #ffffff 100%); padding: 24px 20px 20px; text-align: center; position: relative; }
.sc-network-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0.03; background-image: radial-gradient(var(--blend-dark-green) 1px, transparent 1px); background-size: 30px 30px; pointer-events: none; z-index: 1; }
.sc-wisdom-text { position: relative; z-index: 2; font-size: 30px; font-weight: 800; color: var(--blend-text-main); margin-bottom: 24px; letter-spacing: -0.5px; }
.sc-wisdom-text span { color: var(--blend-dark-green); }

.sc-features-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 1px solid rgba(26, 83, 26, 0.08); padding-top: 20px; }
.sc-feature-item { display: flex; align-items: flex-start; text-align: left; gap: 10px; padding: 6px; border-radius: 8px; transition: background 0.3s; }
.sc-feature-item:hover { background: rgba(26, 83, 26, 0.04); }
.sc-feature-icon { margin-top: 2px; color: #1A531A; }
.sc-feature-text h5 { color: var(--blend-text-accent); font-size: 14px; font-weight: 700; }
.sc-feature-text p { color: #64748b; font-size: 12px; }

/* --- FLOATING ACTIONS & TOAST --- */
.sc-floating-actions { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 12px; z-index: 100; }
.sc-fab { width: 48px; height: 48px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.12); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.sc-fab:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.sc-fab:active { transform: scale(0.95); }
.sc-fab svg { width: 22px; height: 22px; transition: transform 0.4s ease; }
.sc-fab-share { background: #ffffff; color: #156845; }
.sc-fab-scroll { background: #156845; color: #ffffff; }
.sc-fab-scroll.sc-point-down svg { transform: rotate(180deg); }

.sc-toast { visibility: hidden; min-width: 250px; background-color: #0f4c32; color: #ffffff; text-align: center; border-radius: 30px; padding: 12px 24px; position: fixed; z-index: 3000; left: 50%; bottom: 20px; transform: translateX(-50%); font-size: 14px; font-weight: 600; box-shadow: 0 10px 25px rgba(15, 76, 50, 0.4); opacity: 0; transition: all 0.3s ease; }
.sc-toast.show { visibility: visible; opacity: 1; bottom: 40px; }

/* --- VIDEO CONFIRMATION MODAL --- */
.sc-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.sc-modal-overlay.show { opacity: 1; visibility: visible; }
.sc-modal-card {
  background: #ffffff; border-radius: 20px; padding: 40px 24px 30px;
  width: 90%; max-width: 440px; text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sc-modal-overlay.show .sc-modal-card { transform: scale(1); }

.sc-modal-icon-wrapper { position: relative; margin: 0 auto 24px; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; }
.sc-modal-icon-bg { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fee2e2; background: #fff5f5; animation: sc-pulse-ring 2s infinite ease-out; }
.sc-modal-play-btn { z-index: 2; color: #dc2626; font-size: 32px; animation: sc-pulse-icon 2s infinite ease-out; }
.sc-modal-particle { position: absolute; font-size: 10px; color: #ef4444; animation: sc-float-particle 3s infinite ease-in-out; }
.sc-modal-particle:nth-child(2) { top: -10px; left: 10px; animation-delay: 0.2s; }
.sc-modal-particle:nth-child(3) { top: 20px; right: -15px; animation-delay: 0.5s; font-size: 8px;}
.sc-modal-particle:nth-child(4) { bottom: -5px; left: 0px; animation-delay: 0.8s; }
.sc-modal-particle:nth-child(5) { bottom: 10px; right: 5px; animation-delay: 1.1s; }

@keyframes sc-pulse-ring { 0% { transform: scale(0.85); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); } 70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(220, 38, 38, 0); } 100% { transform: scale(0.85); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } }
@keyframes sc-pulse-icon { 0% { transform: scale(1); } 35% { transform: scale(1.15); } 70% { transform: scale(1); } 100% { transform: scale(1); } }
@keyframes sc-float-particle { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-8px); opacity: 1; } }

.sc-modal-card h2 { font-size: 24px; color: #111827; margin-bottom: 8px; font-weight: 800; }
.sc-modal-card p { font-size: 15px; color: #6b7280; margin-bottom: 30px; font-weight: 500;}
.sc-modal-actions { display: flex; gap: 16px; }
.sc-modal-btn {
  flex: 1; padding: 12px; border-radius: 10px; font-weight: 700;
  font-size: 16px; cursor: pointer; transition: all 0.2s;
  display: flex; justify-content: center; align-items: center; gap: 8px;
}
.sc-btn-stay { background: #ffffff; border: 1px solid #d1d5db; color: #374151; }
.sc-btn-stay:hover { background: #f9fafb; border-color: #9ca3af; }
.sc-btn-watch { background: #dc2626; border: 1px solid #dc2626; color: #ffffff; }
.sc-btn-watch:hover { background: #b91c1c; border-color: #b91c1c; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .sc-cards-grid { grid-template-columns: repeat(2, 1fr); } 
  .sc-features-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  .sc-cards-grid { grid-template-columns: 1fr; } 
  .sc-floating-actions { bottom: 16px; right: 16px; }
  .sc-top-cta { flex-direction: column; text-align: center; }
  .sc-features-grid { grid-template-columns: 1fr; gap: 20px; }
  .sc-feature-item { align-items: center; text-align: center; flex-direction: column; }
}