/* Component Styles - Vibrant Modern Design 2026 */

/* Header - Hero Section */

header {
    text-align: center;
    margin-bottom: var(--space-10);
    padding: var(--space-8) var(--space-4);
    position: relative;
    z-index: 10;
}

header::before {
    content: '';
    position: absolute;
    inset: -100px;
    background: linear-gradient(135deg, rgba(26, 168, 90, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
}

.logo {
    width: var(--size-logo);
    height: var(--size-logo);
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(26, 168, 90, 0.25),
                0 0 0 2px rgba(26, 168, 90, 0.1);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
    animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 30px 80px rgba(26, 168, 90, 0.35),
                0 0 0 3px rgba(26, 168, 90, 0.2);
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-size: var(--font-size-4xl);
    background: linear-gradient(135deg, #1aa85a 0%, #00d4ff 50%, #ff2d7c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-3);
    font-weight: 800;
    letter-spacing: -1px;
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-lg);
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Main Content Grid */

.main-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-12);
    perspective: 1000px;
}

/* Cards - Colorful design */

.card {
    background: var(--color-bg-white);
    padding: var(--space-6);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    position: relative;
    overflow: hidden;
}

/* Card overlay accent bar */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color-1, #1aa85a), var(--card-color-2, #00d4ff));
}

.card:hover {
    transform: translateY(-12px) rotateX(2deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.card h2 {
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
    font-size: var(--font-size-2xl);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.card p {
    margin-bottom: var(--space-3);
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.card p:last-child {
    margin-bottom: 0;
}

/* Card 1 - Mission */
.card:nth-child(1) {
    --card-color-1: #1aa85a;
    --card-color-2: #2dd885;
    animation-delay: 0s;
}

.card:nth-child(1) .icon {
    background: linear-gradient(135deg, #1aa85a 0%, #2dd885 100%);
}

/* Card 2 - Activities */
.card:nth-child(2) {
    --card-color-1: #0088ff;
    --card-color-2: #00d4ff;
    animation-delay: 0.1s;
}

.card:nth-child(2) .icon {
    background: linear-gradient(135deg, #0088ff 0%, #00d4ff 100%);
}

/* Card 3 - News */
.card:nth-child(3) {
    --card-color-1: #ff2d7c;
    --card-color-2: #ff6d1a;
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    grid-column: 1 / -1;
}

.card:nth-child(3) .icon {
    background: linear-gradient(135deg, #ff2d7c 0%, #ff6d1a 100%);
}

/* News Card specific */
.news-card {
    background: linear-gradient(135deg, rgba(255, 45, 124, 0.08) 0%, rgba(255, 109, 26, 0.08) 100%);
    border: 1px solid rgba(255, 109, 26, 0.2);
}

.news-card h2 {
    color: #ff2d7c;
}

.news-card p {
    color: var(--color-text-primary);
}

/* Icon */

.icon {
    width: var(--size-icon);
    height: var(--size-icon);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-base);
}

.icon[aria-hidden="true"] {
    margin: 0 0 var(--space-2) 0;
}

.card:hover .icon {
    transform: scale(1.15) rotate(-10deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Event Highlight - CRITICAL RESPONSIVE */

.event-highlight {
    background: transparent;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin: var(--space-4) 0;
    border-left: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: flex-start;
}

@media (min-width: 768px) {
    .event-highlight {
        flex-direction: row;
        gap: var(--space-6);
    }
}

.event-image {
    flex-shrink: 0;
    width: 100%;
}

@media (min-width: 768px) {
    .event-image {
        width: auto;
    }
}

.event-highlight img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 15px 50px rgba(255, 109, 26, 0.3);
    display: block;
    border: 3px solid rgba(255, 109, 26, 0.2);
}

.event-highlight a img:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 25px 70px rgba(255, 109, 26, 0.4);
    border-color: rgba(255, 109, 26, 0.4);
}

.event-text {
    flex: 1;
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 109, 26, 0.15);
    backdrop-filter: blur(10px);
}

.event-text p {
    margin-bottom: var(--space-2);
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
}

.event-text p:first-child {
    font-weight: var(--font-weight-bold);
    color: white;
    font-size: var(--font-size-lg);
}

.event-text p strong {
    color: #ff6d1a;
}

/* Contact Section */

.contact-section {
    text-align: center;
    background: linear-gradient(135deg, rgba(26, 168, 90, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    padding: var(--space-8);
    border-radius: 25px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(26, 168, 90, 0.3);
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(26, 168, 90, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-section h2 {
    color: #1aa85a;
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1;
}

.contact-section p {
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
}

.email-link {
    color: #ff2d7c;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    border-radius: 12px;
    background: linear-gradient(135deg, #ff2d7c 0%, #ff6d1a 100%);
    color: white;
    transition: all var(--transition-base);
    box-shadow: 0 8px 20px rgba(255, 45, 124, 0.3);
}

.email-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 45, 124, 0.4);
}

.email-link:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Footer */

.footer {
    text-align: center;
    margin-top: var(--space-12);
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    font-size: var(--font-size-sm);
    padding: var(--space-6) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */

@media (max-width: 768px) {
    h1 {
        font-size: var(--font-size-3xl);
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        margin-bottom: var(--space-6);
    }

    .card {
        padding: var(--space-4);
    }

    .contact-section {
        padding: var(--space-6);
    }

    header {
        padding: var(--space-4) var(--space-2);
        margin-bottom: var(--space-6);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: var(--font-size-2xl);
    }

    .subtitle {
        font-size: var(--font-size-base);
    }

    .icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .event-highlight img {
        max-width: 100%;
    }

    .event-text {
        padding: var(--space-3);
    }

    .contact-section {
        padding: var(--space-4);
    }
}

/* Sticky Header - Scrolled state */

header.header--scrolled {
    background: linear-gradient(135deg, rgba(15, 32, 39, 0.95) 0%, rgba(32, 58, 67, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: var(--space-3) 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(26, 168, 90, 0.2);
}

header.header--scrolled h1 {
    font-size: var(--font-size-2xl);
}

header.header--scrolled .subtitle {
    opacity: 0;
    visibility: hidden;
}

header.header--scrolled .logo {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}
