/* ===== SHARED STYLES FOR LITTLELEARNER.KIDS CLONE ===== */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: #404040;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #157ECE;
  text-decoration: underline;
  transition: color 0.2s;
}

a:hover {
  color: #3C91E6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: disc;
  padding-left: 20px;
}

ul li {
  margin-bottom: 6px;
}

p {
  margin-bottom: 16px;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER / NAVIGATION ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #eee;
  height: 66px;
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  display: inline-block;
  text-decoration: none;
}

.logo img {
  width: 191px;
  height: 26px;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav > ul > li {
  position: relative;
  margin: 0;
}

.main-nav > ul > li > a {
  display: block;
  padding: 22px 16px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #404040;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.main-nav > ul > li > a:hover {
  color: #3C91E6;
}

/* Dropdown arrow */
.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #404040;
  transition: border-color 0.2s;
}

.has-dropdown:hover > a::after {
  border-top-color: #3C91E6;
}

/* Dropdown menu */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 100;
  padding: 8px 0;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  margin: 0;
}

.dropdown li a {
  display: block;
  padding: 8px 20px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #404040;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.dropdown li a:hover {
  background: #f5f5f5;
  color: #3C91E6;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #404040;
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-family: 'Open Sans', sans-serif;
  font-size: 31.875px;
  font-weight: 700;
  color: #2D2D2D;
  line-height: 1.3;
  margin-bottom: 16px;
}

h2 {
  font-family: 'Open Sans', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #404040;
  line-height: 1.2;
  margin-bottom: 16px;
}

h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 21px;
  font-weight: 600;
  color: #797979;
  line-height: 1.3;
  margin-bottom: 12px;
}

h4 {
  font-family: 'Open Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #797979;
  line-height: 1.3;
  margin-bottom: 12px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: #3C91E6;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #2a7dd4;
  color: #fff;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #eee;
}

.site-footer p {
  color: #8390A4;
  font-size: 13px;
  margin-bottom: 0;
}

/* ===== ARTICLES LISTING PAGE ===== */
.page-title {
  text-align: center;
  padding: 40px 0 20px;
}

.page-title h2 {
  text-transform: uppercase;
  margin-bottom: 0;
}

/* Category filter tabs */
.category-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 0 30px;
  flex-wrap: wrap;
}

.category-filters button {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border: 1px solid #ccc;
  border-radius: 100px;
  background: #fff;
  color: #404040;
  cursor: pointer;
  transition: all 0.2s;
}

.category-filters button:hover,
.category-filters button.active {
  background: #3C91E6;
  color: #fff;
  border-color: #3C91E6;
}

/* Article list */
.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-list li {
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.article-list li:first-child {
  border-top: 1px solid #eee;
}

.article-thumb {
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 4px;
}

.article-thumb img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.article-info {
  flex: 1;
}

.article-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: #2D2D2D;
  margin-bottom: 6px;
}

.article-info h3 a {
  color: #2D2D2D;
  text-decoration: none;
}

.article-info h3 a:hover {
  color: #3C91E6;
}

.article-meta {
  font-size: 13px;
  color: #8390A4;
  margin-bottom: 8px;
}

.article-meta .category-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 100px;
  background: #E8F7FE;
  color: #3C91E6;
  margin-left: 8px;
}

.article-meta .category-tag.music {
  background: #FFEDED;
  color: #d44;
}

.article-meta .category-tag.research {
  background: #f0f0ff;
  color: #5F5FBF;
}

.article-excerpt {
  font-size: 14px;
  color: #404040;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== SINGLE ARTICLE PAGE ===== */
.article-header {
  padding: 40px 0 20px;
}

.article-header h1 {
  font-size: 28px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.article-header .article-meta {
  margin-bottom: 0;
}

.article-featured-image {
  margin-bottom: 30px;
}

.article-featured-image img {
  width: 100%;
  border-radius: 8px;
}

.article-content {
  padding: 0 0 50px;
}

.article-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 24px;
  margin-top: 32px;
  margin-bottom: 16px;
}

.article-content h3 {
  font-size: 20px;
  color: #2D2D2D;
  margin-top: 28px;
  margin-bottom: 12px;
}

.article-content ul,
.article-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article-content ul li,
.article-content ol li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-content blockquote {
  border-left: 4px solid #3C91E6;
  padding: 12px 20px;
  margin: 20px 0;
  background: #f9f9f9;
  font-style: italic;
  color: #555;
}

.article-content strong {
  font-weight: 700;
}

.article-content em {
  font-style: italic;
}

.article-content img {
  margin: 20px auto;
  border-radius: 4px;
}

/* Article navigation */
.article-nav {
  display: flex;
  justify-content: space-between;
  padding: 30px 0;
  border-top: 1px solid #eee;
  gap: 20px;
}

.article-nav a {
  font-size: 14px;
  font-weight: 600;
}

/* ===== APP PAGES ===== */
.app-hero {
  text-align: center;
  padding: 50px 0 40px;
}

.app-hero .app-logo {
  max-width: 300px;
  margin: 0 auto 20px;
}

.app-hero h1 {
  margin-bottom: 16px;
}

.app-hero p {
  max-width: 700px;
  margin: 0 auto 24px;
}

.app-features {
  padding: 50px 0;
}

.app-features .feature {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
}

.app-features .feature:nth-child(even) {
  flex-direction: row-reverse;
}

.app-features .feature-image {
  flex: 0 0 45%;
}

.app-features .feature-content {
  flex: 1;
}

/* ===== ABOUT PAGES ===== */
.about-content {
  padding: 40px 0 50px;
}

.about-content h1 {
  margin-bottom: 24px;
}

.about-content p {
  line-height: 1.8;
}

/* ===== VIDEOS PAGE ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 30px 0 50px;
}

.video-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
}

.video-card .video-thumb {
  position: relative;
  padding-bottom: 56.25%;
  background: #000;
}

.video-card .video-thumb iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-card .video-info {
  padding: 16px;
}

.video-card .video-info h3 {
  font-size: 16px;
  color: #2D2D2D;
  margin-bottom: 4px;
}

/* ===== CONTACT PAGE ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 0 50px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  padding: 10px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #3C91E6;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* ===== WORDPRESS CONTENT CLASSES ===== */
.wp-block-heading {
  margin-top: 28px;
  margin-bottom: 12px;
}

.wp-block-list {
  margin-bottom: 16px;
  padding-left: 24px;
}

.wp-block-list li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.indent-40 {
  padding-left: 40px;
}

.article-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: #2D2D2D;
  margin-top: 24px;
  margin-bottom: 12px;
}

.article-content sup {
  font-size: 0.75em;
  vertical-align: super;
}

.article-content sup a {
  text-decoration: none;
}

.article-content .wp-block-embed,
.article-content figure {
  margin: 24px 0;
}

.article-content figure img {
  margin: 0 auto;
}

.article-content figcaption {
  text-align: center;
  font-size: 13px;
  color: #8390A4;
  margin-top: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav > ul > li > a {
    padding: 12px 20px;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f9f9f9;
  }

  .has-dropdown .dropdown {
    display: none;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  h1 {
    font-size: 24px;
  }

  .article-list li {
    flex-direction: column;
  }

  .article-thumb {
    flex: 0 0 auto;
  }

  .app-features .feature,
  .app-features .feature:nth-child(even) {
    flex-direction: column;
  }
}

/* ===== WORDPRESS THEME CLASSES ===== */
.banner__header {
  text-align: center;
  padding: 20px 0;
}

.banner__header .post__title {
  text-transform: uppercase;
  font-size: 31.875px;
  font-weight: 700;
  color: #2D2D2D;
}

.sub-main-cols {
  margin-bottom: 40px;
}

.sub-main-cols .img-space {
  margin-bottom: 20px;
}

.btn-container {
  margin-top: 12px;
}

.btn.blue.mini {
  display: inline-block;
  background: #3C91E6;
  color: #fff !important;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 24px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.btn.blue.mini:hover {
  background: #2a7dd4;
}

.wp-block-spacer {
  display: block;
}

.about-content .container {
  padding: 0;
}

.about-content article {
  padding-bottom: 30px;
}

.about-content p[align="left"] {
  text-align: left;
}

.about-content div[align="left"] {
  text-align: left;
}

.has-text-align-center {
  text-align: center;
}

/* ===== LYTE VIDEO EMBED STYLES ===== */
.lyte-wrapper {
  position: relative;
  display: block;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}
.lyte-wrapper.fourthree {
  aspect-ratio: 16/9;
}
.lyMe {
  position: relative;
  width: 100%;
  height: 100%;
}
.pL {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.pL .tC, .pL .ctrl, .pL .Lctrl, .pL .Rctrl, .pL .tT {
  display: none;
}
.pL .play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: rgba(0,0,0,0.7);
  border-radius: 14px;
  z-index: 2;
  transition: background 0.2s;
}
.pL .play::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 20px;
  border-color: transparent transparent transparent #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-35%, -50%);
}
.lyte-wrapper:hover .play {
  background: #f00;
}
.lyte-wrapper noscript {
  display: none;
}
.lL {
  display: none;
}

/* Video container classes */
.video-container {
  margin-bottom: 16px;
}
.video-container.shorts .lyte-wrapper,
.video-container.shorts .lyte-wrapper.fourthree {
  aspect-ratio: 9/16;
  max-width: 100%;
}

/* ===== APP PAGE LAYOUT CLASSES ===== */
.block {
  margin-bottom: 20px;
}
.block.left {
  padding-left: 0;
}
.block.right {
  padding-right: 0;
}
.block.bottom {
  margin-bottom: 30px;
}

.app-cols {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}
.app-cols > div {
  flex: 1;
}
.app-cols.vertical-align {
  align-items: center;
}
.app-cols.reverse {
  flex-direction: row-reverse;
}
.app-cols .img-space {
  margin-bottom: 20px;
  max-width: 100%;
}

.gap.eight { height: 8px; }
.gap.twenty-four { height: 24px; }

/* Seven-eighty temp container */
.seven-eighty-temp {
  max-width: 780px;
  margin: 0 auto;
}
.seven-eighty-temp .lyte-wrapper {
  margin: 0 auto !important;
  width: 100% !important;
}

/* Spacer classes */
.spacer--16 { height: 16px; }
.spacer--24 { height: 24px; }
.spacer--32 { height: 32px; }
.spacer--60 { height: 60px; }

/* Remove space utility */
.remove-space {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Uppercase utility */
.uppercase {
  text-transform: uppercase;
}

/* Beta section */
.wp-block-group.beta {
  background: rgb(255, 242, 230);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Blue panel */
.blue-panel {
  background: #3C91E6;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  color: #fff;
}
.blue-panel h4 {
  color: #fff;
}
.blue-panel .subscribe,
.blue-panel .sib-form {
  max-width: 400px;
  margin: 16px auto 0;
}
.blue-panel input[type="text"],
.blue-panel input[type="email"] {
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  margin-bottom: 10px;
}
.blue-panel button[type="submit"],
.blue-panel .sib-form-block__button {
  display: inline-block;
  background: #fff;
  color: #3C91E6;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 32px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.blue-panel button[type="submit"]:hover {
  background: #f0f0f0;
}
.blue-panel .sib-hide-loader-icon {
  display: none;
}
.blue-panel .input--hidden {
  display: none;
}

/* Blue panel yellow variant */
.blue-panel.yellow {
  background: #FFB347;
}
.blue-panel.yellow h4 {
  color: #fff;
}

/* Green button */
.btn.mini.green {
  display: inline-block;
  background: #4CAF50;
  color: #fff !important;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 24px;
  border-radius: 100px;
  text-transform: none;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.btn.mini.green:hover {
  background: #43A047;
}

/* Title heading in lists */
ul.title {
  list-style: none;
  padding-left: 20px;
  margin-bottom: 8px;
}
ul.title li {
  font-size: 16px;
}

/* Desktop/mobile visibility */
.desktop { display: block; }
.mobile { display: none; }
p.desktop { display: block; }
p.mobile { display: none; }
h4.desktop { display: block; }
h4.mobile { display: none; }
div.spacer--32.desktop { display: block; }
div.spacer--32.mobile { display: none; }
div.spacer--16.desktop { display: block; }
div.spacer--16.mobile { display: none; }

/* Girl on phone figure */
figure.girl-on-phone {
  text-align: center;
}
figure.girl-on-phone img {
  max-width: 100%;
  margin: 0 auto;
}

/* WP columns for app pages */
.wp-block-columns {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}
.wp-block-columns.vertical-align {
  align-items: center;
}
.wp-block-columns.reverse {
  flex-direction: row-reverse;
}
.wp-block-columns.is-not-stacked-on-mobile.mini {
  gap: 16px;
}
.wp-block-column {
  flex: 1;
}
.wp-block-column.center {
  text-align: center;
}
.wp-block-column.center.mini {
  flex: 0 0 33.33%;
}
figure.max img {
  max-width: 80px;
  margin: 0 auto;
}
figure.size-large.max.girl-on-phone img {
  max-width: 100%;
}

/* Blockquote in app pages */
.wp-block-quote {
  border-left: 4px solid #3C91E6;
  padding: 12px 20px;
  margin: 0 0 20px;
  background: #f9f9f9;
}
.wp-block-quote p {
  font-style: italic;
  color: #555;
  margin-bottom: 0;
}

/* Post title hidden (shown via h4+h2 pattern) */
.post__title {
  display: none;
}

/* Clear float */
.clear {
  clear: both;
}

/* Entry error labels */
.entry__error {
  display: none;
}
.entry__specification {
  display: none;
}

@media (max-width: 768px) {
  .app-cols {
    flex-direction: column;
  }
  .app-cols.reverse {
    flex-direction: column;
  }
  .desktop { display: none !important; }
  .mobile { display: block !important; }
  p.desktop { display: none !important; }
  p.mobile { display: block !important; }
  h4.desktop { display: none !important; }
  h4.mobile { display: block !important; }
  div.spacer--32.desktop { display: none !important; }
  div.spacer--32.mobile { display: block !important; }
  div.spacer--16.desktop { display: none !important; }
  div.spacer--16.mobile { display: block !important; }
  .wp-block-columns {
    flex-direction: column;
  }
  .wp-block-columns.reverse {
    flex-direction: column;
  }
  .wp-block-columns.is-not-stacked-on-mobile {
    flex-direction: row;
  }
}

/* ===== VIDEOS PAGE STYLES ===== */

/* Show page title in banner header */
.banner__header .post__title {
  display: block;
}

/* Filter tabs */
.filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter a {
  display: inline-block;
  padding: 8px 20px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #404040;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 100px;
  background: #fff;
  transition: all 0.2s;
}
.filter a:hover,
.filter a.active {
  background: #3C91E6;
  color: #fff;
  border-color: #3C91E6;
}

/* Triple column grid */
.triple-cols > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Remove margin utility */
.remove-margin {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Video title in cards */
.vid-h2 {
  font-size: 1.05em !important;
  margin-top: 0 !important;
  margin-bottom: 4px !important;
  line-height: 1.3 !important;
}

/* Popup trigger - clickable thumbnail */
.ll-popup-trigger {
  cursor: pointer;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  margin: 0;
}
.ll-popup-trigger a {
  display: block;
}
.ll-popup-trigger img {
  width: 100%;
  display: block;
  border-radius: 6px;
  transition: transform 0.2s;
}
.ll-popup-trigger:hover img {
  transform: scale(1.03);
}

/* Tags */
.ll-tags2 {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.ll-tags2 .label {
  font-size: 14px;
}
.ll-tags2 span:not(.label) {
  display: inline-block;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-radius: 100px;
  background: #f0f0f0;
  color: #666;
}

/* Popup modal overlay */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}
.popup.active {
  display: flex;
}
.popup .epyt-video-wrapper {
  position: relative;
  width: 80%;
  max-width: 800px;
  aspect-ratio: 16/9;
}
.popup.shorts .epyt-video-wrapper {
  aspect-ratio: 9/16;
  max-width: 400px;
  width: 50%;
}
.popup .epyt-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  z-index: 10001;
  cursor: pointer;
  transition: color 0.2s;
}
.popup .close:hover {
  color: #ccc;
}

/* Overlay helper */
.overlay.ll-video-remove {
  display: none;
}

/* See All Videos button */
.sp-btn {
  text-align: center;
  margin: 20px 0;
}
.sp-btn a {
  display: inline-block;
  padding: 10px 30px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #3C91E6;
  border-radius: 100px;
  color: #3C91E6;
  transition: all 0.2s;
}
.sp-btn a:hover {
  background: #3C91E6;
  color: #fff;
}

/* Scroll to top button */
#topBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #3C91E6;
  color: #fff;
  text-align: center;
  line-height: 45px;
  font-size: 20px;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.2s;
}
#topBtn:hover {
  background: #2a7dd4;
  color: #fff;
}

/* Videos page card text */
.triple-cols .wp-block-group.row p {
  font-size: 13px;
  line-height: 1.5;
  color: #666;
  margin-bottom: 0;
}

/* Videos page responsive */
@media (max-width: 768px) {
  .triple-cols > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .triple-cols > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== Community Section Styles ========== */

.community-hero {
  text-align: center;
  padding: 50px 0 40px;
}
.community-hero h1 {
  font-size: 36px;
  font-weight: 700;
  color: #2D2D2D;
  margin-bottom: 12px;
}
.community-hero-sub {
  font-size: 17px;
  color: #666;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
}
.community-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
}
.community-stat {
  text-align: center;
}
.community-stat strong {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #3C91E6;
}
.community-stat span {
  font-size: 13px;
  color: #8390A4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.community-section {
  margin-bottom: 50px;
}
.community-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}
.community-section-header h2 {
  margin: 0;
  font-size: 24px;
}
.community-see-all {
  font-size: 14px;
  font-weight: 600;
  color: #3C91E6;
  text-decoration: none;
}
.community-see-all:hover {
  text-decoration: underline;
}

.community-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.community-card-grid-full {
  grid-template-columns: repeat(2, 1fr);
}
.community-card {
  display: block;
  padding: 24px;
  border: 1px solid #eee;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.community-card:hover {
  border-color: #3C91E6;
  box-shadow: 0 4px 12px rgba(60, 145, 230, 0.1);
}
.community-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: #2D2D2D;
  margin: 8px 0;
  line-height: 1.4;
}
.community-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}
.community-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #3C91E6;
  background: #E8F7FE;
  padding: 3px 8px;
  border-radius: 3px;
}
.community-card-meta {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #8390A4;
}

.community-page-intro {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.community-archive-link {
  text-align: center;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 8px;
}
.community-archive-link h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

/* Source attribution block at bottom of articles */
.source-attribution {
  margin: 40px 0 20px;
  padding: 16px 20px;
  background: #f5f8ff;
  border-left: 4px solid #3C91E6;
  border-radius: 4px;
}
.source-attribution p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

/* FAQ accordion styles */
.faq-list {
  margin-bottom: 40px;
}
.faq-item {
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #2D2D2D;
  list-style: none;
  transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::before {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: #3C91E6;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.faq-item[open] summary::before {
  content: "\2212";
}
.faq-item summary:hover {
  background: #f9f9f9;
}
.faq-question {
  flex: 1;
}
.faq-answer {
  padding: 0 20px 20px 56px;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}
.faq-answer blockquote {
  margin: 12px 0;
  padding: 10px 16px;
  background: #f9f9f9;
  border-left: 3px solid #ddd;
  font-style: italic;
  font-size: 13px;
}
.faq-source {
  margin-top: 12px;
}
.faq-source a {
  font-size: 13px;
  color: #3C91E6;
}

/* Community responsive */
@media (max-width: 768px) {
  .community-hero h1 {
    font-size: 28px;
  }
  .community-stats {
    gap: 20px;
  }
  .community-stat strong {
    font-size: 24px;
  }
  .community-card-grid,
  .community-card-grid-full {
    grid-template-columns: 1fr;
  }
  .community-section-header {
    flex-direction: column;
    gap: 8px;
  }
  .faq-answer {
    padding-left: 20px;
  }
}
