/* SIDOZ - Główne style CSS */

/* ==================== RESET ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==================== ZMIENNE ==================== */
:root {
    --primary-color: #00b8a9;
    --primary-dark: #009688;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --text-muted: #666;
    --border-color: #ddd;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --white: #fff;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --radius: 4px;
}

/* ==================== TYPOGRAPHY ==================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ==================== LAYOUT ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 30px 0;
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 30px 0;
}

@media (max-width: 768px) {
    .page-grid, .home-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== HEADER ==================== */
.header {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    color: var(--white);
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.logo-tagline {
    font-size: 0.75rem;
    opacity: 0.8;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    color: var(--white);
    font-weight: 500;
}

.main-nav a:hover {
    text-decoration: underline;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* ==================== HEADER SEARCH ==================== */
.header-search {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-input {
    padding: 8px 12px;
    border: none;
    border-radius: var(--radius);
    width: 200px;
    font-size: 0.9rem;
}

.search-input:focus {
    outline: 2px solid var(--white);
}

.search-select {
    padding: 8px 10px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-search {
    padding: 8px 16px;
    background: var(--primary-dark);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-search:hover {
    background: #007a6c;
}

@media (max-width: 1024px) {
    .header-search {
        order: 10;
        width: 100%;
        margin-top: 10px;
    }

    .search-input {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .header-search {
        flex-wrap: wrap;
    }

    .search-input {
        width: 100%;
    }

    .search-select,
    .btn-search {
        flex: 1;
    }
}

/* ==================== BREADCRUMBS ==================== */
.breadcrumbs {
    background: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs ol {
    display: flex;
    list-style: none;
    gap: 10px;
    font-size: 0.875rem;
}

.breadcrumbs li::after {
    content: '»';
    margin-left: 10px;
    color: var(--text-muted);
}

.breadcrumbs li:last-child::after {
    display: none;
}

.breadcrumbs .active {
    color: var(--text-muted);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
}

.btn-text {
    background: transparent;
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.has-error .form-control {
    border-color: var(--danger-color);
}

.error-text {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* ==================== CARDS ==================== */
.widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.widget h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.cta-widget {
    background: var(--primary-color);
    color: var(--white);
}

.cta-widget h3 {
    border-bottom-color: rgba(255,255,255,0.3);
}

.cta-widget p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.cta-widget .btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.cta-widget .btn-primary:hover {
    background: var(--secondary-color);
}

/* ==================== LISTS ==================== */
.latest-list {
    list-style: none;
}

.latest-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.latest-list li:last-child {
    border-bottom: none;
}

.latest-list a {
    display: block;
}

.latest-list strong {
    display: block;
    color: var(--text-color);
}

.latest-list span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==================== SPECIALIZATIONS ==================== */
.specializations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.specialization-item {
    display: inline-block;
    padding: 8px 15px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.specialization-item:hover {
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

.spec-count {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.specialization-item:hover .spec-count {
    color: rgba(255,255,255,0.8);
}

.specializations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.spec-card {
    display: block;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.spec-card:hover {
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

.spec-card .spec-name {
    display: block;
    font-weight: 500;
}

.spec-card .spec-count {
    font-size: 0.875rem;
}

/* ==================== DOCTORS LIST ==================== */
.doctors-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.doctor-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.doctor-card h3 {
    margin-bottom: 5px;
}

.doctor-card .clinic-name {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.doctor-card .location {
    margin-top: 5px;
}

.doctor-card .phone {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ==================== FILTERS ==================== */
.filters {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.filter-tag {
    padding: 5px 12px;
    background: var(--secondary-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.filter-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

.filter-tag.active {
    background: var(--primary-color);
    color: var(--white);
}

/* ==================== PAGINATION ==================== */
.pagination {
    margin-top: 30px;
}

.pagination ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 5px;
}

.pagination li a,
.pagination li span {
    display: block;
    padding: 8px 12px;
    background: var(--white);
    border-radius: var(--radius);
}

.pagination li a:hover {
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

.pagination li.active span {
    background: var(--primary-color);
    color: var(--white);
}

/* ==================== PROFILE ==================== */
.doctor-profile {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.profile-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px;
}

.profile-header .clinic-name {
    opacity: 0.8;
    margin-bottom: 5px;
}

.profile-header h1 {
    margin-bottom: 10px;
}

.profile-header .specialization a {
    color: var(--white);
    opacity: 0.9;
}

.profile-content {
    padding: 30px;
}

.profile-content section {
    margin-bottom: 30px;
}

.profile-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.contact-info dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
}

.contact-info dt {
    font-weight: 500;
    color: var(--text-muted);
}

.working-hours table {
    width: 100%;
}

.working-hours td {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.working-hours tr:last-child td {
    border-bottom: none;
}

/* ==================== AUTH ==================== */
.auth-page {
    display: flex;
    justify-content: center;
    padding: 50px 0;
}

.auth-box {
    width: 100%;
    max-width: 400px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-box-wide {
    max-width: 500px;
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 30px;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links a {
    display: block;
    margin: 10px 0;
    font-size: 0.875rem;
}

/* ==================== ERROR PAGE ==================== */
.error-page {
    text-align: center;
    padding: 100px 0;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--primary-color);
}

.error-page h2 {
    margin-bottom: 20px;
}

.error-page p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* ==================== HERO ==================== */
.hero {
    text-align: center;
    padding: 40px 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* ==================== FOOTER ==================== */
.footer {
    background: #333;
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 50px;
}

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

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-col h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* ==================== ARTICLES ==================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.article-body {
    padding: 20px;
}

.article-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ==================== HOME 3-COLUMN LAYOUT ==================== */
.home-grid-3col {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 25px;
    padding: 30px 0;
}

@media (max-width: 1024px) {
    .home-grid-3col {
        grid-template-columns: 1fr;
    }
    .sidebar-left, .sidebar-right {
        order: 1;
    }
    .main-content-center {
        order: 0;
    }
}

.sidebar-left, .sidebar-right {
    min-width: 0;
}

.main-content-center {
    min-width: 0;
}

/* ==================== FIND SECTION ==================== */
.find-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.find-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.find-grid {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 20px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .find-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== POLAND MAP ==================== */
.map-container {
    position: relative;
}

.poland-map-obj {
    width: 100%;
    height: auto;
    max-height: 220px;
}

.poland-map-inline {
    width: 100%;
    height: auto;
    max-height: 240px;
}

.poland-map-inline a {
    text-decoration: none;
}

/* ==================== SPECIALIZATIONS GRID (3 columns) ==================== */
.specializations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px 15px;
    min-width: 0;
    overflow: hidden;
}

@media (max-width: 600px) {
    .specializations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.spec-column {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.spec-link {
    display: block;
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spec-link:hover {
    color: var(--primary-color);
}

.spec-link .count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==================== VOIVODESHIPS GRID ==================== */
.voivodeships-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

@media (max-width: 768px) {
    .voivodeships-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.voiv-item {
    display: block;
    padding: 6px 10px;
    font-size: 0.9rem;
    color: var(--text-color);
    background: var(--secondary-color);
    border-radius: var(--radius);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.voiv-item:hover {
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

.voiv-item .count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.voiv-item:hover .count {
    color: rgba(255,255,255,0.8);
}

/* ==================== ARTICLES LIST (sidebar) ==================== */
.sidebar .articles-list {
    list-style: none;
}

.sidebar .articles-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar .articles-list li:last-child {
    border-bottom: none;
}

.sidebar .articles-list a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.4;
}

.sidebar .articles-list .date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* ==================== ARTICLES LIST (main content) ==================== */
.page-main .articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-main .articles-list .article-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
}

.page-main .articles-list .article-card h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.page-main .articles-list .article-card h2 a {
    color: var(--text-color);
}

.page-main .articles-list .article-card h2 a:hover {
    color: var(--primary-color);
}

.page-main .articles-list .excerpt {
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.6;
}

.page-main .articles-list .meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==================== VOIVODESHIP CARDS ==================== */
.voiv-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.2s ease;
    min-height: 80px;
}

.voiv-card:hover {
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.voiv-card .voiv-name {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.voiv-card:hover .voiv-name {
    color: var(--white);
}

.voiv-card .voiv-count {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.voiv-card:hover .voiv-count {
    color: rgba(255,255,255,0.8);
}

/* ==================== LISTINGS (Pharmacies, Clinics, etc.) ==================== */
.listings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.listing-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: box-shadow 0.2s ease;
}

.listing-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.listing-card h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.listing-card h2 a {
    color: var(--text-color);
}

.listing-card h2 a:hover {
    color: var(--primary-color);
}

.listing-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.listing-phone {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.no-results {
    padding: 40px;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    color: var(--text-muted);
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 20px;
    background: var(--secondary-color);
    color: var(--text-muted);
    margin-right: 5px;
    margin-top: 5px;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-primary {
    background: var(--primary-color);
    color: var(--white);
}

/* ==================== PHARMACY PROFILE ==================== */
.pharmacy-profile {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.pharmacy-profile .profile-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.pharmacy-profile .profile-header .location {
    opacity: 0.9;
    font-size: 1rem;
    margin-bottom: 10px;
}

/* ==================== CLINIC PROFILE ==================== */
.clinic-profile {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.clinic-profile .profile-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

/* ==================== PAGE CONTENT (Static pages) ==================== */
.page-content {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.page-content h1 {
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.page-content section {
    margin-bottom: 25px;
}

.page-content h2 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.page-content ul {
    margin-left: 20px;
    color: var(--text-muted);
}

.page-content ul li {
    margin-bottom: 5px;
}

/* Contact form */
.contact-form {
    max-width: 500px;
}

.contact-info section {
    margin-bottom: 20px;
}

/* ==================== ARTICLE FULL ==================== */
.article-full {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.article-full .article-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 30px;
}

.article-full .article-header h1 {
    margin-bottom: 10px;
}

.article-full .article-header .meta {
    opacity: 0.9;
}

.article-full .article-content {
    padding: 30px;
    line-height: 1.8;
}

.article-full .article-content p {
    margin-bottom: 15px;
}

.article-full .article-content h2,
.article-full .article-content h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* ==================== SEARCH PAGE ==================== */
.search-form-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.search-form-extended .form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.search-form-extended .form-row:last-child {
    margin-bottom: 0;
}

.search-form-extended .form-group-button {
    display: flex;
    align-items: flex-end;
}

.results-info {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.doctor-card .specialization {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

@media (max-width: 600px) {
    .search-form-extended .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==================== UTILITIES ==================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.empty-state {
    padding: 40px;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
}

/* ==================== SPECIALIZATION CONTENT ==================== */
.specialization-content {
    margin-top: 30px;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.specialization-content h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.specialization-content .content-body {
    line-height: 1.8;
    color: var(--text-color);
}

.specialization-content .content-body p {
    margin-bottom: 15px;
    text-align: justify;
}

.specialization-content .content-body ul {
    margin: 15px 0;
    padding-left: 25px;
}

.specialization-content .content-body ul li {
    margin-bottom: 8px;
    position: relative;
}

.specialization-content .content-body ul li::marker {
    color: var(--primary-color);
}

/* ==================== ARTICLES PREVIEW ==================== */
.articles-preview {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.articles-preview h2 {
    margin-bottom: 20px;
    color: var(--text-color);
}

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

@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

.article-card-small {
    display: block;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
}

.article-card-small .article-thumb {
    height: 120px;
    overflow: hidden;
}

.article-card-small .article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-small .article-info {
    padding: 15px;
}

.article-card-small .article-info h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.4;
}

.article-card-small .article-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.articles-more {
    margin-top: 25px;
    text-align: center;
}

.btn-outline-primary {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}
