
:root {
  --red: #EE343B;
  --dark: #1a1a1a;
  --white: #ffffff;
  --light-gray: #f7f7f7;
  --border: #e0e0e0;
  --text: #333333;
  --text-light: #666666;
  --orange: #FF8C00;
  --green-wa: #25D366;
  --green-em: #2d9e5e;

  --font: "Montserrat", sans-serif;
  --transition: 0.25s ease;
}

.tab-content .container{
  max-width: 1400px;
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner {
  background: var(--red);
  padding: 32px 24px;
  text-align: center;
}

.hero-banner h1 {
  color: var(--white);
  font-size: clamp(24px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: .5px;
}

/* ============================================================
   TABS
   ============================================================ */
.tabs-bg {
  background: #000000;
  padding: 32px 0 0;
  /* no bottom padding so the overlap works */
  position: relative;
  z-index: 10;
  /* high z-index so the tabs overlay on top of the content container */
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* border-radius: 8px; */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  /* prominent tab border shadow */
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(40px);
  /* shift down by half of height to overlap */
}

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 16px;
  background: var(--white);
  border: none;
  border-right: 1.5px solid var(--border);
  font-size: 30px;
  font-weight: 600;
  color: var(--dark);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}


.tab span{
  font-family: var(--font);
  color: #1a1a1a;
}
.tab:last-child {
  border-right: none;
}

.tab:hover:not(.active) {
  background: #f5f5f5;
}

.tab.active {
  background: var(--red);
  color: var(--white);
}
.tab.active span{
  color: var(--white);
}

/* Icon visibility toggling */
.tab-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.tab-icon-white {
  display: none;
  filter: brightness(0) invert(1);
}

.tab-icon-dark {
  display: block;
  filter: brightness(0);
}

.tab.active .tab-icon-white {
  display: block;
}

.tab.active .tab-icon-dark {
  display: none;
}

.tab-icon.blogs{
  width: 55px;
}
/* ============================================================
   TAB CONTENT
   ============================================================ */
.knowledge-section {
  background: #000000;
}

.tab-content {
  display: none;
  padding: 0;
  padding-bottom: 48px;
}

.tab-content.active {
  display: block;
}

.tab-content .container {
  background: var(--white);
  /* border-radius: 12px; */
  padding: 68px 32px 40px;
  /* increased top padding to accommodate the overlapping tabs */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

/* ============================================================
   PUBLICATIONS
   ============================================================ */
.pub-table-wrapper {
  border: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.pub-table-header {
  display: flex;
  align-items: center;
  gap: 42px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 12px;
  font-weight: 700;
  font-size: 25px;
  color: var(--dark);
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.col-sno {
  width: 75px;
  text-align: center;
  flex-shrink: 0;
}

.col-link {
  flex: 1;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}

.pub-item {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.pub-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pub-number {
  background: var(--red);
  color: var(--white);
  font-size: 100px;
  font-weight: 700;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(224, 50, 67, 0.2);
}

.pub-number span {
  line-height: 1;
}

.pub-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0;
  flex: 1;
}

.pub-title {
  color: var(--red);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  transition: color var(--transition);
  align-self: flex-start;
}

.pub-title:hover {
  color: #c0222f;
}

.pub-meta {
  font-size: 20px;
  color: var(--text);
  line-height: 1.5;
  font-weight: normal !important;
}

.pub-meta strong {
  font-weight: 700 !important;
  color: #1a1a1a;
}

.pub-footer-note {
  text-align: center;
  font-size: 32px;
  color: #1a1a1a;
  padding: 24px 16px 0;
  margin-top: 16px;
  font-family: var(--font);
}

/* ============================================================
   BLOGS
   ============================================================ */
.blogs-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1060px;
  margin-inline: auto;
}

.blog-card {
  position: relative;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

/* Image area */
.blog-image-wrap {
  position: relative;
  overflow: hidden;
  height: 380px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.moa-article-author-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.moa-author-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.moa-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.moa-author-name {
  font-size: 13.5px;
  font-weight: bold;
  color: #1a1a1a;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}
.moa-article-date {
  font-size: 12px;
  color: #555555;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}
@media (max-width: 640px) {
  .blog-image-wrap {
    height: 220px;
  }
}

.blog-image-wrap>img:first-child {
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.blog-card:hover .blog-image-wrap>img:first-child {
  transform: scale(1.02);
}

/* Logo top-right */
.blog-logo-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.blog-logo-overlay img {
  height: 32px;
  width: auto;
}

/* Date badge overlapping bottom edge */
.blog-date-badge {
  position: absolute;
  top: 356px;
  /* overlaps bottom of 380px image wrap */
  right: 28px;
  background: var(--red);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(224, 50, 67, 0.3);
}

.badge-day {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.badge-month {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: capitalize;
}

/* Meta bar */
.blog-meta-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0 12px;
  border-bottom: none;
  flex-wrap: wrap;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: bold;
  color: #1a1a1a;
}

.blog-meta-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--red);
  /* All meta icons are red */
}

/* Body */
.blog-body {
  padding: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin-top: 4px;
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .blog-title {
    font-size: 20px;
  }
}

.blog-excerpt {
  font-size: 16px;
  color: #1a1a1a;
  line-height: 1.75;
  font-weight: 500;
}

.blog-excerpt a {
  color: #0066cc;
  /* Premium blue links */
  text-decoration: underline;
  font-weight: 600;
}

.blog-excerpt a:hover {
  color: #004499;
}

.btn-read-more {
  display: flex;
  align-items: center;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  transition: color var(--transition);
  align-self: flex-start;
  margin-top: 8px;
  text-transform: uppercase;
  gap: 4px;
}

.btn-read-more:hover {
  color: #c0222f;
}

/* ============================================================
   SAMPLE LECTURES — full-width video player blocks
   ============================================================ */
.lecture-sections {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1060px;
  margin-inline: auto;
}

.lecture-block-title {
  font-size: clamp(18px, 2.4vw, 50px);
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 16px;
}

/* Outer wrapper — gives the black bar room */
.video-player-wrap {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .18);
}

/* Thumbnail area */
.video-thumb {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.video-thumb>img {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Logo top-right */
.vp-logo {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

.vp-logo-icon {
  width: 0;
  height: 0;
  display: none;
}

/* hide the SVG icon, show only logo image */
.vp-logo-img {
  height: 28px;
  width: auto;
}

/* Center play button */
.vp-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.2s ease;
}

.vp-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.12);
}

.vp-play-btn svg {
  width: 64px;
  height: 64px;
  display: block;
}

/* Disclaimer label */
.vp-disclaimer {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 11px;
  color: var(--red);
  font-weight: 600;
  z-index: 3;
  letter-spacing: .3px;
}

/* Control bar */
.vp-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1a1a1a;
  padding: 8px 12px;
}

.vp-ctrl-btn {
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.vp-ctrl-btn:hover {
  opacity: 1;
}

.vp-ctrl-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Progress bar */
.vp-progress {
  flex: 1;
  padding: 0 4px;
}

.vp-progress-bar {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, .25);
  border-radius: 2px;
  cursor: pointer;
}

.vp-progress-fill {
  height: 100%;
  background: var(--red);
  border-radius: 2px;
}

.vp-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 50%;
  cursor: pointer;
}

/* Time display */
.vp-time {
  font-size: 11px;
  color: rgba(255, 255, 255, .75);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Fullscreen btn pushed to end */
.vp-fullscreen {
  margin-left: auto;
}

/* ============================================================
   FLOATING SOCIAL BUTTONS
   ============================================================ */
.social-float {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.float-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width var(--transition);
}

.float-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.float-whatsapp {
  background: var(--green-wa);
  border-radius: 4px 0 0 0;
}

.float-email {
  background: var(--green-em);
  border-radius: 0 0 0 4px;
}

.float-btn:hover {
  width: 52px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet — ≤ 900px */
@media (max-width: 900px) {
  .search-bar input {
    width: 150px;
  }

  .logo img {
    height: 44px;
  }

  .tab {
    font-size: 13px;
    padding: 14px 8px;
    gap: 8px;
  }

  .tab-icon {
    width: 32px;
    height: 32px;
  }

  .col-sno {
    width: 58px;
  }

  .pub-number {
    width: 58px;
    height: 58px;
    font-size: 26px;
  }
}

/* Mobile — ≤ 640px */
@media (max-width: 640px) {

  /* Announcement */
  .announcement-bar {
    font-size: 11px;
  }

  /* Navbar */
  .navbar-inner {
    flex-wrap: wrap;
  }

  .nav-right {
    display: none;
    width: 100%;
    align-items: stretch;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 12px;
  }

  .nav-right.open {
    display: flex;
  }

  .nav-top-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-bottom-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .search-bar input {
    width: 140px;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-banner {
    padding: 24px 16px;
  }

  /* Tabs */
  .tabs-bg {
    padding: 20px 0 0;
  }

  .tabs {
    grid-template-columns: 1fr;
    transform: translateY(30px);
  }

  .tab {
    border-right: none;
    border-bottom: 1px solid var(--border);
    justify-content: flex-start;
    padding: 14px 20px;
  }

  .tab:last-child {
    border-bottom: none;
  }

  .tab-content .container {
    padding: 50px 16px 24px;
    /* border-radius: 8px; */
  }

  /* Pub table */
  .pub-table-header {
    display: none;
  }

  .pub-item {
    padding: 10px;
    gap: 12px;
  }

  .pub-number {
    min-width: 52px;
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .pub-detail {
    padding: 0;
  }

  .pub-title, .pub-meta {
    font-size: 14px;
  }
  .pub-footer-note{
    font-size: 20px;
  }


  /* Blogs */
  .blog-date-badge {
    top: 196px;
    /* overlaps 220px image wrap on mobile */
    right: 16px;
    width: 52px;
    height: 52px;
    border-radius: 6px;
  }

  .badge-day {
    font-size: 18px;
  }

  .badge-month {
    font-size: 11px;
  }

  .blog-meta-bar {
    gap: 16px;
    padding: 16px 0 8px;
  }

  .blog-meta-item {
    font-size: 12.5px;
  }

  /* Lectures */
  .lecture-grid {
    grid-template-columns: 1fr;
  }

  /* Social float */
  .social-float {
    top: auto;
    bottom: 80px;
    transform: none;
  }
}

/* Small mobile — ≤ 400px */
@media (max-width: 400px) {
  .btn {
    padding: 7px 14px;
    font-size: 12px;
  }

  .refer-earn {
    font-size: 12px;
  }

  .tab span {
    font-size: 12px;
  }
}