:root {
    --primary-color: #0f1524;
    --secondary-color: #192333;
    --accent-color: #3b5e99;
    --text-color: #e6e6e6;
    --dark-bg: #0a0f1a;
    --card-bg: #141d2e;
    --border-color: #2a3144;
    --quote-bg: rgba(59, 94, 153, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 15, 26, 0.85); /* Ciemne, półprzezroczyste tło */
    z-index: -1;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #5a7dbf;
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.menu li {
    margin: 0 0.6rem;
}

.menu-divider {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.menu a {
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sekcja z cytatem */
.quote-section {
    margin-bottom: 3rem;
}

.quote-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.quote-card h2 {
    color: #fff;
    margin-bottom: 0.4rem;
    position: relative;
    display: inline-block;
}

.quote-card h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%); /* Wyśrodkowanie */
    width: 80px;
    height: 2px;
    background-color: var(--accent-color); /* To jest kolor niebieski */
}

.quote-content {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #fff;
}

.quote-author {
    text-align: right;
    font-weight: 600;
    color: var(--accent-color);
}

.quote-source {
    text-align: right;
    font-style: italic;
    color: #aaa;
    font-size: 0.9rem;
}

/* Sekcja newsletter */
.newsletter-section {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.newsletter-section h2 {
    margin-bottom: 1rem;
}

.newsletter-section p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background-color: #4a6eae;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* Sekcja o stoicyzmie */
.about-section {
    margin-bottom: 3rem;
}

.about-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.about-card h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.about-card h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%; /* Zmiana z left: 0 */
    transform: translateX(-50%); /* Dodajemy transform, by faktycznie wyśrodkować */
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1rem;
    color: #ddd;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
}

footer p {
    color: #aaa;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* Dokumentacja link - dodatkowy styl */
.menu li a[href="#"]:contains("Dokumentacja") {
    color: #ffcc00;
}

/* Responsywne style - podstawowe */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 1rem 0;
        border-top: 1px solid var(--border-color);
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu li {
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .menu-divider {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}
/* Dodaj te style na końcu istniejącego pliku CSS lub zastąp odpowiednie sekcje */

/* Poprawione style dla cytatu */
/* Poprawione style dla cytatu */
.quote-title {
    color: #fff;
    margin-bottom: 0.8rem; /* Zmniejszony odstęp */
    font-weight: 700;
    font-size: 1.8rem;
    text-align: center; /* Wyśrodkowanie */
    width: 100%; /* Pełna szerokość, by wyśrodkowanie działało */
}

.quote-date {
    text-align: center;
    color: var(--accent-color);
    font-size: 0.95rem;
    margin-bottom: 1.2rem; /* Zmniejszony odstęp */
    font-weight: 500;
}

.quote-content-wrapper {
    position: relative;
    padding: 0.5rem 0; /* Zmniejszony padding */
    margin-bottom: 0.8rem; /* Zmniejszony margines */
}

.quote-content-wrapper::before {
    content: "";
    font-family: Georgia, serif;
    font-size: 6rem;
    position: absolute;
    left: -1rem;
    top: -2rem;
    color: rgba(59, 94, 153, 0.1);
    line-height: 1;
}

.quote-content {
    font-style: italic;
    color: #adb5bd;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0.8rem; /* Zmniejszony margines */
}

.quote-reflection {
    margin-top: 1rem; /* Zmniejszony odstęp */
    padding-top: 1rem; /* Zmniejszony padding */
    border-top: 1px solid var(--border-color);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Dodajmy też tekstowe wyśrodkowanie tytułu w html - pomocnicza klasa */
.text-center {
    text-align: center !important;
}

.quote-card, .about-card {
    background-color: rgba(20, 29, 46, 0.85); /* Lekko przezroczyste tło karty */
    backdrop-filter: blur(5px); /* Efekt rozmycia */
}

/* Style dla strony newslettera */
.newsletter-page-section {
    margin-bottom: 3rem;
}

.newsletter-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}

.newsletter-card h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.newsletter-card h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.newsletter-form {
    margin: 2rem 0;
}

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

.newsletter-input {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(59, 94, 153, 0.3);
}

.form-error {
    color: #ff5757;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.message-container {
    margin: 1rem 0;
}

.message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.message.success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #75b798;
}

.message.error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #ea868f;
}

.newsletter-info {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.newsletter-info h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.newsletter-info ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.newsletter-info ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ddd;
}

.newsletter-info ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.newsletter-note {
    font-size: 0.9rem;
    color: #aaa;
    font-style: italic;
}

/* Style dla strony anulowania subskrypcji */
.unsubscribe-section {
    margin-bottom: 3rem;
}

.unsubscribe-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    text-align: center;
    backdrop-filter: blur(5px);
}

.unsubscribe-card h2 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.unsubscribe-card p {
    margin-bottom: 1.5rem;
    color: #ddd;
}

.unsubscribe-card .newsletter-btn {
    display: inline-block;
    margin-top: 1rem;
}

/* Style dla strony testowej */
.test-section {
    margin-bottom: 3rem;
}

.test-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}

.test-card h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.test-card h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.test-form {
    margin: 2rem 0;
}

.test-note {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #aaa;
    font-style: italic;
}

/* Uzupełnij istniejące style o etykiety dla pól */
label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ddd;
    font-weight: 500;
}

/* Style dla sekcji z koncepcjami stoicyzmu */
.concepts-section {
    margin-bottom: 4rem;
}

.section-title {
    color: #fff;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    font-size: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: var(--accent-color);
}

.concept-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.concept-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.concept-text {
    padding: 2.5rem;
}

.concept-text h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.concept-text h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.concept-text p {
    color: #ddd;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.concept-text blockquote {
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #adb5bd;
}

.concept-image {
    height: 100%;
    overflow: hidden;
}

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

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

/* Alternacja dla kart koncepcji - obrazki na przemian */
.concept-card:nth-child(odd) .concept-content {
    grid-template-areas: "text image";
}

.concept-card:nth-child(even) .concept-content {
    grid-template-areas: "image text";
}

.concept-card .concept-text {
    grid-area: text;
}

.concept-card .concept-image {
    grid-area: image;
}

/* Responsywność dla sekcji koncepcji */
@media (max-width: 768px) {
    .concept-content {
        grid-template-columns: 1fr;
    }
    
    .concept-card:nth-child(odd) .concept-content,
    .concept-card:nth-child(even) .concept-content {
        grid-template-areas: 
            "image" 
            "text";
    }
    
    .concept-image {
        height: 300px;
    }
}

.section-title.text-center {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

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

.logo-icon {
    height: 28px;
    width: 28px;
    margin-right: 8px;
}