.slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 90%;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.slide-content p {
    font-size: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s;
    animation-fill-mode: both;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: #fff;
    padding: 1rem;
    cursor: pointer;
    z-index: 3;
    transition: background 0.3s ease;
    border-radius: 4px;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-btn svg {
    fill: currentColor;
    display: block;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dot.active {
    background: #fff;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about {
    padding: 5rem 0;
    background: #fff;
}

.about-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
}

.about-intro strong {
    color: #dc2626;
    font-weight: 700;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-card {
    background: #f8f9fa;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #dc2626;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.15);
}

.about-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-card-icon svg {
    fill: #fff;
}

.about-card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.about-card p {
    color: #6b7280;
    line-height: 1.7;
}

.about-features {
    max-width: 900px;
    margin: 0 auto;
}

.about-features h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: #1f2937;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #fef2f2;
    transform: translateX(5px);
}

.feature-item svg {
    fill: #dc2626;
    flex-shrink: 0;
}

.feature-item span {
    color: #4b5563;
    font-weight: 500;
    font-size: 0.9375rem;
}

.news {
    padding: 5rem 0;
    background: #fff;
}

.news-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 3rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    transition: transform 0.5s ease-in-out;
}

.news-grid.carousel-active {
    display: flex;
    gap: 2rem;
}

.news-grid.carousel-active .news-card {
    flex: 0 0 calc((100% - 4rem) / 3);
    max-width: calc((100% - 4rem) / 3);
}

.news-carousel-dots {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px 0;
}

.news-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.news-carousel-dot:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

.news-carousel-dot.active {
    background: #dc2626;
}

.news-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.15);
}

.news-date {
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.news-card p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-link {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #b91c1c;
}

.references {
    padding: 5rem 0;
    background: #f8f9fa;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.reference-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.reference-card:hover {
    transform: scale(1.05);
}

.reference-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.reference-card h4 {
    padding: 1.5rem;
    text-align: center;
    color: #1f2937;
}

.contact {
    padding: 5rem 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item svg {
    fill: #dc2626;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.contact-item p {
    color: #6b7280;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc2626;
}

.btn-submit {
    background: #dc2626;
    color: #fff;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #b91c1c;
}

@media (max-width: 768px) {
    .slider {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1.125rem;
    }

    .about-cards,
    .features-grid {
        grid-template-columns: 1fr;
    }

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

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

    .news-grid.carousel-active {
        display: grid;
        grid-template-columns: 1fr;
        transform: none !important;
    }

    .news-grid.carousel-active .news-card {
        min-width: 100%;
    }
}