/* Homepage Sections V2 - Three Columns Layout */

.homepage-sections-v2 {
    padding: 80px 0;
    background: #f8f9fa;
}

.sections-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Articles Column */
.articles-column {
    flex: 1;
    max-width: 33.333%;
}

.articles-column h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 36px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 400;
    position: relative;
    text-align: center;
}

.articles-column h2:after {
    content: "";
    width: 60px;
    height: 2px;
    background: #d4af37;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.article-item-v2 {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-item-v2:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.article-image-v2 {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.article-content-v2 {
    padding: 15px;
}

.article-title-v2 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta-v2 {
    font-size: 12px;
    color: #666;
}

.article-meta-v2 .date {
    margin-right: 10px;
}

.article-meta-v2 .author {
    color: #d4af37;
}

/* Swiper Container */
.articles-swiper-container {
    margin-bottom: 20px;
    overflow: hidden;
    height: auto; /* Adjusted height for horizontal slider with 2 articles */
}

.articles-swiper {
    width: 100%;
    height: 100%;
}

.articles-swiper .swiper-wrapper {
    align-items: stretch;
}

.articles-swiper .swiper-slide {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Articles Slide Content - Contains 2 articles vertically */
.articles-slide-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    justify-content: space-between;
}

/* Horizontal Article Layout */
.article-item-v2-horizontal {
    display: flex;
    align-items: flex-start;
    background: white;
    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;
    flex: 1;
    min-height: 80px;
}

.article-item-v2-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.article-image-container {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
}

.article-image-v2-horizontal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-item-v2-horizontal:hover .article-image-v2-horizontal {
    transform: scale(1.1);
}

.article-content-v2-horizontal {
    flex: 1;
    padding: 0px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
}

.article-title-v2-horizontal {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    margin-top: 0px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta-v2-horizontal {
    font-size: 11px;
    color: #666;
    line-height: 1.2;
}

.article-meta-v2-horizontal .date {
    display: block;
    margin-bottom: 2px;
}

.article-meta-v2-horizontal .author {
    color: #d4af37;
    font-weight: 500;
}

/* Swiper Pagination */
.articles-pagination {
    position: relative !important;
    bottom: 0 !important;
    text-align: center;
    margin-top: 15px;
}

.articles-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.articles-pagination .swiper-pagination-bullet-active {
    background: #d4af37;
    transform: scale(1.2);
}

.view-more-articles-v2 {
    text-align: center;
    margin-top: 20px;
}

.view-more-articles-v2 .btn {
    background: transparent;
    border: 1px solid #333;
    color: #333;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.view-more-articles-v2 .btn:hover {
    background: #333;
    color: white;
    text-decoration: none;
}

/* Photos Column */
.photos-column {
    flex: 1;
    max-width: 33.333%;
}

.photos-column h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 36px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 400;
    text-align: center;
    position: relative;
}

.photos-column h2:after {
    content: "";
    width: 60px;
    height: 2px;
    background: #d4af37;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.photo-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.photo-item-v2 {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.photo-item-v2:hover {
    transform: scale(1.03);
}

.photo-item-v2 img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item-v2:hover img {
    transform: scale(1.1);
}

.photo-overlay-v2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-item-v2:hover .photo-overlay-v2 {
    opacity: 1;
}

.photo-overlay-v2 i {
    color: white;
    font-size: 16px;
}

.instagram-handle-v2 {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.instagram-handle-v2 a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
}

/* Testimonials Column */
.testimonials-column {
    flex: 1;
    max-width: 100%;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 50px 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonials-column:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="chevron" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M0,20 L10,10 L20,20" stroke="%23ffffff" stroke-width="0.5" fill="none" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23chevron)"/></svg>');
    opacity: 0.1;
}

/* Testimonials Swiper Container */
.testimonials-swiper-container {
    position: relative;
    z-index: 2;
    height: 100%;
}

.testimonials-swiper {
    width: 100%;
    height: 100%;
    padding-bottom: 40px;
}

.testimonials-swiper .swiper-wrapper {
    align-items: center;
}

.testimonials-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-content-v2 {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
}

/* Avatar positioned at top */
.testimonial-avatar-v2 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #d4af37;
    margin: 0 auto 20px;
    overflow: hidden;
    order: 1;
}

.testimonial-avatar-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Quote positioned in middle */
.testimonial-quote-v2 {
    font-size: 16px;
    font-style: italic;
    line-height: 1.5;
    margin: 20px 0;
    color: #333;
    position: relative;
    order: 2;
    flex: 1;
    display: flex;
    align-items: center;
    text-align: center;
}

.testimonial-quote-v2:before {
    content: '"';
    font-size: 60px;
    color: #d4af37;
    position: absolute;
    top: -20px;
    left: -20px;
    font-family: "Times New Roman", serif;
    opacity: 0.3;
}

/* Author name positioned at bottom */
.testimonial-author {
    order: 3;
    margin-top: auto;
}

.testimonial-name-v2 {
    font-size: 16px;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 10px;
}

.testimonial-title-v2 {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

/* Testimonials Pagination */
.testimonials-pagination {
    position: absolute !important;
    bottom: 10px !important;

    text-align: center;
    z-index: 10;
}

.testimonials-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.testimonials-pagination .swiper-pagination-bullet-active {
    background: #d4af37;
    transform: scale(1.2);
}

/* Legacy dots (for backward compatibility) */
.testimonial-dots-v2 {
    text-align: center;
}

.dot-v2 {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 3px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot-v2.active {
    background: #d4af37;
}

/* Responsive Design */
@media (max-width: 992px) {
    .sections-row {
        flex-direction: column;
        gap: 30px;
    }

    .articles-column,
    .photos-column,
    .testimonials-column {
        max-width: 100%;
        width: 100%;
    }

    .photo-grid-v2 {
        grid-template-columns: repeat(3, 1fr);
    }

    .articles-swiper-container {
        height: auto;
        overflow: hidden;
    }

    .articles-slide-content {
        gap: 8px;
    }

    .article-item-v2-horizontal {
        min-height: 70px;
    }

    .article-image-container {
        width: 70px;
        height: 70px;
    }

    .article-content-v2-horizontal {
        padding: 12px;
        min-height: 70px;
    }
}

@media (max-width: 768px) {
    .homepage-sections-v2 {
        padding: 60px 0;
    }

    .sections-row {
        gap: 20px;
    }

    .articles-column h2,
    .photos-column h2 {
        font-size: 28px;
    }

    .photo-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-column {
        padding: 25px 15px;
    }

    .testimonial-quote-v2 {
        font-size: 14px;
    }

    .testimonial-avatar-v2 {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

    .testimonial-content-v2 {
        min-height: 250px;
    }

    .articles-swiper-container {
        height: 140px;
        overflow: hidden;
    }

    .articles-slide-content {
        gap: 6px;
    }

    .article-item-v2-horizontal {
        min-height: 60px;
    }

    .article-image-container {
        width: 60px;
        height: 60px;
    }

    .article-content-v2-horizontal {
        padding: 10px;
        min-height: 60px;
    }

    .article-title-v2-horizontal {
        font-size: 13px;
    }

    .article-meta-v2-horizontal {
        font-size: 10px;
    }

    .testimonials-column {
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .articles-column h2,
    .photos-column h2 {
        font-size: 24px;
    }

    .testimonials-column {
        max-width: 100% !important;
        width: 100% !important;
    }

    .photo-grid-v2 {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .photo-item-v2 img {
        height: 80px;
    }

    .articles-swiper-container {
        height: auto;
    }

    .articles-slide-content {
        gap: 4px;
    }

    .article-item-v2-horizontal {
        min-height: 50px;
    }

    .article-image-container {
        width: 50px;
        height: 50px;
    }

    .article-content-v2-horizontal {
        padding: 8px;
        min-height: 50px;
    }

    .article-title-v2-horizontal {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }

    .article-meta-v2-horizontal {
        font-size: 9px;
    }
}
