/* Tiān Foundation Website Styles */

/* Global Styles */
:root {
    --primary-color: #e8d0b3; /* Warm beige */
    --secondary-color: #f5e1d0; /* Light pink */
    --accent-color: #d4af7a; /* Light gold */
    --text-color: #333;
    --light-text: #fff;
    --dark-text: #222;
    --background-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: #c19b66;
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--light-text);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a.active {
    color: var(--accent-color);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Language Switch */
.lang-switch {
    position: static;
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    text-align: right;
}
.lang-switch a {
    color: var(--accent-color);
    font-weight: 500;
}
.lang-switch a:hover {
    color: var(--text-color);
}
@media screen and (max-width: 768px) {
    .lang-switch {
        font-size: 0.75rem;
        margin-top: 4px;
    }
}


/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 80px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/Yinglong\ Li\,\ IPAJ\ 8-Golden\ Dawn.png');
}

/* Ensure inner content is horizontally centered */
.hero .container {
    display: flex;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--light-text);
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    transform: translateX(-3ch);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero .btn {
    margin: 0 10px;
}

/* Slogan offset for Chinese homepage */
.hero .slogan-offset {
  margin-left: 3ch;
}

/* Founder's Statement Section */
.founder {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.founder-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.founder-image {
    flex: 1;
}

.founder-image img {
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.founder-text {
    flex: 2;
}

.founder-text h2 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 300;
}

.founder-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.founder-signature {
    font-style: italic;
    font-weight: 500;
    margin-top: 2rem;
}

.founder-signature .founder-name {
    font-size: 1.25rem;
}

/* About Section */
.about {
    padding: 100px 0;
}

.mission, .values {
    margin-bottom: 50px;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.value-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.value-item h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* Themed colors for the four values cards */
.values-list .value-item:nth-child(1) {
    background-color: var(--primary-color);
}

.values-list .value-item:nth-child(2) {
    background-color: var(--secondary-color);
}

.values-list .value-item:nth-child(3) {
    background-color: #f0e2cb; /* softened accent tint */
}

.values-list .value-item:nth-child(4) {
    background-color: #faeee3; /* softened secondary tint */
}

/* Projects Section (Home cards) */
.projects {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 30px;
}

@media screen and (max-width: 768px) {
    .project-cards {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background-color: var(--background-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    max-width: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    background-color: #f5f5f5;
}

.project-card-content {
    padding: 20px;
}

.project-card-content h3 {
    margin-bottom: 10px;
}

.project-card-content p {
    margin-bottom: 20px;
}

/* Projects Page */
.projects-hero {
    margin-top: 90px;
    min-height: 70vh;
    padding: 140px 0 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.projects-subtitle {
    margin-top: 10px;
    font-size: 2.6rem;
    font-weight: 600;
}
.projects-author {
    margin-top: 12px;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.projects-page .intro p {
    margin-bottom: 1rem;
}

/* Intro two-column layout with portrait image */
.projects-page .intro .intro-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 20px;
}
.projects-page .intro .intro-text p {
    margin-bottom: 1rem;
}
.projects-page .intro .intro-media img {
    width: 100%;
    height: 600px; /* taller for 竖版 image */
    object-fit: contain;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
@media screen and (max-width: 992px) {
    .projects-page .intro .intro-layout {
        grid-template-columns: 1fr;
    }
    .projects-page .intro .intro-media img {
        height: 450px;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-grid img.portrait {
    height: 350px;
}

.gallery-grid img.landscape {
    height: 200px;
    grid-column: span 2;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
}

.contact-item-content h3 {
    margin-bottom: 5px;
}

/* News Page Styles */
.news-hero {
    padding: 180px 0 120px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('../images/Six\ N.\ Five\,\ Species.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    color: var(--light-text);
}

.news-intro {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--light-text);
    line-height: 1.8;
}

.news-content {
    padding: 80px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.news-item {
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

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

.news-item-content h2 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 500;
}

.news-item-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-item .btn {
    margin-top: 10px;
}

/* Footer */
footer {
    background-color: #222;
    color: var(--light-text);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p {
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--light-text);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
}

.footer-section.links ul li {
    margin-bottom: 10px;
}

.footer-section.links ul li a {
    color: var(--light-text);
}

.footer-section.links ul li a:hover {
    color: var(--accent-color);
}

.footer-section.contact p {
    display: flex;
    align-items: center;
}

.footer-section.contact p i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
        white-space: nowrap;
        text-align: center;
        width: 100%;
    }
    
    .founder-content {
        flex-direction: column;
    }
    
    .founder-image, .founder-text {
        flex: 1;
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 10px 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
        white-space: nowrap;
        text-align: center;
        width: 100%;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 576px) {
    .hero-content h2 {
        font-size: 1.4rem;
        white-space: nowrap;
        text-align: center;
        width: 100%;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .founder-text h2 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    .hero .slogan-offset {
      margin-left: 0;
    }
}