/* Content Items Styling */
.content-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid #8E7E54;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content-item:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.content-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8E7E54, #B5A46A);
}

/* Featured Content Items - Enhanced Styling */
.content-item.content-featured {
    background: linear-gradient(135deg, #fefaf3 0%, #fff9ed 100%);
    box-shadow: 0 6px 20px rgba(181, 164, 106, 0.25);
    border: 2px solid #e8dfc7;
    border-left: 6px solid #B5A46A;
    position: relative;
}

.content-item.content-featured::before {
    height: 4px;
    background: linear-gradient(90deg, #B5A46A, #d4c18a, #8E7E54);
}

.content-item.content-featured::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at top right, rgba(181, 164, 106, 0.15), transparent 70%);
    border-radius: 0 12px 0 100%;
}

.content-item.content-featured:hover {
    box-shadow: 0 10px 30px rgba(181, 164, 106, 0.35);
    transform: translateY(-3px);
    border-color: #d4c18a;
}

.content-title {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.content-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-title a:hover {
    color: #8E7E54;
}

.content-date {
    color: #8E7E54;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.content-date::before {
    content: '📅';
    margin-right: 0.5rem;
}

.content-description {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

.content-description p {
    margin-bottom: 1rem;
}

.content-description p:last-child {
    margin-bottom: 0;
}

/* Remove default hr styling */
.content-separator {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .content-title {
        font-size: 1.3rem;
    }
}

/* Page header styling */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-divider {
    height: 4px;
    background: linear-gradient(90deg, #8E7E54, #B5A46A);
    border: none;
    border-radius: 2px;
}

/* Content container */
.content-container {
    min-height: 50vh;
    padding: 1rem 0;
}

/* Sidebar Styling */
.box-shadow {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.box-shadow:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Sidebar Company Images */
.box-shadow img {
    border-radius: 8px;
    transition: transform 0.3s ease;
    filter: grayscale(100%);
}

.box-shadow img:hover {
    filter: grayscale(0%);
}

/* Sidebar Links */
.box-shadow > a {
    display: block;
    text-decoration: none;
    color: #8E7E54;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    margin: 0.5rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.box-shadow > a:hover {
    transform: translateY(-2px);
}

/* Side Menu Sections */
.side-menu {
    padding: 1rem 0;
}

.side-menu .menu-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid #8E7E54;
    transition: all 0.3s ease;
}

.side-menu .menu-section:hover {
    background: #f1f3f4;
    transform: translateX(5px);
}

/* Menu Section Headers */
.side-menu h6 {
    color: #2c3e50 !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #8E7E54 !important;
    position: relative;
}

.side-menu h6::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #B5A46A;
}

/* Menu Items */
.side-menu ul {
    margin: 0;
    padding: 0;
}

.side-menu li {
    margin-bottom: 0.3rem;
}

.side-menu li a,
.side-menu li button {
    color: #555 !important;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.side-menu li a:hover,
.side-menu li button:hover {
    background: linear-gradient(135deg, #8E7E54, #B5A46A);
    color: white !important;
    transform: translateX(5px);
    padding-left: 1.5rem;
}

.side-menu li a::before,
.side-menu li button::before {
    content: '▸';
    position: absolute;
    left: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.side-menu li a:hover::before,
.side-menu li button:hover::before {
    opacity: 1;
}

/* Sidebar HR styling */
.box-shadow hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #8E7E54, #B5A46A);
    margin: 1rem 0;
    border-radius: 1px;
}

/* Pagination Styling */
.pagination-wrapper {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f3f4;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #ffffff;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pagination .page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #8E7E54, #B5A46A);
    transition: left 0.3s ease;
    z-index: -1;
}

.pagination .page-link:hover {
    border-color: #8E7E54;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(142, 126, 84, 0.3);
}

.pagination .page-link:hover::before {
    left: 0;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #8E7E54, #B5A46A);
    border-color: #8E7E54;
    color: white;
    box-shadow: 0 4px 8px rgba(142, 126, 84, 0.4);
}

.pagination .page-item.disabled .page-link {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
    border-color: #e9ecef;
}

.pagination .page-item.disabled .page-link::before {
    display: none;
}

/* Previous/Next buttons styling */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    width: 55px;
    font-size: 1rem;
}

/* Hungarian pagination text overrides */
.pagination .page-item:first-child .page-link {
    width: 80px;
    font-size: 0.85rem;
    font-weight: 600;
}


.pagination .page-item:last-child .page-link {
    width: 80px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Dots styling for truncated pagination */
.pagination .page-item .page-link[aria-label="pagination.previous"],
.pagination .page-item .page-link[aria-label="pagination.next"] {
    font-size: 0;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination .page-link {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        width: 70px;
        font-size: 0.75rem;
    }

    .pagination .page-item:first-child .page-link::after {
        content: '‹';
        font-size: 1.1rem;
    }

    .pagination .page-item:last-child .page-link::after {
        content: '›';
        font-size: 1.1rem;
    }

    .pagination-wrapper {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

/* Pagination info text */
.pagination-info {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Documents Section Styling */
.documents-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f3f4;
}

.documents-header {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #8E7E54;
    position: relative;
}

.documents-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: #B5A46A;
}

.documents-header::before {
    content: '📎';
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.document-item {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.document-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #8E7E54, #B5A46A);
    transition: width 0.3s ease;
}

.document-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(142, 126, 84, 0.2);
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.document-item:hover::before {
    width: 6px;
}

.document-link {
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 2rem;
}

.document-link::before {
    content: '📄';
    position: absolute;
    left: 0;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.document-link::after {
    content: '→';
    margin-left: auto;
    padding-left: 1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-weight: bold;
    color: #8E7E54;
}

.document-item:hover .document-link {
    color: #8E7E54;
}

.document-item:hover .document-link::before {
    transform: scale(1.15) rotate(5deg);
}

.document-item:hover .document-link::after {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Documents */
@media (max-width: 768px) {
    .documents-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .documents-header {
        font-size: 1.1rem;
    }

    .document-item {
        padding: 0.85rem 1rem;
    }

    .document-link {
        font-size: 0.9rem;
        padding-left: 1.75rem;
    }

    .document-link::before {
        font-size: 1.1rem;
    }
}

/* Responsive adjustments for content page */
@media (max-width: 768px) {
    .content-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .content-full-description {
        font-size: 1rem;
    }

    .content-full-description h1 { font-size: 1.5rem; }
    .content-full-description h2 { font-size: 1.3rem; }
    .content-full-description h3 { font-size: 1.2rem; }
}

/* Insurance Cards Styling */
.insurance-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.insurance-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.insurance-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8E7E54, #B5A46A);
    transition: left 0.3s ease;
    z-index: 0;
}

.insurance-link:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(142, 126, 84, 0.3);
    border-color: #8E7E54;
    color: white;
}

.insurance-link:hover::before {
    left: 0;
}

.insurance-link .link-icon {
    margin-right: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.insurance-link:hover .link-icon {
    opacity: 1;
    transform: translateX(3px);
}

.insurance-link .link-text {
    position: relative;
    z-index: 1;
    flex: 1;
}

/* Insurance Card Body */
.card.box-shadow .card-body {
    padding: 1.25rem;
}

.card.box-shadow .card-img-top {
    padding: 1rem;
    background: #f8f9fa;
    object-fit: contain;
    height: 180px;
}

/* Responsive Insurance Cards */
@media (max-width: 768px) {
    .insurance-link {
        padding: 0.45rem 0.65rem;
        font-size: 0.75rem;
    }

    .card.box-shadow .card-img-top {
        height: 150px;
    }

    .insurance-links {
        gap: 0.3rem;
    }
}

/* Add CTA styling for the insurance link */
.insurance-cta {
    display: block;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 0.9rem 1rem;
    margin: .75rem 0 1.25rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #8E7E54, #B5A46A 65%);
    color: #fff !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 14px -4px rgba(142,126,84,.4);
    transition: all .35s ease;
    font-size: .9rem;
    padding: 1rem 1.15rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,.25);
    background-size: 140% 140%;
    background-position: 0% 50%;
}
.insurance-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 60%);
    opacity: .55;
    transition: opacity .35s ease;
}
.insurance-cta::after {
    content: '\2192'; /* Arrow */
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: .8;
    transition: transform .35s ease;
}
.insurance-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px -6px rgba(142,126,84,.55);
    text-shadow: 0 1px 2px rgba(0,0,0,.3);
    background-position: 100% 50%;
}
.insurance-cta:focus-visible {
    outline: 3px solid rgba(255,255,255,.65);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(142,126,84,.35), 0 10px 22px -6px rgba(142,126,84,.55);
}
.insurance-cta:hover::before {opacity: .75;}
.insurance-cta:hover::after {transform: translateY(-50%) translateX(4px);}
.insurance-cta:active {transform: translateY(0); box-shadow: 0 4px 10px -2px rgba(142,126,84,.5);}
@media (max-width: 576px) {
    .insurance-cta { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
    .insurance-cta,
    .insurance-cta::before,
    .insurance-cta::after { transition: none; }
}

/* Featured Content Badge */
.content-featured-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, #B5A46A, #8E7E54);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(142, 126, 84, 0.4);
    overflow: hidden;
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.content-featured-badge::before {
    content: '⭐';
    margin-right: 0.4rem;
    font-size: 0.9rem;
}

.content-featured-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

/* Responsive badge positioning */
@media (max-width: 768px) {
    .content-featured-badge {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

    .content-featured-badge::before {
        font-size: 0.8rem;
    }
}


/* News Section Headers */
.news-section-header {
    color: #2c3e50;
    font-size: 1.6rem;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #8E7E54;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, #B5A46A, transparent);
}

/* Read More Link */
.read-more {
    display: inline-block;
    color: #8E7E54;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 2px solid #8E7E54;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: linear-gradient(135deg, #8E7E54, #B5A46A);
    color: white;
    transform: translateX(5px);
}

/* Content Image Styling */
.content-image img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.content-item.content-featured .content-image img {
    box-shadow: 0 6px 16px rgba(181, 164, 106, 0.25);
}

.content-image img:hover {
    transform: scale(1.02);
}

/* Back Button Styling */
.back-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.back-button:hover {
    background: linear-gradient(135deg, #8E7E54, #B5A46A);
    color: white;
    border-color: #8E7E54;
    transform: translateX(-5px);
}

/* Content Full Description */
.content-full-description {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

.content-full-description h1,
.content-full-description h2,
.content-full-description h3 {
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-full-description p {
    margin-bottom: 1rem;
}

.content-full-description ul,
.content-full-description ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

