/*!
Theme Name: dikoros
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: dikoros
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/
/* Fonts */
@font-face {
	url("assets/fonts/roboto-regular.woff2") format("woff2");
	font-weight: normal;
	font-style: normal;
}
:root {
  --default-font: "Roboto Regular",  sans-serif, Arial;
  --heading-font: sans-serif;
  --nav-font: "Noto Sans",  sans-serif;
}
/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #fffcf2; /* Background color for the entire website, including individual sections */
  --default-color: #134627; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #519d68; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #519d68; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #fffcf2; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
  --border-color: #f6eed4;
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #fffcf2;  /* The default color of the main navmenu links */
  --nav-hover-color: #5fcf80; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #fffcf2; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #fffcf2; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #fffcf2; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #5fcf80; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}


/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f6eed4;
  --surface-color: #fffcf2;
}

.dark-background {
  --background-color: #134627;
  --default-color: #fffcf2;
  --heading-color: #fffcf2;
  --surface-color: #fffcf2;
  --contrast-color: #fffcf2;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

@font-face {
    font-family: "Icons";
    src: url("assets/fonts/Icons.woff2") format("woff2"),
        url("assets/fonts/Icons.ttf") format("truetype"),
        url("assets/fonts/Icons.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

.icon {
    /* Use !important to prevent extensions from overriding this font. */
    font-family: "Icons" !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

.site-description {
	font-size: 0.7rem;
	max-width: 120px;
}

.page-link {
	color: var(--accent-color);
}
.active>.page-link {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.action-btn {
  padding: 8px 20px;
  /*display: flex;
  align-items: center;
  justify-content: center;*/
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50px;
  border: 0px;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent-color), transparent 60%);
}
.action-btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), var(--default-color) 15%);
  color: var(--contrast-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent-color), transparent 50%);
}
@media (max-width: 576px) {
  .gallery .action-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

.card {
    border-color: var(--border-color);
}

.card-title {
	color: var(--default-color);
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 10px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .header-container {
  padding: 5px 25px;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 24px;
  margin: 0;
  padding-left: 5px;
  font-weight: 500;
  color: var(--heading-color);
}

.header .header-social-links {
  padding-right: 15px;
}

.header .header-social-links a {
  color: var(--surface-color);
  padding-left: 6px;
  display: inline-block;
  transition: 0.3s;
  font-size: 16px;
}

.header .header-social-links a:hover {
  color: var(--accent-color);
}

.header .header-social-links a i {
  line-height: 0px;
}

.header-search {
	max-width: 150px;
	border: 1px solid #dee2e6;
	border-radius: 50px;
}

.header-search .btn {
/*border-top: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;*/
}
.header-search input {
  border: 0px;
  background: transparent;
}
input:focus {
    outline: none;
    box-shadow: none!important;
	background: transparent!important;
}
.header-search input::placeholder {
    color: #ffffff;
}

@media (max-width: 1200px) {
  .header {
    padding-top: 10px;
  }

  .header .header-container {
    margin-left: 10px;
    margin-right: 10px;
    padding: 10px 5px 10px 15px;
  }

  .header .logo {
    order: 1;
  }

  .header .header-social-links {
    order: 2;
  }

  .header .navmenu {
    order: 3;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  position: relative;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .social-links {
  margin-top: 20px;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin: 0 5px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer .credits {
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  text-align: center;
  padding: 20px 0;
}

.page-title .breadcrumbs {
  margin-bottom: 1.5rem;
}

.page-title .breadcrumbs .breadcrumb {
  justify-content: center;
  margin: 0;
  padding: 0;
  background: none;
}

.page-title .breadcrumbs .breadcrumb .breadcrumb-item {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.page-title .breadcrumbs .breadcrumb .breadcrumb-item.active {
  color: var(--accent-color);
}

.page-title .breadcrumbs .breadcrumb .breadcrumb-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-title .breadcrumbs .breadcrumb .breadcrumb-item a:hover {
  color: var(--accent-color);
}

.page-title .breadcrumbs .breadcrumb .breadcrumb-item a i {
  font-size: 0.9rem;
  margin-right: 0.2rem;
}

.page-title .breadcrumbs .breadcrumb .breadcrumb-item+.breadcrumb-item::before {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.page-title .title-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 0;
}

.page-title .title-wrapper h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--heading-color);
}

.page-title .title-wrapper p {
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .page-title .title-wrapper h1 {
    font-size: 2rem;
  }

  .page-title .title-wrapper p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .page-title .title-wrapper h1 {
    font-size: 1.75rem;
  }
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 90px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(120deg, var(--heading-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section-title .title-shape {
  width: 200px;
  height: 20px;
  margin: 0 auto;
  /*color: var(--accent-color);*/
  color: #4c8b5f;
  /*opacity: 0.5;*/
}

.section-title .title-shape svg {
  width: 100%;
  height: 100%;
}

.section-title p {
  margin: 15px auto 0;
  font-size: 16px;
  max-width: 700px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 32px;
  }

  .section-title .subtitle-wrapper .subtitle {
    font-size: 13px;
  }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 80vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--default-color);
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  color: var(--surface-color);
}

.hero p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 10px 0 0 0;
  font-size: 24px;
}

.hero .content {
	margin-left: 50px;
}

@media (max-width: 1800px) {
	.hero .content {
		margin-left: 100px;
	}
}

@media (max-width: 1600px) {
	.hero .content {
		margin-left: 150px;
	}
}

@media (max-width: 1460px) {
	.hero .content {
		margin-left: 180px;
	}
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }
}


@media (max-width: 991px) {
  .hero .content h2 {
    font-size: 2.5rem;
  }
}

.hero .content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--surface-color);
}

.hero .cta-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (max-width: 576px) {
  .hero .cta-buttons {
    flex-direction: column;
  }
}

.hero .cta-buttons .btn {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.hero .cta-buttons .btn.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

.hero .cta-buttons .btn.btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 15%);
  transform: translateY(-2px);
}

.hero .cta-buttons .btn.btn-outline {
  border: 2px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  color: var(--accent-color);
  background: transparent;
}

.hero .cta-buttons .btn.btn-outline:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .hero {
    text-align: center;
    padding: 60px 0;
  }

  .hero .cta-buttons {
    justify-content: center;
  }

  .hero .hero-stats {
    justify-content: center;
  }

  .hero .hero-image {
    margin-top: 3rem;
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .about-image {
  position: relative;
}

.about .about-image img {
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.about .about-content {
  padding-left: 2rem;
}

@media (max-width: 991.98px) {
  .about .about-content {
    padding-left: 0;
    margin-top: 3rem;
  }
}

.about .about-content .subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-color);
  margin-bottom: 1rem;
  display: block;
}

.about .about-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.about .about-content .lead {
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.about .personal-info {
  margin-top: 2rem;
  padding: 2rem;
  background-color: var(--surface-color);
  border-radius: 1rem;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.about .personal-info .info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about .personal-info .info-item .label {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.about .personal-info .info-item .value {
  font-weight: 600;
  color: var(--heading-color);
}

.about .signature {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.about .signature .signature-image {
  max-width: 150px;
}

.about .signature .signature-info h4 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.about .signature .signature-info p {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin: 0;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonials-slider {
  width: 100%;
  position: relative;
  padding-bottom: 60px;
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .testimonial-item {
  background-color: var(--surface-color);
  /*padding: 40px;*/
  border-radius: 20px;
}

@media (max-width: 575px) {
  .testimonials .testimonial-item {
    padding: 20px;
  }
}

.testimonials .testimonial-item h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

.testimonials .testimonial-item p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
  font-style: italic;
}

.testimonials .testimonial-item .profile {
  gap: 15px;
}

.testimonials .testimonial-item .profile .profile-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonials .testimonial-item .profile .profile-info h3 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}

.testimonials .testimonial-item .profile .profile-info span {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color) 70%, transparent);
}

.testimonials .testimonial-item .featured-img-wrapper {
  min-height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 16px 0px 0px 16px;
}

.testimonials .testimonial-item .featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

#news-year {
	position: absolute;
	top: 10px;
	right: 20px;
	font-size: 10rem;
	color: #477a57;
	opacity: .1;
}

.profile {
	border-bottom: 1px solid #f6eed4;
	padding-bottom: 20px;
	margin-bottom: 40px;
}

.profile h3 {
	font-size: 4rem!important;
	color: #f6eed4;
	font-weight: bold;
}

.swiper-navigation {
  /*position: absolute;
  bottom: 0;*/
  gap: 10px;
  margin-top: 20px;
}

.swiper-button-prev,
.swiper-button-next {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  margin: 0;
  width: 44px;
  height: 44px;
  background-color: var(--surface-color);
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color) 10%, transparent);
  transition: 0.3s;
}


.testimonials-slider {
  width: 100%;
  padding-bottom: 50px;
}

.testimonials-slider .swiper-slide {
  background-position: center;
  background-size: cover;
  width: 50%; /* Ширина активного слайда */
  
  /* Эффект прозрачности для боковых слайдов (опционально) */
  opacity: 0.5;
  transition: opacity 0.3s;
}

/* Стили для активного центрального слайда */
.testimonials-slider .swiper-slide-active {
  opacity: 1;
}

/* Стили для стрелок */
/*
.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  color: #000;
}

.swiper-button-prev {
  left: 0;
}

.swiper-button-next {
  right: 0;
}*/

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 20px;
  color: var(--default-color);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.swiper-button-prev:hover::after,
.swiper-button-next:hover::after {
  color: var(--contrast-color);
}

.trapezoid-btn {
	position: absolute;
	bottom: 0px;
	right: 0px;

  /* Базовые стили */
  border: none;
  background-color: var(--accent-color);
  color: white;
  padding: 10px 40px;
  font-size: 16px;
  cursor: pointer;
  
  /* Фигура: точки в процентах (x y) */
  /* 0% 0%   — верхний левый угол */
  /* 100% 0% — верхний правый угол */
  /* 100% 100% — нижний правый угол */
  /* Высота кнопки должна совпадать с отступом слева для 45° */
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
  
  transition: background 0.3s;
}

.trapezoid-btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), var(--default-color) 15%);
  color: var(--contrast-color);
}
/*--------------------------------------------------------------
# Gallery Main
--------------------------------------------------------------*/
/* ------------------------------------------------------------- */
/* 1. БАЗОВЫЕ СТИЛИ (МОБИЛЬНЫЕ УСТРОЙСТВА: от 0px до 768px)       */
/* Сетка в 2 столбика. 1-я картинка высокая, остальные квадратные */
/* ------------------------------------------------------------- */
.custom-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr); /* 2 одинаковых столбика */
}

/* Все блоки по умолчанию делаем квадратными */
.grid-item {
  width: 100%;
  aspect-ratio: 1 / 1; /* Идеальный квадрат */
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Первая картинка: на мобильных занимает 2 строки по высоте */
.item-full {
  grid-row: span 2;
  aspect-ratio: auto; /* Сбрасываем квадрат, чтобы высота подстроилась под 2 строки */
  background-color:#134627;
}

/* Настройки картинок и анимации */
.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.grid-item:hover img {
  transform: scale(1.06);
}

/* Постоянное градиентное затемнение снизу для читаемости кнопки */
.grid-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 40%);
  pointer-events: none;
  z-index: 1;
}
	
.custom-grid .gallery-caption-center {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
  /*opacity: 0;*/
  transition: all 0.4s ease;
}
.gallery .gallery-text, .gallery .gallery-text h3 {
  color: #fff;
}

.custom-grid .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
  /*opacity: 0;*/
  transform: translateY(16px);
  transition: all 0.4s ease;
}

.gallery-text p {
    color: #fff!important;
}

/* Кнопка видна ВСЕГДА */
.button-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  transition: transform 0.2s ease;
}

/* Легкий интерактив самой кнопки при наведении */
.grid-item:hover .button-overlay {
  transform: translateY(-2px);
}

/* ------------------------------------------------------------- */
/* 2. ПЛАНШЕТЫ (от 768px до 992px)                               */
/* Сетка в 3 столбика. 1-я картинка высокая, остальные квадратные */
/* ------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 991.98px) {
  .custom-grid {
	grid-template-columns: repeat(3, 1fr); /* 3 столбика на планшете */
  }
  
  .item-full {
	grid-row: span 2; /* Первая картинка занимает 2 строки */
  }
}

/* ------------------------------------------------------------- */
/* 3. БОЛЬШИЕ ЭКРАНЫ / ПК (от 992px и выше)                      */
/* Возвращаем вашу исходную сетку с чередованием 1/3 и 2/3        */
/* ------------------------------------------------------------- */
@media (min-width: 992px) {
  .custom-grid {
	grid-auto-flow: column; 
	grid-template-columns: repeat(5, 1fr); /* 5 столбиков */
	grid-template-rows: repeat(3, 12vw);  /* 3 горизонтальных ряда */
	min-height: 480px;
  }

  /* Сбрасываем квадратные пропорции планшета/мобильного */
  .grid-item {
	aspect-ratio: auto; 
  }

  /* Переключаем логику высоты под изначальное ТЗ */
  .item-full {
	grid-row: 1 / span 3; /* На всю высоту */
  }

  .item-2to3 {
	grid-row: span 2; /* 2/3 высоты */
  }

  .item-1to3 {
	grid-row: span 1; /* 1/3 высоты */
  }
}
/*--------------------------------------------------------------
# Service
--------------------------------------------------------------*/
.service-item img {
	max-width: 185px;
	padding: 20px;
	text-align: center;
	height: 134px;
}

.ico-title {
	min-height: 64px;
}
/*--------------------------------------------------------------
# Наша продукция
--------------------------------------------------------------*/
/* Контейнер теперь занимает всю доступную ширину */
.wave-container {
  display: flex;
  gap: 0; /* Пилюли всегда плотно прижаты друг к другу */
  width: 100%; /* Растягиваем на 100% ширины родительского блока */
  padding: 0 5%; /* Процентный отступ, чтобы змейка не упиралась в края */
  box-sizing: border-box;
  justify-content: center;
  background-color: #fffcf2;
}

/* Пилюли теперь адаптивные */
.pill {
  position: relative;
  flex: 1; /* Каждая пилюля забирает равную долю от общей ширины контейнера */
  
  /* Главный секрет адаптивности — сохранение пропорций:
     Ширина одной пилюли относится к её высоте как 1 к 2 (например, 100px на 200px).
     Свойство aspect-ratio заставит высоту автоматически подстраиваться под ширину */
  aspect-ratio: 1 / 2; 

  /* Скругление углов делаем максимально большим (9999px), 
     чтобы при любом сжатии или растяжении форма пилюли оставалась идеальной капсулой */
	border-radius: 9999px; 
    display: flex;
	align-items: center;
	text-align: center;
	max-width: 216px;
}

/* SVG автоматически масштабируется внутри пилюли */
.pill svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible; 
  pointer-events: none;
   z-index: 1; 
}

.bottom-cap svg {
  z-index: 2;
}

/* Линии-змейки */
.wave-down, .wave-up {
  stroke: #134627;
  stroke-width: 12px; /* Толщина линии в px останется фиксированной, что выглядит аккуратно */
  stroke-linecap: round;
  transition: stroke 0.3s ease;
}

/* Эффект наведения мыши */
.pill:hover .wave-down,
.pill:hover .wave-up {
  stroke: #AF212E;
}

.pill-cont {
	width: 100%;
	height: 60%;
	border-radius: 9999px; 
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	background-color: #EBECEC;
	box-shadow: 0px 0px 50px 0px rgba(34, 60, 80, 0.3);
	border-radius: 9999px; 
}

.bottom-cap .pill-cont {
	margin-bottom: 30%;
	margin-left: 6%;
	margin-right: 6%;
}

.top-cap .pill-cont {
	margin-top: 20%;
	margin-left: 6%;
	margin-right: 6%;
}

.pill-cont-wrap {
	padding: 10px;
}

.pill-cont img {
	border: 2px solid #134627;
	border-radius: 9999px; 
}

.pill-title {
	font-weight: 600;
	font-size: 1.2rem;
	max-width: 150px;
	min-height: 60px;
	line-height: 1;
	display: flex;
    align-items: center;
    justify-content: center;
}

.tab-content .tab-pane {
    border: 2px solid #AF212E;
}

.nav-tabs {
 border: none;
}

@media (min-width: 768px) {
	.places-slider {
	display: block;
	}
	.places-slider-col {
		width: 100%;
		min-width: 100%;
	}
	.places-slider-nav {
		height: 54px;
		display: flex;
		margin-right: 0rem;
		text-align: center;
		margin-left: 30px;
	}
	.places-slider-nav-item {
		background: #fff;
		margin-left: -30px;
		border: 2px solid #AF212E;
		border-top-right-radius: 20px;
		padding-left: 60px;
		padding-right: 60px;
		border-bottom: none;
		font-size: 1.4rem;
		color: #AF212E;
	}
	.places-slider-nav-item:nth-child(1) {
		z-index: 10;
	}
	
	.places-slider-nav-item:nth-child(2) {
		z-index: 9;
	}
	.places-slider-nav-item.active {
		background: #AF212E;
		color: #fff;
	}
	.places-slider-nav-item-inner	{
		display: block;
		width: 100%;
		min-width: 100%;
	}
    .places-slider-content {
        margin-left: 0rem;
		border-right: 1px solid #AF212E;
		border-bottom: 1px solid #AF212E;
		border-left: 1px solid #AF212E;
		border-top: none;
		border-bottom-right-radius: 20px 20px;
		border-bottom-left-radius: 20px 20px;
    }
	.places-slider-content-item {
		width: 100%;
	}	
} 

/*contact-form-7*/

.wpcf7 form.invalid .wpcf7-response-output {
	border-color: var(--surface-color);
    background-color: #f6eed4;
}

.wpcf7 form.sent .wpcf7-response-output {
    background-color: #f6eed4;
}

.modal-content {
    background-color: #f6eed4;
}	

.form-control {
	background-color: #f6eed4;
}

.form-check-input:checked {
    /*background-color: var(--surface-color);*/
    border-color: var(--surface-color);
}

.form-check-input:focus {
    border-color: var(--surface-color);
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(126, 38, 37, .25);
}

.modal-content .form-control {
    background: #fff;	
}
