﻿/*
Theme Name: KruNop Video English
Theme URI: https://example.com/kru-nop-video-english
Author: KruNop
Description: A fast, lightweight WordPress theme for English conversation video lessons.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kru-nop-video-english
Tags: education, blog, custom-menu, featured-images, one-column, two-columns, threaded-comments, translation-ready
*/

:root {
  --kneg-bg: #f5fbff;
  --kneg-surface: #ffffff;
  --kneg-ink: #172554;
  --kneg-muted: #51617f;
  --kneg-line: #c8ddff;
  --kneg-blue: #172554;
  --kneg-green: #14b8a6;
  --kneg-yellow: #fde68a;
  --kneg-coral: #f97352;
  --kneg-orange: #f59e0b;
  --kneg-sky: #7dd3fc;
  --kneg-shadow: 0 14px 32px rgba(23, 37, 84, 0.13);
  --kneg-radius: 18px;
  --kneg-wrap: 1760px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--kneg-bg);
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(180deg, #cffafe 0 168px, var(--kneg-bg) 168px),
    var(--kneg-bg);
  color: #181522;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.45;
  margin: 0;
  min-height: 100vh;
}

a {
  color: #d83d62;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--kneg-ink);
}

img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}

button,
input,
select,
textarea {
  font: inherit;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.screen-reader-text:focus {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: var(--kneg-shadow);
  clip: auto;
  color: var(--kneg-ink);
  height: auto;
  left: 1rem;
  padding: 0.75rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

.site-header {
  background: linear-gradient(90deg, #67e8f9 0%, #a7f3d0 50%, #fde68a 100%);
  border-bottom: 0;
  position: relative;
  z-index: 20;
}

.site-header__inner,
.site-footer__inner,
.site-main,
.hero__inner {
  margin-inline: auto;
  max-width: var(--kneg-wrap);
  padding-inline: 26px;
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.site-header__brand .site-header__inner {
  justify-content: flex-start;
  min-height: 124px;
}

.site-header__menu .site-header__inner {
  padding-inline: 26px;
}

.site-branding {
  align-items: center;
  color: var(--kneg-ink);
  display: inline-flex;
  gap: 0.7rem;
}

.site-branding__mark {
  align-items: center;
  background: #ffffff;
  border: 4px solid var(--kneg-ink);
  border-radius: 20px;
  box-shadow: 8px 8px 0 rgba(34, 33, 91, 0.18);
  display: inline-flex;
  font-weight: 800;
  height: 68px;
  justify-content: center;
  position: relative;
  text-decoration: none;
  transform: rotate(-4deg);
  width: 68px;
}

.site-branding__play {
  border-bottom: 16px solid transparent;
  border-left: 24px solid var(--kneg-coral);
  border-top: 16px solid transparent;
  display: block;
  height: 0;
  margin-left: 5px;
  width: 0;
}

.site-branding__spark {
  align-items: center;
  background: var(--kneg-yellow);
  border: 3px solid var(--kneg-ink);
  border-radius: 999px;
  color: var(--kneg-ink);
  display: flex;
  font-size: 20px;
  height: 28px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: -15px;
  top: -16px;
  width: 28px;
}

.site-branding__name {
  color: var(--kneg-ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 0.9;
  text-decoration: none;
  text-transform: none;
}

.site-branding__divider {
  background: var(--kneg-ink);
  display: inline-block;
  height: 54px;
  margin-inline: 34px 30px;
  opacity: 0.35;
  width: 3px;
}

.site-title {
  color: var(--kneg-ink);
  display: block;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.site-title:hover,
.site-title:focus {
  color: var(--kneg-ink);
}

.site-description {
  color: var(--kneg-ink);
  display: block;
  font-size: 0.85rem;
  line-height: 1.25;
  margin-top: 0.1rem;
}

.menu-toggle {
  align-items: center;
  background: var(--kneg-ink);
  border: 0;
  border-radius: var(--kneg-radius);
  color: #ffffff;
  cursor: pointer;
  display: none;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  background: currentColor;
  content: "";
  display: block;
  height: 2px;
  width: 20px;
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  left: 0;
  position: absolute;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.primary-menu,
.primary-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  gap: 0.55rem;
  min-height: 62px;
  padding-block: 0 12px;
}

.primary-menu a {
  align-items: center;
  background: var(--kneg-ink);
  border: 3px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  box-shadow: 0 8px 0 rgba(34, 33, 91, 0.16);
  color: #ffffff;
  display: flex;
  font-size: 22px;
  font-weight: 800;
  height: 52px;
  justify-content: center;
  min-width: 120px;
  padding: 0.35rem 1.35rem;
  text-align: center;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  background: var(--kneg-yellow);
  border-color: var(--kneg-ink);
  color: var(--kneg-ink);
}

.hero {
  background:
    radial-gradient(circle at 78% 28%, rgba(20, 184, 166, 0.22), transparent 24rem),
    radial-gradient(circle at 28% 72%, rgba(253, 230, 138, 0.34), transparent 22rem),
    var(--kneg-bg);
  color: #000000;
  overflow: hidden;
  padding-block: clamp(1.2rem, 3vw, 2.4rem);
}

.hero__inner {
  align-items: start;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.74) 0%, rgba(224, 251, 250, 0.9) 42%, rgba(253, 230, 138, 0.34) 100%),
    radial-gradient(circle at 18% 18%, rgba(103, 232, 249, 0.32), transparent 20rem);
  border: 1px solid rgba(23, 37, 84, 0.08);
  border-radius: 34px;
  box-shadow: 0 18px 48px rgba(23, 37, 84, 0.1);
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 3rem);
  grid-template-columns: minmax(280px, 0.48fr) minmax(420px, 1.52fr);
  max-width: var(--kneg-wrap);
  padding: clamp(1rem, 2vw, 1.8rem);
}

.hero__copy {
  align-self: start;
  max-width: 620px;
  padding-top: clamp(0.35rem, 1.4vw, 1.4rem);
}

.hero__copy p {
  color: #0f172a;
  font-size: clamp(1.45rem, 2.35vw, 2.4rem);
  line-height: 1.35;
  margin: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.button,
.wp-block-button__link,
input[type="submit"] {
  appearance: none;
  background: var(--kneg-coral);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  display: block;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  padding: 0.8rem 1.15rem;
  text-decoration: none;
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  color: #ffffff;
  filter: none;
}

.button--light {
  background: #ffffff;
  color: var(--kneg-ink);
}

.button--yellow {
  background: var(--kneg-yellow);
  color: var(--kneg-ink);
}

.hero-cover-wrap {
  align-self: stretch;
  border-radius: 34px;
  filter: drop-shadow(0 0 24px rgba(34, 211, 238, 0.42));
  padding: clamp(0.35rem, 0.8vw, 0.7rem);
  position: relative;
}

.hero-cover-wrap::before {
  background: linear-gradient(135deg, #67e8f9, #fde68a 42%, #f97352 74%, #172554);
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: 0.92;
  position: absolute;
}

.hero-cover-wrap::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 58%);
  content: "";
  height: 160px;
  position: absolute;
  right: 8%;
  top: -52px;
  width: 260px;
  z-index: 0;
}

.hero-cover {
  border: 5px solid #ffffff;
  border-radius: 28px;
  box-shadow:
    0 18px 44px rgba(15, 23, 42, 0.22),
    0 0 0 2px rgba(23, 37, 84, 0.08),
    0 0 42px rgba(20, 184, 166, 0.36);
  display: block;
  height: 100%;
  line-height: 0;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  z-index: 1;
}

.hero-cover img {
  display: block;
  height: 100%;
  max-height: min(68vh, 720px);
  min-height: 360px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.site-main {
  padding-block: 1.4rem 4rem;
}

.breadcrumb {
  align-items: center;
  color: #000000;
  display: flex;
  flex-wrap: wrap;
  font-size: 25px;
  gap: 1.1rem;
  margin: 0 0 1.4rem;
}

.breadcrumb a {
  color: #d83d62;
  text-decoration: none;
}

.breadcrumb span {
  color: #000000;
}

.content-layout {
  align-items: start;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1fr) 412px;
}

.post-grid {
  display: grid;
  gap: 44px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card,
.entry,
.sidebar .widget {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: visible;
}

.post-card__media {
  background: #ffffff;
  border: 4px solid #ffffff;
  border-radius: 24px;
  box-shadow: var(--kneg-shadow);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.post-card__media::after {
  align-items: center;
  background: rgba(249, 115, 82, 0.94);
  border: 3px solid #ffffff;
  border-radius: 999px;
  bottom: 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.24);
  color: #ffffff;
  content: "Play";
  display: flex;
  font-size: 0.9rem;
  font-weight: 800;
  height: 48px;
  justify-content: center;
  position: absolute;
  right: 14px;
  width: 72px;
}

.entry-content iframe,
.entry-content video {
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 24px;
  box-shadow: var(--kneg-shadow);
  height: auto;
  max-width: 100%;
  width: 100%;
}

.entry-media {
  margin-bottom: 1.5rem;
}

.entry-media img {
  border-radius: 24px;
  box-shadow: var(--kneg-shadow);
  display: block;
  width: 100%;
}

.entry-media--youtube {
  position: relative;
}

.entry-media--youtube::after {
  align-items: center;
  background: rgba(249, 115, 82, 0.94);
  border: 4px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  content: "Play";
  display: flex;
  font-weight: 800;
  height: 60px;
  justify-content: center;
  position: absolute;
  right: 22px;
  top: 22px;
  width: 92px;
}

.post-card__media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.post-card__media--placeholder {
  align-items: center;
  background:
    radial-gradient(circle at 25% 25%, rgba(125, 211, 252, 0.65), transparent 13rem),
    linear-gradient(135deg, #172554, #0f766e);
  color: #ffffff;
  display: flex;
  justify-content: center;
  text-decoration: none;
}

.post-card__media--placeholder span {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 0 0;
}

.post-card h2,
.entry-title {
  color: var(--kneg-ink);
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.post-card h2 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

.post-card h2 a,
.entry-title a {
  color: var(--kneg-ink);
  text-decoration: none;
}

.post-card h2 a:hover,
.entry-title a:hover {
  color: #d83d62;
}

.entry-meta,
.post-card__meta {
  color: var(--kneg-muted);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.post-card__excerpt {
  color: #000000;
  margin: 0 0 1rem;
}

.post-card__link {
  font-weight: 800;
  margin-top: auto;
}

.entry {
  padding: 0;
}

.entry-content {
  font-size: clamp(1.28rem, 2vw, 1.75rem);
  line-height: 1.4;
}

.video-full-width {
  max-width: 1500px;
}

.video-full-width .breadcrumb {
  margin-bottom: 1rem;
}

.video-full-width .entry-header {
  margin-bottom: 0.6rem;
}

.video-full-width .entry-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  margin-bottom: 0.7rem;
}

.video-full-width .entry-content {
  font-size: 1.15rem;
}

.video-library-intro {
  margin-bottom: 2rem;
}

.video-library-grid {
  margin-top: 2rem;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  letter-spacing: 0;
  line-height: 1.25;
}

.entry-content table {
  border-collapse: collapse;
  width: 100%;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--kneg-line);
  padding: 0.65rem;
}

.entry-content th {
  background: #e9fbf7;
}

.entry-content input:not([type="submit"]),
.entry-content textarea,
.entry-content select,
.search-field,
.comment-form input:not([type="submit"]),
.comment-form textarea {
  border: 2px solid var(--kneg-green);
  border-radius: 14px;
  padding: 0.72rem 0.8rem;
  width: 100%;
}

.sidebar {
  display: grid;
  gap: 2rem;
}

.sidebar .widget {
  background: #ffffff;
  border: 4px solid var(--kneg-ink);
  border-radius: 30px;
  box-shadow: 10px 10px 0 #ffdc8b;
  padding: 2rem 2.25rem;
}

.widget-title {
  color: var(--kneg-ink);
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget li + li {
  border-top: 0;
  margin-top: 0.55rem;
  padding-top: 0;
}

.widget li {
  color: #d83d62;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  padding-left: 2rem;
  position: relative;
}

.widget li::before {
  background: var(--kneg-green);
  border-radius: 999px;
  color: #ffffff;
  content: "\203A";
  height: 1.35rem;
  font-weight: 800;
  left: 0;
  position: absolute;
  text-align: center;
  top: 0.05rem;
  width: 1.35rem;
}

.widget li a {
  color: #d83d62;
  text-decoration: none;
}

.widget li:first-child a {
  color: var(--kneg-ink);
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-heading h2 {
  color: var(--kneg-ink);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.2;
  margin: 0;
}

.archive-header {
  margin-bottom: 1.3rem;
}

.archive-header h1 {
  color: var(--kneg-ink);
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  line-height: 1.12;
  margin: 0 0 0.45rem;
}

.nav-links,
.post-navigation,
.comments-area {
  margin-top: 1.5rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-links a,
.nav-links span {
  background: #ffffff;
  border: 2px solid var(--kneg-green);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.nav-links .current {
  background: var(--kneg-ink);
  color: #ffffff;
}

.site-footer {
  background: var(--kneg-ink);
  color: #ffffff;
}

.site-footer__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  padding-block: 1.3rem;
}

.site-footer a {
  color: #ffffff;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wp-caption,
.gallery-caption,
.bypostauthor {
  max-width: 100%;
}

.alignleft {
  float: left;
  margin: 0.3rem 1rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0.3rem 0 1rem 1rem;
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

@media (max-width: 860px) {
  .site-header__inner {
    align-items: stretch;
    flex-wrap: wrap;
    padding-block: 0.75rem;
  }

  .site-branding {
    min-height: 42px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-navigation {
    flex-basis: 100%;
  }

  .primary-menu {
    display: none;
    padding-top: 0.5rem;
  }

  .main-navigation.is-open .primary-menu {
    display: grid;
  }

  .primary-menu a {
    background: var(--kneg-ink);
    border-left: 0;
    border-top: 0;
    justify-content: flex-start;
    min-width: 100%;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1rem;
  }

  .hero__copy {
    max-width: 760px;
    padding-top: 0;
  }

  .hero-cover,
  .hero-cover img {
    height: auto;
  }

  .hero-cover img {
    min-height: 0;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .video-full-width .entry-title {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }
}

@media (max-width: 600px) {
  .admin-bar .site-header {
    top: 0;
  }

  .site-description {
    display: none;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .site-main {
    padding-block: 1rem 2.5rem;
  }

  .breadcrumb {
    font-size: 1.15rem;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
  }

}

