/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    border-top: 8px solid #000;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 100%);
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-menu a:hover {
    color: #ccc;
    background-color: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images.webp') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
    position: relative;
    border-bottom: 5px solid #000;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-link {
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid rgba(255,255,255,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.stat-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    background: rgba(255,255,255,0.14);
}

.stat h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: #f8f8f8;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text h3 {
    color: #333;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
}

.about-text li {
    padding: 0.5rem 0;
    border-left: 3px solid #ffd700;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.coach-photo {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
    max-width: 400px;
}

.coach-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 300px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-align: center;
}

/* Memorial Section */
.memorial {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.memorial h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 300;
}

.memorial-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.memorial-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.memorial-date {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    border-left: 4px solid #ffd700;
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.memorial-quote {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 2rem 0;
    border-left: 5px solid #333;
}

.memorial-quote blockquote {
    font-size: 1.3rem;
    font-style: italic;
    color: #333;
    margin: 0;
    line-height: 1.6;
}

.memorial-quote cite {
    display: block;
    margin-top: 1rem;
    color: #666;
    font-size: 1rem;
    font-style: normal;
}

.memorial-details {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: fit-content;
}

.memorial-details h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.memorial-details ul {
    list-style: none;
    padding: 0;
}

.memorial-details li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.memorial-details li:last-child {
    border-bottom: none;
}

.memorial-details strong {
    color: #333;
    font-weight: 600;
}

/* Memories Section */
.memories {
    padding: 5rem 0;
    background: #f8f9fa;
}

.memories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.memories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.memory-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.memory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.memory-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Timeline Section */
.timeline {
    padding: 5rem 0;
    background: #f5f5f5;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.timeline h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #333;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    background: #333;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 100px;
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.timeline-content {
    flex: 1;
    max-width: calc(50% - 70px);
    position: relative;
    background: #ffffff;
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left: 4px solid #333;
    transition: all 0.3s ease;
}

.timeline-content h3 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.timeline-content p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid #333;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Connectors */
.timeline-item .timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 2px;
    background: #333;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -20px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -20px;
}

/* Hover effect */
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* SEO Content Section */
.seo-content {
    padding: 4rem 0;
    background: #f8f9fa;
}

.seo-content h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #333;
}

.seo-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.seo-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.share-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.share-btn:hover {
    background-color: #555;
}

.share-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    background-size: contain;
    background-repeat: no-repeat;
}

.wechat-icon {
    background-image: url('images/wechat.png'); /* Placeholder, replace with actual icon */
}

.weibo-icon {
    background-image: url('images/weibo.png'); /* Placeholder, replace with actual icon */
}

.qq-icon {
    background-image: url('images/qq.png'); /* Placeholder, replace with actual icon */
}
.guestbook {
    padding: 5rem 0;
    background: white;
}

.guestbook h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.guestbook > .container > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #666;
}

.guestbook-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
}

.form-group button {
    background: #333;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: background 0.3s ease;
}

.form-group button:hover {
    background: #2a5298;
}

.submit-btn {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.guestbook-entries h3 {
    color: #1e3c72;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.guestbook-entry {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #ffd700;
}

.guestbook-entry .username {
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.guestbook-entry .message {
    color: #555;
    line-height: 1.6;
}

.guestbook-entry .date {
    color: #999;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    background: #1e3c72;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background: #ffd700;
    color: #1e3c72;
}

/* Footer */
footer {
    background: #1e3c72;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        gap: 0;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .memorial-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .memories-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group button {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
    
    /* Timeline responsive */
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-left: 0;
        margin-bottom: 2.5rem;
    }
    
    .timeline-item:nth-child(even) {
        flex-direction: row !important;
    }
    
    .timeline-year {
        position: absolute;
        left: 0;
        top: 0;
        min-width: 80px;
        padding: 0.5rem;
        font-size: 0.9rem;
        z-index: 4;
    }
    
    .timeline-content {
        max-width: calc(100% - 40px);
        margin-left: 40px;
        border-left: 3px solid #333;
        padding: 1.5rem 1rem 1rem;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
        margin-top: 1rem;
    }
    
    .timeline-content p {
        font-size: 0.95rem;
    }
    
    .timeline-item::before {
        left: 20px;
        top: 30px;
    }
    
    .timeline-item:nth-child(even) .timeline-content::before,
    .timeline-item:nth-child(odd) .timeline-content::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    margin-left: 1rem;
    color: #fff;
}

.nav-toggle-icon {
    display: block;
    width: 28px;
    height: 3px;
    background: currentColor;
    position: relative;
    border-radius: 2px;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    background: currentColor;
    position: absolute;
    border-radius: 2px;
    transition: 0.3s;
}
.nav-toggle-icon::before {
    top: -8px;
}
.nav-toggle-icon::after {
    top: 8px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        padding: 8px;
        line-height: 0;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        background: #222;
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        z-index: 1000;
        padding: 8px 0;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        padding: 10px 16px;
    }
    .nav-menu a {
        display: block;
        width: 100%;
    }
    .share-buttons { display: none; }
}

.share-icon.facebook-icon {
    background: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/facebook.svg') no-repeat center center;
    background-size: 24px 24px;
    width: 24px;
    height: 24px;
    display: inline-block;
}
.share-icon.twitter-icon {
    background: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/twitter.svg') no-repeat center center;
    background-size: 24px 24px;
    width: 24px;
    height: 24px;
    display: inline-block;
}