@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --primary-darkest: #01110a;
    --secondary: #52b788;
    --accent: #74c69d;
    --text: #1b4332;
    --text-light: #4A5D4E;
    --bg-light: #f7f9f7;
    --bg-white: #FFFFFF;
    --shadow: 0 10px 30px -5px rgba(27, 67, 50, 0.1), 0 4px 6px -2px rgba(27, 67, 50, 0.05);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Utilities */
.flex-row-mobile-stack {
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .flex-row-mobile-stack {
        flex-direction: column !important;
    }
    .mobile-w-full {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .mobile-hide {
        display: none !important;
    }
    .mobile-p-0 {
        padding: 0 !important;
    }
    .mobile-mt-20 {
        margin-top: 20px !important;
    }
    .grid-cols-mobile-1 {
        grid-template-columns: 1fr !important;
    }
    .grid-cols-mobile-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .logo-text-desktop {
        display: none !important;
    }
}

/* Tablet breakpoint — 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .flex-row-mobile-stack {
        flex-direction: column !important;
    }
    .mobile-w-full {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .mobile-mt-20 {
        margin-top: 20px !important;
    }
    /* Species grid: 4 cols → 2 cols on tablet */
    .grid-cols-mobile-1 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

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

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: var(--bg-light);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 60px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.nav-links a:hover {
    color: var(--secondary);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1000;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 8px 20px;
}

.dropdown-menu a {
    color: var(--text) !important;
    font-size: 1rem !important;
    display: block;
}

.dropdown-menu a:hover {
    color: var(--primary) !important;
    padding-left: 5px;
    background: transparent;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&q=80&w=2071');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.news-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Products/CSDL Section */
.products-section {
    background: var(--bg-white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.product-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.product-card span {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.2rem; }
}
