/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Body */
body {
    /* Background image */
    background-image: url('/assets/images/background.jpg'); /* replace with your image path */
    background-size: cover;          /* cover entire viewport */
    background-position: center;     /* center the image */
    background-repeat: no-repeat;    /* don’t repeat */
    background-attachment: fixed;    /* optional: makes it fixed while scrolling */

    /* Fallback color */
    background-color: #ffffff57;

    color: #333;
    line-height: 1.6;
}

/* Top Banner using CSS Grid instead of flex */
.top-banner {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto; /* logo | dropdown | menu toggle */
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 10px 16px;
    box-sizing: border-box;
      background: #ffffff;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;

    flex-wrap: nowrap; /* Prevent items from wrapping */
}

/* Logo */
.top-banner .logo img {
    height: 50px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Language selector container */
.top-banner .language-selector {
    justify-self: center;        /* center in the middle column */
    max-width: 120px;            /* limit max width */
}

/* Language select box */
.top-banner .language-selector select {
    width: 100%;
    padding: 6px 10px;           /* bigger clickable area */
    font-size: 0.9em;            /* slightly larger text */
    border-radius: 12px;         /* rounded corners */
    border: none;
    cursor: pointer;
    background: #0aeeee73;         /* dark blue background */
    color: white;
    font-weight: bold;
    box-shadow: 0 0 10px #ff0000, /* red glow */
                0 0 20px #00ff00, /* green glow */
                0 0 30px #0000ff; /* blue glow */
    transition: all 0.3s ease;
}

/* Glow effect on hover */
.top-banner .language-selector select:hover {
    box-shadow: 0 0 15px #ff0000,
                0 0 25px #00ff00,
                0 0 35px #0000ff;
    transform: scale(1.05); /* subtle grow effect */
}

/* Menu toggle */
.top-banner .menu-toggle {
    justify-self: end; /* right-align toggle */
    font-size: 22px;
}

/* Mobile tweak for very small screens */
@media (max-width: 480px) {
    .top-banner {
        grid-template-columns: auto 1fr auto; /* keep same layout */
        gap: 5px;
    }

    .top-banner .logo img {
        height: 42px;
    }

      .top-banner .language-selector {
        max-width: 100px;
    }

    .top-banner .language-selector select {
        font-size: 0.8em;
        padding: 5px 8px;
        border-radius: 10px;
    }

    .top-banner .menu-toggle {
        font-size: 20px;
    }
}



/* Hero Section */
/* Hero Section - Top Welcome Image */
.hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero img.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    font-size: 2.2em;
    text-align: center;
    padding: 0 20px;
}

/* Description Section - Separate Colorful Grid */
.description {
    padding: 40px 20px;
    background: #f0f8ff; /* light blue background for contrast */
    border-radius: 12px;
    margin: 30px auto;
    max-width: 1200px;
}

.description p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #333;
}

/* Plans Title */
.description h2 {
    margin: 30px 0 20px;
    font-size: 2em;
    text-decoration: underline;
    color: #0a4c91;
}

/* Plans Grid */
.plans-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 0;
    margin-top: 20px;
}

.plans-list li {
    padding: 20px;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 1.1em;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Individual plan colors */
.plans-list li:nth-child(1) { background: #ef3340; } /* Red */
.plans-list li:nth-child(2) { background: #78be20; } /* Green */
.plans-list li:nth-child(3) { background: #00a1e5; } /* Blue */
.plans-list li:nth-child(4) { background: #ff8c00; } /* Orange */

.plans-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        height: 300px;
    }

    .hero h1 {
        font-size: 1.5em;
    }

    .plans-list {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}


/* Membership Boxes */
.membership-boxes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px 20px;
}

.membership-boxes .box {
    flex: 1 1 280px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.membership-boxes .box:hover {
    transform: translateY(-5px);
}

.membership-boxes .box h3 {
    font-size: 2em;
    margin-bottom: 10px;
}

.start-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #0a4c91;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
}

.start-btn:hover {
    background: #ff8c00;
}


/* Team Section */
.team-section {
    padding: 30px 20px;
    text-align: center;
}

.team-section h2 {
    margin: 30px 0 20px;
    color: #ffffff;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.team-member {
    background: #fff;
    padding: 20px;
    border-radius: 20px;           /* more rounded corners */
    width: 240px;                   /* bigger box */
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 3px solid transparent; /* base for glow */
     text-align: center;
    padding: 20px;
}

/* Hover effect */
.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Team member image */
.team-member img {
    width: 100%;
    border-radius: 50%;
}

/* Name and role */
.team-member .name {
    font-weight: bold;
    margin-top: 10px;
}

.team-member .role {
    font-style: italic;
    color: #555;
}

.team-description {
    margin-top: 40px;
    background: rgba(0, 0, 0, 0.5); /* black with 50% transparency */
    color: #ffffff !important;      /* white text */
    font-size: 1rem;
    line-height: 1.8;
    padding: 20px;                  /* recommended for readability */
    border-radius: 10px;            /* optional, looks nice */
}

.contact-buttons {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

button.btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: none;

    /* RESET browser button styles */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    font-size: 14px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;

    /* IMPORTANT */
    background-color: transparent;
}


/* WhatsApp */
button.btn.whatsapp-btn {
    background-color: #039fe79c !important;
}
button.btn.whatsapp-btn:hover {
    background-color: #1ebe5d !important;
}

/* Email */
button.btn.email-btn {
    background-color: #0423af9d !important;
}
button.btn.email-btn:hover {
    background-color: #ebd5109c !important;
}



/* Mobile safety */
@media (max-width: 768px) {
    .team-description {
        color: #ffffff !important;
        background: rgba(0, 0, 0, 0.5);
        font-size: 0.95rem;
    }
}

 
/* Alternating glow colors */
.team-grid .team-member:nth-child(3n+1) {
    border-color: #ff4d4d;          /* red glow */
    box-shadow: 0 0 15px rgba(255,77,77,0.7);
}

.team-grid .team-member:nth-child(3n+2) {
    border-color: #34dd0a;          /* green glow */
    box-shadow: 0 0 15px rgba(99, 245, 2, 0.59);
}

.team-grid .team-member:nth-child(3n+3) {
    border-color: #4d4dff;          /* blue glow */
    box-shadow: 0 0 15px rgba(77,77,255,0.7);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .team-member {
        width: 300px;               /* slightly smaller on tablet */
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .team-member {
        width: 260px;               /* smaller for small mobile */
    }
}


/* Responsive */
@media(max-width: 768px){
    .membership-boxes, .team-grid {
        flex-direction: column;
        align-items: center;
    }

    .top-banner {
        flex-direction: column;
        gap: 10px;
    }

    .top-banner .menu-toggle {
        display: block;
    }
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;
    background-color: #28a745;
    color: #fff;

    font-size: 18px;
    font-weight: bold;
    cursor: pointer;

    display: none; /* hidden by default */
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 9999;
}

#backToTop:hover {
    background-color: #218838;
    transform: translateY(-3px);
}

/* site-footer */
.site-footer {
    background: #1f1f1f;
    color: #ddd;
    padding: 30px 20px 15px;
    font-size: 14px;
}

.footer-main-link {
    text-align: center;
    margin-bottom: 20px;
}

.footer-main-link a {
    color: #48fffff1;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    cursor: pointer;
}

.footer-main-link a:hover {
    color: #04fc10a9;
    text-decoration-thickness: 3px;
}


.footer-contact p {
    margin: 5px 0;
     color: #064eb9;
  text-decoration: underline;
}

.footer-contact a {
    color: #064eb9;
  text-decoration: underline;
}

.footer-contact a:hover {
    color: #28a745;
    text-decoration: underline;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

.footer-section h4 {
    margin-bottom: 10px;
    color: #fff;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 6px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: #28a745;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 12px;
}

.social {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}

.facebook { background: #1877f2; }
.whatsapp { background: #25d366; }
.youtube { background: #ff0000; }

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #333;
    padding-top: 10px;
    color: #aaa;
}


/* Mobile */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
}

/* Top bar */ 
.top-bar { 
    background: #111; 
    padding: 8px 10px; 
    position: flex;
     width: 100%;
}


/* Toggle icon */
.menu-toggle {
    font-size: 20px;
    color: #02b6b6;
    cursor: pointer;
    user-select: none;
}

/* Navigation (mobile default) */
.main-nav {
    position: absolute;
    top: 102%;
   left: 75px;
    width: 70%;

    background: #1b1b1ba9;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    border-top: 1px solid #2a2a2a;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;

    z-index: 999;
}

/* Active (mobile open) */
.main-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menu list */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.main-nav li {
    border-bottom: 1px solid #2f2f2f;
}

.main-nav li:last-child {
    border-bottom: none;
}

/* Links */
.main-nav a {
    display: block;
    padding: 16px 20px;
    text-align: center;

    color: #0eddd3;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.main-nav a:hover {
    background: #28a745;
}

/* ========================= */
/* DESKTOP MODE */
/* ========================= */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: none;
        box-shadow: none;
        border: none;
    }

    .main-nav ul {
        display: flex;
        gap: 20px;
        padding: 0;
    }

    .main-nav li {
        border: none;
    }

    .main-nav a { 
    color: #0eddd3;
    padding: 0;
    white-space: nowrap;   /* keeps text on one line */
}


    .main-nav a:hover {
        background: none;
        text-decoration: underline;
    }
}


/* About Hero */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.205), rgba(0, 0, 0, 0.26)),
                url("/assets/images/agri4.webp") center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 70px 20px;
}

.about-hero h1 {
    font-size: 34px;
    margin-bottom: 10px;
}

.about-hero p {
    font-size: 16px;
    opacity: 0.9;
}

/* About Section */
.about-section {
    padding: 50px 20px;
    background: #f4f6f8;
}

.about-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* Cards */
.about-card {
    height: 260px;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Background images */
.bg1 { background: url("/assets/images/youth.webp") center/cover no-repeat; }
.bg2 { background: url("/assets/images/agri2.webp") center/cover no-repeat; }
.bg3 { background: url("/assets/images/workers (22).jpeg") center/cover no-repeat; }
.bg4 { background: url("/assets/images/mmb.jpeg") center/cover no-repeat; }
.bg5 { background: url("/assets/images/agri3.webp") center/cover no-repeat; }

/* Overlay */
.about-card .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.about-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #28a745;
}

.about-card p {
    font-size: 14.5px;
    line-height: 1.6;
}
