﻿/* Custom Styles for Alia The Better Movement Portal */

:root {
    --black: #000;
    --white: #fff;
    --green: #1ed699;
    --darker-green: #06b37a;
    --dark-green: #485d5b;
    --dark-green-alt: #526866;
    --blue: #2bbfe2;
    --darker-blue: #0894b4;
    --dark-blue: #435666;
    --dark-grey: #43454d;
    --background-color: var(--white);
    --text-color: var(--dark-green);
    --base-font-weight: 300;
    --base-font-size: 1rem;
    --base-line-height: 1.133;
    --base-letter-spacing: 0;
    --primary-font: "Roobert Tr wf", sans-serif;
    --secondary-font: "Punta Te wf", arial, serif;
    --side-padding: 1rem;
    --section-spacing: 3.3333333333333335rem;
    --border-radius: .75rem;
    --border-radius-large: 10rem;
    --ease-in-quad: cubic-bezier(.55, .085, .68, .53);
    --ease-in-cubic: cubic-bezier(.55, .055, .675, .19);
    --ease-in-quart: cubic-bezier(.895, .03, .685, .22);
    --ease-in-quint: cubic-bezier(.755, .05, .855, .06);
    --ease-in-expo: cubic-bezier(.95, .05, .795, .035);
    --ease-in-circ: cubic-bezier(.6, .04, .98, .335);
    --ease-out-quad: cubic-bezier(.25, .46, .45, .94);
    --ease-out-cubic: cubic-bezier(.215, .61, .355, 1);
    --ease-out-quart: cubic-bezier(.165, .84, .44, 1);
    --ease-out-quint: cubic-bezier(.23, 1, .32, 1);
    --ease-out-expo: cubic-bezier(.19, 1, .22, 1);
    --ease-out-circ: cubic-bezier(.075, .82, .165, 1);
    --ease-in-out-quad: cubic-bezier(.455, .03, .515, .955);
    --ease-in-out-cubic: cubic-bezier(.645, .045, .355, 1);
    --ease-in-out-quart: cubic-bezier(.77, 0, .175, 1);
    --ease-in-out-quint: cubic-bezier(.86, 0, .07, 1);
    --ease-in-out-expo: cubic-bezier(1, 0, 0, 1);
    --ease-in-out-circ: cubic-bezier(.785, .135, .15, .86);
    --ease-smooth: cubic-bezier(.35, 0, 0, 1);
    --ost-init-delay: .1s;
    --ost-stagger-delay: .18s;
    --ost-transform: translateY(2rem);
    --ost-transform-char: translateX(.5em);
    --ost: 1s var(--ost-init-delay) var(--ease-smooth);
    --background-gradient-1: #f8fafc;
    --background-gradient-2: #edf2f7;
    --section-gradient-1: rgba(255, 255, 255, 0.95);
    --section-gradient-2: rgba(248, 250, 252, 0.95);
    --section-alt-gradient-1: #f1f5f9;
    --section-alt-gradient-2: #e2e8f0;
}

@font-face {
    font-family: 'Roobert Tr wf';
    src: url('../fonts/Roobert-Tr-Light.woff2') format('woff2');
    font-style: normal;
    font-weight: 300;
}

@font-face {
    font-family: 'Roobert Tr wf';
    src: url('../fonts/Roobert-Tr-Light-Italic.woff2') format('woff2');
    font-style: italic;
    font-weight: 300;
}

@font-face {
    font-family: 'Roobert Tr wf';
    src: url('../fonts/Roobert-Tr-Regular.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: 'Roobert Tr wf';
    src: url('../fonts/Roobert-Tr-Medium.woff2') format('woff2');
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: 'Punta Te wf';
    src: url('../fonts/Punta-Te-Light.woff2') format('woff2');
    font-style: normal;
    font-weight: 300;
}

@font-face {
    font-family: 'Punta Te wf';
    src: url('../fonts/Punta-Te-Light-Italic.woff2') format('woff2');
    font-style: italic;
    font-weight: 300;
}

@font-face {
    font-family: 'Punta Te wf';
    src: url('../fonts/Punta-Te-Regular.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
}

@media (min-width: 1024px) {
    html {
        font-size: 18px;
    }
}

body {
    background-color: var(--background-color);
    font-weight: var(--base-font-weight);
    font-size: var(--base-font-size);
    line-height: var(--base-line-height);
    letter-spacing: var(--base-letter-spacing);
    font-family: var(--primary-font);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, var(--background-gradient-1) 0%, var(--background-gradient-2) 100%);
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25px 25px, rgba(0, 0, 0, 0.2) 2%, transparent 2.5%),
        radial-gradient(circle at 75px 75px, rgba(0, 0, 0, 0.2) 2%, transparent 2.5%);
    background-size: 100px 100px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem var(--side-padding);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    transition: transform .6s var(--ease-out-expo);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--secondary-font);
    font-size: 2rem;
    font-weight: 400;
    color: var(--dark-green);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    transition: transform 0.3s var(--ease-out-quad);
}

.nav-logo-movement {
    font-size: 1.5rem;
    color: var(--green);
    font-family: var(--primary-font);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.2rem;
    width: 100%;
    text-align: center;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        /* Hidden off-screen to the right */
        width: 280px;
        /* Fixed width side menu */
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0.5rem;
        transition: right 0.4s var(--ease-out-quad);
        z-index: 1000;
        padding: 5rem 1.5rem 2rem;
        /* Extra top padding for toggle button area */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu .nav-link {
        font-size: 1.1rem;
        font-weight: 500;
        width: fit-content;
        padding: 0.5rem 1rem;
        justify-content: flex-start;
        border-radius: var(--border-radius);
    }

    .nav-menu .nav-link.nav-admin {
        padding: 0.2rem 0.75rem;
    }

    .nav-menu.active {
        right: 0;
    }
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--dark-green);
    transition: all 0.3s var(--ease-out-quad);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--dark-green);
    transition: all 0.3s var(--ease-out-quad);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

.nav-menu {
    display: flex;
    gap: 1rem;
}

.nav-link {
    font-size: .9rem;
    font-weight: 400;
    color: var(--dark-green);
    text-decoration: none;
    transition: color .3s var(--ease-out-quad);
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link:hover {
    color: var(--green);
}

.nav-admin {
    background-color: var(--green);
    color: white !important;
    padding: 0.2rem 0.75rem;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, transform 0.3s ease !important;
}

.nav-admin:hover {
    background-color: var(--dark-green) !important;
    transform: translateY(-2px);
    color: white !important;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    /* Added padding to account for fixed nav */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Increased opacity for better contrast */
    backdrop-filter: blur(2px);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
    /* Darker background for better readability */
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 2;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s var(--ease-out-quad);
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.slider-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.governor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    /* Stronger text shadow */
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    /* Stronger text shadow */
}

.hero .button {
    animation: fadeIn 0.8s var(--ease-out-quad) 0.6s both;
    width: fit-content;
}

/* Content with Image Layout */
.content-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.section-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s var(--ease-out-quad);
}

.image-wrapper:hover .section-image {
    transform: scale(1.05);
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.image-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 1;
}

.grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s var(--ease-out-quad);
}

.image-item:hover .grid-image {
    transform: scale(1.05);
}

/* Card Images */
.card-image {
    margin: -2rem -2rem 2rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.role-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s var(--ease-out-quad);
}

.card:hover .role-image {
    transform: scale(1.05);
}

/* Section Styles */
.section {
    padding: var(--section-spacing) var(--side-padding);
    background: linear-gradient(135deg, var(--section-gradient-1), var(--section-gradient-2));
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.section:nth-child(even) {
    background: linear-gradient(135deg, var(--section-alt-gradient-1), var(--section-alt-gradient-2));
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-family: var(--secondary-font);
    font-size: 2.5rem;
    line-height: 1.1;
    color: var(--dark-green);
    margin-bottom: 1rem;
    text-align: center;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--dark-green-alt);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

/* Card Styles */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    height: 100%;
    transition: transform .3s var(--ease-out-quad),
        box-shadow 0.3s var(--ease-out-quad),
        background-color 0.3s var(--ease-out-quad);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-family: var(--secondary-font);
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.card-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark-green-alt);
    margin-bottom: 1rem;
}

/* Grid Styles */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Button Styles */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 400;
    color: var(--white);
    background: var(--green);
    border-radius: var(--border-radius-large);
    text-decoration: none;
    text-align: center;
    margin: 0 auto;
    transition: transform 0.3s var(--ease-out-quad),
        box-shadow 0.3s var(--ease-out-quad),
        background-color 0.3s var(--ease-out-quad);
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Form Styles */
.form {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.form-group {
    position: relative;
}

.span-full {
    grid-column: 1 / -1;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--dark-green-alt);
    border-radius: var(--border-radius);
    color: var(--dark-green);
    transition: border-color .3s var(--ease-out-quad);
    min-height: 44px;
    font-size: 16px;
}

.form-input:focus {
    outline: none;
    border-color: var(--green);
}

.form-label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--dark-green-alt);
    transition: all .3s var(--ease-out-quad);
    pointer-events: none;
    background: var(--white);
    padding: 0 0.5rem;
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label,
select.form-input+.form-label,
/* Handle Select inputs */
select.form-input:valid+.form-label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.8rem;
}

textarea.form-input {
    min-height: 10rem;
    resize: vertical;
}

textarea.form-input+.form-label {
    top: 1rem;
    transform: none;
}

/* Footer Styles */
.footer {
    padding: 1rem var(--side-padding);
    /* Reduced padding */
    background: linear-gradient(135deg, var(--dark-green) 0%, rgba(72, 93, 91, 0.95) 100%);
    color: var(--white);
    position: relative;
    z-index: 1;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    margin: 0;
    text-align: left;
}

.footer-center {
    text-align: center;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scroll-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-quad);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scroll-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer {
        padding: 0.5rem var(--side-padding);
        /* Reduced padding */
    }

    .footer .container {
        flex-direction: row;
        /* Changed to row */
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.25rem;
        padding: 0;
    }

    .footer-contact {
        flex: 1;
        align-items: flex-start;
        text-align: left;
        background: none;
        padding: 0;
        order: 1;
        width: auto;
        min-width: 200px;
    }

    .footer-contact p {
        font-size: 0.75rem;
        margin: 0;
        line-height: 1.2;
    }

    .footer-center {
        order: 2;
        flex: 1;
        text-align: center;
        border: none;
        padding: 0;
        width: auto;
    }

    .footer-center p {
        font-size: 0.75rem;
        margin: 0;
        line-height: 1.2;
    }

    .footer-powered {
        font-size: 0.7rem;
        margin: 0;
    }

    .footer-right {
        order: 3;
        margin-left: auto;
    }

    .scroll-top {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* Additional Mobile Optimizations for Smaller Screens */
@media (max-width: 480px) {
    .footer {
        padding: 0.4rem var(--side-padding);
    }

    .footer .container {
        gap: 0.2rem;
    }

    .footer-contact p,
    .footer-center p {
        font-size: 0.7rem;
        margin: 0;
    }

    .footer-powered {
        font-size: 0.65rem;
        margin: 0;
    }

    .scroll-top {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* Responsive Styles */

/* Tablet and Mobile - Stack content-with-image layout */
@media (max-width: 1024px) {
    .content-with-image {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .form {
        grid-template-columns: 1fr;
    }

    .content-with-image {
        gap: 1.5rem;
    }
}

/* Restored Styles */

.achievement-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.achievement-icon {
    width: 4.5rem;
    height: 4.5rem;
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s var(--ease-out-quad);
    box-shadow: 0 4px 10px rgba(30, 214, 153, 0.2);
}

.achievement-card:hover .achievement-icon {
    transform: translateY(-3px) scale(1.05);
    background: var(--darker-green);
    box-shadow: 0 8px 16px rgba(30, 214, 153, 0.3);
}

.card-list {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.card-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark-green-alt);
}

.card-list li::before {
    content: "\f00c";
    /* FontAwesome check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--green);
    position: absolute;
    left: 0;
    top: 2px;
}

/* Join Slider */
.join-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.join-slide.active {
    opacity: 1;
}

.join-slider-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.join-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.join-slider-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* News Page Styles */
.no-news-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--dark-green-alt);
}

.no-news-message h3 {
    color: var(--dark-green);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.news-categories {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-button {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--dark-green-alt);
    border-radius: var(--border-radius-large);
    color: var(--dark-green);
    text-decoration: none;
    transition: all 0.3s var(--ease-out-quad);
    cursor: pointer;
    font-size: 0.95rem;
}

.category-button:hover,
.category-button.active {
    background: var(--green);
    color: white;
    border-color: var(--green);
    transform: translateY(-2px);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.news-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s var(--ease-out-quad);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.news-card.featured {
    grid-column: 1 / -1;
}

.news-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-card.featured .news-image {
    height: 350px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s var(--ease-out-quad);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
}

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    color: var(--green);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: block;
}

.news-title {
    font-family: var(--secondary-font);
    font-size: 1.5rem;
    line-height: 1.3;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.news-card.featured .news-title {
    font-size: 2rem;
}

.news-excerpt {
    color: var(--dark-green-alt);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.news-card .button {
    align-self: flex-start;
    margin: 0;
}

.newsletter-section {
    background: linear-gradient(135deg, var(--green) 0%, var(--darker-green) 100%);
}

.newsletter-section .section-title,
.newsletter-section .section-subtitle {
    color: white;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form .form-group {
    flex: 1;
    min-width: 250px;
}

.newsletter-form .button {
    align-self: flex-end;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card.featured {
        grid-column: 1;
    }

    .news-card.featured .news-image {
        height: 250px;
    }

    .category-button {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form .button {
        align-self: stretch;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    margin: 0;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Animation for content entering */
.modal.show .modal-content {
    animation: modalSlideIn 0.3s var(--ease-out-quad) forwards;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-close {
    color: var(--dark-grey);
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--black);
    text-decoration: none;
}

.modal-icon {
    font-size: 4rem;
    color: var(--green);
    margin-bottom: 1rem;
}

.modal-title {
    font-family: var(--secondary-font);
    font-size: 1.5rem;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.modal-message {
    color: var(--dark-green-alt);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}