/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: #2c3e50;
    color: white;
    padding: 0.75rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo img {
    max-height: 45px;
    width: auto;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 1rem;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
    text-decoration: underline;
}

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

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 1rem;
}

h1 {
    margin-bottom: 0;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: bold;
    flex: 1;
    min-width: 200px;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-input {
    padding: 0.4rem 0.75rem;
    border: 1px solid #bdc3c7;
    border-radius: var(--border-radius, 8px);
    font-size: 0.9rem;
    font-family: var(--font-family, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
    min-width: 200px;
    box-sizing: border-box;
    height: auto;
    line-height: 1.4;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.search-button {
    padding: 0.4rem 1rem;
    background-color: var(--button-color, #3498db);
    color: white;
    border: none;
    border-radius: var(--border-radius, 8px);
    font-size: 0.9rem;
    font-family: var(--font-family, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
    line-height: 1.4;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: middle;
    height: auto;
}

.search-button:hover {
    background-color: var(--button-hover-color, #2980b9);
}

.clear-search-button {
    padding: 0.4rem 1rem;
    background-color: #95a5a6;
    color: white;
    border: none;
    border-radius: var(--border-radius, 8px);
    font-size: 0.9rem;
    font-family: var(--font-family, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    line-height: 1.4;
    box-sizing: border-box;
    vertical-align: middle;
    text-align: center;
    height: auto;
}

.clear-search-button:hover {
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
}

h2 {
    margin-bottom: 1rem;
    color: #34495e;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Posts List */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .post-detail-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-navigation-left {
        position: static;
        width: 100%;
    }
    
    .post-navigation-left .btn-back {
        width: 100%;
        text-align: center;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 0;
}


.post-card {
    background: white;
    border-radius: var(--border-radius, 8px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.post-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.post-content {
    padding: 1.5rem;
}

.post-content h2 {
    margin-bottom: 0.5rem;
}

.post-content h2 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.post-content h2 a:hover {
    color: #3498db;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.post-meta .category a {
    color: #3498db;
    text-decoration: none;
}

.post-meta .category a:hover {
    text-decoration: underline;
}

.post-excerpt {
    margin-bottom: 1rem;
    color: #555;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #ecf0f1;
    color: #34495e;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.3s;
}

.tag:hover {
    background-color: #bdc3c7;
}

.tag.active {
    background-color: var(--button-color, #3498db);
    color: white;
}

/* Post Detail */
.post-detail-wrapper {
    display: flex;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.post-navigation-left {
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
    padding-top: 0.5rem;
}

.post-detail {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 0.5rem 2rem 2rem 2rem;
    flex: 1;
    min-width: 0;
}

.post-header {
    margin-top: 0;
    margin-bottom: 2rem;
    padding-top: 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.post-featured-image {
    margin-bottom: 2rem;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-content {
    line-height: 1.8;
    margin-bottom: 2rem;
}

.post-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    border-radius: 4px;
    display: block;
    margin: 1rem auto;
    object-fit: contain;
}

/* Override any inline width/height styles from CKEditor that might distort images */
.post-content img[style] {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}


.post-navigation {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #ecf0f1;
}

.btn-back {
    display: inline-block;
    padding: 0.4rem 1.5rem;
    background-color: var(--button-color, #3498db);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius, 8px);
    transition: background-color 0.3s;
    line-height: 1.4;
    font-size: 0.9rem;
    font-weight: bold;
    box-sizing: border-box;
    height: auto;
    cursor: pointer;
    font-family: var(--font-family, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
}

.btn-back:hover {
    background-color: var(--button-hover-color, #2980b9);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-link {
    padding: 0.5rem 1rem;
    background-color: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #bdc3c7;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: var(--button-color, #3498db);
    color: white;
    border-color: var(--button-color, #3498db);
}

.page-info {
    padding: 0.5rem 1rem;
    color: #7f8c8d;
}

/* Sidebar */
.sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1.5rem;
    height: fit-content;
}

.widget {
    margin-bottom: 2rem;
}

.widget h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.5rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #ecf0f1;
    color: #34495e;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.tag-link:hover {
    background-color: #bdc3c7;
}

/* About Page */
.about-page {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    line-height: 1.8;
}

.about-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Admin Settings */
.admin-settings {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.settings-form {
    margin-top: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 1rem;
}

.color-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.color-input-wrapper .color-picker {
    width: 80px;
    height: 50px;
    padding: 2px;
    border: 2px solid #3498db;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    background: white;
    display: block !important;
    min-width: 80px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.color-input-wrapper .color-picker:hover {
    border-color: #2980b9;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.color-input-wrapper .color-text-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 1rem;
    font-family: monospace;
    text-transform: uppercase;
}

.color-input-wrapper .color-text-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.color-input-wrapper .color-text-input:invalid {
    border-color: #e74c3c;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    padding: 0.4rem 2rem;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s;
    line-height: 1.4;
    box-sizing: border-box;
    height: auto;
}

.btn-submit:hover {
    background-color: #229954;
}

.messages {
    margin-bottom: 1.5rem;
}

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

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

.admin-links {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #ecf0f1;
}

.admin-links a {
    color: #3498db;
    text-decoration: none;
}

.admin-links a:hover {
    text-decoration: underline;
}

.category-description {
    margin-bottom: 2rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Work Examples Grid */
.work-examples-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 0;
    width: 100%;
    padding: 0;
}

.work-card {
    background: white;
    border-radius: var(--border-radius, 8px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.work-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #ecf0f1;
    position: relative;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.work-card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #95a5a6;
    font-size: 0.9rem;
}

.work-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.work-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1;
}

.work-card-button {
    display: inline-block;
    padding: 0.4rem 1.5rem;
    background-color: var(--button-color, #3498db);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius, 8px);
    text-align: center;
    transition: background-color 0.3s;
    font-weight: 500;
    line-height: 1.4;
    font-size: 0.9rem;
    box-sizing: border-box;
    height: auto;
}

.work-card-button:hover {
    background-color: var(--button-hover-color, #2980b9);
}

/* Footer */
footer {
    background-color: #34495e;
    color: #000;
    padding: 0.75rem 0;
    margin-top: 1rem;
    text-align: center;
}

.footer-content p {
    margin: 0;
}

/* Responsive Design */
/* Medium screens - 3 cards per row */
@media (max-width: 1024px) {
    .work-examples-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Small screens - 3 cards per row (tablets) */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        justify-content: center;
        gap: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-input {
        flex: 1;
        min-width: 0;
    }
    
    .post-card {
        margin-bottom: 1rem;
    }
    
    .pagination {
        flex-direction: column;
    }
    
    .work-examples-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .work-card-image {
        height: 180px;
    }
}

/* Mobile phones - 1 card per row */
@media (max-width: 480px) {
    .work-examples-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .work-card-image {
        height: 200px;
    }
}

/* Main Page Blocks */
.main-blocks {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.main-block {
    padding: 2rem;
    min-height: 400px;
    border: 1px solid var(--primary-color, #2c3e50);
    border-radius: var(--border-radius, 8px);
}

.main-block-left {
    flex: 3;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: none;
}

.main-block-left .main-block-title {
    margin: 0;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    color: var(--primary-color, #2c3e50);
    font-size: 1.35rem;
    font-weight: bold;
    border-bottom: 1px solid var(--primary-color, #2c3e50);
    flex-shrink: 0;
}

.carousel-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.75rem 1rem;
    background-color: var(--overlay-color-rgba, rgba(128, 128, 128, 0.7));
    color: white;
    font-size: 1.2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    z-index: 10;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 300px;
    max-height: 600px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    border-radius: var(--border-radius, 8px);
    border: 1px solid var(--primary-color, #2c3e50);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    z-index: 2;
}

.carousel-caption h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.carousel-caption p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
    border: 2px solid white;
}

.carousel-indicator.active {
    background-color: white;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--overlay-color-rgba, rgba(128, 128, 128, 0.7));
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-weight: bold;
    line-height: 1;
}

.carousel-prev span,
.carousel-next span {
    display: block;
    line-height: 1;
    margin: 0;
    padding: 0;
    transform: translateY(-0.05em);
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: var(--overlay-color-rgba-hover, rgba(128, 128, 128, 0.9));
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    padding: 1.5rem 0 0 0;
    margin-top: 0;
    margin-bottom: 0;
    flex: 1;
    overflow-y: auto;
    box-sizing: border-box;
}

.card-item {
    background: white;
    border-radius: var(--border-radius, 8px);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--primary-color, #2c3e50);
    width: 100%;
    box-sizing: border-box;
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.card-image.placeholder {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.card-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--overlay-color-rgba, rgba(128, 128, 128, 0.7));
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
}

.card-content {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    padding-top: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: white;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.card-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.card-button {
    display: inline-block;
    padding: 0.4rem 1.5rem;
    background-color: var(--button-color, #3498db);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius, 8px);
    font-weight: 500;
    transition: background-color 0.3s;
    margin-top: auto;
    align-self: center;
    line-height: 1.4;
    font-size: 0.9rem;
    box-sizing: border-box;
    height: auto;
}

.card-button:hover {
    background-color: var(--button-hover-color, #2980b9);
    color: white;
    text-decoration: none;
}

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

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .card-item {
        border-right: 1px solid var(--primary-color, #2c3e50);
        border-bottom: 1px solid var(--primary-color, #2c3e50);
    }
    
    .card-item:last-child {
        border-bottom: 1px solid var(--primary-color, #2c3e50);
    }
}

.main-block-right {
    flex: 1;
    padding-top: 1rem;
}

.main-block-right h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary-color, #2c3e50);
    font-size: 1.2rem;
    font-weight: bold;
}

.latest-posts-scrollable {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.latest-posts-scrollable::-webkit-scrollbar {
    width: 6px;
}

.latest-posts-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.latest-posts-scrollable::-webkit-scrollbar-thumb {
    background: var(--primary-color, #2c3e50);
    border-radius: 3px;
}

.latest-posts-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color, #34495e);
}

.latest-post-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.latest-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.latest-post-link {
    text-decoration: none;
    color: #333;
    display: block;
    transition: color 0.3s;
}

.latest-post-link:hover {
    color: var(--primary-color, #2c3e50);
}

.latest-post-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    color: inherit;
}

.latest-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.latest-post-category {
    font-size: 0.75rem;
    color: var(--primary-color, #2c3e50);
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    background-color: rgba(44, 62, 80, 0.1);
    border-radius: 3px;
    white-space: nowrap;
}

.latest-post-date {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .main-blocks {
        flex-direction: column;
        gap: 1rem;
    }
    
    .carousel-container {
        height: 40vh;
        min-height: 250px;
        max-height: 400px;
    }
}


