/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Transport', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    /* fallback for old engines */
    background: #ffffff;
    
    /* modern browsers */
    background: linear-gradient(
      90deg,          /* left→right */
      #ffffff 0%,
      #ffffff 80%,    /* 80% remains pure white */
      #006E46 100%    /* Commons Green */
    );
    overflow-x: hidden;
}

/* Fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-delay-1 {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000000;
    padding: 0.75rem 2rem;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    width: auto;
}

.site-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.title-line {
    display: block;
}

/* Navigation styles */
.navigation {
    margin-top: 0;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
}

.nav-list {
    max-width: none;
    margin: 0;
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav-list a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-list a:hover {
    color: #cccccc;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

/* Section styles */
.section {
    max-width: 1400px;
    margin: 6rem auto 4rem;
    padding: 3rem 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
}

.section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.025em;
}

.section h2 {
    margin-bottom: 3rem;
    font-size: 2.25rem;
    color: #111827;
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Members page styles */
.members-section {
    margin-bottom: 5rem;
}

.members-section h2 {
    font-size: 2rem;
    color: #111827;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
    font-weight: 600;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.member-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0f0f0;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.member-card {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.member-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: #111827;
    font-weight: 600;
}

.member-card p {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.member-title {
    color: #006E46;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Partners grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.partner-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.partner-logo-placeholder {
    width: 150px;
    height: 150px;
    background-color: #ddd;
    margin: 0 auto 1rem;
    border-radius: 4px;
}

/* About section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 1rem;
}

/* Footer styles */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin-top: 6rem;
    border-top: 1px solid #e9ecef;
}

.footer a {
    color: #006E46;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #004d2d;
    text-decoration: underline;
}

/* Home page styles */
.home-content {
    text-align: center;
    max-width: 800px;
    margin: 4rem auto;
}

.home-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #000;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #333;
}

/* Secretariat styles */
.secretariat-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.contact-info h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #333;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
    .header {
        padding: 0.5rem 1rem;
    }

    .logo {
        height: 40px;
    }

    .nav-list {
        gap: 2rem;
    }

    .nav-list a {
        font-size: 1rem;
    }

    .home-hero {
        margin: 4.5rem auto 2rem auto;
        padding: 1.5rem;
    }
    
    .appg-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    .appg-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .flags-container {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .flag {
        height: 50px;
    }
    
    .carousel-container {
        height: 220px;
    }
    
    .carousel-slide img {
        height: 220px;
    }
    
    .section {
        margin: 5rem auto 2rem;
        padding: 2rem 1.5rem;
    }

    .section h1 {
        font-size: 2.5rem;
    }

    .section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .logo {
        height: 35px;
    }

    .nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .nav-list a {
        font-size: 0.9rem;
    }

    .section {
        margin: 8rem auto 2rem;
        padding: 1.5rem 1rem;
    }

    .section h1 {
        font-size: 2rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .home-content h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .members-section h2 {
        font-size: 1.5rem;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .appg-title {
        font-size: 1.8rem;
    }
    
    .appg-subtitle {
        font-size: 1rem;
    }
    
    .flags-container {
        gap: 1rem;
    }
    
    .flag {
        height: 40px;
    }

    .carousel-container {
        height: 180px;
        border-radius: 8px;
    }
    
    .carousel-slide img {
        height: 180px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

/* Home hero section */
.home-hero {
    max-width: 1400px;
    margin: 5rem auto 4rem auto;
    padding: 2rem;
    text-align: center;
}

.appg-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.appg-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 2.5rem;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.flags-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.flag {
    height: 60px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.flag:hover {
    transform: scale(1.05);
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    overflow: hidden;
    background: #000;
    height: 280px;
    border-radius: 12px;
}

.carousel-slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.carousel-slide:first-child {
    display: block;
}

.fade {
    animation-name: fade;
    animation-duration: 1s;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
} 