/* News & Events Page Styles */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-dark);
    background: var(--gradient-body-light);
    overflow-x: hidden;
}

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

/* Navigation Styles */
.navbar {
    background: var(--gradient-navbar);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-logo .logo {
    height: 60px;
    width: auto;
}

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

.nav-link {
    color: var(--color-text-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent-cream);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--color-text-white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-hero);
}

.hero-content {
    text-align: center;
    color: var(--color-text-white);
    z-index: 10;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-primary-teal);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-accent);
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.event-card {
    background: var(--color-bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.event-card.featured {
    border: 2px solid var(--color-primary-teal-light);
}

.event-image {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-accent);
    color: var(--color-text-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.event-content {
    padding: 2rem;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary-teal-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.event-date i {
    font-size: 1.1rem;
}

.event-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-primary-teal);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.event-description {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.event-details {
    margin-bottom: 1.5rem;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-medium);
    font-size: 0.9rem;
}

.event-detail i {
    color: var(--color-primary-teal-light);
    width: 16px;
}

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

.event-link:hover {
    color: var(--color-primary-teal);
}

.event-link i {
    transition: transform 0.3s ease;
}

.event-link:hover i {
    transform: translateX(5px);
}

/* Memorial Section */
.memorial-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    margin: 4rem 0;
}

.memorial-card {
    background: var(--color-bg-white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    max-width: 600px;
    margin: 0 auto;
    border-left: 5px solid #dc3545;
}

.memorial-icon {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1.5rem;
}

.memorial-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: var(--color-primary-teal);
    margin-bottom: 1rem;
}

.memorial-card p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.memorial-link {
    color: #dc3545;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.memorial-link:hover {
    color: #b02a37;
}

/* Timeline Styles */
.events-timeline {
    position: relative;
    padding: 2rem 0;
}

.events-timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-vertical);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-marker {
    flex-shrink: 0;
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0.5rem;
}

.timeline-marker i {
    background: var(--gradient-accent);
    color: var(--color-text-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(41,175,160,0.3);
}

.timeline-content {
    background: var(--color-bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    flex: 1;
    margin-left: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 30px;
    border: 10px solid transparent;
    border-right-color: var(--color-bg-white);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.timeline-date {
    color: var(--color-primary-teal-light);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary-teal);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.timeline-content p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.timeline-link:hover {
    color: var(--color-primary-teal);
}

/* Footer */
.footer {
    background: var(--gradient-navbar);
    color: var(--color-text-white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-accent-cream);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--color-text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent-cream);
}

.contact-info p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-info i {
    margin-right: 0.5rem;
    color: var(--color-accent-cream);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--color-text-white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

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

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-accent);
    color: var(--color-text-white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(41,175,160,0.4);
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .events-timeline::before {
        left: 30px;
    }
    
    .timeline-marker {
        width: 60px;
    }
    
    .timeline-content {
        margin-left: 1rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background: var(--gradient-navbar-mobile);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero {
        height: 60vh;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .events-timeline::before {
        left: 20px;
    }
    
    .timeline-marker {
        width: 40px;
    }
    
    .timeline-marker i {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .timeline-content {
        margin-left: 0.5rem;
        padding: 1.5rem;
    }
    
    .timeline-content::before {
        left: -8px;
        border-width: 8px;
    }
    
    .memorial-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .event-content {
        padding: 1.5rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .memorial-card {
        padding: 1.5rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .hero {
        display: none;
    }
    
    .main-content {
        padding-top: 0;
    }
    
    .event-card,
    .timeline-content {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--color-border-light);
    }
}