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

:root {
  --primary:        #2eaa58;   /* Xanh lá chính - Tươi tắn hơn */
  --primary-dark:   #1a7a3c;   /* Xanh lá đậm */
  --primary-light:  #f0f9f4;   /* Nền xanh cực nhạt */
  --primary-mid:    #249d4f;   /* Xanh lá trung bình */
  --secondary:      #f8f9fa;   /* Nền xám nhạt */
  --text-dark:      #1a1d20;   /* Chữ đen đậm */
  --text-muted:     #6c757d;   /* Chữ xám */
  --white:          #ffffff;
  --border:         #e9ecef;
  --footer-dark:    #0a2a16;   /* Xanh lá cực đậm cho footer */
  --shadow:         0 10px 30px rgba(46,170,88,0.1);
  --radius:         12px;
  --transition:     all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-dark);
}

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

a:hover {
    color: var(--primary-dark);
}

/* Components */
.btn-primary-custom {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 25px;
    border-radius: var(--radius);
    border: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    background-color: var(--secondary);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

/* Header & Navbar */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.navbar {
    padding: 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.navbar.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.navbar-brand img {
    height: 50px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    padding: 10px 15px !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--primary) !important;
}

/* Hero Slider */
.hero-slider .carousel-item {
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
}

.hero-slider .carousel-caption {
    text-align: left;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    left: 10%;
    right: 10%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 42, 22, 0.98);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-close {
    position: absolute;
    top: 40px;
    right: 40px;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.search-form-container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    text-align: center;
}

.search-form-container h2 {
    color: var(--white);
    margin-bottom: 30px;
    font-weight: 700;
}

.search-input-group {
    position: relative;
    border-bottom: 3px solid var(--primary);
}

.search-input-group input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2rem;
    padding: 15px 0;
    outline: none;
}

.search-input-group input::placeholder {
    color: rgba(255,255,255,0.3);
}

.search-input-group button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img, 
.lightbox-content video {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

/* About Image Tweak */
.about-img-container {
    height: 450px;
    overflow: hidden;
    border-radius: var(--radius);
}

.about-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.bg-light-custom {
    background-color: var(--primary-light);
}

/* Footer */
footer {
    background-color: var(--footer-dark);
    color: rgba(255,255,255,0.8);
    padding: 80px 0 30px;
}

footer h5 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.05);
    color: var(--white);
    border-radius: 50%;
    margin-right: 12px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    margin-top: 50px;
}

/* Modern Sidebar */
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.modern-list {
    list-style: none;
    padding: 0;
}

.modern-list li {
    margin-bottom: 12px;
}

.modern-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: var(--secondary);
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.modern-list a:hover {
    background-color: var(--primary);
    color: var(--white);
}

.modern-list a span.count {
    background-color: var(--white);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
}

.modern-list a:hover span.count {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* Photo & Video Gallery */
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.5);
    transition: var(--transition);
}

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

/* Links Section */
.link-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
    display: block;
    height: 100%;
}

.link-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.link-card img {
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: var(--transition);
}

.link-card:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Pagination Modernization */
.pagination {
    gap: 10px;
}

.page-item .page-link {
    border: none;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    color: var(--text-dark);
    font-weight: 600;
    background-color: var(--secondary);
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: var(--white) !important;
    box-shadow: 0 8px 15px rgba(46, 170, 88, 0.3);
    transform: translateY(-2px);
}

.page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(46, 170, 88, 0.2);
}

.page-item.disabled .page-link {
    background-color: #f1f1f1;
    color: #ccc;
    opacity: 0.6;
}

/* Override Bootstrap Colors */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.btn-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; }
.btn-outline-primary { color: var(--primary) !important; border-color: var(--primary) !important; }
.btn-outline-primary:hover { background-color: var(--primary) !important; color: var(--white) !important; }
.accordion-button:not(.collapsed) { background-color: var(--primary-light); color: var(--primary); }
.accordion-button:focus { border-color: var(--primary); box-shadow: 0 0 0 0.25rem rgba(46, 170, 88, 0.25); }

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Back to Top */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}

/* Decorative Background Patterns */
.bg-pattern-dots {
    background-image: radial-gradient(rgba(46, 139, 87, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.bg-pattern-grid {
    background-image: linear-gradient(rgba(46, 139, 87, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(46, 139, 87, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.bg-soft-green {
    background-color: #f8fdf9;
}

.floating-icon {
    position: absolute;
    color: var(--primary);
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.fi-1 { top: 10%; left: 5%; font-size: 4rem; animation: float 6s ease-in-out infinite; }
.fi-2 { top: 60%; right: 5%; font-size: 6rem; animation: float 8s ease-in-out infinite reverse; }
.fi-3 { bottom: 10%; left: 10%; font-size: 3rem; animation: float 7s ease-in-out infinite 1s; }
.fi-4 { top: 20%; right: 15%; font-size: 5rem; animation: float 9s ease-in-out infinite 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Section Spacing Tweak */
section {
    padding: 100px 0;
    position: relative;
}

/* Page Header & Breadcrumbs */
.page-header {
    padding: 100px 0;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 42, 22, 0.95) 0%, rgba(46, 170, 88, 0.8) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.breadcrumb-item {
    font-weight: 500;
    color: rgba(255,255,255,0.7) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: rgba(255,255,255,0.5);
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.7);
}

.breadcrumb-item a:hover {
    color: var(--white);
}

.breadcrumb-item.active {
    color: var(--white) !important;
}

.page-header-icons .floating-icon {
    opacity: 0.15;
    color: var(--white);
}

/* Responsive */
@media (max-width: 992px) {
    .page-header {
        padding: 60px 0;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .hero-slider .carousel-item {
        height: 60vh;
    }
    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: var(--radius);
        margin-top: 15px;
        box-shadow: var(--shadow);
    }
}

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }
    .page-header {
        padding: 40px 0;
    }
    .hero-section {
        height: 50vh;
        text-align: center;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
}
