/* Home Page Styles */
.page.mainpage {
    padding: 0;
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    background-image: url("../images/main-hero-light.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

[data-theme="dark"] .hero-section {
    background-image: url("../images/main-hero-dark.png");
}

.hero-section,
.hero-section .title,
.hero-section .subtitle {
    color: var(--atlas-text-contrast);
}

.hero-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.hero-section .hero-title {
    line-height: 1.2;
}

.hero-section .hero-subtitle {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

.hero-section .btn-hero {
    display: inline-block;
    padding: 16px 40px;
    font-size: 16px;
}

/* Products Section */
.products-section {
    padding: 60px 0;
    background-color: var(--atlas-bg-card);
}

.products-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.product-card {
    background-color: var(--atlas-bg-main);
    border: 1px solid var(--atlas-border-color);
    border-radius: 8px;
    padding: 40px;
    transition: all 0.2s;
}

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

.product-card .product-main {
    display: flex;
    gap: 30px;
}

.product-card .product-picture {
    flex: 1 0 150px;
    font-size: 0;
}

.product-card .product-picture .product-picture-img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
}

.product-card .product-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .product-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1; /* to be in row with picture */
    color: var(--atlas-text-primary);
    margin-bottom: 16px;
}

.product-card .product-description {
    font-size: 16px;
    color: var(--atlas-text-secondary);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 0;
}

.product-card .product-bottom {
    margin-top: 32px;
}

.product-card .btn-product {
    display: block;
    padding: 12px 32px;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background-color: var(--atlas-bg-main);
}

.news-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

h2.section-heading {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: left;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card {
    background-color: var(--atlas-bg-card);
    border: 1px solid var(--atlas-border-color);
    border-radius: 8px;
    padding: 32px;
    transition: all 0.2s;
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--atlas-text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.news-text {
    font-size: 15px;
    color: var(--atlas-text-secondary);
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--atlas-bg-card);
    margin-bottom: -40px;
}

.about-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.about-content {
    max-width: 900px;
    /*margin: 0 auto;*/
}

.about-text {
    font-size: 16px;
    color: var(--atlas-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.about-partner {
    font-size: 16px;
    color: var(--atlas-accent-color);
    font-weight: 500;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--atlas-border-color);
}

/* Responsive Styles for Home Page */
@media (max-width: 1024px) {
    .products-container {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .hero-container {
        padding: 0 20px;
    }

    .hero-section .hero-title {
        font-size: 32px;
    }

    .hero-section .hero-subtitle {
        font-size: 16px;
    }

    .products-container {
        padding: 0 20px;
    }

    .product-card {
        padding: 32px 24px;
        text-align: center;
    }

    .product-card .product-main {
        flex-direction: column;
    }

    .news-container,
    .about-container {
        padding: 0 20px;
    }

    .section-heading {
        font-size: 28px;
    }

    .products-section,
    .news-section,
    .about-section {
        padding: 60px 0;
    }
}