* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: url('AGRIC.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    min-height: 100vh;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 8px 20px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.navbar .logo {
    display: flex;
    align-items: center;
    color: #003366;
    font-size: 20px;
    gap: 10px;
}

.navbar .logo img.logo-img {
    height: 50px;
    width: auto;
}

.navbar ul.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.navbar ul.nav-links li a {
    text-decoration: none;
    color: #003366;
    font-weight: 500;
    font-size: 18px;
    position: relative;
}

.navbar ul.nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #003366;
    transition: 0.3s;
}

.navbar ul.nav-links li a:hover::after {
    width: 100%;
}

.navbar ul li a:hover {
    color: maroon;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #003366;
}

.search-container {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #003087;
    font-size: 16px;
    width: 200px;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #d32f2f;
    outline: none;
}

.search-button {
    background-color: #003087;
    border: none;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 20px;
    margin-left: 5px;
    transition: background-color 0.3s;
}

.search-button:hover,
.search-button:focus {
    background-color: #d32f2f;
    outline: none;
}

/* ===== PORTAL MENU ===== */
.portalbox {
    padding: 40px 20px 60px;
    display: flex;
    justify-content: center;
}

.portalmenu {
    width: 100%;
    max-width: 480px;
    background: #04223f;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.portalmenu li.active .dropdown .fa-chevron-down {
    transform: rotate(180deg);
}

.portalmenu li.active .dropdown {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.portalmenu li:last-child .dropdown {
    border-bottom: 0;
}

.dropdown {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 16px 20px;
    font-size: 17px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    position: relative;
    transition: background 0.3s;
    user-select: none;
}

.dropdown:hover {
    background: rgba(255,255,255,0.08);
}

.dropdown .fa-chevron-down {
    margin-left: auto;
    transition: transform 0.25s ease-in-out;
    font-size: 14px;
    opacity: 0.7;
}

/* ===== SUBMENU ===== */
.SubMenuItemS {
    display: none;
    background: #e8e8f8;
}

.portalmenu li.active .SubMenuItemS {
    display: block;
}

.SubMenuItemS li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.SubMenuItemS li:last-child {
    border-bottom: none;
}

.SubMenuItemS li a:first-child {
    flex: 1;
    text-decoration: none;
    color: #1a1a2e;
    font-weight: 500;
    font-size: 15px;
    padding: 12px 16px;
    cursor: default;
}

.download-btn {
    background-color: #003366;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
    flex-shrink: 0;
    height: 100%;
}

.download-btn:hover {
    background: maroon;
    color: #fff;
}

.lock-btn {
    background-color: #555;
    color: #aaa;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: not-allowed;
    flex-shrink: 0;
    border: none;
    position: relative;
}

.lock-btn:hover {
    background-color: #444;
}

.lock-btn:hover::after {
    content: "Not available yet";
    position: absolute;
    right: 110%;
    top: 50%;
    transform: translateY(-50%);
    background: #222;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: #25D366;
    color: white;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 9999;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ===== FOOTER ===== */
.footer {
    background-color: #001F3F;
    color: #fff;
    padding: 40px 20px 0 20px;
    border-top: 3px solid black;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
    display: list-item;
    padding: 0;
    border: none;
}

.footer-col ul li a,
.footer a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
    font-weight: normal;
    padding: 0;
}

.footer-col ul li a:hover,
.footer a:hover {
    text-decoration: underline;
}

.footer p {
    font-size: 14px;
    opacity: 0.9;
    margin: 5px 0;
}

.social-icons {
    display: flex;
    gap: 14px;
    margin-top: 10px;
}

.social-icons a {
    color: white;
    font-size: 22px;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.designer {
    margin-top: 15px;
    opacity: 0.85;
    font-size: 13px;
}

.footer-bottom {
    text-align: center;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.3);
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.85;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    /* Navbar */
    .navbar {
        background-color: #d32f2f;
        padding: 10px 16px;
    }

    .navbar .logo {
        display: none;
    }

    .menu-toggle {
        display: block;
        color: #fff;
    }

    .navbar ul.nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 58px;
        left: 0;
        width: 100%;
        background-color: #d32f2f;
        z-index: 999;
        border-top: 1px solid #b72b27;
    }

    .navbar ul.nav-links.active {
        display: flex;
    }

    .navbar ul.nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #b72b27;
        display: block;
        padding: 0;
    }

    .navbar ul.nav-links li:last-child {
        border-bottom: none;
    }

    .navbar ul.nav-links li a {
        display: block;
        padding: 14px 0;
        color: #fff;
        font-size: 17px;
    }

    .navbar ul.nav-links li a:hover {
        background-color: #b72b27;
        color: #fff;
    }

    .search-container {
        display: none;
    }

    /* Portal menu */
    .portalbox {
        padding: 24px 14px 50px;
    }

    .portalmenu {
        max-width: 100%;
        border-radius: 8px;
    }

    .dropdown {
        font-size: 15px;
        padding: 14px 14px 14px 16px;
    }

    .SubMenuItemS li a:first-child {
        font-size: 14px;
        padding: 11px 12px;
    }

    .download-btn {
        padding: 11px 14px;
        font-size: 14px;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 24px;
    }

    .footer-col {
        min-width: unset;
        width: 100%;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}