.content-container {
    min-height: 400px;
}

.content-container[data-view="grid"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.content-container[data-view="list"] {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-container[data-view="grid"] .content-item {
    display: flex;
    flex-direction: column;
}

.content-container[data-view="list"] .content-item {
    display: flex;
    flex-direction: row;
}

.content-container[data-view="list"] .content-item-image {
    width: 300px;
    min-width: 300px;
    height: 200px;
}

.content-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.content-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
}

.content-item-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-item-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.content-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-item-title a:hover {
    color: #007bff;
}

.content-item-summary {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.content-item-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    gap: 10px;
}
.content-item-meta.has-price {
    justify-content: space-between;
}
.content-item-meta > div:first-child {
    flex-grow: 1;
    text-align: left;
}

.content-section {
    margin-bottom: 40px;
}

.content-section-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.content-items-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .content-items-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .content-items-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .content-items-container {
        grid-template-columns: 1fr;
    }
}

.pagination-wrapper {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.title-section {
    width: 100%;
    display: block;
}

.title-section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.title-section-description {
    font-size: 15px;
    line-height: 1.6;
}

/* Ensure title section content respects text-align */
.title-section-title,
.title-section-description {
    display: block;
}

/* Support Quill editor HTML content in packaged prices */
.packaged-price-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    max-height: 4.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Quill editor alignment classes */
.packaged-price-description .ql-align-justify,
.packaged-price-description .ql-justify {
    text-align: justify !important;
}

.packaged-price-description .ql-align-center {
    text-align: center !important;
}

.packaged-price-description .ql-align-right {
    text-align: right !important;
}

.packaged-price-description .ql-align-left {
    text-align: left !important;
}

/* Quill editor other classes */
.packaged-price-description p {
    margin-bottom: 0.5em;
}

.packaged-price-description p:last-child {
    margin-bottom: 0;
}

.packaged-price-description h1,
.packaged-price-description h2,
.packaged-price-description h3,
.packaged-price-description h4,
.packaged-price-description h5,
.packaged-price-description h6 {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    font-size: 1em;
}

.packaged-price-description ul,
.packaged-price-description ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.packaged-price-description li {
    margin-bottom: 0.25em;
}

.packaged-price-description img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0.5em 0;
}

.packaged-price-description a {
    color: #0066CC;
    text-decoration: none;
}

.packaged-price-description a:hover {
    text-decoration: underline;
}

.packaged-price-description blockquote {
    border-left: 3px solid #ddd;
    padding-left: 0.75em;
    margin: 0.5em 0;
    color: #666;
    font-size: 0.9em;
}

.packaged-price-description code {
    background-color: #f4f4f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.packaged-price-description pre {
    background-color: #f4f4f4;
    padding: 0.5em;
    border-radius: 3px;
    overflow-x: auto;
    font-size: 0.9em;
}

.packaged-price-description strong,
.packaged-price-description b {
    font-weight: 600;
}

.packaged-price-description em,
.packaged-price-description i {
    font-style: italic;
}

/* Packaged prices container - centered with fixed item width */
#items-container-packagedPrice {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Each item has same width as article items */
#items-container-packagedPrice > .content-item {
    flex: 0 0 calc(25% - 15px); /* 4 items per row, accounting for gap */
    max-width: calc(25% - 15px);
    min-width: 0;
}

@media (max-width: 1200px) {
    #items-container-packagedPrice > .content-item {
        flex: 0 0 calc(33.333% - 14px); /* 3 items per row */
        max-width: calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    #items-container-packagedPrice > .content-item {
        flex: 0 0 calc(50% - 10px); /* 2 items per row */
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    #items-container-packagedPrice > .content-item {
        flex: 0 0 100%; /* 1 item per row */
        max-width: 100%;
    }
}

/* Partners container - max 8 icons per row, centered */
.partners-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.partner-item {
    flex: 0 0 calc(12.5% - 18px); /* 8 items per row */
    max-width: calc(12.5% - 18px);
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.partner-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

@media (max-width: 1200px) {
    .partner-item {
        flex: 0 0 calc(16.666% - 17px); /* 6 items per row */
        max-width: calc(16.666% - 17px);
    }
}

@media (max-width: 768px) {
    .partner-item {
        flex: 0 0 calc(25% - 15px); /* 4 items per row */
        max-width: calc(25% - 15px);
    }
}

@media (max-width: 576px) {
    .partner-item {
        flex: 0 0 calc(33.333% - 14px); /* 3 items per row */
        max-width: calc(33.333% - 14px);
    }
}

/* Feature list container - for HOME_FEATURE_LIST */
.feature-list-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-list-item {
    flex: 0 0 calc(25% - 15px); /* 4 items per row */
    max-width: calc(25% - 15px);
    min-width: 200px;
    min-height: 180px; /* Fixed height to keep all boxes equal */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.feature-list-item-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #007bff;
    display: block; /* Ensure icon is displayed as block */
}

.feature-list-item-icon.hidden {
    display: none; /* Hide if no icon */
}

.feature-list-item-icon img {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
    margin-bottom: 15px;
}

.feature-list-item-text {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    text-align: center;
    width: 100%;
}

@media (max-width: 1200px) {
    .feature-list-item {
        flex: 0 0 calc(33.333% - 14px); /* 3 items per row */
        max-width: calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .feature-list-item {
        flex: 0 0 calc(50% - 10px); /* 2 items per row */
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .feature-list-item {
        flex: 0 0 100%; /* 1 item per row */
        max-width: 100%;
    }
}

