  :root {
            --primary-color: #1a365d;
            --secondary-color: #2d3748;
            --accent-color: #1d9bf0;
            --gradient-primary: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
            --light-bg: #f8f9fa;
            --dark-text: #2d3748;
            --light-text: #718096;
            --border-color: #e2e8f0;
            --card-bg: #ffffff;
            --hover-bg: #f8f9fa;
        }

        body {
            font-family: 'Poppins', sans-serif;
            color: var(--dark-text);
            background-color: var(--light-bg);
            line-height: 1.6;
        }

        /* 🔹 Nagłówek */
        .navbar {
            background-color: #fff;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            padding: 12px 0;
            
        }
        .navbar-brand {
            font-weight: 700;
            font-size: 1.5rem;
            color: var(--primary-color);
        }
        .nav-link {
            font-weight: 500;  
            color: var(--primary-color) !important;
            transition: color 0.3s;
            margin: 0 8px;
            display: flex;
            align-items: center;
        }
        .nav-link i { margin-right: 5px; }
        .nav-link:hover, .nav-link.active { color: var(--accent-color); }

        /* 🔹 Główny układ */
        .main-container {
            display: flex;
            max-width: 1280px;
            margin: 0 auto;
            gap: 20px;
            padding: 20px;
        }
        .left-sidebar { width: 25%; }
        .main-content { width: 50%; }
        .right-sidebar {
            width: 25%;
            position: sticky;
            top: 80px;
            height: fit-content;
        }

        /* 🔹 Tworzenie wpisu */
        .create-post {
            background-color: var(--card-bg);
            border-radius: 16px;
            padding: 15px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        .post-form { display: flex; gap: 12px; }
        .post-input {
            flex: 1;
            border: none;
            resize: none;
            padding: 12px 0;
            background: transparent;
            font-family: 'Poppins', sans-serif;
        }
        .post-input:focus { outline: none; }
        .post-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid var(--border-color);
        }
        .action-icons { display: flex; gap: 15px; }
        .action-icons i {
            color: var(--accent-color);
            cursor: pointer;
            font-size: 1.2rem;
        }
        .post-button {
            background-color: var(--accent-color);
            color: white;
            border: none;
            border-radius: 20px;
            padding: 8px 16px;
            font-weight: 600;
            cursor: pointer;
        } 
       
        /* 🔹 Newsletter */
        .newsletter-card {
            background: var(--gradient-primary);
            color: white;
            border-radius: 16px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: var(--shadow-md);
        }
        
        .newsletter-title {
            font-weight: 600;
            font-size: 1.2rem;
            margin-bottom: 15px;
        }
        
        .newsletter-text {
            font-size: 0.9rem;
            margin-bottom: 20px;
            opacity: 0.9;
        }
        
        .newsletter-form {
            position: relative;
        }
        
        .newsletter-input {
            width: 100%;
            padding: 12px 20px;
            border-radius: 30px;
            border: none;
            font-size: 0.9rem;
        }
        
        .newsletter-button {
            position: absolute;
            right: 5px;
            top: 5px;
            bottom: 5px;
            border-radius: 30px;
            padding: 0 15px;
            background: var(--gradient-accent);
            color: white;
            border: none;
            font-weight: 500;
            transition: all 0.3s;
        }
        .country-stats {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid var(--border-color);
        }
        
        .country-stat {
            text-align: center;
        }
        
        .country-stat-number {
            font-weight: 700;
            color: var(--primary-color);
            font-size: 1.1rem;
        }
        
        .country-stat-label {
            font-size: 0.7rem;
            color: var(--light-text);
            text-transform: uppercase;
        }

        .newsletter-button:hover {
            background: linear-gradient(135deg, #0d8bdd 0%, #0c7ec7 100%);
        }   
        /* 🔹 Karty wpisów */
        
        .compact-post-card {
            background-color: var(--card-bg);
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 15px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            display: flex;
            gap: 15px;
            cursor: pointer;
        }
        
        .compact-post-card:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }
        
        .post-image-section {
            flex: 0 0 120px;
            display: flex;
            flex-direction: column;
        }
        
        .post-image-container {
            height: 100px;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 8px;
        }
        
        .post-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .compact-post-card:hover .post-image {
            transform: scale(1.05);
        }
        
        .country-info {
            display: flex;
            align-items: center;
            gap: 6px;
            justify-content: center;
            padding: 4px;
            background-color: var(--light-bg);
            border-radius: 6px;
            font-size: 0.8rem;
        }
        
        .country-flag {
            font-size: 16px;
        }
        
        .country-name {
            font-weight: 500;
            color: var(--dark-text);
            font-size: 0.75rem;
        }
        
        .post-content-container {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .post-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 8px;
            line-height: 1.3;
        }
        
        .post-header {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .post-avatar {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background-color: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 0.8rem;
            margin-right: 8px;
            flex-shrink: 0;
        }
        
        .post-user {
            font-weight: 600;
            font-size: 0.9rem;
            margin-right: 6px;
        }
        
        .post-handle {
            color: var(--light-text);
            font-size: 0.8rem;
        }
        
        .post-description {
            font-size: 0.9rem;
            color: var(--dark-text);
            margin-bottom: 10px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .post-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: auto;
        }
        
        .post-tag {
            background-color: var(--light-bg);
            color: var(--primary-color);
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 0.7rem;
            font-weight: 500;
        }
        
        /* Responsywność */
        @media (max-width: 576px) {
            .compact-post-card {
                flex-direction: column;
                gap: 12px;
            }
            
            .post-image-section {
                flex: 0 0 auto;
                width: 100%;
            }
            
            .post-image-container {
                height: 150px;
            }
            
            .country-info {
                justify-content: flex-start;
            }
        }
        /* 🔹 Trendy */
        .trending-card {
            background-color: var(--card-bg);
            border-radius: 16px;
            padding: 15px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        .trending-title {
            font-weight: 700;
            font-size: 1.2rem;
            margin-bottom: 15px;
            color: var(--dark-text);
        }
        .trending-item {
            padding: 10px 0;
            border-bottom: 1px solid var(--border-color);
            cursor: pointer;
        }
        .trending-item:last-child { border-bottom: none; }
        .trend-name { font-weight: 600; margin-bottom: 4px; }
        .trend-count { font-size: 0.8rem; color: var(--light-text); }

        /* 🔹 Sekcja krajów */
        .country-card {
            text-align: center;
            padding: 15px;
            border-radius: 12px;
            background-color: var(--card-bg);
            transition: all 0.3s;
            margin-bottom: 10px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        .country-card:hover { background-color: var(--hover-bg); }
        .country-flag { font-size: 2rem; margin-bottom: 10px; }
        .country-name { font-weight: 600; margin-bottom: 5px; }
        .country-articles { font-size: 0.8rem; color: var(--light-text); }

        /* 🔹 Stopka */
        footer {
            background-color: var(--secondary-color);
            color: white;
            padding: 40px 0 20px;
            margin-top: 40px;
        }
        .footer-title { font-weight: 600; margin-bottom: 15px; font-size: 1.1rem; }
        .footer-links { list-style: none; padding: 0; }
        .footer-links li { margin-bottom: 8px; }
        .footer-links a {
            color: #cbd5e0;
            text-decoration: none;
            transition: color 0.3s;
            font-size: 0.9rem;
        }
        .footer-links a:hover { color: white; }
        .social-icons a {
            display: inline-block;
            width: 36px;
            height: 36px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            text-align: center;
            line-height: 36px;
            color: white;
            margin-right: 8px;
            transition: background-color 0.3s;
        }
           .search-container {
            position: relative;
            margin-left: 15px;
        }
          
        /* 🔹 Informacje o wydawcy */
        .publisher-card {
            background-color: var(--card-bg);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            text-align: center;
        }
        
        .publisher-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background-color: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 1.8rem;
            margin: 0 auto 15px;
        }
        
        .publisher-name {
            font-weight: 700;
            font-size: 1.2rem;
            margin-bottom: 5px;
            color: var(--primary-color);
        }
        
        .publisher-handle {
            color: var(--light-text);
            margin-bottom: 15px;
        }
        
        .publisher-stats {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 15px 0;
        }
        
        .publisher-stat {
            text-align: center;
        }
        
        .publisher-stat-number {
            font-weight: 700;
            color: var(--primary-color);
            font-size: 1.1rem;
        }
        
        .publisher-stat-label {
            font-size: 0.7rem;
            color: var(--light-text);
            text-transform: uppercase;
        }
        
        .publisher-description {
            font-size: 0.9rem;
            color: var(--dark-text);
            margin-bottom: 15px;
            line-height: 1.5;
        }
        
        .follow-button {
            background-color: var(--accent-color);
            color: white;
            border: none;
            border-radius: 20px;
            padding: 8px 16px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            transition: background-color 0.3s;
        }
        
        .follow-button:hover {
            background-color: #0d8bdd;
        }
        
        .publisher-news-title {
            font-weight: 700;
            font-size: 1.1rem;
            margin: 20px 0 15px;
            color: var(--primary-color);
        }
 /* 🔹 Styl dla podglądu newsa */
        .news-article {
            background-color: var(--card-bg);
            border-radius: 16px;
            padding: 25px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        
        .article-header {
            margin-bottom: 20px;
        }
        
        .article-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 10px;
        }
        
        .article-meta {
            display: flex;
            align-items: center;
            color: var(--light-text);
            font-size: 0.9rem;
            margin-bottom: 15px;
        }
        
        .article-meta-item {
            display: flex;
            align-items: center;
            margin-right: 15px;
        }
        
        .article-meta-item i {
            margin-right: 5px;
        }
        
        .article-image {
            width: 100%;
            border-radius: 16px;
            margin-bottom: 20px;
            max-height: 400px;
            object-fit: cover;
        }
        
        .article-content {
            font-size: 1.05rem;
            line-height: 1.8;
        }
        
        .article-content p {
            margin-bottom: 20px;
        }
        
        .article-content h3 {
            font-size: 1.4rem;
            margin: 30px 0 15px;
            color: var(--primary-color);
        }
        
        .article-footer {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid var(--border-color);
        }
        
        .share-buttons {
            display: flex;
            gap: 10px;
        }
        
        .share-button {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px 15px;
            border-radius: 20px;
            background-color: var(--light-bg);
            color: var(--dark-text);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s;
        }
        
        .share-button:hover {
            background-color: var(--hover-bg);
        }
        
        .share-button i {
            margin-right: 5px;
        }
        
        .related-news {
            margin-top: 30px;
        }
        
        .related-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 15px;
            color: var(--primary-color);
        }
        
        .search-input {
            border-radius: 20px;
            padding: 8px 15px 8px 40px;
            border: 1px solid var(--border-color);
            font-size: 0.9rem;
            transition: all 0.3s;
            width: 220px;
        }
        
        .search-input:focus {
            width: 280px;
            box-shadow: 0 0 0 3px rgba(29, 155, 240, 0.2);
            border-color: var(--accent-color);
        }
        
        .search-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--light-text);
        }
        .social-icons a:hover { background-color: var(--accent-color); }
        .copyright {
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #cbd5e0;
            font-size: 0.8rem;
        }

        /* 🔹 Responsywność */
        @media (max-width: 1024px) {
            .left-sidebar { display: none; }
            .main-content { width: 70%;  padding: 5px !important; }
            .right-sidebar { display: none; }
        }
        @media (max-width: 768px) {
            .article-summary-box {
                border: 0px  !important;
            }
            .article-content {
                font-size: 0.9rem;
            }
            .news-article { 

                padding: 15px;
            }
            .main-container { flex-direction: column;   padding: 5px !important; }
            .left-sidebar, .main-content { width: 100%; }
            .navbar-nav {
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
            }
            .nav-item { margin-bottom: 5px; }
        }