/* Стилі для сторінки брендів */
.page-brands {
    /* Видаляємо відступ зверху, щоб герой-секція була прижата до шапки */
    /* padding-top: var(--header-height); */
}

/* Hero секція використовує стилі з компонента banner */
/* Додаткові стилі для банера на сторінці брендів */
.page-brands .banner-section {
    margin-top: 0;
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    width: 100%;
}

/* Анімація появи для банера */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Анімація для елементів банера */
.page-brands .banner-content h1 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.page-brands .banner-content .lead {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.page-brands .banner-buttons {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.7s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивність для банера на сторінці брендів - більше не потрібна */

/* Секція з брендами */
.brands-section {
    padding: 2rem 0 4rem;
}

/* Стилі для заголовка секції (збережено на випадок, якщо буде потрібно повернути) */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Картка бренду - нова структура */
.brand-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 3rem;
}

.brand-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.brand-logo {
    margin-bottom: 1.5rem;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo img {
    max-width: 200px;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

.brand-description {
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Слайдер бренду */
.brand-slider {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    min-height: 300px;
    background: transparent;
    margin-bottom: 2rem;
    width: 100%;
}

/* Стилі для слайдера брендів */
.brand-slider .slider-container {
    width: 100%;
    height: 100%;
    background: transparent;
}

.brand-slider .slider-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: transparent;
}

.brand-slider .slider-item img {
    width: auto;
    height: 100%;
    object-position: center;
    max-height: 380px;
    max-width: 100%;
}

/* Стилі для індикаторів слайдера брендів */
.brand-slider .slider-indicators {
    bottom: 15px;
    z-index: 10;
}

.brand-slider .slider-indicator {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.brand-slider .slider-indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.brand-slider-placeholder {
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

.placeholder-content {
    text-align: center;
    padding: 2rem;
}

.placeholder-icon {
    font-size: 3rem;
    color: #ced4da;
    margin-bottom: 1rem;
}

.placeholder-content p {
    color: #6c757d;
    margin: 0;
}

/* Стилі для опису бренду - тепер під слайдером */
.brand-main-description {
    padding: 1.5rem;
    background-color: rgba(248, 249, 250, 0.5);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.brand-description-main {
    font-size: 1rem;
    line-height: 1.7;
    white-space: pre-line;
    max-width: 900px;
    margin: 0 auto;
}

.brand-features {
    margin-top: 0;
    max-width: 900px;
    margin: 0 auto;
}

.features-title {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

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

.features-list li {
    margin-bottom: 0.7rem;
    padding-left: 1.5rem;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.features-list li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Кнопка переходу на сайт бренду */
.brand-cta {
    margin-top: 2rem;
}

.brand-divider {
    border-top: 1px solid #e9ecef;
    margin: 3rem 0;
}

/* Адаптивність */
@media (max-width: 992px) {
    .brand-card {
        padding: 1.5rem;
    }
    
    .brand-slider-placeholder {
        margin-top: 2rem;
    }
}

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

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }
}

/* Новий дизайн карток брендів */
.brand-card-new {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--light-gray);
}

.brand-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Компактний заголовок картки бренду */
.brand-header {
    padding: 0.75rem 0.5rem;
    background-color: var(--white);
    text-align: center;
    border-bottom: none;
}

.brand-logo-large {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
}

.brand-logo-large img {
    max-height: 50px;
    max-width: 75%;
}

.brand-tagline {
    margin-top: 0.5rem;
    font-style: italic;
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.2;
}

/* Компактний контент картки */
.brand-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 0.3rem 0 0.2rem;
    border-top: none;
}

.brand-slider-wrapper {
    margin-bottom: 0.4rem;
}

/* Компактний текстовий блок для нового дизайну */
.brand-card-new .brand-description-block {
    padding: 0 0.4rem;
    margin-bottom: 0.4rem;
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.brand-card-new .brand-description-main {
    max-height: none !important;
    overflow-y: visible !important;
    padding: 0 0.1rem;
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    margin: 0 !important;
}

/* Компактний список особливостей для нового дизайну */
.brand-card-new .features-title {
    margin-bottom: 0.3rem;
    font-size: 0.95rem !important;
    color: var(--dark);
    font-weight: 600;
}

.brand-card-new .features-list {
    list-style: none;
    padding-left: 0 !important;
    max-height: none !important;
    overflow-y: visible !important;
    margin-bottom: 0.3rem;
}

.brand-card-new .features-list li {
    margin-bottom: 0.2rem !important;
    padding-left: 0 !important;
    display: flex;
    align-items: flex-start;
    font-size: 0.85rem !important;
    position: static !important;
}

.brand-card-new .features-list i {
    color: var(--primary) !important;
    margin-right: 0.2rem !important;
    margin-top: 0.2rem;
    font-size: 0.7rem !important;
    flex-shrink: 0;
}

/* Компактні кнопки дій */
.brand-actions {
    margin-top: auto;
    padding: 0.4rem 0;
    text-align: center;
    border-top: 1px solid var(--light-gray);
}

.brand-actions .btn {
    padding: 0.3rem 0.75rem;
    font-size: 0.9rem;
}

/* Шапка з фоновим зображенням або градієнтом */
.brand-header-bg {
    padding: 4rem 0;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
    text-align: center;
    overflow: hidden;
}

/* Ефект накладання для кращої читабельності тексту */
.brand-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.brand-header-bg .container {
    position: relative;
    z-index: 2;
}

/* Великий логотип бренду */
.brand-logo-large {
    margin: 0 auto 2rem;
    max-width: 300px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.brand-logo-large img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Стилі для клікабельних логотипів */
.brand-logo-large a {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
}

/* Додаємо індикатор клікабельності */
.brand-logo-large a::after {
    content: '🔗';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.brand-logo-large a:hover::after {
    opacity: 1;
}

.brand-logo-large a:hover {
    transform: scale(1.05);
}

.brand-logo-large a:hover img {
    filter: brightness(1.1);
}

/* Стилі для компактних логотипів у картках */
.brand-card-new .brand-logo-large a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    position: relative;
}

.brand-card-new .brand-logo-large a:hover {
    transform: scale(1.02);
}

/* Індикатор клікабельності для компактних логотипів */
.brand-card-new .brand-logo-large a::after {
    content: '🔗';
    position: absolute;
    top: -3px;
    right: -3px;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.brand-card-new .brand-logo-large a:hover::after {
    opacity: 1;
}

/* Слоган або короткий опис */
.brand-tagline {
    max-width: 800px;
    margin: 0 auto;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.brand-tagline p {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Контентна частина */
.brand-content {
    padding: 3rem 0;
}

/* Обгортка для слайдера */
.brand-slider-wrapper {
    margin-bottom: 3rem;
}

/* Блок опису */
.brand-description-block {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.brand-description-main {
    font-size: 1rem;
    line-height: 1.7;
    white-space: pre-line;
    max-width: 900px;
    margin: 0 auto;
}

/* Блок дій */
.brand-actions {
    text-align: center;
    margin-top: 2rem;
}

.brand-actions .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.brand-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Розділювач між брендами */
.brand-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 4rem 0;
}

/* Адаптивність */
@media (max-width: 991.98px) {
    .brand-header-bg {
        padding: 3rem 0;
    }
    
    .brand-logo-large {
        height: 100px;
        max-width: 250px;
        margin-bottom: 1.5rem;
    }
    
    .brand-tagline p {
        font-size: 1.1rem;
    }
    
    .brand-content {
        padding: 2rem 0;
    }
}

@media (max-width: 767.98px) {
    .brand-header-bg {
        padding: 2.5rem 0;
    }
    
    .brand-logo-large {
        height: 90px;
        max-width: 200px;
        padding: 1rem;
    }
    
    .brand-description-block {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .brand-header-bg {
        padding: 2rem 0;
    }
    
    .brand-logo-large {
        height: 80px;
        max-width: 180px;
        margin-bottom: 1rem;
    }
    
    .brand-tagline p {
        font-size: 1rem;
    }
    
    .brand-actions .btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

/* Додаткові класи для компактного відображення тексту */
.brand-description-compact {
  font-size: 0.85rem !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  max-height: none !important;
  overflow-y: visible !important;
  padding: 0 0.1rem !important;
  margin: 0 !important;
}

.brand-features-compact {
  margin: 0 !important;
  padding: 0 !important;
}

.brand-features-compact .features-title {
  margin-bottom: 0.3rem !important;
  font-size: 0.95rem !important;
  color: var(--dark) !important;
  font-weight: 600 !important;
}

.brand-features-compact .features-list {
  list-style: none !important;
  padding-left: 0 !important;
  max-height: none !important;
  overflow-y: visible !important;
  margin-bottom: 0.3rem !important;
}

.brand-features-compact .features-list li {
  margin-bottom: 0.2rem !important;
  padding-left: 0 !important;
  position: static !important;
}

.brand-features-compact .features-list i {
  color: var(--primary) !important;
  margin-right: 0.2rem !important;
  margin-top: 0.2rem !important;
  font-size: 0.7rem !important;
}

/* Переконаємося, що градієнт є доступним, якщо немає змінної */
:root {
  --gradient-main: linear-gradient(135deg, var(--primary-blue, #0072CE), var(--primary-turquoise, #00BFB2));
}

/* Стилі для контейнера брендів у повну ширину */
.brands-container {
  margin-top: 2rem;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

/* Горизонтальний роздільник між брендами */
.brand-horizontal-divider {
  height: 4px;
  background: var(--gradient-main, linear-gradient(135deg, var(--primary-blue, #0072CE), var(--primary-turquoise, #00BFB2)));
  margin: 2rem auto 3rem;
  width: 80%;
  border-radius: 2px;
  opacity: 0.8;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Адаптивність для карток брендів */
@media (max-width: 767.98px) {
  .brand-card-new .row {
    flex-direction: column;
  }
  
  .brand-card-new .col-md-6 {
    width: 100%;
  }
  
  .brand-description-block {
    margin-top: 1.5rem;
  }
  
  .brand-horizontal-divider {
    margin: 1.5rem auto 2rem;
    width: 90%;
  }
}

/* Стилі для контейнера зображень брендів */
.brand-images-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Стилі для сітки зображень */
.brand-images-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  padding: 0.5rem;
}

/* Стилі для окремого зображення */
.brand-image-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 300px;
}

.brand-image-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.brand-image-item img {
  max-height: 280px;
  width: auto;
  object-fit: contain;
  max-width: 100%;
}

/* Заглушка для зображень */
.brand-images-placeholder {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px dashed #dee2e6;
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 767.98px) {
  .brand-images-grid {
    gap: 0.75rem;
  }
  
  .brand-image-item {
    max-height: 250px;
  }
  
  .brand-image-item img {
    max-height: 230px;
  }
  
  .brand-images-placeholder {
    height: 250px;
  }
  
  /* Адаптивність для клікабельних логотипів */
  .brand-logo-large a:hover {
    transform: scale(1.02);
  }
  
  .brand-card-new .brand-logo-large a:hover {
    transform: scale(1.01);
  }
  
  /* Приховуємо індикатор клікабельності на мобільних пристроях */
  .brand-logo-large a::after,
  .brand-card-new .brand-logo-large a::after {
    display: none;
  }
}

/* Стиль для тегів бренду GivEnergy */
#givenergy .brand-tagline {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}

#givenergy .brand-tagline p {
  color: transparent;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Стиль для тегів бренду у всіх картках */
.brand-card-new .brand-tagline {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}

.brand-card-new .brand-tagline p {
  color: transparent;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
} 