* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'SoehneLeicht', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: #F8F9FA;
        }

        .media-section {
            padding: 80px 25px;
            background: #F8F9FA;
        }

        .media-container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .media-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 60px;
            gap: 60px;
        }

        .media-header-left {
            flex: 1;
        }

        .media-title {
            font-size: 48px;
            font-weight: 700;
            color: #1f264e;
            margin-bottom: 24px;
            line-height: 1.2;
        }

        .media-subscribe-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 14px 32px;
            background: #418ce2;
            color: white;
            font-size: 15px;
            font-weight: 600;
            border-radius: 50px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .media-subscribe-btn:hover {
            background: #365bbf;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(65, 105, 225, 0.3);
        }

        .media-description {
            flex: 1;
            font-size: 18px;
            line-height: 1.7;
            color: #555;
        }

        .news-grid-wrapper {
            overflow: hidden;
            position: relative;
        }

        .news-grid {
            display: flex;
            gap: 24px;
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            will-change: transform;
        }

        .news-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
            border: 1px solid rgba(0, 0, 0, 0.04);
           
             width: calc((100% - 72px) / 4); /* 72px = 3 gaps de 24px */
    min-width: 280px;
    flex-shrink: 0;
        }

 

        .news-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
        }

        .news-image {
            width: 100%;
            height: 280px;
            position: relative;
            overflow: hidden;
        }

        .news-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .news-card:hover .news-image img {
            transform: scale(1.05);
        }

        .news-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
            padding: 20px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            color: white;
        }

        .news-category {
            font-size: 13px;
            font-weight: 600;
            color: white;
            margin-bottom: 8px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .news-company {
            font-size: 15px;
            font-weight: 600;
            color: white;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
        }

        .carousel-controls {
            display: flex;
            justify-content: center;
            gap: 16px;
            margin-top: 20px;
        }

        .carousel-btn {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: white;
            border: 1px solid #e0e0e0;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 20px;
            color: #666;
        }

        .carousel-btn:hover {
            background: #418ce2;
            color: white;
            border-color: #4169E1;
            transform: scale(1.05);
        }

        .carousel-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .carousel-btn:disabled:hover {
            background: white;
            color: #666;
            border-color: #e0e0e0;
            transform: scale(1);
        }

        @media (max-width: 1200px) {
            .news-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 900px) {
            .media-header {
                flex-direction: column;
                gap: 30px;
            }

            .news-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }

            .news-image {
                height: 240px;
            }
        }

        @media (max-width: 600px) {
            .media-section {
                padding: 60px 20px;
            }

            .media-title {
                font-size: 36px;
            }

            .media-description {
                font-size: 16px;
            }

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

            .news-image {
                height: 260px;
            }

            .modal-content {
                padding: 40px 28px;
            }

            .modal-title {
                font-size: 24px;
            }

            .modal-description {
                font-size: 15px;
            }
        }