/* HeartLink Volunteers */

:root {
    --primary: #2D5A4A;
    --secondary: #E8B86D;
    --accent: #C45C48;
    --background: #FDFBF7;
    --background-alt: #F5F0E8;
    --text: #2C3E35;
    --text-light: #5A6B62;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* Header */
header {
    background: var(--white);
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--text);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
}

nav a:hover, nav a.active {
    background: var(--primary);
    color: var(--white);
}

/* Main */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 40px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    margin-bottom: 30px;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 10px;
}

/* Hero */
.hero {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2rem;
    color: var(--primary);
}

.highlight {
    color: var(--accent);
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 15px;
}

.cta-button:hover {
    background: var(--accent);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

/* Cards */
.features {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    flex: 1;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feature-card h3 {
    color: var(--primary);
    margin: 15px 0 10px;
}

/* Stats */
.stats {
    display: flex;
    justify-content: space-around;
    background: var(--primary);
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    color: var(--white);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.9rem;
}

/* Section */
.section {
    margin: 40px 0;
}

.section h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Two Columns */
.two-columns {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.two-columns > div {
    flex: 1;
}

.two-columns img {
    width: 100%;
    border-radius: 10px;
}

/* Lists */
.simple-list {
    list-style: none;
    padding: 0;
}

.simple-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--background-alt);
}

.simple-list li:before {
    content: "♥ ";
    color: var(--accent);
}

/* Nested List */
.nested-list {
    list-style: none;
    padding: 0;
    counter-reset: number;
}

.nested-list > li {
    padding: 15px;
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    position: relative;
    padding-left: 50px;
}

.nested-list > li::before {
    counter-increment: number;
    content: counter(number);
    position: absolute;
    left: 10px;
    top: 15px;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nested-list ul {
    margin-top: 10px;
    margin-left: 20px;
}

.nested-list ul li::before {
    content: "→ ";
    color: var(--secondary);
}

/* Table */
.table-container {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

caption {
    background: var(--background-alt);
    padding: 15px;
    text-align: left;
    font-weight: bold;
    color: var(--primary);
}

th {
    background: var(--primary);
    color: var(--white);
    padding: 12px;
    text-align: left;
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--background-alt);
}

tbody tr:hover {
    background: var(--background);
}

/* Story Cards */
.featured-story {
    display: flex;
    gap: 30px;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.story-image {
    flex: 1;
    min-width: 300px;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content {
    flex: 1.5;
    padding: 30px;
}

.story-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.story-tag.featured {
    background: var(--secondary);
    color: var(--text);
}

.story-content h2 {
    color: var(--primary);
    margin-bottom: 15px;
    text-align: left;
}

.story-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-style: italic;
}

.story-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.story-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.story-card-image {
    position: relative;
    height: 180px;
}

.story-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-card-image .story-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    font-size: 0.75rem;
    padding: 4px 12px;
}

.story-card-content {
    padding: 20px;
}

.story-card-content h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.story-card-content .story-meta {
    margin-bottom: 12px;
}

.story-card-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.share-story-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1e4035 100%);
    color: var(--white);
    text-align: center;
    border-radius: 10px;
    padding: 50px 30px;
    margin-top: 40px;
}

.share-story-section h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.share-story-section p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.share-story-section .cta-button {
    background: var(--secondary);
    color: var(--text);
}

.share-story-section .cta-button:hover {
    background: var(--white);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 15px;
}

.gallery-caption h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.gallery-caption p {
    font-size: 0.9rem;
    margin: 0;
}

/* Form */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--background-alt);
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* Contact Info */
.contact-grid {
    display: flex;
    gap: 30px;
}

.contact-info {
    flex: 1;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 30px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.footer-links h4 {
    color: var(--secondary);
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    max-width: 1000px;
    margin: 20px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    font-size: 0.9rem;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 10px;
}

.skip-link:focus {
    top: 0;
}

/* Video */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin: 20px 0;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        flex-direction: column;
    }
    
    .features {
        flex-direction: column;
    }
    
    .two-columns {
        flex-direction: column;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        flex-direction: column;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .featured-story {
        flex-direction: column;
    }
    
    .story-image {
        min-width: 100%;
        height: 250px;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
    }
}
