.page-header-bg {
    position: relative;
    background-color: var(--primary-color);
    background-image: url('./assets/project-4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 45vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.page-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(22, 57, 41, 0.95) 0%, rgba(22, 57, 41, 0.6) 50%, rgba(22, 57, 41, 0.95) 100%);
    z-index: -1;
}

.page-header-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    z-index: -1;
}

.page-title-section {
    text-align: center;
    color: var(--white);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.page-title-section::before {
    content: '';
    width: 2px;
    height: 40px;
    background-color: var(--secondary-color);
    margin-bottom: 25px;
}

.page-title {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    letter-spacing: 0.05em;
}

.page-subtitle {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 300;
    max-width: 600px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- About Page Specific --- */

/* About Story */
.about-story {
    padding: 120px 0;
    background-color: var(--white);
}

.about-story .about-container {
    align-items: center;
    gap: 80px;
}

.about-story .about-content {
    flex: 0 0 45%;
    position: relative;
    padding-left: 30px;
}

.about-story .about-content::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 3px;
    height: 80px;
    background-color: var(--secondary-color);
}

.about-story .section-title {
    font-size: 42px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.about-story .about-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.about-story .about-image {
    flex: 1;
    position: relative;
}

.about-story .about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: 20px;
    left: 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    z-index: 0;
    opacity: 0.5;
}

.about-story .about-image img {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    height: 500px;
    width: 100%;
    object-fit: cover;
}
/* Core Values */
.core-values {
    padding: 80px 0;
    background-color: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--bg-card);
    border-radius: 8px;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.value-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Strengths Section */
.strengths {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 100px 0;
}

.strengths-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.strengths-image img {
    border-radius: 8px;
}

.text-white {
    color: var(--white);
}

.strengths-list {
    list-style: none;
    margin-top: 40px;
}

.strengths-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.strengths-list li i {
    color: var(--secondary-color);
    font-size: 24px;
    margin-top: 5px;
}

.strengths-list li strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.strengths-list li p {
    font-size: 15px;
    opacity: 0.8;
}

/* Timeline */
.timeline-section {
    padding: 100px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: rgba(22, 57, 41, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 50%;
    padding-right: 50px;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    padding-right: 0;
    padding-left: 50px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

.timeline-item:nth-child(even)::after {
    right: auto;
    left: -8px;
}

.timeline-year {
    font-size: 28px;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-light);
}

/* Workflow */
.workflow {
    padding: 100px 0;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step-card {
    position: relative;
    padding: 40px 30px;
    background-color: var(--white);
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.step-number {
    font-size: 60px;
    font-family: var(--font-heading);
    color: rgba(22, 57, 41, 0.05);
    font-weight: 700;
    position: absolute;
    top: 20px;
    right: 20px;
    line-height: 1;
}

.step-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin: 20px 0 15px;
    position: relative;
    z-index: 1;
}

.step-card p {
    font-size: 14px;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

/* --- Projects Page Specific --- */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 8px 24px;
    border-radius: 30px;
    border: 1px solid rgba(22, 57, 41, 0.2);
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.full-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

/* Make some cards span columns/rows if we wanted an asymmetrical grid.
   For now, we just reuse .project-card .large and .small from styles.css */
   
.load-more-section {
    text-align: center;
    margin-top: 20px;
}

/* --- Fengshui Page Specific --- */
.fengshui-form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.form-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.fs-form .form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.fs-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fs-form label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.fs-form input, .fs-form select {
    padding: 12px 15px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.fs-form input:focus, .fs-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 57, 41, 0.1);
}

/* Fengshui Results */
.result-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.text-center {
    text-align: center;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.result-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.result-icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.result-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.result-card p {
    font-size: 15px;
    color: var(--text-light);
}

.fs-list {
    list-style: none;
    text-align: left;
    display: inline-block;
}

.fs-list li {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.color-box {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
}

/* --- News Page Specific --- */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.news-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.news-card.featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.news-card.featured .news-img {
    height: 100%;
    min-height: 400px;
}

.news-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.news-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-info {
    padding: 30px;
}

.news-card.featured .news-info {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-title {
    font-size: 28px;
    margin-bottom: 20px;
}

.news-title a, .news-title-small a {
    color: var(--primary-color);
}

.news-title a:hover, .news-title-small a:hover {
    color: var(--secondary-color);
}

.news-title-small {
    font-size: 18px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.news-subgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* --- Responsive for Secondary Pages --- */
@media (max-width: 992px) {
    .values-grid { grid-template-columns: 1fr; }
    .strengths-grid { 
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .projects-filter {
        flex-wrap: wrap;
        gap: 10px;
    }
    .news-subgrid { grid-template-columns: repeat(2, 1fr); }
    .projects-subgrid { grid-template-columns: repeat(2, 1fr); }
    .workflow-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Page Titles */
    .page-title { font-size: 36px; }
    
    /* Timeline Mobile */
    .timeline::before {
        left: 20px;
    }
    .timeline-item, .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
        margin-left: 0;
    }
    .timeline-item::after, .timeline-item:nth-child(even)::after {
        left: 9px;
        right: auto;
    }
    
    /* News & Projects Grid */
    .news-subgrid { grid-template-columns: 1fr; }
    .projects-subgrid { grid-template-columns: 1fr; }
    .full-projects-grid { grid-template-columns: 1fr; }
    .workflow-steps { grid-template-columns: 1fr; }
    
    .filter-btn {
        padding: 6px 16px;
        font-size: 14px;
    }
    
    /* Featured News */
    .news-card.featured {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-grid { grid-template-columns: 1fr; }
}
