/* AI4Nature Premium CSS Theme */

:root {
    --primary-color: #0d3b2e;
    /* Deep forest green */
    --secondary-color: #0b2545;
    /* Ocean blue */
    --accent-color: #52a16d;
    /* Vibrant leaf green */
    --bg-color: #f4f9f4;
    /* Very light subtle green tint */
    --surface-color: #ffffff;
    --text-primary: #1a1a24;
    --text-secondary: #4a5568;

    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --transition-speed: 0.3s;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
}

/* Typography specifics */
p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Glass Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo img {
    height: 40px;
    border-radius: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hero section for Home */
.hero-banner {
    margin-top: 0;
    height: 80vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 59, 46, 0.8) 0%, rgba(11, 37, 69, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    color: white;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-details span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    backdrop-filter: blur(4px);
}

/* Page Header for subpages */
.page-header {
    margin-top: 0;
    height: 40vh;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-header-content {
    position: relative;
    z-index: 2;
    color: white;
}

.page-header-content h1 {
    color: white;
    font-size: 3rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 0;
}

/* Main Content Area */
.page-content {
    background-color: var(--bg-color);
    padding: 4rem 2rem;
    min-height: 50vh;
}

.wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface-color);
    padding: 4rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transform: translateY(-40px);
    position: relative;
    z-index: 10;
}

/* Markdown specific styling inside wrapper */
.wrapper h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(82, 161, 109, 0.2);
}

.wrapper h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

.wrapper ul,
.wrapper ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.wrapper li {
    margin-bottom: 0.5rem;
}

.wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.wrapper table th,
.wrapper table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

.wrapper table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.wrapper table tr:hover td {
    background-color: #f8fafc;
}

.wrapper>p>img {
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
}

/* Button Component */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(82, 161, 109, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 59, 70, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-nav {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-decoration: none;
    background-color: var(--accent-color);
    color: white !important;
    border: 2px solid var(--accent-color);
}

.btn-nav:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

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

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-info a {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive constraints */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* In a real app, we'd add a hamburger menu */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-details {
        flex-direction: column;
        gap: 1rem;
    }

    .wrapper {
        padding: 2rem;
        transform: translateY(-20px);
    }
}

/* Logo Grid Styling */
.logo-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 3rem 0;
}

.logo-grid img {
    height: 80px;
    max-width: 280px;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-speed);
    border-radius: 0;
}


.logo-grid img:hover {
    transform: scale(1.05);
}

.logo-grid img.logo-sbep {
    height: 80px;
    max-width: 250px;
}

.logo-grid img.logo-ocean {
    height: 140px;
}



@media (max-width: 768px) {
    .logo-grid {
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .logo-grid img {
        height: 40px;
    }
}
