/*
Theme Name: Learn French Custom
Theme URI: https://www.learnfrenchiseasy.com
Author: Learn French Is Easy
Author URI: https://www.learnfrenchiseasy.com
Description: Custom standalone theme replacing Elementor while preserving the existing design language.
Version: 1.1.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: learnfrench-custom
*/

:root {
  --lf-bg: #eef2f6;
  --lf-card: #ffffff;
  --lf-accent: #6ec1e4;
  --lf-primary: #4054b2;
  --lf-text: #1f2937;
  --lf-muted: #6b7280;
  --lf-radius: 12px;
  --lf-shadow: 0 10px 28px rgba(17, 24, 39, 0.1);
  --lf-shadow-hover: 0 18px 38px rgba(17, 24, 39, 0.16);
  --lf-gold: linear-gradient(140deg, #8a6a26 0%, #d8b869 24%, #fff2b4 48%, #c79f4d 72%, #7f5b18 100%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(circle at 8% 5%, rgba(255, 240, 201, 0.42), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(176, 218, 241, 0.35), transparent 35%),
    var(--lf-bg);
  color: var(--lf-text);
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.55;
}

a,
a:hover,
a:focus {
  color: var(--lf-primary);
  text-decoration: none;
}

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

.lf-wrap {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(145, 117, 55, 0.2);
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.05);
}

.site-header .lf-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.92rem 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo-link img,
.custom-logo {
  max-height: 44px;
  width: auto;
}

.site-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.site-title a {
  color: #111827;
}

.site-description {
  margin: 0;
  font-size: 0.82rem;
  color: var(--lf-muted);
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.main-navigation a {
  color: #111827;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.28rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: #1f326c;
  border-bottom-color: #c39b47;
}

.site-main {
  padding: 2rem 0 3rem;
}

.lf-home {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 320px;
  gap: 2rem;
  align-items: start;
}

.lf-home-head {
  text-align: center;
  margin-bottom: 1.2rem;
}

.lf-home-head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.8rem, 2.6vw, 2.35rem);
  font-weight: 400;
}

.lf-home-head p {
  margin: 0;
  font-size: 0.95rem;
  color: #243042;
}

.lf-lessons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.lf-lesson {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--lf-radius);
  box-shadow: var(--lf-shadow);
  padding: 1.3rem 1rem 1.5rem;
  text-align: center;
  background:
    linear-gradient(var(--lf-card), var(--lf-card)) padding-box,
    var(--lf-gold) border-box;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.lf-lesson::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 56px;
  background: linear-gradient(180deg, rgba(255, 214, 132, 0.13), transparent);
  pointer-events: none;
}

.lf-lesson:hover {
  transform: translateY(-6px);
  box-shadow: var(--lf-shadow-hover);
}

.lf-lesson.is-blue {
  color: #fff;
  background:
    linear-gradient(164deg, #7bc9ea 0%, #63b7de 52%, #58abd2 100%) padding-box,
    var(--lf-gold) border-box;
}

.lf-lesson > :not(.lf-lesson-link) {
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.lf-lesson-link {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: auto;
  cursor: pointer;
}

.lf-lesson h2 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.2;
  font-family: Ubuntu, "Open Sans", sans-serif;
}

.lf-line {
  width: 44px;
  height: 3px;
  background: currentColor;
  border-radius: 999px;
  margin: 1rem auto;
  opacity: 0.82;
}

.lf-lesson ul {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  text-align: left;
}

.lf-lesson li {
  position: relative;
  margin: 0.48rem 0;
  padding-left: 0.95rem;
  font-size: 0.93rem;
}

.lf-lesson li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.lf-btn {
  display: inline-block;
  padding: 0.72rem 1.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  border: 2px solid transparent;
}

.lf-btn.primary {
  background: var(--lf-primary);
  color: #fff;
}

.lf-btn.inverse {
  background: #fff;
  color: var(--lf-primary);
  border-color: #fff;
}

.lf-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lf-panel,
.entry-card,
.widget,
.lf-post {
  border: 1px solid transparent;
  border-radius: var(--lf-radius);
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    var(--lf-gold) border-box;
  box-shadow: var(--lf-shadow);
}

.lf-panel {
  padding: 1rem;
  background:
    linear-gradient(#f8fafc, #f8fafc) padding-box,
    var(--lf-gold) border-box;
}

.lf-panel h3 {
  margin: 0 0 0.85rem;
  font-family: Rubik, "Open Sans", sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lf-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lf-post {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.lf-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--lf-shadow-hover);
}

.lf-post a {
  color: inherit;
  display: block;
}

.lf-post img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #cfd4dc;
}

.lf-post .body {
  padding: 0.85rem;
}

.lf-post h4 {
  margin: 0;
  font-size: 1.26rem;
  line-height: 1.3;
}

.lf-tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  background: #46b450;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}

.lf-form {
  display: grid;
  gap: 0.7rem;
}

.lf-form label {
  font-size: 0.85rem;
  font-weight: 600;
}

.lf-form input {
  width: 100%;
  border: 1px solid #cfd4dc;
  border-radius: 6px;
  padding: 0.55rem 0.6rem;
  font: inherit;
  background: #fff;
}

.lf-form button {
  border: 0;
  border-radius: 8px;
  background: var(--lf-primary);
  color: #fff;
  width: 100%;
  padding: 0.72rem;
  cursor: pointer;
  font-weight: 700;
}

.lf-alert {
  margin-bottom: 0.8rem;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-size: 0.86rem;
}

.lf-alert.ok {
  background: #eaf7ee;
  color: #1e6b35;
  border: 1px solid #b8e1c6;
}

.lf-alert.err {
  background: #fcebec;
  color: #8a1f2d;
  border: 1px solid #f2c6cb;
}

.lf-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
}

.entry-card {
  padding: 1.4rem;
}

.entry-card h1,
.entry-card h2 {
  margin-top: 0;
}

.widget {
  padding: 1rem;
  margin-bottom: 1rem;
}

.widget h2,
.widget h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.site-footer {
  background: linear-gradient(90deg, #32469f 0%, #4054b2 52%, #34479f 100%);
  color: #fff;
}

.site-footer .lf-wrap {
  text-align: center;
  padding: 1rem 0;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 1150px) {
  .lf-home,
  .lf-content {
    grid-template-columns: 1fr;
  }

  .lf-aside,
  .site-sidebar {
    max-width: 760px;
  }
}

@media (max-width: 900px) {
  .lf-lessons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-navigation ul {
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .site-header .lf-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .lf-lessons {
    grid-template-columns: 1fr;
  }
}

.lf-blog-page {
  display: grid;
  gap: 1.2rem;
}

.lf-blog-hero {
  text-align: center;
  padding: 1.5rem 1.4rem;
}

.lf-blog-hero h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.lf-blog-hero p {
  margin: 0;
  color: #374151;
  max-width: 760px;
  margin-inline: auto;
}

.lf-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.lf-blog-card {
  border: 1px solid transparent;
  border-radius: var(--lf-radius);
  overflow: hidden;
  box-shadow: var(--lf-shadow);
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    var(--lf-gold) border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lf-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lf-shadow-hover);
}

.lf-blog-card a {
  display: block;
  color: inherit;
}

.lf-blog-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #d1d5db;
}

.lf-blog-card-body {
  padding: 0.9rem;
}

.lf-blog-card-body h2 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  line-height: 1.3;
}

.lf-blog-card-body p {
  margin: 0;
  color: #4b5563;
  font-size: 0.92rem;
}

.lf-blog-pagination {
  text-align: center;
  padding-top: 0.35rem;
}

.lf-blog-pagination .page-numbers {
  display: inline-block;
  margin: 0 0.16rem;
  padding: 0.34rem 0.62rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #d4af64;
  color: #243b85;
}

.lf-blog-pagination .current {
  background: #4054b2;
  color: #fff;
  border-color: #4054b2;
}

@media (max-width: 980px) {
  .lf-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .lf-blog-grid {
    grid-template-columns: 1fr;
  }
}
