/* CSS Design System for gov.pl Replication */
:root {
    --primary-blue: #004b87;
    --hover-blue: #003163;
    --hero-start: #013b6e;
    --hero-end: #0067b1;
    --national-red: #cb1b1e;
    --text-dark: #1d1d1b;
    --bg-grey: #f1f1f1;
    --white: #ffffff;
    --max-width: 1200px;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sidebar Removed for Homepage Replica */
.sidebar {
    display: none;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-item.active {
    background-color: var(--primary-blue);
}

.nav-item.active a {
    color: var(--white);
}

.nav-item a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 12px 25px;
    display: flex;
    align-items: center;
    font-size: 15px;
    transition: background 0.3s;
}

.nav-item:not(.active) a:hover {
    background-color: #e5e5e5;
}

.nav-item i {
    width: 24px;
    margin-right: 12px;
    font-size: 18px;
    color: var(--primary-blue);
}

.nav-item.active i {
    color: var(--white);
}

.separator {
    height: 1px;
    background-color: #ccc;
    margin: 15px 25px;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    overflow-x: hidden;
}

/* Header Styling */
.header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: var(--primary-blue);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .logo-text {
    color: var(--white);
    font-size: 24px;
}

.header .mobile-menu-btn {
    color: var(--white);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 45px;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-blue);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.mobywatel-btn {
    background-color: var(--white);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.mobywatel-btn:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.eu-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 600;
}

.eu-logo img {
    height: 24px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%);
    color: var(--white);
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('hero-pattern.svg'); /* Decorative pattern if possible */
    opacity: 0.1;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
}

.search-bar {
    display: flex;
    max-width: 600px;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
}

.search-bar input {
    flex-grow: 1;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    outline: none;
}

.search-btn {
    background-color: var(--national-red);
    color: var(--white);
    border: none;
    width: 60px;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s;
}

.search-btn:hover {
    background-color: #b01531;
}

/* Feature Card */
.feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-dots {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 8px;
    height: 8px;
    border: 1px solid var(--white);
    border-radius: 50%;
}

.dot.active {
    background-color: var(--white);
}

/* Main Content Tiles */
.services {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 40px;
}

.tab {
    padding: 15px 30px;
    background: none;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    color: #666;
    position: relative;
}

.tab.active {
    color: var(--primary-blue);
    background-color: var(--white);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
}

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.tile {
    background-color: var(--white);
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.tile i {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.tile h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-blue);
    text-decoration: underline;
}

.tile p {
    font-size: 14px;
    color: #666;
}

/* Responsive Mobile Styles */
@media (max-width: 1024px) {
    .sidebar {
        display: none; /* In real app, we use a class to show/hide */
    }

    .sidebar.mobile-active {
        display: block;
        position: fixed;
        left: 0;
        top: 70px;
        bottom: 0;
        width: 100%;
        background-color: var(--white);
    }

    .header {
        padding: 0 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo-text {
        font-size: 22px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .search-bar {
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-feature {
        display: none;
    }
}

.view-all-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.view-all-btn {
    padding: 15px 40px;
    background-color: var(--white);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

.view-all-btn:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* News Section */
.news {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 10px;
}

.section-header h2 {
    font-size: 28px;
    color: var(--primary-blue);
}

.more-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

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

.news-item {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-img-placeholder {
    height: 180px;
    background-color: #ddd;
    background-image: linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee), 
                      linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee);
    background-size: 20px 20px;
}

.news-content {
    padding: 20px;
}

.news-tag {
    display: inline-block;
    background-color: #e8f0fe;
    color: var(--primary-blue);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 12px;
    color: #999;
    font-weight: 600;
}

/* Footer Styling */
.footer {
    background-color: var(--bg-grey);
    border-top: 1px solid #ddd;
    padding-top: 60px;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
}

.footer-column a:hover {
    text-decoration: underline;
    color: var(--primary-blue);
}

.footer-bottom {
    background-color: #e5e5e5;
    padding: 20px 0;
}

.footer-bottom .max-width-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Redefine footer bottom for better alignment */
.footer-bottom {
    display: flex;
    justify-content: center;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    justify-content: space-between;
}

.footer-logo {
    height: 40px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: var(--primary-blue);
    font-size: 20px;
    transition: transform 0.2s;
}

.footer-socials a:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}
