/*
Theme Name: PRO-AGRO
Theme URI: https://pro-agro.rs/
Author: sala2000
Description: PRO-AGRO
Version: 0.97
Text Domain: proagro
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  /* font-family: 'Noto Sans', sans-serif; */
  /* color: #333; */
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #282829;
  line-height: 1.6;
}

a {
  color: #ef1c23;
  text-decoration: none;
}

.post-content {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 400;
    --tw-text-opacity: 1;
    color: #ef1c23 !important;
}

.header {
  /* background: #fff; */
  background: #f5f5f5;
  /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
  padding: 15px 0;
}

.header .proagro-btn-primary {
    background-color: #ef1c23;
    color: white !important;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid #ef1c23;
    box-shadow: 0 2px 10px rgba(239, 28, 35, 0.2);
}

.header .proagro-btn-primary:hover {
    background-color: white;
    color: #ef1c23 !important;
    border-color: #ef1c23;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 28, 35, 0.3);
}

.header .proagro-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(239, 28, 35, 0.3);
}

.footer {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
  color: white;
  padding: 15px 0;
}

.logo img {
  height: 60px;
  width: auto;
}

.main-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu li {
  margin-left: 25px;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: #ef1c23;
    margin-top: 1.5em;
    -ms-hyphens: auto;
    hyphens: auto;
}

.section-title {
    color: #ef1c23;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #ef1c23;
}

.proagro-btn {
  display: inline-block;
  background: #005fcc;
  color: white !important;
  padding: 12px 30px;
  border-radius: 0;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

.proagro-btn-primary {
  background: #ef1c23;
  color: white !important;
  padding: 12px 30px;
  border-radius: 0;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  border: none;
}

.proagro-btn-outline {
  background: transparent;
  border: 2px solid #005fcc;
  color: #005fcc !important;
}

.navbar {
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 60px;
    width: auto;
}

.navbar-nav {
    margin-left: auto;
    font-size: 1.1rem;
}

.nav-link {
    font-weight: 600 !important;
    padding: 0.5rem 1.25rem !important;
    color: #282829 !important;
    letter-spacing: 0.5px;
    transition: color 0.2s ease-in-out;
}

.nav-link:hover {
    color: #ef1c23 !important;
    transform: translateY(-1px);
}

.nav-link:focus {
    color: #ef1c23 !important;
}

.nav-link.active {
    color: #ef1c23 !important;
    font-weight: 700 !important;
    position: relative;
}

.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: #ef1c23;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dropdown-item {
    font-weight: 500;
    transition: all 0.2s;
    padding: 0.5rem 1.5rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #ef1c23;
    transform: translateX(3px);
}

.dropdown-item:focus {
    background-color: #f8f9fa;
    color: #ef1c23;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.footer {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.9));
    color: white;
    padding: 40px 0 20px;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-contacts address p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-link {
    color: white !important;
    text-decoration: none;
}

.footer-link:hover {
    color: #ef1c23 !important;
}

.footer-menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
    margin-right: 0;
}

.footer-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.footer-menu a:hover {
    color: #ef1c23;
}

.bi {
    margin-right: 8px;
    color: #ef1c23;
}


.sindicat {
    position: relative;
    padding: 0;
    background-color: #ef1c23;
    overflow: hidden;
}

.sindicat:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 75%;
    background-color: #ef1c23;
    z-index: 0;
}

.sindicat .container-fluid {
    position: relative;
    z-index: 1;
}

.sindicat-left,
.sindicat-right {
    padding: 60px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sindicat-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.sindicat-join-link {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s;
    display: inline-block;
}

.sindicat-join-link:hover {
    color: white;
    transform: translateX(10px);
}

.sindicat-features {
    list-style: none;
    padding: 0;
    margin: 0;
    color: white;
}

.sindicat-features li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.sindicat-features .bi {
    color: white;
    font-size: 1.3rem;
    margin-right: 10px;
}

.hero-story {
    background: #f5f5f5;
    border-radius: 0px 0px 40px 0px;
    padding: 20px;
    overflow: hidden;
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.1); */
    transition: all 0.3s;
    height: 100%;
    position: relative;
    /* margin-bottom: 40px; */
}

.hero-image {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hero-story:hover .hero-image {
    transform: scale(1.02);
}

.hero-content {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 60px; /* Место для иконки */
    position: relative;
}

.hero-story .read-more {
    bottom: 30px;
    right: 30px;
}

.hero-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.hero-title a {
    color: #282829;
    text-decoration: none;
}

.hero-title a:hover {
    color: #ef1c23;
}

.hero-excerpt {
    margin-bottom: 25px;
}

/* Excerpt Pagelist Styles */
.ex-pagelist {
    margin-top: 30px;
}

.news-card,
.service-card {
    background: #f5f5f5;
    border-radius: 0px 0px 40px 0px;
    padding: 20px;
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.1); */
    transition: all 0.3s;
    height: 100%;
    position: relative; /* Для позиционирования иконки */
    overflow: hidden; /* Чтобы скругление углов работало */
}

.news-card:hover,
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* .service-icon img {
  max-width: 80px;
  height: auto;
  margin-bottom: 15px;
} */

.news-thumbnail {
    border-radius: 6px;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-meta {
    color: #666;
    font-size: 0.9rem;
}

.news-title {
    font-size: 1.2rem;
}

.news-title a {
    color: #282829;
    text-decoration: none;
}

.news-title a:hover {
    color: #ef1c23;
}


/* Дополнительные стили для миниатюр услуг */
.service-thumbnail {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 6px;
}

.service-thumbnail img {
    transition: transform 0.3s ease;
}

.service-card:hover .service-thumbnail img {
    transform: scale(1.05);
}

/* Гарантия отображения изображений */
.hero-image,
.news-thumbnail,
.service-thumbnail img {
    display: block !important;
    width: 100%;
    height: auto;
}

/* Размеры изображений */
.hero-image {
    max-height: 400px;
    object-fit: cover;
}

.news-thumbnail {
    height: 200px;
    object-fit: cover;
}

.service-thumbnail img {
    height: 180px;
    object-fit: cover;
}

.read-more {
    position: absolute;
    bottom: 15px;
    right: 15px;
    margin-top: 0;
    text-decoration: none !important;
}

.read-more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; /* Увеличенный размер */
    height: 44px; /* Увеличенный размер */
    background-color: #f0f0f0;
    border-radius: 50%;
    transition: all 0.3s ease;
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.1); Легкая тень */
}

.read-more-icon .bi {
    color: #666;
    font-size: 2.5rem;
    margin-right: 0;
    transition: all 0.3s ease;
}

.read-more:hover .read-more-icon {
    background-color: #ef1c23;
    transform: scale(1.1); /* Эффект увеличения при наведении */
    /* box-shadow: 0 3px 8px rgba(239, 28, 35, 0.3); Тень при наведении */
}

.read-more:hover .read-more-icon .bi {
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-top: 20px;
    }

    .nav-item {
        margin-bottom: 5px;
    }

    .dropdown-menu {
        margin-left: 15px;
        box-shadow: none;
    }

    .hero-content {
        padding: 20px;
    }

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

    .sindicat-left,
    .sindicat-right {
        padding: 40px 20px;
    }

    .sindicat-join-link {
        font-size: 1.5rem;
    }

    .sindicat-features li {
        font-size: 1rem;
    }
}


@media (max-width: 767.98px) {
    .read-more-icon {
        width: 40px;
        height: 40px;
    }

    .read-more-icon .bi {
        font-size: 1.3rem;
    }

    .hero-story {
        padding: 15px;
    }

    .hero-story .row {
        flex-direction: column;
    }

    .hero-image {
        height: 250px;
    }

    .hero-content {
        padding: 25px 15px;
    }

    .sindicat-left {
        order: 1;
        text-align: center;
    }

    .sindicat-image {
        order: 3;
    }

    .sindicat-right {
        order: 2;
    }

    .sindicat-features {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sindicat-features li {
        margin: 0 10px 10px;
    }

    .footer .order-1 {
        order: 2;
    }
    .footer .order-2 {
        order: 1;
        margin-bottom: 30px;
    }
    .footer .order-3 {
        order: 3;
        text-align: left !important;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
  .main-menu ul {
    flex-direction: column;
  }

  .sindicat .container {
    padding: 20px 10px;
  }

  .sindicat h1 {
    font-size: 2rem;
  }

  .service-card {
    margin-bottom: 20px;
  }
}

/* =WordPress-specific (Gutenberg)= */
.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
