/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a3728;
    --secondary-color: #2d5a27;
    --accent-color: #8b4513;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --text-muted: #999;
    --bg-light: #faf9f7;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #4a3728 0%, #2d5a27 100%);
    --gradient-warm: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
    --gradient-hero: linear-gradient(135deg, #1a1a1a 0%, #4a3728 50%, #2d5a27 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 22px;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 48px;
    height: 48px;
}

.logo-text {
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: url('%E8%80%81%E5%AD%90.png') no-repeat left center;
    background-size: cover;
    background-position: 25% 50%;
    z-index: 0;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    min-height: 700px;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 33% 50%, rgba(0,0,0,0.1) 0%, transparent 60%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 0;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    font-weight: 400;
}

.hero-button {
    display: inline-block;
    padding: 16px 40px;
    background: var(--bg-white);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.quote-text {
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-color);
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 12px;
    line-height: 1.4;
}

.quote-author {
    font-size: 14px;
    color: var(--text-muted);
    display: block;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -1px;
    color: var(--text-dark);
}

/* Intro Section */
.intro-section {
    background: var(--bg-white);
}

.intro-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.intro-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

.intro-content {
    max-width: 100%;
    margin: 0;
    text-align: left;
}

.intro-quote {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    padding: 35px;
    text-align: center;
    color: white;
    align-self: flex-start;
    max-height: 352px;
}

.intro-quote .daily-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 16px;
}

.intro-quote .daily-quote {
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 16px;
    color: white;
}

.intro-quote .daily-author {
    font-size: 14px;
    opacity: 0.9;
    font-style: normal;
    display: block;
    margin-bottom: 24px;
}

.intro-quote .new-quote-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.intro-quote .new-quote-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.intro-text {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.8;
}

.read-more-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin-top: 16px;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: var(--secondary-color);
}

/* Daily Quote Styles */
.daily-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Principles Section */
.principles-section {
    background: var(--bg-white);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.principle-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: 16px;
    background: var(--bg-light);
    transition: all 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.principle-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.principle-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.principle-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Articles Section */
.articles-section {
    background: var(--bg-light);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.article-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-link {
    display: block;
    cursor: pointer;
}

.card-link:hover .article-image {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.article-image {
    height: 200px;
    width: 100%;
    transition: transform 0.3s ease;
}

.article-content {
    padding: 28px;
}

.article-category {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.article-link:hover {
    color: var(--secondary-color);
}

.view-more {
    text-align: center;
}

.view-more-button {
    display: inline-block;
    padding: 14px 36px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.view-more-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* About Section */
.about-section {
    background: var(--bg-white);
    padding: 60px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-item {
    margin-bottom: 48px;
}

.about-item:last-child {
    margin-bottom: 0;
}

.about-item h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    display: inline-block;
}

.about-item p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
}

.about-item:last-child p {
    margin-bottom: 0;
}

.offer-list {
    list-style: none;
    padding: 0;
}

.offer-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
}

.offer-list li:last-child {
    border-bottom: none;
}

.offer-list strong {
    color: var(--text-dark);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.visitor-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px;
    font-style: italic;
}

.visitor-count span {
    font-weight: 700;
    color: #fff;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    text-align: center;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */

/* Large tablets and small laptops */
@media (max-width: 1024px) {
    .hero-content {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 48px;
    }
}

/* Tablets and small devices */
@media (max-width: 968px) {
    .hero-title {
        font-size: 42px;
    }
    
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .article-hero h1 {
        font-size: 36px;
    }
}

/* Phones and small tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-content {
        padding: 50px 0;
    }
    
    .quote-text {
        font-size: 18px;
    }
    
    .intro-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .intro-quote .quote-text {
        font-size: 20px;
    }
    
    .article-hero {
        padding: 50px 0;
    }
    
    .article-hero h1 {
        font-size: 28px;
    }
    
    .article-container {
        padding: 40px 16px;
    }
    
    .article-content h2 {
        font-size: 24px;
    }
    
    .article-content h3 {
        font-size: 20px;
    }
    
    .article-content p,
    .article-content li {
        font-size: 15px;
    }
}

/* Small phones */
@media (max-width: 640px) {
    .container {
        padding: 0 14px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .nav {
        gap: 16px;
    }
    
    .nav-link {
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .principles-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }
}

/* Extra small phones */
@media (max-width: 420px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .section {
        padding: 48px 0;
    }
}