/* =============================================================================
   Blog Page - Featured Posts & Blog Grid
   Matches Arolax blog.html design
   ============================================================================= */

/* FEATURED AREA (Hero) - Title row top + Posts row bottom */
.featured-area,
.featured-post-area,
.blog-area {
    overflow: hidden;
}

.featured-area {
    padding: 80px 0;
}

@media only screen and (max-width: 767px) {
    .featured-area {
        padding: 60px 0;
    }
}

.featured-area .container {
    max-width: 1400px;
    padding-left: 60px;
    padding-right: 60px;
    margin-left: auto;
    margin-right: auto;
}

@media only screen and (max-width: 991px) {
    .featured-area .container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media only screen and (max-width: 767px) {
    .featured-area .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.featured-area-inner {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

@media only screen and (max-width: 767px) {
    .featured-area-inner {
        gap: 40px;
    }
}

/* TOP ROW: Title (left) + Info (right) */
.featured-top-row {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 80px;
    align-items: flex-start;
    margin-bottom: 20px;
}

@media only screen and (max-width: 991px) {
    .featured-top-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.featured-title-col .section-title {
    font-size: 100px;
    line-height: 1;
    margin: 0;
    font-weight: 500;
    letter-spacing: -0.02em;
}

@media only screen and (max-width: 1399px) {
    .featured-title-col .section-title {
        font-size: 80px;
    }
}

@media only screen and (max-width: 1199px) {
    .featured-title-col .section-title {
        font-size: 64px;
    }
}

@media only screen and (max-width: 767px) {
    .featured-title-col .section-title {
        font-size: 48px;
    }
}

.featured-info-col {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.featured-info-col .featured-text {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(18, 18, 18, 0.65);
    margin: 0;
    max-width: 280px;
}

.featured-info-col .counter-box {
    display: flex;
    gap: 60px;
}

.featured-info-col .counter-item .number {
    font-size: 40px;
    font-weight: 600;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--primary);
}

.featured-info-col .counter-item .text {
    font-size: 13px;
    color: rgba(18, 18, 18, 0.6);
    margin: 0;
}

/* BOTTOM ROW: Big image (left) + Small stack (right) */
.featured-bottom-row {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 121px;
    align-items: stretch;
}

@media only screen and (max-width: 991px) {
    .featured-bottom-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.featured-hero-image {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1.4;
    position: relative;
    height: 100%;
}

.featured-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-hero-image:hover img {
    transform: scale(1.03);
}

/* Small stacked images */
.featured-small-stack {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

@media only screen and (max-width: 991px) {
    .featured-small-stack {
        grid-template-rows: auto auto;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

.hero-small-card {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    height: 100%;
}

.hero-small-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
    min-height: 100%;
}

.hero-small-card:hover img {
    transform: scale(1.05);
}

.featured-area .section-title {
    font-size: 60px;
    line-height: 1.2;
    margin-bottom: 40px;
}

@media only screen and (max-width: 1199px) {
    .featured-area .section-title {
        font-size: 48px;
    }
}

@media only screen and (max-width: 767px) {
    .featured-area .section-title {
        font-size: 36px;
        margin-bottom: 30px;
    }
}

.featured-area .text-wrapper {
    margin-bottom: 40px;
}

.featured-area .text {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(18, 18, 18, 0.7);
    max-width: 400px;
}

@media only screen and (max-width: 767px) {
    .featured-area .text {
        font-size: 16px;
    }
}

.featured-area .counter-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media only screen and (max-width: 767px) {
    .featured-area .counter-box {
        gap: 30px;
    }
}

.featured-area .counter-item .number {
    font-size: 48px;
    font-weight: 600;
    display: block;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--primary);
}

.featured-area .counter-item .text {
    font-size: 14px;
    color: rgba(18, 18, 18, 0.6);
}

/* FEATURED POSTS SECTION */
.featured-post-area {
    padding: 60px 0;
    border-top: 1px solid rgba(18, 18, 18, 0.08);
    border-bottom: 1px solid rgba(18, 18, 18, 0.08);
}

@media only screen and (max-width: 767px) {
    .featured-post-area {
        padding: 40px 0;
    }
}

.featured-post-box {
    display: grid;
}

.featured-posts {
    display: grid;
    gap: 40px 40px;
    grid-template-columns: repeat(3, 1fr);
}

@media only screen and (max-width: 991px) {
    .featured-posts {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 30px;
    }
}

@media only screen and (max-width: 767px) {
    .featured-posts {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Featured Blog Card */
.featured-post-area .blog-box {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 1;
}

.featured-post-area .blog-box a {
    display: block;
    height: 100%;
    width: 100%;
}

.featured-post-area .blog-box .thumb {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.featured-post-area .blog-box .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post-area .blog-box:hover .thumb img {
    transform: scale(1.03);
}

.featured-post-area .blog-box .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(180deg, transparent 0%, rgba(18, 18, 18, 0.95) 100%);
    color: #ffffff;
}

.featured-post-area .blog-box .content-first {
    display: flex;
    flex-direction: column;
}

.featured-post-area .blog-box .title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #ffffff;
}

@media only screen and (max-width: 1199px) {
    .featured-post-area .blog-box .title {
        font-size: 20px;
    }
}

@media only screen and (max-width: 767px) {
    .featured-post-area .blog-box .title {
        font-size: 18px;
        margin-bottom: 10px;
    }
}

.featured-post-area .blog-box .tag {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    display: block;
}

.featured-post-area .blog-box .icon {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
}

.featured-post-area .blog-box:hover .icon {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

/* BLOG GRID SECTION */
.blog-area {
    padding: 80px 0;
}

@media only screen and (max-width: 767px) {
    .blog-area {
        padding: 60px 0;
    }
}

.blog-area .section-content {
    margin-bottom: 60px;
}

@media only screen and (max-width: 767px) {
    .blog-area .section-content {
        margin-bottom: 40px;
    }
}

.blog-area .section-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 30px;
}

@media only screen and (max-width: 1199px) {
    .blog-area .section-title {
        font-size: 40px;
    }
}

@media only screen and (max-width: 767px) {
    .blog-area .section-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
}

.blog-area .text {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(18, 18, 18, 0.6);
    max-width: 500px;
}

/* Blog Grid */
.blogs-wrapper-box {
    display: grid;
}

.blogs-wrapper {
    display: grid;
    gap: 40px 40px;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 60px;
}

@media only screen and (max-width: 991px) {
    .blogs-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 30px;
        margin-bottom: 40px;
    }
}

@media only screen and (max-width: 767px) {
    .blogs-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
}

/* Blog Grid Card */
.blog-area .blog-box {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 1.5;
}

.blog-area .blog-box a {
    display: block;
    height: 100%;
}

.blog-area .blog-box .thumb {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.blog-area .blog-box .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-area .blog-box:hover .thumb img {
    transform: scale(1.05);
}

.blog-area .blog-box .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(180deg, transparent 0%, rgba(18, 18, 18, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-area .blog-box .number {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-bottom: 15px;
    line-height: 1;
}

.blog-area .blog-box .title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    word-break: break-word;
}

@media only screen and (max-width: 1199px) {
    .blog-area .blog-box .title {
        font-size: 20px;
    }
}

@media only screen and (max-width: 767px) {
    .blog-area .blog-box .title {
        font-size: 18px;
    }
}

.blog-area .blog-box .icon {
    align-self: flex-end;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    margin-top: 15px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.blog-area .blog-box:hover .icon {
    opacity: 1;
    transform: translateX(4px);
}

/* PAGINATION */
.pagination-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

@media only screen and (max-width: 767px) {
    .pagination-box {
        gap: 15px;
    }
}

.pagination {
    display: flex;
    list-style: none;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.pagination li {
    margin: 0;
}

.pagination li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid rgba(18, 18, 18, 0.1);
    border-radius: 4px;
    background: transparent;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination li a:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.pagination li a.active,
.pagination li.active a {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid rgba(18, 18, 18, 0.1);
    border-radius: 4px;
    background: transparent;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

.pagination .page-numbers.current {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.pagination .page-numbers:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Override defaults for dark mode */
:root .dark .featured-area .text,
:root .dark .blog-area .text {
    color: rgba(255, 255, 255, 0.7);
}

:root .dark .pagination li a {
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

:root .dark .pagination li a:hover,
:root .dark .pagination li a.current {
    background: #ffffff;
    color: var(--primary);
    border-color: #ffffff;
}
