/*
Theme Name: 360 eLearning Blog Theme
Theme URI: https://360elearning.com/blog/
Author: 360 eLearning
Description: Standalone WordPress blog theme matching the 360 eLearning website.
Version: 1.0.10
Text Domain: 360elearning-blog-theme
*/

:root {
  --color-ink: #121a2d;
  --color-text: #52617a;
  --color-muted: #7a879d;
  --color-red: #ef3b24;
  --color-cream: #f7f4ee;
  --color-line: #e3e9f2;
  --color-white: #ffffff;
  --shadow-soft: 0 24px 60px rgba(18, 26, 45, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-red);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 1000;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  overflow: visible;
  clip: auto;
  color: var(--color-white);
  background: var(--color-red);
  border-radius: 999px;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  background: transparent;
  border-bottom: 0;
}

.site-header-inner,
.site-footer-inner,
.blog-hero-inner,
.content-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 104px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
}

.site-brand img {
  width: 88px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.9);
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--color-white);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -16px;
  right: -16px;
  height: 18px;
}

.nav-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown:hover summary,
.nav-dropdown:focus-within summary,
.nav-dropdown[open] summary {
  color: var(--color-white);
}

.nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown[open] .nav-chevron {
  transform: rotate(180deg);
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 60;
  display: grid;
  gap: 4px;
  padding: 12px;
  margin-top: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel,
.nav-dropdown[open] .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.services-panel {
  width: 432px;
}

.about-panel {
  width: 280px;
}

.menu-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  color: var(--color-ink) !important;
  border-radius: 14px;
  transition: background 0.18s ease, color 0.18s ease;
}

.menu-card:hover {
  color: var(--color-ink) !important;
  background: var(--color-cream);
}

.menu-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  color: var(--color-white);
  background: var(--color-red);
  border-radius: 10px;
}

.menu-card-icon svg {
  width: 16px;
  height: 16px;
}

.menu-card-title,
.menu-card-description {
  display: block;
}

.menu-card-title {
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.menu-card-description {
  margin-top: 4px;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  font-size: 14px;
  color: var(--color-ink) !important;
  background: var(--color-white);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(18, 26, 45, 0.18);
}

.nav-cta:hover {
  transform: translateY(-1px);
}

.blog-hero {
  position: relative;
  min-height: 610px;
  color: var(--color-white);
  background-image:
    linear-gradient(90deg, rgba(7, 13, 28, 0.9) 0%, rgba(7, 13, 28, 0.74) 43%, rgba(7, 13, 28, 0.28) 100%),
    url("https://360elearning.com/images/hero-elearning-development.webp");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--color-line);
}

.blog-hero-inner {
  display: flex;
  min-height: 610px;
  flex-direction: column;
  justify-content: center;
  padding: 150px 0 90px;
}

.eyebrow {
  margin: 0 0 24px;
  color: #f5b72f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.blog-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--color-white);
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.blog-hero p {
  max-width: 640px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 72px;
  padding: 80px 0 96px;
  align-items: start;
}

.posts-grid {
  display: grid;
  gap: 34px;
}

.post-card,
.article-card,
.sidebar-widget {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.post-card {
  display: block;
  overflow: hidden;
}

.post-card-image {
  display: block;
  min-height: 0;
  aspect-ratio: auto;
  max-height: none;
  background: #eef2f7;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: auto;
  object-fit: initial;
  background: transparent;
}

.post-card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  padding: 34px;
}

.post-meta {
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 14px;
}

.post-card h2,
.article-title {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.post-card h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.post-card .excerpt {
  margin: 20px 0 0;
  color: var(--color-text);
  font-size: 18px;
}

.read-link {
  display: inline-flex;
  margin-top: 26px;
  color: var(--color-red);
  font-weight: 800;
}

.pagination {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-ink);
  font-weight: 700;
}

.pagination .current,
.pagination .page-numbers:hover {
  color: var(--color-white);
  background: var(--color-red);
  border-color: var(--color-red);
}

.article-card {
  padding: clamp(28px, 5vw, 54px);
}

.article-featured {
  margin: 34px 0;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: #eef2f7;
}

.article-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-content {
  color: var(--color-text);
  font-size: 19px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 42px 0 16px;
  color: var(--color-ink);
  line-height: 1.2;
}

.entry-content h2 {
  font-size: 34px;
}

.entry-content h3 {
  font-size: 26px;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin: 0 0 22px;
}

.entry-content a {
  color: var(--color-red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content blockquote {
  margin: 34px 0;
  padding: 24px 28px;
  color: var(--color-ink);
  background: var(--color-cream);
  border-left: 4px solid var(--color-red);
  border-radius: 0 18px 18px 0;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--color-line);
  font-weight: 800;
}

.blog-sidebar {
  display: grid;
  gap: 22px;
}

.sidebar-widget {
  padding: 26px;
}

.sidebar-widget h2,
.sidebar-widget h3,
.widget-title {
  margin: 0 0 18px;
  color: var(--color-ink);
  font-size: 18px;
  line-height: 1.2;
}

.sidebar-widget ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-widget li {
  color: var(--color-text);
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-field {
  min-width: 0;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font: inherit;
}

.search-submit,
.wp-block-search__button {
  min-height: 46px;
  padding: 0 18px;
  color: var(--color-white);
  background: var(--color-red);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.wp-block-search__inside-wrapper {
  display: flex;
  gap: 10px;
}

.wp-block-search__input {
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
}

.site-footer {
  background: var(--color-cream);
  border-top: 1px solid var(--color-line);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  padding: 58px 0;
  color: var(--color-text);
}

.footer-logo {
  width: 118px;
  margin-bottom: 22px;
}

.footer-title {
  margin: 0 0 16px;
  color: var(--color-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid var(--color-line);
}

.footer-bottom-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 28px;
  color: var(--color-muted);
  font-size: 14px;
}

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

@media (max-width: 980px) {
  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 0 22px;
  }

  .site-brand img {
    width: 96px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 14px 22px;
    justify-content: center;
    width: 100%;
  }

  .nav-dropdown {
    position: static;
  }

  .dropdown-panel {
    left: 20px;
    right: 20px;
    width: auto;
    max-height: calc(100vh - 180px);
    overflow: auto;
    transform: translateY(8px);
  }

  .nav-dropdown:hover .dropdown-panel,
  .nav-dropdown:focus-within .dropdown-panel,
  .nav-dropdown[open] .dropdown-panel {
    transform: translateY(0);
  }

  .services-panel,
  .about-panel {
    width: auto;
  }

  .content-shell {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .post-card-image {
    aspect-ratio: auto;
    max-height: none;
    min-height: 0;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .site-header-inner,
  .site-footer-inner,
  .blog-hero-inner,
  .content-shell,
  .footer-bottom-inner {
    width: min(100% - 28px, 1180px);
  }

  .site-nav {
    font-size: 15px;
  }

  .nav-cta {
    width: 100%;
  }

  .blog-hero-inner {
    padding: 190px 0 64px;
  }

  .content-shell {
    padding: 54px 0 70px;
  }

  .post-card-body,
  .article-card,
  .sidebar-widget {
    padding: 24px;
  }

  .search-form,
  .wp-block-search__inside-wrapper {
    flex-direction: column;
  }
}
