:root {
    --brand-primary: #14532d;
    --brand-primary-dark: #0f4d2f;
    --brand-secondary: #f59e0b;
    --brand-accent: #0ea5e9;
    --surface: #f8fbff;
    --surface-alt: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --footer-bg: #111827;
}

body {
    background-color: var(--surface);
    color: var(--text-primary);
}

.animate-slide-up,
.animate-slide-down,
.animate-slide-left,
.animate-slide-right,
.animate-fade-in {
    opacity: 0;
    animation-fill-mode: forwards;
    animation-duration: 0.85s;
    animation-timing-function: ease-out;
}

.animate-slide-up {
    transform: translateY(30px);
    animation-name: slideUp;
}

.animate-slide-down {
    transform: translateY(-30px);
    animation-name: slideDown;
}

.animate-slide-left {
    transform: translateX(-30px);
    animation-name: slideLeft;
}

.animate-slide-right {
    transform: translateX(30px);
    animation-name: slideRight;
}

.animate-fade-in {
    transform: translateY(16px);
    animation-name: fadeInUp;
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .85s ease-out, transform .85s ease-out;
    will-change: opacity, transform;
}

.reveal.reveal-up {
    transform: translateY(32px);
}

.reveal.reveal-left {
    transform: translateX(-36px);
}

.reveal.reveal-right {
    transform: translateX(36px);
}

.reveal.reveal-fade {
    transform: translateY(16px);
}

.reveal.active {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.theme-hero {
    background-color: var(--brand-primary);
    background-image: linear-gradient(135deg, rgba(20,83,45,.95), rgba(15,77,47,.95));
}

.theme-section-surface {
    background-color: var(--surface);
}

.theme-card {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    box-shadow: 0 12px 34px rgba(15,23,42,.08);
    border-radius: 24px;
}

.theme-btn-primary {
    background-color: var(--brand-secondary);
    color: white;
    transition: filter .2s ease;
}

.theme-btn-primary:hover {
    filter: brightness(1.05);
}

.theme-btn-secondary {
    background-color: var(--brand-accent);
    color: white;
}

.theme-navbar {
    background-color: rgba(20,83,45,.75);
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.theme-navbar-mobile {
    background-color: rgba(20,83,45,.95);
}

.theme-footer {
    background-color: var(--footer-bg);
    color: white;
}

.theme-footer-links a {
    color: #a5f3fc;
}

.theme-footer-links a:hover {
    color: var(--brand-secondary);
}

.theme-auth-card {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(15,23,42,.06);
    color: var(--text-primary);
}

.auth-logo { display:block; margin:0 auto; }

.auth-input:focus { outline: none; box-shadow: 0 6px 18px rgba(15,23,42,.06); border-color: rgba(14,165,233,.25); }

.auth-hero-overlay { position: absolute; inset:0; background: linear-gradient(0deg, rgba(0,0,0,0.06), rgba(0,0,0,0.06)); pointer-events:none; }

.floating{
    animation: floating 5s ease-in-out infinite;
}

@keyframes floating{
    0%{
        transform:translateY(0px);
    }
    50%{
        transform:translateY(-20px);
    }
    100%{
        transform:translateY(0px);
    }
}

.bubble{
    position:absolute;
    bottom:-100px;
    width:20px;
    height:20px;
    background:rgba(255,255,255,.2);
    border-radius:50%;
    animation:bubble 15s linear infinite;
}

.bubble:nth-child(odd){
    width:30px;
    height:30px;
}

.bubble:nth-child(1){left:5%;}
.bubble:nth-child(2){left:15%;}
.bubble:nth-child(3){left:25%;}
.bubble:nth-child(4){left:35%;}
.bubble:nth-child(5){left:45%;}
.bubble:nth-child(6){left:55%;}
.bubble:nth-child(7){left:65%;}
.bubble:nth-child(8){left:75%;}
.bubble:nth-child(9){left:85%;}
.bubble:nth-child(10){left:95%;}

@keyframes bubble{
    0%{
        transform:translateY(0) scale(.5);
        opacity:0;
    }

    20%{
        opacity:1;
    }

    100%{
        transform:translateY(-120vh) scale(1.2);
        opacity:0;
    }
}

.fish-float{
    animation: fishFloat 6s ease-in-out infinite;
}

@keyframes fishFloat{
    0%,100%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-15px);
    }
}

.stats-bubble{
    position:absolute;
    width:20px;
    height:20px;
    border:2px solid rgba(255,255,255,.2);
    border-radius:50%;
    bottom:-50px;
    animation: statsBubble 18s linear infinite;
}

.stats-bubble:nth-child(1){left:5%;}
.stats-bubble:nth-child(2){left:15%;}
.stats-bubble:nth-child(3){left:25%;}
.stats-bubble:nth-child(4){left:35%;}
.stats-bubble:nth-child(5){left:45%;}
.stats-bubble:nth-child(6){left:55%;}
.stats-bubble:nth-child(7){left:65%;}
.stats-bubble:nth-child(8){left:75%;}
.stats-bubble:nth-child(9){left:85%;}
.stats-bubble:nth-child(10){left:95%;}

@keyframes statsBubble{
    0%{
        transform:translateY(0);
        opacity:0;
    }

    20%{
        opacity:1;
    }

    100%{
        transform:translateY(-120vh);
        opacity:0;
    }
}

.training-card{
    background:#ffffff;
    border-radius:24px;
    padding:30px 20px;
    text-align:center;
    transition:.4s;
    border:1px solid #E6EEF8;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
}

.training-card:hover{
    transform:translateY(-10px);
    box-shadow:0 25px 40px rgba(0,87,168,.15);
    border-color:#0EA5E9;
}

/* Ensure training cards are always visible and separated */
.training-card {
    display: block;
    background: #ffffff !important;
    border: 1px solid rgba(14,165,233,0.06) !important;
    box-shadow: 0 8px 24px rgba(2,6,23,0.06) !important;
    color: var(--text-primary);
    min-height: 180px;
}

.training-card .training-title { color: #0f172a; }
.training-card .training-desc { color: #475569; }


.training-icon{
    width:80px;
    height:80px;
    margin:auto;
    margin-bottom:20px;
    border-radius:50%;
    background:linear-gradient(
        135deg,
        #0EA5E9,
        #2563EB
    );
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    color:white;
}

.training-title{
    font-size:18px;
    font-weight:700;
    color:#1E293B;
    margin-bottom:10px;
}

.training-desc{
    font-size:14px;
    color:#64748B;
    line-height:1.7;
}

.news-small-card{
    display:flex;
    gap:16px;
    background:white;
    border-radius:20px;
    padding:15px;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
    transition:.4s;
}

.news-small-card:hover{
    transform:translateY(-5px);
    box-shadow:0 20px 40px rgba(0,87,168,.12);
}

.news-small-image{
    width:130px;
    height:130px;
    object-fit:cover;
    border-radius:15px;
    flex-shrink:0;
}

.news-category{
    display:inline-block;
    background:#E0F2FE;
    color:#0284C7;
    padding:4px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
}

.news-title{
    margin-top:10px;
    font-size:16px;
    font-weight:700;
    color:#1E293B;
    line-height:1.5;
}

.news-date{
    margin-top:10px;
    color:#64748B;
    font-size:14px;
}

.gallery-item{
    position:relative;
    overflow:hidden;
    border-radius:0;
    cursor:pointer;
    break-inside:avoid;
}

.gallery-item img{
    width:100%;
    display:block;
    border-radius:0;
    transition:.6s;
}

.gallery-item:hover img{
    transform:scale(1.08);
}

.gallery-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.85),
        rgba(0,0,0,.1)
    );
    opacity:0;
    transition:.4s;

    display:flex;
    align-items:flex-end;
    padding:25px;
}

.gallery-item:hover .gallery-overlay{
    opacity:1;
}

.gallery-overlay h3{
    color:white;
    font-size:18px;
    font-weight:700;
}

.org-card{
    background:white;
    padding:24px;
    border-radius:24px;
    text-align:center;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
}

.org-photo{
    width:120px;
    height:120px;
    border-radius:9999px;
    object-fit:cover;
    border:4px solid #06B6D4;
}

.org-name{
    margin-top:16px;
    font-size:18px;
    font-weight:700;
}

.org-position{
    margin-top:8px;
    color:#64748B;
}

.partner-track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.partner-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: .3s;
    opacity: .8;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.08);
}

@keyframes marquee {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

}

/* Article content images: center and responsive */
.prose img {
    display: block;
    margin: 1rem auto;
    width: 100%;
    max-width: 900px; /* desktop maximum width */
    height: auto;
}

/* Ensure figure-based images also centered */
.prose figure {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

/* Tweak max widths for smaller screens */
@media (max-width: 1024px) {
    .prose img { max-width: 800px; }
}

@media (max-width: 768px) {
    .prose img { max-width: 640px; }
}

@media (max-width: 480px) {
    .prose img { max-width: 420px; }
}

/* Blockquote styling for article content */
.prose blockquote {
    border-left: 4px solid var(--brand-accent);
    background: rgba(14,165,233,0.04);
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    color: #0f172a;
    font-style: italic;
    border-radius: 8px;
}

.prose blockquote p {
    margin: 0;
}

@media (max-width: 768px) {
    .prose blockquote { padding: .75rem 1rem; }
}

