/* Custom Color Palette & Typography Variables */
:root {
    --nuanhyi-primary: #007bff; /* A vibrant blue, often associated with trust and professionalism */
    --nuanhyi-secondary: #28a745; /* A fresh green, representing growth and nature (agribusiness) */
    --nuanhyi-accent: #ffc107; /* A warm yellow/gold for highlights (warning color in Bootstrap) */
    --nuanhyi-dark: #212529;
    --nuanhyi-light: #f8f9fa;
    --nuanhyi-text: #343a40;
    --card-border-radius: 15px;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--nuanhyi-text);
    line-height: 1.6;
    background-color: var(--nuanhyi-light);
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--nuanhyi-dark);
}

/* Preloader Styling */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--nuanhyi-light);
    border-top-color: var(--nuanhyi-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Navbar Styling */
.navbar {
    background-color: var(--nuanhyi-dark);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--nuanhyi-accent); /* Stand out logo */
    display: flex; /* Allow logo image and text to align */
    align-items: center;
}
.navbar-brand img {
    height: 40px; /* Adjust logo height as needed */
    margin-right: 10px; /* Space between logo and text */
}
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 1.5rem;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative; /* For the underline effect */
}
.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: white !important;
    transform: translateY(-2px);
}
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -5px;
    width: 70%;
    height: 3px;
    background-color: var(--nuanhyi-accent);
    border-radius: 2px;
}
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 992px) {
    .navbar-nav .nav-link {
        margin-right: 0;
        text-align: center;
        padding: 0.8rem 0;
    }
    .navbar-nav .nav-item:last-child .nav-link {
        margin-bottom: 1rem;
    }
}


/* Highlighting for search results */
mark {
    background-color: var(--nuanhyi-accent);
    padding: 0.1em 0.2em;
    border-radius: 3px;
}

/* Hero Section */
.hero-section {
    color: white;
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before { /* Overlay for better text readability on image */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Increased opacity for better text contrast */
    z-index: 0;
}
.hero-section > div { /* Ensure content is above the overlay */
    position: relative;
    z-index: 1;
}
.hero-section h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    color: white; /* Ensure headings are white */
}
.hero-section p.lead {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Hero Section - Homepage Specific */
.hero-section.hero-home {
    background-image: url('background 1.jpg'); /* REPLACE with your actual image path or URL */
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    /* Creates a parallax-like effect. Can cause performance issues on mobile.
       Consider removing or disabling on smaller screens if scrolling feels laggy. */
    background-attachment: fixed;
}

/* Hero Section - Other Pages */
.hero-section.hero-subpage {
    background: linear-gradient(135deg, var(--nuanhyi-primary), #0056b3);
}

.hero-section .btn {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.hero-section .btn-outline-light {
    border-width: 2px;
}
.hero-section .btn-warning { /* Use accent color for CTA */
    background-color: var(--nuanhyi-accent);
    border-color: var(--nuanhyi-accent);
    color: var(--nuanhyi-dark); /* Dark text on yellow button */
}
.hero-section .btn-warning:hover {
    background-color: #e0a800; /* Slightly darker yellow on hover */
    border-color: #e0a800;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 0;
    }
    .hero-section p.lead {
        font-size: 1.2rem;
    }
    .hero-section h1, .hero-section .display-4 {
        font-size: calc(1.425rem + 2.1vw); /* Responsive font size for smaller screens */
    }
    .hero-section.hero-home {
        background-attachment: scroll; /* Disable fixed background on mobile for performance */
    }
}

/* Impact Numbers Section */
.impact-numbers-section {
    padding: 4rem 0;
    background-color: var(--nuanhyi-light);
    border-bottom: 1px solid #dee2e6;
}
.impact-item {
    margin-bottom: 1rem;
}
.impact-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--nuanhyi-primary);
    line-height: 1;
}
.impact-label {
    font-size: 1.1rem;
    color: var(--nuanhyi-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0.8;
}

/* Section Headings */
.section-heading {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    text-align: center;
    color: var(--nuanhyi-primary);
    position: relative;
}
.section-heading::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--nuanhyi-secondary);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .section-heading {
        font-size: 2.5rem;
    }
}

/* Card Styling (Preview Sections) */
.card {
    border: none;
    border-radius: var(--card-border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* For rounded corners to apply to images if any */
}
.card:hover,
.card:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.card-body {
    padding: 2.5rem;
}
.card-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--nuanhyi-primary);
}
.card-text {
    font-size: 1.1rem;
    color: var(--nuanhyi-text);
    opacity: 0.9;
}
.card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}
.card ul li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
    color: var(--nuanhyi-dark);
}
.card ul li::before { /* Custom bullet point */
    content: "\f00c"; /* Font Awesome checkmark icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--nuanhyi-secondary);
    margin-right: 0.8rem;
}
.card .btn-outline-primary {
    color: var(--nuanhyi-primary);
    border-color: var(--nuanhyi-primary);
    border-radius: 50px;
    padding: 0.8rem 1.8rem;
    transition: all 0.3s ease;
}
.card .btn-outline-primary:hover,
.card .btn-outline-primary:focus {
    background-color: var(--nuanhyi-primary);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .card-body {
        padding: 2rem;
    }
    .card-title {
        font-size: 1.8rem;
    }
}

/* Why Choose Us / Values Section */
.values-section {
    background-color: white;
    padding: 6rem 0;
}
.value-item {
    text-align: center;
    padding: 2rem;
}
.value-item .icon {
    font-size: 3.5rem;
    color: var(--nuanhyi-secondary);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}
.value-item:hover .icon,
.value-item:focus-within .icon {
    color: var(--nuanhyi-primary);
}
.value-item h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--nuanhyi-dark);
}
.value-item p {
    color: var(--nuanhyi-text);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .values-section {
        padding: 4rem 0;
    }
    .value-item {
        margin-bottom: 2rem;
    }
}

/* Content Section with Image and Text */
.content-img-text {
    padding: 5rem 0;
    background-color: white;
}
.content-img-text .content-item {
    margin-bottom: 5rem;
}
.content-img-text .content-item:last-child {
    margin-bottom: 0;
}
.content-img-text h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--nuanhyi-primary);
    margin-bottom: 1rem;
}
.content-img-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Featured News Section */
.featured-news-section {
    padding: 5rem 0;
    background-color: var(--nuanhyi-light);
}
.featured-news-card {
    border: none;
    overflow: hidden;
}
.featured-news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 250px;
}

/* Call to Action Section */
.cta-section {
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-top: 5rem;
}
.cta-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}
.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}
.cta-section .btn {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.cta-section .btn-light {
    background-color: white;
    border-color: white;
    background-color: var(--nuanhyi-light);
    border-color: var(--nuanhyi-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.cta-section.bg-primary .btn-light {
    color: var(--nuanhyi-primary);
}
.cta-section.bg-secondary .btn-light {
    color: var(--nuanhyi-secondary); /* Use secondary color for text inside button */
}

@media (max-width: 768px) {
    .cta-section { padding: 3rem 0; }
    .cta-section h2 { font-size: 2.2rem; }
    .cta-section p { font-size: 1.1rem; }
}

/* Footer Styling */
.footer {
    background-color: var(--nuanhyi-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer h5 {
    color: var(--nuanhyi-accent);
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.footer hr {
    margin: 2rem 0; /* Reduced margin for the horizontal rule */
}
.footer p {
    color: rgba(255, 255, 255, 0.7);
}
.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer a:hover,
.footer a:focus {
    color: white;
}
.footer .social-icons a {
    font-size: 1.8rem; /* Larger social icons */
    margin: 0 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease, transform 0.2s ease;
}
.footer .social-icons a:hover,
.footer .social-icons a:focus {
    color: var(--nuanhyi-accent); /* Social icons change to accent on hover */
    transform: translateY(-3px);
}
.footer .col-md-4:last-child {
    text-align: right; /* Align social icons to the right on larger screens */
}
.footer .logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.footer .logo-container img {
    height: 50px;
    margin-right: 15px;
}
.footer .logo-container .brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--nuanhyi-accent);
    margin: 0;
}
.footer .text-center.mt-3 p {
    margin-bottom: 0; /* Remove default paragraph margin */
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer .col-md-4 {
        text-align: center !important;
        margin-bottom: 2rem;
        align-items: center;
    }
    .footer .col-md-4:last-child {
        margin-bottom: 0;
    }
    .footer .logo-container {
        justify-content: center; /* Center logo on small screens */
    }
}

/* Page Specific: About Us - Timeline */
.timeline-section {
    padding: 5rem 0;
    background-color: var(--nuanhyi-light);
}
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #e9ecef;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    right: -30px;
    background-color: var(--nuanhyi-secondary);
    color: white;
    border: 4px solid white;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.timeline-item:nth-child(even) .timeline-icon {
    left: -30px;
}
.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.timeline-content.right {
    text-align: left;
}
.timeline-content h3 {
    font-size: 1.8rem;
    color: var(--nuanhyi-primary);
}

/* Page Specific: About Us - Principles */
.principles-section {
    padding: 5rem 0;
    background-color: white;
}
.mission-statement {
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--nuanhyi-dark);
    max-width: 900px;
    margin: 0 auto;
}

/* Page Specific: Featured Service */
.featured-service-section {
    padding: 5rem 0;
    background-color: #e9ecef; /* A light grey to make it stand out */
}
.featured-service-section .featured-image {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: cover;
    height: 100%;
}
.featured-service-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--nuanhyi-primary);
    margin-bottom: 1.5rem;
}
.featured-service-section .badge {
    font-size: 1rem;
    padding: 0.5em 1em;
}

/* Page Specific: Services */
.services-grid {
    padding: 4rem 0;
    background-color: white;
}
.service-card {
    background-color: white;
}
.service-card .card-img-top {
    height: 200px; /* Consistent image height */
    object-fit: cover; /* Ensures images fill the space without distortion */
    transition: transform 0.3s ease; /* Add transition for smooth zoom */
}
.service-card:hover .card-img-top,
.service-card:focus-within .card-img-top {
    transform: scale(1.05); /* Zoom in slightly on hover */
}

.service-card .card-body {
    padding: 1.8rem;
    display: flex; /* For vertical alignment of title and button */
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom */
    align-items: center; /* Centers content horizontally */
    text-align: center;
    flex-grow: 1; /* Allows card body to grow to fill height */
}
.service-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--nuanhyi-dark);
}
.service-card .btn-outline-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.services-grid .row .col-md-6, .services-grid .row .col-lg-3 {
    display: flex;
    align-items: stretch;
}
.modal-content {
    border-radius: var(--card-border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.modal-header {
    background-color: var(--nuanhyi-primary);
    color: white;
    border-top-left-radius: 14px; /* Match content radius */
    border-top-right-radius: 14px;
    padding: 1.5rem;
    border-bottom: none;
}
.modal-header .modal-title {
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.8rem;
}
.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%); /* Makes it white */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.modal-header .btn-close:hover {
    opacity: 1;
}
.modal-body {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--nuanhyi-text);
}

@media (max-width: 992px) {
    .service-card .card-img-top {
        height: 180px;
    }
    .service-card .card-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .service-card .card-img-top {
        height: 150px;
    }
    .service-card .card-body {
        padding: 1.5rem;
    }
    .service-card .card-title {
        font-size: 1.2rem;
    }
    .service-card .btn-outline-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Page Specific: Team */
.team-section {
    padding: 4rem 0;
    background-color: white; /* Light background for the team section */
}
.team-card {
    background-color: white;
    padding: 1.5rem; /* Add some internal padding */
}
.team-card .team-img-container {
    width: 150px; /* Slightly larger image container */
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem auto; /* Center and add margin below */
    border: 4px solid var(--nuanhyi-secondary); /* Border around image */
    box-shadow: 0 0 0 5px rgba(40, 167, 69, 0.2); /* Subtle glow effect */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover .team-img-container {
    border-color: var(--nuanhyi-primary); /* Change border on hover */
    box-shadow: 0 0 0 5px rgba(0, 123, 255, 0.3); /* Change glow on hover */
}
.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Remove extra space below image */
}
.team-card .card-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--nuanhyi-dark);
}
.team-card .card-text.text-muted {
    font-size: 1rem;
    color: var(--nuanhyi-primary) !important; /* Make job title stand out */
    font-weight: 500;
    margin-bottom: 1rem;
}
.team-card .member-description {
    font-size: 0.95rem;
    color: var(--nuanhyi-text);
    opacity: 0.85;
    min-height: 60px; /* Ensure consistent card height if descriptions vary */
}
.team-social-links {
    margin-top: 1.5rem;
}
.team-social-links a {
    font-size: 1.5rem;
    color: var(--nuanhyi-text);
    margin: 0 0.7rem;
    transition: color 0.3s ease, transform 0.2s ease;
}
.team-social-links a:hover {
    color: var(--nuanhyi-primary);
    transform: translateY(-2px);
}

/* New Team Card Flip Effect */
.team-card-flip-container {
    background-color: transparent;
    width: 100%;
    height: 420px;
    perspective: 1000px;
}
.team-card-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
.team-card-flip-container:hover .team-card-flipper,
.team-card-flip-container:focus-within .team-card-flipper {
    transform: rotateY(180deg);
}
.team-card-front, .team-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--card-border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.team-card-front {
    background-color: white;
    display: flex;
    flex-direction: column;
}
.team-card-front .team-img-container {
    width: 100%;
    height: 280px;
}
.team-card-front .team-card-front-info {
    padding: 1.5rem;
}
.team-card-back {
    background: linear-gradient(135deg, var(--nuanhyi-primary), #0056b3);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}
.team-card-back h5 {
    color: white;
    font-size: 1.6rem;
}
.member-quote {
    font-style: italic;
    opacity: 0.9;
}

@media (max-width: 992px) {
    .team-card .team-img-container {
        width: 120px;
        height: 120px;
    }
    .team-card .card-title {
        font-size: 1.4rem;
    }
    .team-card .card-text.text-muted {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .team-card {
        padding: 1rem;
    }
    .team-card .team-img-container {
        width: 100px;
        height: 100px;
        border: 3px solid var(--nuanhyi-secondary);
    }
    .team-card .card-title { font-size: 1.2rem; }
    .team-card .card-text.text-muted { font-size: 0.85rem; }
    .team-card .member-description { font-size: 0.85rem; min-height: unset; }
    .team-social-links a { font-size: 1.2rem; margin: 0 0.5rem; }
}

/* Page Specific: Contact */
.contact-section {
    flex-grow: 1; /* Allows this section to grow and push footer down */
}
.contact-section .card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--nuanhyi-primary);
    margin-bottom: 1.5rem;
}
.form-control {
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
    border-color: #ced4da;
}
.form-control:focus {
    border-color: var(--nuanhyi-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}
.btn-success {
    background-color: var(--nuanhyi-secondary);
    border-color: var(--nuanhyi-secondary);
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-success:hover {
    background-color: #218838; /* Darker green on hover */
    border-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}
.contact-details .text-success {
    color: var(--nuanhyi-secondary) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-details .text-success:hover,
.contact-details .text-success:focus {
    color: var(--nuanhyi-primary) !important;
}
.contact-details iframe {
    border-radius: 10px;
}
.contact-path-card {
    background-color: white;
    padding: 2rem;    border-radius: var(--card-border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.contact-path-card:hover,
.contact-path-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.contact-path-card .icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--nuanhyi-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.contact-path-card h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.contact-link {
    font-weight: 600;
    color: var(--nuanhyi-secondary);
    text-decoration: none;
}
.contact-link:hover,
.contact-link:focus {
    color: var(--nuanhyi-primary);
}
.not-italic { font-style: normal; }
.map-section {
    width: 100%;
    height: 450px; /* Adjust height as needed */
}
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}
.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* Accessibility: Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none; /* Hidden by default, JS will manage visibility */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--nuanhyi-primary);
    color: white;
    text-align: center;
    font-size: 1.5rem;
    line-height: 50px;
    z-index: 1000;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.back-to-top.show {
    display: block;
    opacity: 1;
}

.back-to-top:hover,
.back-to-top:focus {
    background-color: var(--nuanhyi-secondary);
    color: white;
}

/* Video background for hero (homepage) */
.hero-section.hero-home::before {
    /* Disable default overlay when using dedicated overlay element */
    background: none;
}
.hero-video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: -1;           /* Keep video behind overlay and content */
    pointer-events: none;  /* Prevent blocking clicks on buttons/links */
}
.hero-overlay {
    background: rgba(0, 0, 0, 0.45); /* Darken video for text readability */
    z-index: 0;                        /* Below the content, above the video */
}