/*
Theme Name: Nguyen Duong Light
Theme URI: https://nguyenngocduong.vn
Author: Masterclass Builder
Description: A clean, light-themed landing page based on the provided reference design. Features high-contrast orange headings, clean white background, and clear typography.
Version: 2.0.0
Text Domain: nguyenduongtheme
*/

:root {
  --bg-color: #f9f9f9;
  --text-main: #333333;
  --text-muted: #666666;
  --accent-orange: #ff5700;
  /* Vibrant orange from the image */
  --accent-yellow: #ffb800;
  /* Yellow menu bar */
  --primary-green: #2fb926;
  /* Checkmark green */
  --font-main: 'Roboto', sans-serif;
  --max-width: 1000px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
  font-weight: 700;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Utilities */
.text-orange {
  color: var(--accent-orange);
}

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

.uppercase {
  text-transform: uppercase;
}

.section {
  padding: 4rem 0;
  position: relative;
  background: #ffffff;
}

.section-gray {
  background: #fdfdfd;
}

.my-4 {
  margin: 2rem 0;
}

/* Header Top */
.site-header {
  position: relative;
  z-index: 100;
}

.header-top {
  background: #111;
  color: white;
  padding: 1rem 0;
  text-align: center;
}

.header-top h3 {
  font-size: 1.5rem;
  letter-spacing: 1px;
  font-weight: 900;
}

/* Yellow Menu Bar & Dropdowns */
.main-nav {
  background: var(--accent-yellow);
  text-align: center;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  position: relative;
  flex-wrap: wrap;
}

.main-nav li {
  position: relative;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
  padding: 1rem 0.8rem;
  cursor: pointer;
  transition: 0.2s;
}

.main-nav a:hover {
  color: #fff;
}

/* Sub-menu (Dropdown) */
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  text-align: left;
  flex-direction: column;
  padding: 0;
}

.main-nav li:hover>.sub-menu {
  display: flex;
}

.main-nav .sub-menu li {
  border-bottom: 1px solid #f0f0f0;
  width: 100%;
}

.main-nav .sub-menu a {
  padding: 1rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: #333;
  text-transform: none;
}

.main-nav .sub-menu a:hover {
  color: var(--accent-orange);
  background: #fafafa;
}

/* Dropdown Arrow Indicator */
.main-nav li.menu-item-has-children>a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(45deg);
  margin-left: 8px;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

.main-nav li.menu-item-has-children>a:hover::after {
  border-color: #fff;
}

/* Hero Banner */
.hero {
  position: relative;
  min-height: 800px;
  padding-top: 250px;
  /* Thêm khoảng trống để không bị đè menu */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 10;
  color: white;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-sub {
  background: var(--accent-orange);
  color: white;
  display: inline-block;
  padding: 0.25rem 1rem;
  font-weight: 700;
  border-radius: 4px;
}

/* 3 Cards Overlapping */
.features-section {
  position: relative;
  margin-top: -60px;
  z-index: 20;
  background: transparent;
  padding-bottom: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: white;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 0.5rem;
  font-weight: 900;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Problem & Solution */
.prob-title {
  color: var(--accent-orange);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 900;
}

.prob-list {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.prob-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.prob-list li::before {
  content: '-';
  color: red;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.check-icon {
  font-size: 4rem;
  color: var(--primary-green);
  text-align: center;
  margin: 2rem 0;
}

.separator-line {
  height: 4px;
  background: var(--accent-orange);
  width: 100%;
  margin: 1rem 0 2rem;
}

.sol-title {
  color: var(--accent-orange);
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 900;
}

.sol-list {
  max-width: 600px;
  margin: 0 auto;
}

.sol-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.sol-list li::before {
  content: '★';
  color: var(--accent-orange);
  position: absolute;
  left: 0;
}

/* About Author */
.expert-title {
  color: var(--accent-orange);
  font-size: 1.6rem;
  text-align: center;
  text-transform: uppercase;
}

.expert-subtitle {
  color: var(--accent-orange);
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 500;
}

.about-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  align-items: start;
}

.about-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-text {
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-text p {
  margin-bottom: 1rem;
}

/* Intro Info */
.intro-title {
  color: var(--accent-orange);
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.intro-text {
  font-size: 0.95rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-main);
}

/* Syllabus (Bulb icon + 2 columns) */
.syllabus-bulb {
  text-align: center;
  margin: 3rem 0 1rem;
}

.syllabus-bulb img {
  width: 80px;
  margin: 0 auto;
}

.syllabus-title {
  color: var(--accent-orange);
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.course-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 3rem;
  font-size: 0.9rem;
}

.course-item {
  margin-bottom: 0.5rem;
}

.course-item strong {
  color: var(--text-main);
  display: block;
}

.course-item span {
  color: var(--text-muted);
  display: block;
}

/* Video Previews */
.video-preview-title {
  color: #111;
  font-size: 1.3rem;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-weight: 900;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.video-box {
  background: #000;
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
}

.video-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
}

/* Pricing CTA */
.pricing-block {
  text-align: center;
  padding: 2rem 0;
}

.pricing-title {
  color: var(--accent-orange);
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.price-tag {
  background: var(--accent-orange);
  color: white;
  display: inline-block;
  padding: 0.5rem 3rem;
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.pricing-desc {
  font-weight: 700;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Testimonials Grid */
.testimonials-title {
  color: var(--accent-orange);
  text-align: center;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-weight: 900;
}

.test-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.test-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.test-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #ddd;
  overflow: hidden;
}

.test-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.test-content {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}

/* Guarantee & Form Section */
.guarantee-title {
  color: var(--accent-orange);
  text-align: center;
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 900;
  line-height: 1.3;
}

.guarantee-text {
  font-size: 0.95rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.pay-attention {
  text-align: center;
  color: var(--accent-orange);
  font-weight: 700;
  margin-bottom: 2rem;
}

.form-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 800px;
  margin: 0 auto;
}

.form-title {
  color: var(--accent-orange);
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-align: center;
}

.contact-form input,
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-tel {
  width: 100%;
  border: 1px solid #ddd;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  font-family: inherit;
  box-sizing: border-box;
}

.btn-submit,
.wpcf7-form-control.wpcf7-submit {
  width: 100%;
  background: var(--accent-orange);
  color: white;
  border: none;
  padding: 1rem;
  font-weight: 900;
  font-size: 1.1rem;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  box-sizing: border-box;
}

.bank-info {
  background: #fdfdfd;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 4px;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

/* Footer */
.site-footer {
  background: #111;
  color: white;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-img {
    max-width: 250px;
    margin: 0 auto;
  }

  .course-list {
    grid-template-columns: 1fr;
  }

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

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

  .form-split {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.8rem;
  }
}

/* -------------------------------------
   FREE VIDEOS PAGE TEMPLATE STYLES
------------------------------------- */
body.page-template-template-free-videos .main-nav {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.page-template-template-free-videos .main-nav a {
  color: #333;
  font-weight: 500;
  font-size: 0.8rem;
}

body.page-template-template-free-videos .main-nav a:hover {
  color: var(--accent-orange);
}

body.page-template-template-free-videos .main-nav li.menu-item-has-children>a::after {
  border-color: #333;
}

body.page-template-template-free-videos .main-nav li.menu-item-has-children>a:hover::after {
  border-color: var(--accent-orange);
}

.free-banner {
  background: var(--accent-yellow);
  padding: 4rem 0;
  overflow: hidden;
  position: relative;
}

.free-banner-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 2rem;
}

.free-banner-text h1 {
  color: #fff;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.free-banner-text p {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.free-dots {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

.free-dots span {
  display: inline-block;
  width: 15px;
  height: 15px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.free-dots span:first-child {
  background: #fff;
}

.free-banner-img {
  text-align: center;
}

.free-banner-img img {
  max-width: 100%;
  height: auto;
  transform: scale(1.1);
}

.free-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.free-card {
  background: #000;
  aspect-ratio: 16/9;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff !important;
}

.free-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  height: 100%;
}

.free-card-title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 3px #000;
}

.free-card-btn {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(5px);
}

.free-card-btn:hover {
  background: var(--accent-orange);
}

@media (max-width: 768px) {
  .free-banner-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .free-banner-img img {
    transform: scale(1);
    max-width: 80%;
  }

  .free-dots {
    justify-content: center;
  }

  .free-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .free-banner-text h1 {
    font-size: 2.5rem;
  }

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

/* -------------------------------------
   CONTACT PAGE TEMPLATE STYLES
------------------------------------- */

body.page-template-template-contact .header-top {
  background: #fff;
  padding: 1rem 0 0.5rem;
  text-align: center;
}

.site-logo {
  width: 50%;
  max-width: 600px;
  display: inline;
}

body.page-template-template-contact .main-nav {
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.page-template-template-contact .main-nav a {
  color: #333;
  font-weight: 500;
  font-size: 0.8rem;
}

body.page-template-template-contact .main-nav a:hover {
  color: var(--accent-orange);
}

body.page-template-template-contact .main-nav li.menu-item-has-children>a::after {
  border-color: #333;
}

body.page-template-template-contact .main-nav li.menu-item-has-children>a:hover::after {
  border-color: var(--accent-orange);
}

.contact-page-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.contact-avatar-box {
  display: inline-block;
  width: 300px;
  height: 350px;
  background: #ddd;
  overflow: hidden;
  margin-bottom: 1rem;
}

.contact-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.2rem;
}

.contact-phone {
  font-size: 1.3rem;
  font-weight: 600;
  color: #555;
}

.contact-orange-title {
  color: var(--accent-orange);
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.contact-social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
  margin-top: 1rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 4px;
  color: #fff !important;
  transition: 0.2s;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-fb {
  background: #3b5998;
}

.btn-yt {
  background: #ff0000;
}

.contact-services-list {
  margin-bottom: 4rem;
}

.contact-services-list li {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-divider {
  height: 2px;
  background: #222;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.contact-email-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.contact-email-info {
  color: var(--accent-orange);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.8;
}

/* -------------------------------------
   HOMEPAGE HERO HEADER OVERLAY
------------------------------------- */

body.home .site-header,
body.blog .site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

body.home .header-top,
body.blog .header-top {
  background: transparent;
  /* Optional: A subtle divider under the logo section */
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.15); */
}

body.home .main-nav,
body.blog .main-nav {
  background: transparent;
}

/* Change menu links to white so they contrast against the dark hero overlay */
body.home .main-nav a,
body.blog .main-nav a {
  color: #fff;
}

body.home .main-nav a:hover,
body.blog .main-nav a:hover {
  color: var(--accent-orange);
}

body.home .main-nav li.menu-item-has-children>a::after,
body.blog .main-nav li.menu-item-has-children>a::after {
  border-color: #fff;
}

body.home .main-nav li.menu-item-has-children>a:hover::after,
body.blog .main-nav li.menu-item-has-children>a:hover::after {
  border-color: var(--accent-orange);
}