/* Hero Section dla Kryteria Jakosciowe */
.criteria-hero {
    background:
        linear-gradient(135deg, rgba(26, 35, 50, 0.88) 0%, rgba(44, 57, 71, 0.80) 50%, rgba(26, 35, 50, 0.88) 100%),
        url('../images/hero-kryteria-jakosciowe.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    border-bottom: 3px solid var(--navy-dark);
    position: relative;
}

.criteria-hero h1 {
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.criteria-hero p {
    font-size: 1.125rem;
    color: #f5f5f5;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .criteria-hero {
        padding: 2.7778rem 1.1111rem 2.2222rem;
    }

    .criteria-hero h1 {
        font-size: 1.6667rem;
    }

    .criteria-hero p {
        font-size: 1rem;
    }
}

/* Article Content */
.article-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.625rem 1.875rem 7.5rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #f5f5f5;
}

.article-content h2 {
    font-size: 1.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #1a2332;
    margin-top: 3.75rem;
    margin-bottom: 1.5625rem;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.375rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #1a2332;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.article-content p {
    font-size: 1.0625rem;
    color: #2c2c2c;
    line-height: 1.6;
    margin-bottom: 1.5625rem;
}

.article-content a {
    color: var(--navy-dark);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.article-content a:hover {
    color: var(--navy-hover);
    border-bottom-color: var(--navy-hover);
}

.article-content ul {
    list-style: none;
    padding-left: 0;
    margin: 25px 0;
}

.article-content li {
    font-size: 1.0625rem;
    color: #2c2c2c;
    line-height: 1.6;
    margin-bottom: 1.125rem;
    padding-left: 1.875rem;
    position: relative;
}

.article-content li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--navy-dark);
    margin-right: 0.625rem;
}

/* Points Table */
.points-table {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.points-row {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.points-row:last-child {
    border-bottom: none;
}

.points-row:hover {
    background-color: #f9f9f9;
}

.points-row.highlight {
    background-color: #fff9f0;
    border-left: 4px solid var(--navy-dark);
}

.points-amount {
    font-size: 1.375rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #1a2332;
    min-width: 10rem;
    flex-shrink: 0;
}

.points-condition {
    font-size: 1.0625rem;
    color: #2c2c2c;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .points-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }

    .points-amount {
        margin-bottom: 10px;
        font-size: 1.2rem;
    }

    .points-condition {
        font-size: 0.95rem;
    }
}

/* Info Box */
.info-box {
    background: #ffffff;
    border-left: 3px solid var(--navy-dark);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-box p {
    margin-bottom: 15px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Special Info Box */
.special-info-box {
    background: #fff9f0;
    border-left: 4px solid var(--navy-dark);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.15);
}

.special-info-box p {
    margin-bottom: 15px;
    color: #2c2c2c;
}

.special-info-box ul {
    margin-top: 15px;
    margin-bottom: 0;
}

.special-info-box li {
    margin-bottom: 12px;
}

.special-info-box li:last-child {
    margin-bottom: 0;
}

/* Warning Box */
.warning-box {
    background: #fff4e6;
    border-left: 4px solid #ff9800;
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.warning-box p {
    margin-bottom: 0;
    color: #2c2c2c;
}

/* Conclusion Box */
.conclusion-box {
    background: #ffffff;
    color: #1a2332;
    padding: 30px;
    margin: 40px 0;
    border-radius: 8px;
    border-left: 4px solid var(--navy-dark);
    box-shadow: 0 2px 12px rgba(212, 165, 116, 0.2);
}

.conclusion-box p {
    color: #1a2332;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Criteria List - Expandable */
.criteria-list {
    margin: 25px 0;
}

.criterion-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.criterion-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.criterion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background: #ffffff;
    transition: background-color 0.2s;
}

.criterion-header:hover {
    background: #f9f9f9;
}

.criterion-title {
    flex: 1;
    font-size: 1.0625rem;
    color: #1a2332;
    line-height: 1.5;
    padding-right: 15px;
}

.criterion-toggle {
    font-size: 1.5rem;
    color: var(--navy-dark);
    font-weight: 700;
    min-width: 30px;
    text-align: center;
    transition: transform 0.3s;
}

.criterion-header.active .criterion-toggle {
    transform: rotate(45deg);
}

.criterion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 25px;
    background: #fafafa;
}

.criterion-content.active {
    max-height: 3000px;
    padding: 20px 25px;
    transition: max-height 0.5s ease-in;
}

.criterion-content p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.criterion-content ul {
    margin: 15px 0;
    padding-left: 0;
}

.criterion-content li {
    font-size: 0.95rem;
    margin-bottom: 10px;
    padding-left: 1.875rem;
    position: relative;
}

.criterion-content li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--navy-dark);
    margin-right: 0.625rem;
}

/* Zagnieżdżone listy w kryteriach - usunięcie myślników i dodanie kropek */
.criterion-content li ul {
    margin-top: 10px;
    padding-left: 0;
    list-style-type: none;
}

.criterion-content li ul li {
    padding-left: 2.5rem;
}

.criterion-content li ul li::before {
    content: "•";
    left: 1rem;
    color: var(--navy-dark);
}

@media (max-width: 768px) {
    .criterion-header {
        padding: 15px 18px;
    }

    .criterion-title {
        font-size: 1rem;
    }

    .criterion-content.active {
        padding: 18px;
    }
}

/* Period Grid */
.period-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.period-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--navy-dark);
    text-align: center;
}

.period-duration {
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 15px;
}

.period-description {
    font-size: 1.0625rem;
    color: #2c2c2c;
    line-height: 1.6;
}

/* Article Footer */
.article-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--navy-dark);
    text-align: center;
}

.article-footer p {
    color: #5a5a5a;
    font-size: 1rem;
    margin-bottom: 25px;
}

.article-footer a {
    display: inline-block;
    color: var(--navy-dark);
    text-decoration: none;
    font-size: 1rem;
    padding: 0 20px;
    transition: color 0.2s;
}

.article-footer a:hover {
    color: var(--navy-hover);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .article-content {
        padding: 2.2222rem 1.1111rem 4.4444rem;
    }

    .article-content h2 {
        font-size: 1.5556rem;
        margin-top: 2.2222rem;
    }

    .article-content h3 {
        font-size: 1.2222rem;
    }

    .article-content p,
    .article-content li {
        font-size: 1rem;
    }

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

    .period-duration {
        font-size: 2rem;
    }

    .article-footer a {
        display: block;
        margin: 10px 0;
        padding: 10px 0;
    }
}
