/* ==========================================================================
   EduHome Connect - Clean Custom Video Lectures Stylesheet
   ========================================================================== */

:root {
  --video-navy: #062654;
  --video-navy-dark: #021633;
  --video-blue: #0059D9;
  --video-blue-light: #004AB5;
  --video-blue-soft: #ebf3ff;
  --video-gold: #FCC902;
  --video-gold-hover: #e5b600;
  --video-dark: #1e293b;
  --video-text: #475569;
  --video-muted: #64748b;
  --video-bg-light: #f8fafc;
  --video-white: #ffffff;
  --video-border: #e2e8f0;
  --video-shadow-sm: 0 2px 8px rgba(6, 38, 84, 0.04);
  --video-shadow-md: 0 10px 25px -5px rgba(6, 38, 84, 0.08);
  --video-shadow-lg: 0 20px 35px -10px rgba(6, 38, 84, 0.12);
  --video-shadow-glow: 0 10px 25px rgba(0, 89, 217, 0.25);
  --video-radius-sm: 8px;
  --video-radius-md: 14px;
  --video-radius-lg: 20px;
  --video-radius-full: 9999px;
  --video-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.video-section {
  padding: 80px 0;
  position: relative;
}

.video-section-sm {
  padding: 50px 0;
}

.video-bg-light {
  background: var(--video-bg-light);
}

.video-bg-white {
  background: #ffffff;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   1. Hero Banner
   ========================================================================== */
.video-hero-section {
  background: linear-gradient(135deg, #062654 0%, #003fa6 60%, #0059D9 100%);
  color: #ffffff;
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.video-hero-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 201, 2, 0.15) 0%, rgba(252, 201, 2, 0) 70%);
  pointer-events: none;
}

.video-hero-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.video-hero-breadcrumbs a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: var(--video-transition);
}

.video-hero-breadcrumbs a:hover {
  color: var(--video-gold);
}

.video-hero-breadcrumbs span {
  color: var(--video-gold);
  font-weight: 600;
}

.video-hero-title {
  font-family: 'Raleway', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.video-hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   2. Intro Section with Visual Banner
   ========================================================================== */
.video-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.video-intro-image-wrapper {
  position: relative;
  border-radius: var(--video-radius-lg);
  overflow: hidden;
  box-shadow: var(--video-shadow-lg);
}

.video-intro-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-intro-image-wrapper:hover img {
  transform: scale(1.03);
}

.video-intro-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.video-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--video-blue-soft);
  color: var(--video-blue);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--video-radius-full);
  align-self: flex-start;
}

.video-intro-title {
  font-family: 'Raleway', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--video-navy);
  line-height: 1.25;
  margin: 0;
}

.video-intro-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--video-text);
  margin: 0;
}

.btn-video-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--video-blue);
  color: #ffffff !important;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: var(--video-radius-sm);
  text-decoration: none;
  align-self: flex-start;
  box-shadow: 0 4px 15px rgba(0, 89, 217, 0.35);
  transition: var(--video-transition);
}

.btn-video-primary:hover {
  background: var(--video-blue-light);
  transform: translateY(-2px);
  box-shadow: var(--video-shadow-glow);
}

/* ==========================================================================
   3. Highlight Banner / Overview
   ========================================================================== */
.video-overview-card {
  background: linear-gradient(135deg, #062654 0%, #003fa6 100%);
  color: #ffffff;
  border-radius: var(--video-radius-lg);
  padding: 50px 40px;
  text-align: center;
  box-shadow: var(--video-shadow-lg);
  margin: 20px 0;
}

.video-overview-card h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 2.15rem;
  font-weight: 800;
  margin: 0 0 16px 0;
}

.video-overview-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 850px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   4. Features / Info Boxes Grid (Built for aspiring CA beginners)
   ========================================================================== */
.video-features-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.video-features-header h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--video-navy);
  margin: 0 0 14px 0;
}

.video-features-header p {
  font-size: 1.05rem;
  color: var(--video-text);
  line-height: 1.65;
  margin: 0;
}

.video-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.video-feature-card {
  background: #ffffff;
  border: 1px solid var(--video-border);
  border-radius: var(--video-radius-md);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--video-shadow-sm);
  transition: var(--video-transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--video-shadow-lg);
  border-color: var(--video-blue-soft);
}

.video-feature-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: var(--video-blue-soft);
  color: var(--video-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 22px;
  transition: var(--video-transition);
}

.video-feature-card:hover .video-feature-icon {
  background: var(--video-blue);
  color: #ffffff;
  transform: scale(1.08);
}

.video-feature-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--video-navy);
  margin: 0 0 12px 0;
  line-height: 1.35;
}

.video-feature-desc {
  font-size: 0.95rem;
  color: var(--video-text);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   5. Recent Videos Grid
   ========================================================================== */
.recent-videos-header {
  text-align: center;
  margin-bottom: 45px;
}

.recent-videos-header h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--video-navy);
  margin: 0 0 10px 0;
}

.recent-videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.video-embed-card {
  background: #ffffff;
  border-radius: var(--video-radius-md);
  overflow: hidden;
  box-shadow: var(--video-shadow-md);
  border: 1px solid var(--video-border);
  transition: var(--video-transition);
}

.video-embed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--video-shadow-lg);
}

.video-embed-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 177.77%; /* 9:16 vertical ratio for shorts */
  height: 0;
  background: #021633;
}

.video-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   6. FAQ Accordion Section
   ========================================================================== */
.video-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: start;
}

.video-faq-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-faq-sidebar h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--video-navy);
  line-height: 1.25;
  margin: 0;
}

.video-faq-sidebar p {
  font-size: 1rem;
  color: var(--video-text);
  line-height: 1.65;
  margin: 0;
}

.video-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.video-faq-item {
  border: 1px solid var(--video-border);
  border-radius: var(--video-radius-md);
  background: #ffffff;
  overflow: hidden;
  transition: var(--video-transition);
}

.video-faq-item:hover {
  border-color: #cbd5e1;
}

.video-faq-item.active {
  border-color: var(--video-blue);
  box-shadow: var(--video-shadow-sm);
}

.video-faq-question {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--video-navy);
  cursor: pointer;
}

.video-faq-icon {
  font-size: 0.85rem;
  color: var(--video-blue);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.video-faq-item.active .video-faq-icon {
  transform: rotate(180deg);
}

.video-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 22px;
  color: var(--video-text);
  font-size: 0.95rem;
  line-height: 1.65;
}

.video-faq-item.active .video-faq-answer {
  max-height: 300px;
  padding: 0 22px 18px;
}

/* ==========================================================================
   7. Course Modules Grid & CTA Banners
   ========================================================================== */
.video-modules-header {
  text-align: center;
  margin-bottom: 45px;
}

.video-modules-header h2,
.video-modules-header h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--video-navy);
  margin: 0 0 12px 0;
}

.video-modules-header p {
  font-size: 1.05rem;
  color: var(--video-text);
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.6;
}

.video-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.video-modules-grid.grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 920px;
  margin: 0 auto;
  gap: 32px;
}

.video-module-card {
  background: #ffffff;
  border: 1px solid var(--video-border);
  border-radius: var(--video-radius-md);
  overflow: hidden;
  box-shadow: var(--video-shadow-sm);
  transition: var(--video-transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.video-module-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--video-shadow-lg);
  border-color: var(--video-blue-soft);
}

.video-module-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--video-navy-dark);
}

.video-module-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.video-module-card:hover .video-module-thumb img {
  transform: scale(1.05);
}

.video-module-body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
  justify-content: space-between;
  gap: 18px;
}

.video-module-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--video-navy);
  margin: 0;
  line-height: 1.35;
  letter-spacing: 0.02em;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-module-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--video-blue-soft);
  color: var(--video-blue);
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--video-radius-full);
  text-decoration: none;
  transition: var(--video-transition);
  width: 100%;
}

.btn-module-action:hover,
.video-module-card:hover .btn-module-action {
  background: var(--video-blue);
  color: #ffffff;
}

/* ==========================================================================
   Concept Video Poster Cards Grid
   ========================================================================== */
.concept-videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.concept-video-card {
  background: #ffffff;
  border: 1px solid var(--video-border);
  border-radius: var(--video-radius-md);
  overflow: hidden;
  box-shadow: var(--video-shadow-sm);
  transition: var(--video-transition);
  display: flex;
  flex-direction: column;
}

.concept-video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--video-shadow-lg);
  border-color: var(--video-blue-soft);
}

.concept-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--video-navy-dark);
  display: block;
}

.concept-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.concept-video-card:hover .concept-video-thumb img {
  transform: scale(1.05);
}

.concept-video-body {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
  justify-content: space-between;
  gap: 14px;
}

.concept-video-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--video-navy);
  margin: 0;
  line-height: 1.35;
}

.btn-concept-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--video-blue);
  color: #ffffff !important;
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: var(--video-radius-sm);
  text-decoration: none;
  transition: var(--video-transition);
}

.btn-concept-watch:hover {
  background: var(--video-blue-light);
  transform: translateY(-2px);
  box-shadow: var(--video-shadow-glow);
}

.concept-videos-footer {
  text-align: center;
  margin-top: 40px;
}

.video-cta-box {
  background: linear-gradient(135deg, #062654 0%, #004AB5 100%);
  color: #ffffff;
  border-radius: var(--video-radius-lg);
  padding: 50px 40px;
  text-align: center;
  box-shadow: var(--video-shadow-lg);
  margin: 10px 0;
}

.video-cta-box h2,
.video-cta-box h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 14px 0;
  color: #ffffff;
}

.video-cta-box p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.video-cta-box .btn-video-primary {
  align-self: center;
  margin: 0 auto;
  background: var(--video-gold);
  color: var(--video-navy) !important;
}

.video-cta-box .btn-video-primary:hover {
  background: var(--video-gold-hover);
  box-shadow: 0 10px 25px rgba(252, 201, 2, 0.35);
}

/* ==========================================================================
   Recent Blogs Grid & Cards
   ========================================================================== */
.recent-blogs-header {
  text-align: center;
  margin-bottom: 40px;
}

.recent-blogs-header h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--video-navy);
  margin: 0;
}

.recent-blogs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--video-border);
  border-radius: var(--video-radius-md);
  overflow: hidden;
  box-shadow: var(--video-shadow-sm);
  transition: var(--video-transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--video-shadow-lg);
  border-color: var(--video-blue-soft);
}

.blog-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--video-navy-dark);
  display: block;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.blog-card-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--video-navy);
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: var(--video-blue);
}

.blog-card-meta {
  font-size: 0.85rem;
  color: var(--video-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card-meta i {
  color: var(--video-blue);
}

.blog-card-desc {
  font-size: 0.9rem;
  color: var(--video-text);
  line-height: 1.55;
  margin: 0 0 16px 0;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--video-blue);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: gap 0.2s ease;
  margin-top: auto;
}

.blog-card-link:hover {
  gap: 10px;
  color: var(--video-blue-light);
}

/* ==========================================================================
   7b. Concept Videos Grid
   ========================================================================== */
.concept-videos-header {
  text-align: center;
  margin-bottom: 40px;
}

.concept-videos-header h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--video-navy);
  margin: 0;
}

.concept-videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.concept-video-card {
  background: #ffffff;
  border-radius: var(--video-radius-md);
  border: 1px solid var(--video-border);
  overflow: hidden;
  box-shadow: var(--video-shadow-sm);
  transition: var(--video-transition);
  display: flex;
  flex-direction: column;
}

.concept-video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--video-shadow-md);
  border-color: #cbd5e1;
}

.concept-video-thumb {
  display: block;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #000;
}

.concept-video-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.concept-video-card:hover .concept-video-thumb img {
  transform: scale(1.05);
}

.concept-video-body {
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  flex: 1;
}

.concept-video-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--video-navy);
  margin: 0;
  line-height: 1.35;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-watch-video {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--video-blue);
  color: #ffffff !important;
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 9px 24px;
  border-radius: var(--video-radius-sm);
  text-decoration: none;
  transition: var(--video-transition);
  margin-top: auto;
}

.btn-watch-video:hover {
  background: var(--video-blue-light);
  box-shadow: 0 4px 12px rgba(0, 89, 217, 0.3);
  transform: translateY(-2px);
}

.concept-videos-cta {
  text-align: center;
  margin-top: 40px;
}

.btn-view-all-videos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--video-blue);
  color: #ffffff !important;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: var(--video-radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 89, 217, 0.3);
  transition: var(--video-transition);
}

.btn-view-all-videos:hover {
  background: var(--video-blue-light);
  transform: translateY(-2px);
  box-shadow: var(--video-shadow-glow);
}

/* ==========================================================================
   8. Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
  .video-intro-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .video-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .video-modules-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .recent-videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recent-blogs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .concept-videos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .video-faq-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .video-hero-title {
    font-size: 2.1rem;
  }

  .video-overview-card,
  .video-cta-box {
    padding: 35px 24px;
  }

  .video-overview-card h2,
  .video-cta-box h2,
  .video-cta-box h3 {
    font-size: 1.75rem;
  }

  .video-modules-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .recent-blogs-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .concept-videos-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .recent-videos-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }
}

