/* Hero Section */
.hero-section {
  background-color: #f5f0e8;
  padding: 50px 40px;
  align-items: center;
  min-height: 60vh;
}

.hero-section h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #efeee7;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-section p {
  font-size: 1.2rem;
  color: #555;
  max-width: 500px;
  line-height: 1.7;
}

.hero-section img {
  max-width: 350px;
  width: 100%;
}

/* Hero Button */
.hero-section .wp-block-button__link {
  background-color: #c9a84c;
  color: #ffffff;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  transition: background-color 0.3s ease;
}

.hero-section .wp-block-button__link:hover {
  background-color: #1a2332;
  color: #ffffff;
}

body.page .page-title {
  display: none;
}

.hero-section {
  border-radius: 20px;
  margin: 20px 40px 0 40px;
  overflow: hidden;
}

/* Why Us Section */
.why-us-title {
  text-align: center;
  margin-bottom: 40px;
  color: #2f4744;
}
.why-us-card {
  background-color: #f5f0e8;
  border-radius: 16px;
  padding: 30px 20px !important;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin: 0 8px;
}

.why-us-card img {
  width: 140px !important;
  height: 130px !important;
  object-fit: contain;
  margin: 0 auto 8px auto;
  display: block;
}

.why-us-card p {
  font-size: 0.87rem;
  font-weight: 600;
  color: #2f4744;
  text-align: center;
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

/* Space between columns */
.why-us-section .wp-block-columns {
  gap: 20px !important;
}

/* Floating animation */
@keyframes mentis-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(1deg); }
  75% { transform: translateY(-6px) rotate(-1deg); }
}

/* Shadow pulse */
@keyframes mentis-shadow {
  0%, 100% { filter: drop-shadow(0px 20px 20px rgba(0,0,0,0.15)); }
  50% { filter: drop-shadow(0px 35px 30px rgba(0,0,0,0.08)); }
}

/* 3D hover tilt */
.mentis-character img {
  animation: mentis-float 5s ease-in-out infinite, mentis-shadow 5s ease-in-out infinite;
  transform-origin: center bottom;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.mentis-character img:hover {
  animation-play-state: paused;
  transform: scale(1.05) rotate(2deg);
  filter: drop-shadow(0px 30px 25px rgba(0,0,0,0.2));
}

/* Fade in on scroll */
@keyframes fadeInUp {
  from {
    opacity: 1;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.why-us-card {
  opacity: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-us-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.why-us-card:nth-child(2) { animation-delay: 0.1s; }
.why-us-card:nth-child(3) { animation-delay: 0.2s; }
.why-us-card:nth-child(4) { animation-delay: 0.3s; }
.why-us-card:nth-child(5) { animation-delay: 0.4s; }

/* Lift on hover */
.why-us-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

/* Glow behind the girl */
.mentis-character img {
  filter: drop-shadow(0px 0px 30px rgba(184, 150, 46, 0.3));
}

@keyframes mentis-glow {
  0%, 100% { filter: drop-shadow(0px 20px 20px rgba(0,0,0,0.15)) drop-shadow(0px 0px 30px rgba(184, 150, 46, 0.2)); }
  50% { filter: drop-shadow(0px 35px 30px rgba(0,0,0,0.08)) drop-shadow(0px 0px 50px rgba(184, 150, 46, 0.4)); }
}

.mentis-character img {
  animation: mentis-float 5s ease-in-out infinite, mentis-glow 5s ease-in-out infinite;
}

/* Animated headline */
@keyframes fadeInWord {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.wp-block-columns h1 {
  animation: fadeInWord 1s ease forwards;
}

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@1,700&display=swap');

.wp-block-columns h1 {
  font-family: 'Bodoni Moda', serif !important;
  font-style: italic !important;
  font-weight: 700 !important;
}

.hero-text-column {
  padding-top: 80px !important;
}
.hero-text-column .wp-block-spacer {
  height: 20px !important;
}

.wp-block-columns:first-of-type {
  padding-bottom: 20px;
}

/* Prevent hero-section styling from bloating the post title box on blog posts */
body.single-post .hero-section {
  min-height: 0 !important;
  padding: 20px !important;
  margin: 20px 40px 0 40px !important;
}
body.page .entry-title {
  display: none !important;
}
.wp-block-post-excerpt__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wp-block-post-template .wp-block-post {
  background-color: #f5f0e8;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-post-template .wp-block-post:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}

.wp-block-post-template .wp-block-post-title {
  color: #2f4744;
  font-size: 20px;
  margin: 8px 0;
}

.wp-block-post-template .wp-block-post-title a {
  text-decoration: none;
  color: inherit;
}

.wp-block-post-template .wp-block-post-excerpt {
  color: #555;
  font-size: 14px;
}
.wp-block-quote {
  border-left-color: #F5F0E8 !important;
}
/* Блог dropdown menu styling */
.header-menu-1 .sub-menu {
  background-color: #f5f0e8 !important;
  border: none !important;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 8px 0;
}

.header-menu-1 .sub-menu .ct-menu-link {
  color: #2f4744 !important;
}

.header-menu-1 .sub-menu .ct-menu-link:hover {
  color: #B8962E !important;
  background-color: rgba(184, 150, 46, 0.08);
}
/* Site-wide pill button style, matching hero buttons */
.wp-block-button__link {
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 600;
  text-decoration: none;
}

.wp-block-buttons .wp-block-button:nth-child(1) .wp-block-button__link {
  background-color: transparent;
  border: 2px solid #2f4744;
  color: #2f4744;
}

.wp-block-buttons .wp-block-button:nth-child(2) .wp-block-button__link,
.wp-block-buttons .wp-block-button:nth-child(3) .wp-block-button__link {
  background-color: #2f4744;
  color: #ffffff;
  border: none;
}

/* Post text color*/
body.single-post .entry-title,
body.single-post .entry-content,
body.single-post .entry-content p,
body.single-post .entry-content h1,
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content li,
body.single-post .wp-block-quote {
  color: #2f4744 !important;
}
body.single-post .entry-header .page-title {
  color: #2f4744 !important;
}
body.single-post .entry-content {
  position: relative;
}
.mobile-menu .sub-menu .ct-menu-link {
  color: #2f4744 !important;
}