/* Front Page specific styles for Luckylak theme */

/* Hero Banner Section */
.hero-banner {
    width: 100%;
    height: 500px;
    background: #D9D9D9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-banner video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-banner {
        height: 300px;
    }
}

/* Trust Section (via shortcode) */
.trust-section {
    background-color: var(--secondary-color);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Trust Items Container */
.trust-section .row,
.trust-section .trust-items-container {
    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
}

.trust-section .trust-item {
    text-align: center;
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
    flex: 0 0 calc(16.666% - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.trust-section .trust-item:hover {
    transform: translateY(-5px);
}

.trust-section .trust-item img {
    margin-bottom: 1rem;
    object-fit: contain;
}

.trust-section .trust-item p {
    font-size: 0.95rem;
    color: var(--primary-color) !important;
    font-weight: 500;
}

/* Medium Screens - 2 rows of 3 items */
@media (max-width: 992px) {
    .trust-section .trust-item {
        flex: 0 0 calc(33.333% - 20px);
    }
}

/* Mobile - Horizontal Scroll */
@media (max-width: 768px) {
    .trust-section .row,
    .trust-section .trust-items-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 0 15px;
        justify-content: flex-start;
    }

    .trust-section .trust-item {
        flex: 0 0 200px;
        scroll-snap-align: start;
        padding: 1.5rem 1rem;
    }

    .trust-section .trust-item img {
        width: 60px;
        height: 60px;
    }

    .trust-section .trust-item h3 {
        font-size: 1rem;
    }

    .trust-section .trust-item p {
        font-size: 0.85rem;
    }
}


/* Second Hero Section */
.second-hero-section {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .second-hero-section {
        height: 250px;
    }
}

/* About Us Section */
.about-us {
    width: 100%;
    padding: 4rem 0;
    background: transparent;
}

.about-us-inner {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 380px;
}

.about-us-picture {
    flex: 0 0 50%;
    min-height: 380px;
    background-color: var(--sixth-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-us-content {
    flex: 0 0 50%;
    padding: 6rem 7rem;
    background-color: var(--third-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.1rem;
}

.about-us-content .section-title {
    text-align: right;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.about-us-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    font-weight: 400;
    text-align: justify;
    color: var(--primary-color);
}

.about-us-content a {
    width: auto;
}

@media (max-width: 768px) {
    .about-us-inner {
        flex-direction: column;
    }

    .about-us-picture {
        flex: 0 0 auto;
        min-height: 260px;
    }

    .about-us-content {
        flex: 0 0 auto;
        padding: 1.8rem 1.5rem;
    }
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--secondary-color);
}

.testimonials-section .container-responsive {
    max-width: 1330px;
    margin: 0 auto;
}

.testimonial-carousel {
    margin-top: 3rem;
}

.testimonial-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.testimonial-bubble {
    position: relative;
    max-width: 80%;
    padding: 1.5rem 2rem;
    border-radius: 22px;
    background-color: var(--primary-color);
    color: #fff;
    text-align: right;
    line-height: 1.7;
}

.testimonial-bubble::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 40px;
    border-width: 10px 10px 0 10px;
    border-style: solid;
    border-color: var(--primary-color) transparent transparent transparent;
}

.testimonial-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
}

.testimonial-avatar {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    flex: 1 1 auto;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-color);
}

.testimonial-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .testimonial-bubble {
        padding: 1.2rem 1.4rem;
    }

    .testimonial-bubble::after {
        right: 28px;
    }

    .testimonials-section .container-responsive {
        max-width: 100%;
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .testimonial-bubble {
        max-width: 100%;
    }
}

/* Newsletter Section (homepage block) */
.newsletter-section {
    width: 100%;
    background-color: var(--primary-color);
    padding: 3rem 0;
}

.newsletter-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    justify-content: center;
}

.newsletter-inner p {
    color: #FFF;
}

.newsletter-title {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

.newsletter-form {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    max-width: 100%;
}

.newsletter-input {
    flex: 1 1 auto;
    border: none;
    padding: 0 1rem;
    height: 54px;
    border-radius: 0 27px 27px 0;
    font-size: 0.95rem;
    color: var(--primary-color) !important;
}

.newsletter-input:focus {
    outline: none;
}

.newsletter-separator {
    width: 2px;
    background-color: var(--primary-color);
}

.newsletter-button {
    flex: 0 0 auto;
    min-width: 130px;
    border: none;
    height: 54px;
    padding: 0 1.6rem;
    background-color: var(--site-notofication-color);
    color: var(--primary-color);
    font-weight: 700 !important;
    font-size: 0.95rem;
    border-radius: 27px 0 0 27px;
    cursor: pointer;
}

.newsletter-button:hover {
    background-color: #fff;
}

@media (max-width: 768px) {
    .newsletter-inner {
        padding: 0 1.5rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
    }

    .newsletter-input {
        border-radius: 27px;
        text-align: right;
    }

    .newsletter-separator {
        display: none;
    }

    .newsletter-button {
        border-radius: 27px;
        width: 100%;
    }
}

/* Order Tracking styles moved to assets/css/base/sections.css */

/* Articles Section */
.articles-section {
    background-color: var(--secondary-color);
}

.articles-section .container-responsive {
    max-width: 1330px;
    margin: 0 auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.article-card {
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-image-placeholder {
    background-color: #e3e3e3;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-content {
    background-color: #ffffff;
    padding: 1.6rem 1.7rem 1.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.83rem;
}

.article-category {
    background-color: var(--third-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
}

.article-date {
    color: var(--text-muted);
}

.article-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--title-color);
    margin: 0.6rem 0 0;
}

.article-excerpt {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

.article-read-more {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.article-read-more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    font-size: 0.75rem;
    transform: scaleX(-1);
}

.article-read-more:hover {
    color: var(--active-link);
}

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}
