/* Reset podstawowych styli */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 400px;
}



body {
    background-color: #ffffff;
    color: #333333;
    line-height: 1.3;
    font-family: Roboto, sans-serif;
}

.navbar {
    background-color: #15357b;
    color: #ffffff;
    padding: 12px 24px;
    width: 100%;
}


.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between; 
}


.nav-left {
    display: flex;
    align-items: center;
    gap: 35px;
}

/* LOGO */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.back-arrow {
    width: 32px;
    height: 32px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.logo-text {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-text .dot {
    color: #e30613;
    font-size: 33px;
}

/* MENU */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
    
}





.nav-item {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-item:hover {
text-decoration: underline;

}

.arrow-down {
    font-size: 17px;
}



.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Ikona wiadomości */
.mail-icon {
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    
}

/* Przełącznik (Dark Mode Toggle) */
.theme-toggle {
    width: 50px;
    height: 26px;
    border: 2px solid #ffffff;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 5px;
}

.sun-icon {
    font-size: 12px;
}

.toggle-dot {
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    right: 4px; 
}

/* Przycisk Zaloguj */
.btn-login {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hamburger Menu (3 paski) */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 4px;
}

.hamburger-menu .bar {
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
}


/* --- GŁÓWNA SEKCJA (GRID) --- */
.main-container {
    max-width: 1200px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: 2.2fr 1fr; 
    gap: 30px;
    padding: 0 20px;
}



.main-article {
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.article-img {
    width: 100%;
    height: auto;
    display: block;
}

.article-img :hover{
text-decoration: underline;
}


.image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    z-index: 2; 
    color: #ffffff;
}

.author {
    font-size: 12px;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.9);
    color: #0e0c18;
    width: 20%;
    align-items: center;
    padding: 1px 4px 1px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.author-icon {
    margin-right: 5px;
    font-size: 10px;
}


.author2 {
    font-size: 12px;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.9);
    color: #0e0c18;
    align-items: center;
    padding: 1px 4px 1px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.author-icon2 {
    margin-right: 5px;
    font-size: 10px;
}

.article-title {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.3;
    cursor: pointer;
}

.article-title:hover {
text-decoration: underline;

}


/* --- PRAWA KOLUMNA: LISTA NAJNOWSZE --- */
.sidebar {
    border-left: 1px solid #e0e0e0;
    padding-left: 20px;
}

.sidebar-title {
    display: flex;
  align-items: center; 
  font-family: Roboto, sans-serif;
  font-weight: bold;
  font-size: 24px;
  color: #0e0c18;
}

/* Niebieska linia pod tytułem sekcji "Najnowsze" */
.sidebar-title::after {

    
    background-color: #005ec7;
    content: "";
    flex: 1; 
    height: 2px; 
    margin-left: 15px;
}

.news-list {
    list-style: none;
    margin-top: 20px;
}

.news-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    
}



.news-item:last-child {
    border-bottom: none;
}

.news-time {
    font-size: 14px;
    font-weight: bold;
    color: #22242D;
    margin-right: 15px;
    min-width: 35px;
    padding-top: 2px;
}

.news-text {
    font-size: 16px;
    line-height: 1.4;
    color: #22242D;
    cursor: pointer;
}

.news-text:hover {
    color: #0b2f61;
}

.highlight {
    font-weight: bold;
    color: #22242D;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25rem;
}

.highlight:hover {
text-decoration: underline;

}


/* RESPONSYWNOŚĆ DLA TELEFONÓW */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    .menu {
        display: none; 
    }
    .sidebar {
        border-left: none;
        padding-left: 0;
    }
    .article-title {
        font-size: 20px;
    }
}


.grid-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

.card-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.card-img-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    
    
    
}


.card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Autorzy i znaczniki (kropki) */
.author {
    font-size: 12px;
    font-weight: bold;
    color: #22242D;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.author-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}



.card-title {
    font-size: 18px;
    margin: 0;
    font-weight: bold;
    line-height: 1.4;
    color: #0e0c18;
    cursor: pointer;
}

.card-title:hover {
    text-decoration: underline;
}

/* Tag artykułu sponsorowanego */
.badge-sponsored {
    background-color: #0e0c18;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 6px;
    display: inline-block;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}


/* --- SEKCJA MONEY MAGAZYN --- */
.magazine-section {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 24px;
  border-radius: 8px;
}

.magazine-heading {
    font-size: 24px;
    font-weight: bold;
    color: #0e0c18;
    margin-bottom: 20px;
    margin: auto;
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.magazine-card {
    display: flex;
    flex-direction: column;
}

.magazine-card .card-title {
    font-size: 18px;
}

/* --- SEKCJA REKLAMA  --- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.top-promo {
  margin-bottom: 30px;
}

.promo-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 5px;
}

.tab {
  background: none;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  color: #0056b3;
  cursor: pointer;
}

.tab.active {
  border-color: #0056b3;
}

.promo-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.bank-card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.bank-logo {
  font-weight: bold;
  font-size: 18px;
  padding: 5px 10px;
  color: white;
  border-radius: 4px;
}

.bank-logo.erste { background-color: #1a56db; }
.bank-logo.pekao { background-color: white; color: #b30000; border: 1px solid #b30000; font-size: 12px;}

.bank-info {
  font-size: 11px;
  color: #777;
}

.bank-card h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: #111;
}

.bank-card p {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 15px;
}

.bank-btn {
  align-self: flex-start;
  background-color: #104c97;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  font-size: 12px;
}

/* --- SEKCJA GOSPODARKI  --- */


.economy-card {
display: flex;
flex-direction: column;

}

.economy-card .card-title {
    font-size: 15px;
}


.sidebar-economy {
    display: flex;
  align-items: center; 
  font-family: Roboto, sans-serif;
  font-weight: bold;
  font-size: 24px;
  color: #0e0c18;
  cursor: pointer;
}


.sidebar-economy::after {

    
    background-color: #005ec7;
    content: "";
    flex: 1; 
    height: 2px; 
    margin-left: 15px;
}

.sidebar-economy:hover {
text-decoration: underline;
}



/* --- SEKCJA ENERGETYKI  --- */

.energy-section {
max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

.sidebar-energy {
    display: flex;
  align-items: center; 
  font-family: Roboto, sans-serif;
  font-weight: bold;
  font-size: 24px;
  color: #0e0c18;
  cursor: pointer;
}

.sidebar-energy::after {

    
    background-color: #265ec4;
    content: "";
    flex: 1; 
    height: 2px; 
    margin-left: 15px;
}

.sidebar-energy:hover {
text-decoration: underline;
}

.energy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.enrgy-card {
display: flex;
flex-direction: column;    
}



/* --- SEKCJA PRACY I KARIERY  --- */

.work-section {
max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

.work-grid {
display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 10px;
}

.work-card {
display: flex;
flex-direction: column;
}

/* --- SEKCJA STOPKI --- */

.footer {
  border-top: 3px solid #cfd6e0;
  background: #fff;
  padding: 10px;
}

.footer-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 20px 35px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 90px;
}

.footer-col h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.1;
  color: #0e0c18;
  text-decoration: none;
  cursor: pointer;
}



.footer-col a:hover {
  text-decoration: underline;
}

.more {
  border-top: 1px solid #e5e9ef;
  border-bottom: 1px solid #e5e9ef;
  text-align: center;
  padding: 18px 0;
  font-size: 12px;
  color: #41455a;
  cursor: pointer;
}

.more:hover {
text-decoration: underline;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 45px 20px 25px;
}

.links {
  text-align: center;
  font-size: 16px;
  margin-bottom: 25px;
  cursor: pointer;
}



.footer-bottom p {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 12px;
  border-top: 1px solid #cfd6e0;
  font-size: 12px;
  line-height: 1.25;
}

.footer-bottom a {
font-size: 16px;
line-height: 1.25;
cursor: auto;
}

.footer-bottom u {
font-size: 12px;
text-decoration: underline;
font-weight: bold;
cursor: pointer;
}

.footer-bottom u:hover {
text-decoration: underline;
}

