/* 
   Vendo.sg - Vendor Page Styles
*/

/* Vendor Banner */
.vendor-banner {
    height: 200px;
    background-image: url('../assets/Vendo-SG-Banner1.svg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(111, 207, 151, 0.85);
}

/* Vendor Header */
.vendor-header {
    background-color: var(--white);
    padding: 40px 0;
    margin-top: -50px;
    position: relative;
    z-index: 1;
}

.vendor-profile {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.vendor-left {
    flex: 0 0 200px;
}

.vendor-right {
    flex: 1;
}

.vendor-logo-large {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--primary-color);
    flex-shrink: 0;
    box-shadow: var(--shadow);
    margin: 0 auto;
}

.vendor-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendor-info {
    flex-grow: 1;
}

.vendor-info h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.vendor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.vendor-meta .meta-item {
    font-size: 1rem;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vendor-meta .meta-item i {
    color: var(--primary-color);
}

.vendor-meta .meta-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.vendor-meta .meta-item a:hover {
    text-decoration: underline;
}

.about-preview {
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-preview p {
    margin-bottom: 10px;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    text-decoration: underline;
    margin-top: 12px;
}

.read-more-btn:hover {
    color: var(--primary-color-dark);
}

.vendor-actions {
    display: flex;
    flex-direction: column;  /* Stack vertically */
    gap: 10px;
    margin-top: 20px;
    align-items: wrap;
}

/* Vendor About Section */
.vendor-about {
    padding: 30px 0;
    padding-bottom: 20px; /* reduce from 60px */
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.about-content ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    list-style-type: none;
}

.about-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Vendor Programs Section */
.vendor-programs {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.program-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.program-category {
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.program-category:hover {
    border-color: var(--primary-color);
}

.program-category.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Program Card Enhancements */
.program-description {
    margin: 15px 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--dark-gray);
}

/* Testimonials Section */
.testimonials-section {
    padding: 60px 0;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.testimonial {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    position: relative;
}

.testimonial::before {
    content: '\201C';
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 15px;
    font-family: Georgia, serif;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-author {
    border-top: 1px solid var(--medium-gray);
    padding-top: 15px;
}

.testimonial-author p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .testimonials {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .vendor-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .vendor-meta {
        justify-content: center;
    }
    
    .vendor-actions {
        justify-content: center;
    }
    
    .testimonials {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .vendor-logo-large {
        width: 120px;
        height: 120px;
    }
    
    .vendor-info h1 {
        font-size: 1.8rem;
    }
    
    .vendor-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .program-categories {
        flex-direction: column;
        gap: 8px;
    }
}

.about-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.short-about p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
}

.vendor-info-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.vendor-main-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    margin-top: -40px;
}

.vendor-main-right {
    flex: 1;
    min-width: 250px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: -10px;
}

.vendor-main-left h1 {
    margin-bottom: 2px; /* reduce space below the vendor name */
}

.vendor-tagline {
    margin-bottom: 5px;  /* reduce space below tagline */
    font-size: 1rem;
    color: #444;
}

.vendor-actions {
    margin-top: 10px !important; /* reduce space above buttons */
}

.vendor-about-truncated {
  display: -webkit-box;
  -webkit-line-clamp: 5;         /* Limit to 6 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6rem !important;
  max-height: calc(1.6rem * 5);  /* fallback max-height */
}
