/* ========================================
   The White Rehab - Articles Page Stylesheet
   ======================================== */

/* Override hero height for articles page */
.hero-section {
    height: 80vh;
}

/* Remove overlay gradient on carousel for articles page */
.carousel-slide::before {
    background: none;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #4a7c59;
    --dark-green: #2d5a3d;
    --light-green: #6b9b7a;
    --accent-red: #d32f2f;
    --gold: #c9a961;
    --cream: #f5f1e8;
    --brown: #8b6914;
    --text-dark: #333;
    --text-gray: #666;
}

body {
    font-family: 'DB Heavent', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible;
}

img {
    max-width: 100%;
    height: auto;
}

/* Page Title Section */
.page-title-section {
    background-color: #f7f4eb;
    padding: 60px 0;
}

.page-title-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 4rem;
    font-weight: 500;
    color: var(--text-dark);
}

.page-subtitle {
    font-size: 2.5rem;
    color: var(--text-gray);
    font-weight: 300;
}

/* Hero Banner Section */
.hero-banner {
    position: relative;
    width: 100%;
    line-height: 0;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to right, rgba(74, 124, 89, 0.7), rgba(74, 124, 89, 0.3)); */
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 40px 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.hero-vertical-line {
    width: 4px;
    height: 100px;
    background-color: #4c7b5a;
    flex-shrink: 0;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: -10px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.5rem;
    line-height: 1.8;
    opacity: 0.95;
}

.hero-menu-dots {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-menu-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-menu-dots .dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* Articles Section */
.articles-section {
    padding: 80px 0;
    background-color: #f7f4eb;
}

.section-title {
    text-align: center;
    font-size: 4rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 60px;
}

.articles-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
    overflow: visible;
}

.article-card {
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    flex: 0 0 calc(33.333% - 20px);
    max-width: 420px;
}

.article-card:nth-child(2) {
    margin-top: 40px;
}



.article-card:nth-child(1):hover {
    transform: translateY(-18px) rotate(-1deg);
}

.article-card:nth-child(2):hover {
    transform: translateY(25px);
}

.article-card:nth-child(3):hover {
    transform: translateY(-18px) rotate(1deg);
}

.article-image {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.article-card:hover .article-image img {
    transform: scale(1.08);
}

.article-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    text-align: left;
    z-index: 2;
}

.article-title {
    font-size: 2.25rem;
    font-weight: 500;
    color: white;
    margin-bottom: 4px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.article-subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Featured Accommodation Section */
.featured-section {
    background-color: #f7f4eb;
    padding: 60px 20px;
}

.featured-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.featured-image {
    width: 100%;
    height: 100%;
    min-height: 420px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-content {
    flex: 1;
    background: #9e6100;
    padding: 44px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    color: #fff;
}

.featured-title {
    font-size: 4rem;
    /* font-weight: 700; */
    line-height: 1.2;
    /* margin-bottom: 20px; */
}

.featured-description {
    font-size: 1.7rem;
    line-height: 1.2;
    margin-bottom: 40px;
    opacity: 0.95;
    align-items: flex-end;
    text-align: right;
}

.featured-cta {
    align-self: flex-end;
    padding: 5px 65px;
    background-color: transparent;
    color: #f0e1c9;
    border: 2px solid #f0e1c9;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.featured-cta:hover {
    background-color: white;
    color: var(--brown);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.cta-section {
    background-color: #f7f4eb;
    padding: 80px 0;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-text {
    flex: 1;
}

.cta-title {
    font-size: 4rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: -10px;
}

.cta-subtitle {
    font-size: 2.5rem;
    color: var(--text-gray);
    font-weight: 400;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #e8943a;
    color: white;
    border: none;
    padding: 3px 25px;
    border-radius: 50px;
    font-size: 2rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'DB Heavent', sans-serif;
    transition: background-color 0.25s ease;
    white-space: nowrap;
}

.cta-button:hover {
    background-color: #d07828;
    color: white;
}

.cta-button i {
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-container {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        min-height: 400px;
    }
    
    .featured-content {
        padding: 60px 40px;
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        background-position: 80% center;
    }

    .page-title {
        font-size: 2rem;
    }

    .hero-banner img {
        height: 480px;
        object-fit: cover;
        object-position: 12% center;
    }
    
    .hero-banner-content {
        padding: 30px 20px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-menu-dots {
        right: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .articles-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .article-card {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    .article-card:nth-child(2) {
        margin-top: 0;
    }

    .article-card:nth-child(1):hover,
    .article-card:nth-child(2):hover,
    .article-card:nth-child(3):hover {
        transform: none;
    }
    
    .featured-content {
        padding: 40px 30px;
        align-items: flex-start;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 3px 20px;
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .page-title-section {
        padding: 30px 0;
    }

    .page-title-section .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .page-title {
        font-size: 3rem;
    }
    
    .page-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-vertical-line {
        height: 120px;
    }
    
    .articles-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 3rem;
        margin-bottom: 40px;
    }

    .articles-grid {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .article-card {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    .article-card:nth-child(2) {
        margin-top: 0;
    }

    .article-card:nth-child(1):hover,
    .article-card:nth-child(2):hover,
    .article-card:nth-child(3):hover {
        transform: none;
    }
    
    .featured-content {
        padding: 30px 20px;
    }
    
    .featured-title {
        font-size: 2.5rem;
    }
    
    .featured-description {
        font-size: 1.5rem;
        text-align: left;
    }

    .featured-cta {
        display: block;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-title {
        font-size: 3rem;
    }
    
    .cta-subtitle {
        font-size: 1.5rem;
    }
}

