:root {
    --primary-color: #003d82;
    --secondary-color: #5c96c9;
    --accent-color: #c8102e;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f5f7fa;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    max-width: 200px;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Intro Section */
.intro {
    padding: 3rem 2rem;
    background-color: var(--white);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Features Section */
.features {
    padding: 3rem 2rem;
    background-color: var(--bg-light);
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow);
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.feature-card li {
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--accent-color) 0%, #a00d26 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--white);
    color: var(--accent-color);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Content Sections */
.content-section {
    padding: 3rem 2rem;
}

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

.content-block {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow);
}

.content-block.full-width {
    grid-column: 1 / -1;
}

.content-block h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.content-block h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.content-block ul {
    margin-left: 1.5rem;
}

.content-block li {
    margin-bottom: 0.5rem;
}

/* Values List */
.values-list {
    list-style: none;
    margin-left: 0;
}

.values-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-light);
}

.values-list li:last-child {
    border-bottom: none;
}

/* Offerings Grid */
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.offering-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.offering-item:hover {
    transform: translateY(-5px);
}

.offering-item h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Volunteer Roles */
.volunteer-roles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Gallery */
.gallery-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background-color: var(--bg-light);
    border: 2px solid transparent;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--shadow-lg);
}

.gallery-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0e4ea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    font-weight: 500;
}

.gallery-note {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.gallery-note code {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

/* Messages */
.messages-grid {
    display: grid;
    gap: 1.5rem;
}

.message-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.message-card.highlighted {
    border-left-color: var(--accent-color);
    background: linear-gradient(to right, #fff5f5 0%, var(--white) 100%);
}

.message-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.message-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.messages-note {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.info-block {
    margin-bottom: 2rem;
}

.info-block h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.social-links-contact {
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--secondary-color);
}

/* Contact Form */
.contact-form-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Map Section */
.map-section {
    margin-top: 3rem;
}

.map-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.map-placeholder {
    background: var(--bg-light);
    padding: 4rem 2rem;
    border-radius: 8px;
    text-align: center;
    border: 2px dashed #ddd;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.social-links a {
    color: var(--white);
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.7;
}

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

/* Hero Motto */
.hero-motto {
    font-style: italic;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

/* Recruitment Banner */
.recruitment-banner {
    background: linear-gradient(135deg, var(--accent-color) 0%, #a00d26 100%);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.recruitment-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.recruitment-banner p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Operation Wall Guard */
.op-wall-guard {
    background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
    color: var(--white);
    padding: 2.5rem;
    text-align: center;
    border-top: 4px solid #d4af37;
    border-bottom: 4px solid #d4af37;
}

.op-wall-guard h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.op-wall-guard .subtitle {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.op-wall-guard .desc {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.op-wall-guard-inner {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.op-wall-guard-inner > p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.op-wall-guard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.op-wall-guard-stat {
    background: rgba(212, 175, 55, 0.2);
    padding: 1rem;
    border-radius: 8px;
}

.op-wall-guard-stat .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.op-wall-guard-stat .label {
    font-size: 0.9rem;
    font-weight: 600;
}

.op-wall-guard-cta {
    font-size: 0.95rem;
    margin-top: 1rem;
    color: #d4af37;
    font-weight: 600;
}

/* Feature Card Grid */
.feature-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.feature-card-grid img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Gallery Images */
.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Map */
.map-iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 8px;
}

/* CTA section button spacing */
.cta .btn-secondary {
    margin-left: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .offerings-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .feature-card-grid {
        grid-template-columns: 1fr;
    }

    .cta .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
        width: fit-content;
        margin-inline: auto;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* History Page Styles */
.history-timeline {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: center;
}

.history-timeline h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.timeline-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.timeline-link {
    background: var(--white);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow);
}

.timeline-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-lg);
    background: var(--bg-light);
}

.history-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 15px var(--shadow);
}

.history-section.bg-light {
    background: var(--bg-light);
}

.history-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--secondary-color);
}

.year-badge {
    background: linear-gradient(135deg, var(--accent-color), #e63946);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(200, 16, 46, 0.3);
}

.history-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 0;
}

.history-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.history-content p {
    margin-bottom: 1.25rem;
}

.history-content h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.4rem;
}

.history-content h4 {
    color: var(--text-dark);
    margin: 1rem 0 0.5rem 0;
}

.info-box {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.info-box h3,
.info-box h4 {
    color: var(--primary-color);
    margin-top: 0;
}

.highlight-box {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-left: 4px solid #ff9800;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.award-highlight {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    border: 3px solid #9c27b0;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(156, 39, 176, 0.2);
}

.award-highlight h3 {
    color: #9c27b0;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.achievements-list {
    list-style: none;
    padding: 0;
}

.achievements-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.achievements-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.anniversary-section {
    margin: 3rem 0;
    padding: 0;
}

.anniversary-banner {
    background: linear-gradient(135deg, var(--accent-color), #dc004e);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(200, 16, 46, 0.3);
}

.anniversary-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.anniversary-years {
    font-size: 3rem;
    font-weight: 800;
    margin: 1rem 0;
    letter-spacing: 3px;
}

.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-light);
    border-radius: 10px;
    margin: 3rem 0;
}

.cta-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .timeline-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .timeline-link {
        width: 100%;
    }
    
    .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .year-badge {
        align-self: flex-start;
    }
    
    .history-header h2 {
        font-size: 1.5rem;
    }
    
    .anniversary-banner h2 {
        font-size: 1.8rem;
    }
    
    .anniversary-years {
        font-size: 2rem;
    }
}
