:root {
    --rt-theme: #114439;
    --rt-theme-hover: #0c332a;
}
.rt-blog-wrapper {
    font-family: var(--rt-font, 'Poppins', sans-serif);
}

/* --------- POST & CATEGORY GRIDS --------- */
.rt-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.rt-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.rt-card:hover {
    box-shadow: 0 10px 25px rgba(17, 68, 57, 0.1);
}
.rt-card-img-wrap {
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* Forces perfect 4:3 shape without cropping */
    display: block;
}
.rt-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth Ken Burns */
}
.rt-card:hover .rt-card-img {
    transform: scale(1.08);
}
.rt-card-content {
    padding: 20px;
}
.rt-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.rt-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #333;
    line-height: 1.3;
}
.rt-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}
.rt-title a:hover {
    color: var(--rt-theme);
}
.rt-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}
.rt-btn {
    display: inline-block;
    padding: 8px 24px;
    color: var(--rt-theme);
    border: 2px solid var(--rt-theme);
    background: transparent;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}
.rt-btn:hover {
    background: var(--rt-theme);
    color: #fff;
}

/* --------- SLIDER --------- */
.rt-slider-container {
    position: relative;
    padding-bottom: 60px;
}
.swiper-slide.rt-slide-item {
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: block;
    text-decoration: none;
}
.rt-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.rt-slide-item:hover .rt-slide-bg {
    transform: scale(1.08);
}
.rt-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,0.85) 100%);
}
.rt-slide-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 2;
}
.rt-slide-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
}
.rt-slide-meta {
    color: #ddd;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rt-slider-controls {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--rt-theme);
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    z-index: 10;
}
.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.4;
    width: 8px;
    height: 8px;
    transition: all 0.3s ease;
    margin: 0 6px !important;
}
.swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}
.rt-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    z-index: 10;
    cursor: pointer;
}
.rt-slider-prev { left: 10px; }
.rt-slider-next { right: 10px; }

/* --------- PAGINATION --------- */
.rt-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
    width: 100%;
}
.rt-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    align-items: center;
}
.rt-pagination ul.page-numbers li {
    margin: 0;
    padding: 0;
}
.rt-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 40px;
    padding: 0 15px;
    background: #ffffff;
    color: #333333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 15px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}
.rt-pagination a.page-numbers:hover {
    background: var(--rt-theme);
    color: #ffffff;
    border-color: var(--rt-theme);
}
.rt-pagination .page-numbers.current {
    background: var(--rt-theme);
    color: #ffffff;
    border-color: var(--rt-theme);
    cursor: default;
}
.rt-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    padding: 0 5px;
    color: #999;
}