/**
 * Page Builder Styles
 * 
 * @package Understrap
 */

/* ========== Hero Section ========== */
.hero-section {
    position: relative;
    min-height: 500px;
    width: 100vw;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    width: 100%;
    padding: 100px 15px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #2d2d2d;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 16px;
    line-height: 1.6;
    color: #2d2d2d;
    margin-bottom: 30px;
}

.hero-description p {
    margin-bottom: 15px;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
}

.btn-hero.btn-primary {
    background-color: #4caf50;
    color: #ffffff;
}

.btn-hero.btn-primary:hover {
    background-color: #45a049;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-hero.btn-secondary {
    background-color: #2d2d2d;
    color: #ffffff;
}

.btn-hero.btn-secondary:hover {
    background-color: #1a1a1a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 45, 45, 0.3);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        min-height: 400px;
        padding: 80px 0;
    }

    .hero-title {
        font-size: 38px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 350px;
        padding: 60px 0;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-hero {
        width: 100%;
        text-align: center;
    }
}

/* ========== Two Columns Section ========== */
.two-columns-section {
    padding: 80px 0;
}

.two-columns-col {
    margin-bottom: 30px;
}

.column-content {
    height: 100%;
}

.column-content h1,
.column-content h2,
.column-content h3,
.column-content h4,
.column-content h5,
.column-content h6 {
    margin-bottom: 20px;
}

.column-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.column-content ul,
.column-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.column-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 991px) {
    .two-columns-section {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .two-columns-section {
        padding: 40px 0;
    }
    
    .two-columns-col {
        margin-bottom: 20px;
    }
}

/* ========== Wide Section ========== */
.wide-section {
    padding: 80px 0;
}

.wide-content {
    max-width: 100%;
}

.wide-content h1,
.wide-content h2,
.wide-content h3,
.wide-content h4,
.wide-content h5,
.wide-content h6 {
    margin-bottom: 20px;
}

.wide-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.wide-content ul,
.wide-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.wide-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 991px) {
    .wide-section {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .wide-section {
        padding: 40px 0;
    }
}

/* ========== Sponsors Section ========== */
.sponsors-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.sponsors-title {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 50px;
    line-height: 1.4;
}

.sponsors-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px 60px;
    align-items: center;
    justify-items: center;
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80px;
}

.sponsor-logo {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sponsor-logo:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1199px) {
    .sponsors-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 35px 50px;
    }
}

@media (max-width: 991px) {
    .sponsors-section {
        padding: 60px 0;
    }
    
    .sponsors-title {
        font-size: 30px;
        margin-bottom: 40px;
    }
    
    .sponsors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 40px;
    }
    
    .sponsor-item {
        height: 70px;
    }
    
    .sponsor-logo {
        max-height: 70px;
    }
}

@media (max-width: 767px) {
    .sponsors-section {
        padding: 40px 0;
    }
    
    .sponsors-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .sponsors-description {
        margin-bottom: 30px;
        font-size: 15px;
    }
    
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 30px;
    }
    
    .sponsor-item {
        height: 60px;
    }
    
    .sponsor-logo {
        max-height: 60px;
    }
}

/* ========== Two Columns Thirds Section (1/3 - 2/3) ========== */
.two-columns-thirds-section {
    position: relative;
    width: 100vw;
    margin: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.two-columns-thirds-wrapper {
    padding: 80px 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.two-columns-thirds-col {
    margin-bottom: 30px;
}

.two-columns-thirds-section .column-content {
    height: 100%;
}

.two-columns-thirds-section .column-content h1,
.two-columns-thirds-section .column-content h2,
.two-columns-thirds-section .column-content h3,
.two-columns-thirds-section .column-content h4,
.two-columns-thirds-section .column-content h5,
.two-columns-thirds-section .column-content h6 {
    margin-bottom: 20px;
}

.two-columns-thirds-section .column-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.two-columns-thirds-section .column-content ul,
.two-columns-thirds-section .column-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.two-columns-thirds-section .column-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 991px) {
    .two-columns-thirds-wrapper {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .two-columns-thirds-wrapper {
        padding: 40px 0;
    }
    
    .two-columns-thirds-col {
        margin-bottom: 20px;
    }
}

/* ========== Banner CTA Section ========== */
.banner-cta-section {
    position: relative;
    min-height: 500px;
    width: 100vw;
    margin: 0;
    padding: 100px 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.banner-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.cta-badge {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.cta-badge-image {
    max-width: 280px;
    height: auto;
    display: block;
}

.banner-cta-section .container {
    position: relative;
    z-index: 2;
}

.banner-cta-content {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 991px) {
    .banner-cta-section {
        min-height: 400px;
        padding: 80px 0;
    }
    
    .cta-badge-image {
        max-width: 240px;
    }
}

@media (max-width: 767px) {
    .banner-cta-section {
        min-height: 350px;
        padding: 60px 0;
    }
    
    .cta-badge-image {
        max-width: 200px;
    }
}

/* ========== FAQ Section ========== */
.faq-section {
    position: relative;
    width: 100vw;
    margin: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.faq-wrapper {
    padding: 80px 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.faq-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 20px;
    line-height: 1.3;
}

.faq-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: none;
    margin-bottom: 15px;
    background: transparent;
}

.faq-item .card-header {
    background: transparent;
    border: none;
    padding: 0;
}

.faq-item .accordion-button {
    background-color: rgba(255, 255, 255, 0.9);
    color: #2d2d2d;
    font-size: 18px;
    font-weight: 600;
    padding: 20px 60px 20px 25px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.faq-item .accordion-button:not(.collapsed) {
    background-color: #d4f4dd;
    color: #2d2d2d;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.faq-item .accordion-button:hover {
    background-color: #e8f5e9;
}

.faq-item .accordion-button:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}

.faq-item .accordion-button::after {
    content: '+';
    font-size: 28px;
    font-weight: 400;
    color: #4caf50;
    position: absolute;
    right: 25px;
    line-height: 1;
}

.faq-item .accordion-button:not(.collapsed)::after {
    content: '−';
}

.faq-item .collapse {
    border: none;
}

.faq-answer {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 0 0 8px 8px;
    margin-top: 8px;
    color: #2d2d2d;
    font-size: 15px;
    line-height: 1.8;
}

.faq-answer p {
    margin-bottom: 10px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

/* Responsive */
@media (max-width: 991px) {
    .faq-wrapper {
        padding: 60px 0;
    }
    
    .faq-title {
        font-size: 30px;
        margin-bottom: 15px;
    }
    
    .faq-description {
        margin-bottom: 40px;
        font-size: 15px;
    }
    
    .faq-item .accordion-button {
        font-size: 16px;
        padding: 18px 50px 18px 20px;
    }
}

@media (max-width: 767px) {
    .faq-wrapper {
        padding: 40px 0;
    }
    
    .faq-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .faq-description {
        margin-bottom: 30px;
        font-size: 14px;
    }
    
    .faq-item {
        margin-bottom: 12px;
    }
    
    .faq-item .accordion-button {
        font-size: 15px;
        padding: 15px 45px 15px 18px;
    }
    
    .faq-item .accordion-button::after {
        font-size: 24px;
    }
    
    .faq-answer {
        padding: 20px;
        font-size: 14px;
    }
}

/* ========== Products Grid Section ========== */
.products-grid-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background-color: #f5f5f5;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-image-link {
    display: block;
    text-decoration: none;
}

.product-image {
    width: 100%;
    max-width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.product-image::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background-color: #c8e6c9;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.5;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.product-content {
    width: 100%;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.product-title a {
    color: #2d2d2d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #4caf50;
}

.product-material {
    font-size: 14px;
    color: #666666;
    margin-bottom: 20px;
    font-weight: 400;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.product-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: #ffffff;
    border: 1px solid #2d2d2d;
    border-radius: 20px;
    font-size: 12px;
    color: #2d2d2d;
    font-weight: 500;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 991px) {
    .products-grid-section {
        padding: 60px 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-card {
        padding: 25px 15px;
    }
    
    .product-image {
        max-width: 180px;
        height: 180px;
        margin-bottom: 20px;
    }
    
    .product-image::before {
        width: 120px;
        height: 120px;
    }
    
    .product-title {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .products-grid-section {
        padding: 40px 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card {
        padding: 30px 20px;
    }
    
    .product-image {
        max-width: 200px;
        height: 200px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .product-material {
        font-size: 13px;
    }
    
    .product-badge {
        font-size: 11px;
        padding: 5px 14px;
    }
}

/* ========== Four Columns Section ========== */
.four-columns-section {
    padding: 80px 0;
}

.four-columns-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-column {
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-column:hover {
    transform: translateY(-3px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 12px;
    line-height: 1.3;
}

.feature-text {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 1199px) {
    .four-columns-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .four-columns-section {
        padding: 60px 0;
    }
    
    .feature-column {
        padding: 25px 15px;
    }
    
    .feature-title {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .four-columns-section {
        padding: 40px 0;
    }
    
    .four-columns-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-column {
        padding: 25px 20px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .feature-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .feature-text {
        font-size: 13px;
    }
}

/* ========== Text + Slider Section ========== */
.text-slider-section {
    position: relative;
    width: 100vw;
    margin: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.text-slider-wrapper {
    padding: 80px 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.text-slider-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.text-slider-content h1,
.text-slider-content h2,
.text-slider-content h3,
.text-slider-content h4 {
    margin-bottom: 20px;
    color: #2d2d2d;
    font-weight: 700;
}

.text-slider-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #2d2d2d;
}

.text-slider-content ul,
.text-slider-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.text-slider-content ul li,
.text-slider-content ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Slider Styles */
.text-slider-images {
    position: relative;
}

.image-slider {
    position: relative;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.slider-container {
    position: relative;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slider-slide {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    flex-shrink: 0;
    flex-grow: 0;
}

.slider-slide img {
    width: 100%;
    height: 400px;
    display: block;
    object-fit: cover;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-arrow:hover {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-arrow svg {
    color: #2d2d2d;
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}

/* Responsive */
@media (max-width: 991px) {
    .text-slider-wrapper {
        padding: 60px 0;
    }
    
    .text-slider-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 767px) {
    .text-slider-wrapper {
        padding: 40px 0;
    }
    
    .text-slider-grid {
        gap: 30px;
    }
    
    .slider-arrow {
        width: 35px;
        height: 35px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
}
