/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

/* Food Brands Logos Section */
.food-brands-logos {
    margin: 20px 0;
    width: 100%;
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding: 0 10px;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex: 0 0 auto;
    box-sizing: border-box;
}

.brand-logo:hover {
    transform: translateY(-2px) scale(1.05);
}

.brand-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Responsive sizing for different devices */
@media (min-width: 1200px) {
    .brands-grid {
        gap: 20px;
        padding: 0 15px;
    }
    
    .brand-logo {
        width: 90px;
    }
    
    .brand-logo img {
        max-height: 55px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .brands-grid {
        gap: 18px;
        padding: 0 12px;
    }
    
    .brand-logo {
        width: 85px;
    }
    
    .brand-logo img {
        max-height: 50px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .brands-grid {
        gap: 20px;
        padding: 0 15px;
    }
    
    .brand-logo {
        width: 100px;
    }
    
    .brand-logo img {
        max-height: 60px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .brands-grid {
        gap: 15px;
        padding: 0 10px;
    }
    
    .brand-logo {
        width: 80px;
    }
    
    .brand-logo img {
        max-height: 48px;
    }
}

@media (max-width: 575px) {
    .brands-grid {
        gap: 12px;
        padding: 0 8px;
    }
    
    .brand-logo {
        width: 70px;
    }
    
    .brand-logo img {
        max-height: 42px;
    }
}

/* Brand Partners Section */
.brand-partners-gallery {
    margin-top: 2rem;
}

.brand-partner-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: #e0e0e0;
}

.brand-partner-card .brand-logo {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.brand-partner-card:hover .brand-logo {
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .brand-partner-card {
        height: 120px;
        padding: 20px 15px;
    }

    .brand-partner-card .brand-logo {
        max-height: 60px;
    }
}

/* Work Culture Section */
.s-work-culture {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.work-culture-gallery {
    margin-top: 60px;
}

.culture-item {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
}

.culture-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.culture-item .image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.culture-item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.culture-item:hover .image img {
    transform: scale(1.1);
}

.culture-item .content {
    padding: 25px 20px;
    text-align: center;
}

.culture-item .content .title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
}

.culture-item .content .text {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* Responsive adjustments for work culture */
@media (max-width: 768px) {
    .s-work-culture {
        padding: 60px 0;
    }

    .work-culture-gallery {
        margin-top: 40px;
    }

    .culture-item .image {
        height: 200px;
    }

    .culture-item .content {
        padding: 20px 15px;
    }

    .culture-item .content .title {
        font-size: 18px;
    }

    .culture-item .content .text {
        font-size: 13px;
    }
}

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 74px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.docs-page .layout-navbar-fixed.layout-wrapper:not(.layout-without-menu) .layout-page,
.docs-page .layout-menu-fixed.layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 62px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 231px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}
