/* ============================================
   Max Green Skills Development Organization
   Complete Website Styling – Rainbow Animated Theme
   ============================================ */


/* ============ GLOBAL SETTINGS ============ */

:root {
    --green-900: #0e4f2b;
    --green-700: #1f7a3a;
    --green-600: #2e8b57;
    --mint-100: #e9f7ef;
    --shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #15372a;
    background: linear-gradient(45deg, #ff6b6b, #f7d794, #55efc4, #74b9ff, #a29bfe, #fd79a8);
    background-size: 600% 600%;
    animation: rainbow 18s ease infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

@keyframes rainbow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* ============ HEADER / NAVBAR ============ */

.topbar {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .5);
}

.nav {
    max-width: 1200px;
    margin: auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, #34a853, #2e8b57, #1f7a3a, #34a853);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.brand-name {
    color: var(--green-900);
    font-weight: 800;
    letter-spacing: .2px;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.menu a {
    text-decoration: none;
    color: #0f1720;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    transition: .2s;
}

.menu a:hover {
    background: var(--mint-100);
    color: var(--green-700);
}

.menu .cta {
    background: var(--green-600);
    color: #fff;
}

.menu .cta:hover {
    filter: brightness(1.1);
}


/* ============ MAIN CONTAINER ============ */

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}


/* ============ HERO SECTION ============ */

.hero {
    background: rgba(255, 255, 255, .95);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 30px 24px;
    margin-bottom: 20px;
}

.hero h1 {
    margin: 0 0 10px;
    color: var(--green-900);
    font-size: 2rem;
}

.hero p {
    margin: 0;
    color: #315244;
    font-size: 1.05rem;
}

.actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid transparent;
    transition: .25s;
}

.btn.primary {
    background: var(--green-600);
    color: #fff;
}

.btn.ghost {
    background: #fff;
    border: 2px solid var(--green-600);
    color: var(--green-700);
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}


/* ============ GALLERY (200x200 SQUARES) ============ */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
    margin-top: 20px;
}

.box {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid rgba(46, 139, 87, .25);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .2);
    transition: transform .4s ease, box-shadow .4s ease;
}

.box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.box:hover {
    transform: scale(1.06);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .25);
}


/* ============ EVENTS PAGE ============ */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.event-card {
    background: rgba(255, 255, 255, .9);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
    transform: scale(1);
    transition: all .4s ease;
    animation: fadeInUp .8s ease both;
}

.event-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #2e8b57;
}

.event-info {
    padding: 15px;
    text-align: left;
}

.event-info h3 {
    color: #1f7a3a;
    margin-bottom: 8px;
}

.event-info p {
    font-size: 15px;
    color: #333;
    margin-bottom: 6px;
}

.event-info .date {
    font-size: 13px;
    color: #555;
    font-weight: 600;
}


/* ============ CURRICULUM PAGE ============ */

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 25px;
    animation: fadeInUp .8s ease both;
}

.subject-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    border-left: 6px solid #2e8b57;
}

.subject-card:hover {
    transform: translateY(-8px) scale(1.03);
    background: linear-gradient(135deg, #e0f8e9, #ffffff);
}

.subject-card h3 {
    color: #1f7a3a;
    margin-bottom: 10px;
    font-weight: 700;
}

.subject-card p {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

.subject-card .level {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0e4f2b;
    background: #c4f0d3;
    padding: 4px 10px;
    border-radius: 10px;
}


/* ============ TEAM PAGE ============ */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    justify-items: center;
    margin-top: 30px;
    animation: fadeInUp .8s ease both;
}

.team-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
    text-align: center;
    width: 230px;
    transition: all 0.4s ease;
    border-top: 5px solid #2e8b57;
}

.team-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
    transition: transform 0.4s ease;
}

.team-card:hover img {
    transform: scale(1.06);
}

.team-card h3 {
    color: #1f7a3a;
    margin: 6px 0;
    font-weight: 700;
}

.team-card p {
    color: #333;
    font-size: 14px;
    margin: 0;
}

.team-card:hover {
    transform: translateY(-6px) scale(1.04);
    background: linear-gradient(135deg, #e8fbe8, #ffffff);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .25);
}


/* ============ EDUCATION PAGE ============ */

.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 25px;
    animation: fadeInUp 0.8s ease both;
}

.edu-card {
    background: rgba(255, 255, 255, 0.93);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    text-align: center;
    overflow: hidden;
    border-top: 5px solid #2e8b57;
}

.edu-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 12px;
    transition: transform 0.4s ease;
}

.edu-card:hover img {
    transform: scale(1.05);
}

.edu-card h3 {
    color: #1f7a3a;
    margin-bottom: 8px;
    font-weight: 700;
}

.edu-card p {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

.edu-card .tag {
    display: inline-block;
    margin-top: 10px;
    background: #c5f5d4;
    color: #0e4f2b;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    padding: 4px 12px;
}

.edu-card:hover {
    transform: translateY(-8px) scale(1.03);
    background: linear-gradient(135deg, #e4f7e9, #ffffff);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}


/* ============ FOOTER ============ */

footer {
    width: 100%;
    margin-top: 40px;
    background: #0f1b14;
    color: #dff3e7;
    border-top: 1px solid #0b140e;
    text-align: center;
    padding: 25px 10px 10px;
}

footer .social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

footer a {
    color: #c8eddc;
    text-decoration: none;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}

footer a:hover {
    color: #74b9ff;
    text-decoration: underline;
}

.copy {
    border-top: 1px solid #122218;
    color: #a8ccb9;
    padding-top: 8px;
    font-size: 13px;
}


/* ============ ANIMATIONS ============ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        -webkit-transform: translateY(30px);
        -moz-transform: translateY(30px);
        -ms-transform: translateY(30px);
        -o-transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -o-transform: translateY(0);
    }
}


/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    .menu {
        flex-direction: column;
        align-items: center;
    }
    .container {
        padding: 14px;
    }
}


/* ===== Skill Development Page ===== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 25px;
    animation: fadeInUp 0.8s ease both;
}

.skill-card {
    background: rgba(255, 255, 255, 0.93);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    text-align: center;
    overflow: hidden;
    border-top: 5px solid #2e8b57;
}

.skill-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 12px;
    transition: transform 0.4s ease;
}

.skill-card:hover img {
    transform: scale(1.05);
}

.skill-card h3 {
    color: #1f7a3a;
    margin-bottom: 8px;
    font-weight: 700;
}

.skill-card p {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

.skill-card .tag {
    display: inline-block;
    margin-top: 10px;
    background: #c5f5d4;
    color: #0e4f2b;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    padding: 4px 12px;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.03);
    background: linear-gradient(135deg, #e4f7e9, #ffffff);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
    -webkit-transform: translateY(-8px) scale(1.03);
    -moz-transform: translateY(-8px) scale(1.03);
    -ms-transform: translateY(-8px) scale(1.03);
    -o-transform: translateY(-8px) scale(1.03);
}

.event.centered {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    margin: 30px auto;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    line-height: 1.8;
}

.event.centered h3,
.event.centered h4 {
    color: #222;
    margin-bottom: 15px;
}

.event.centered blockquote {
    font-style: italic;
    background: rgba(255, 255, 255, 0.7);
    border-left: 5px solid #ff00cc;
    margin: 15px auto;
    padding: 10px;
    border-radius: 6px;
}

.event.centered .ending {
    font-weight: bold;
    font-size: 18px;
    margin-top: 20px;
}

.event.centered .hashtags {
    font-size: 14px;
    color: #444;
    margin-top: 10px;
}


/* 🌈 Rainbow Animated Background */

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background: linear-gradient(270deg, #ff0066, #ffcc00, #33cc33, #00ccff, #9933ff);
    background-size: 1000% 1000%;
    animation: rainbow 12s ease infinite;
    color: #111;
}

@keyframes rainbow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* 🟢 Header Section */

header {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

header h1 {
    margin: 0;
    color: #222;
    font-weight: 700;
}

header p {
    margin: 8px 0 12px;
    color: #555;
    font-size: 16px;
}


/* 🟣 Navigation Bar */

nav {
    margin-top: 10px;
}

nav a {
    text-decoration: none;
    color: #111;
    padding: 10px 15px;
    background: #fff;
    margin: 4px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

nav a:hover {
    background: #ffcc00;
    color: #000;
    transform: scale(1.05);
}


/* 💬 Link Buttons */

.link-buttons {
    margin: 20px auto;
}

.link-buttons a {
    display: inline-block;
    margin: 5px;
    padding: 10px 18px;
    background: #fff;
    border-radius: 8px;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.link-buttons a:hover {
    background: #ff0066;
    color: #fff;
    transform: translateY(-3px);
}


/* 🖼️ Gallery Section */

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px auto;
}

.gallery img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery img:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
}


/* 📚 Centralized Event Section */

.event.centered {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    margin: 40px auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
    line-height: 1.8;
    font-size: 16px;
}

.event.centered h3 {
    color: #222;
    font-size: 24px;
    margin-bottom: 15px;
}

.event.centered h4 {
    color: #444;
    margin: 15px 0 10px;
}

.event.centered p,
.event.centered li {
    margin: 8px auto;
    color: #222;
}

.event.centered blockquote {
    font-style: italic;
    background: rgba(255, 255, 255, 0.85);
    border-left: 6px solid #ff00cc;
    margin: 20px auto;
    padding: 12px;
    border-radius: 6px;
    display: inline-block;
    text-align: left;
    max-width: 800px;
}

.event.centered ol,
.event.centered ul {
    list-style: none;
    padding: 0;
}

.event.centered li {
    margin: 5px 0;
}

.event.centered .ending {
    font-weight: bold;
    font-size: 18px;
    margin-top: 25px;
    color: #000;
}

.event.centered .hashtags {
    font-size: 14px;
    color: #555;
    margin-top: 12px;
    font-style: italic;
}


/* 🦶 Footer Section */

footer {
    background: #fff;
    padding: 20px;
    font-size: 14px;
    color: #111;
    margin-top: 40px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

footer p {
    margin: 0;
}


/* 📱 Responsive Layout */

@media (max-width: 768px) {
    header h1 {
        font-size: 22px;
    }
    nav a {
        display: inline-block;
        margin: 3px;
        padding: 8px 10px;
        font-size: 14px;
    }
    .gallery img {
        width: 150px;
        height: 150px;
    }
    .event.centered {
        padding: 15px;
        font-size: 14px;
    }
}