/* Fonts */
@font-face {
    font-family: "Couture";
    src: url("/assets/fonts/couture-bld.otf") format("opentype");
}

@font-face {
    font-family: "D-DIN";
    src: url("/assets/fonts/D-DIN.ttf") format("truetype");
}

@font-face {
    font-family: "D-DIN-Bold";
    src: url("/assets/fonts/D-DIN-Bold.ttf") format("truetype");
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "D-DIN", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-family: "D-DIN-Bold", sans-serif;
    font-size: 24px;
    line-height: 24px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo i {
    font-size: 28px;
}

.nav-menu ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-menu a.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    width: 100%;
}

.nav-menu.nav-dark a.active::after {
    background: #2d3e2d;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-image: url("assets/img/joel-jasmin-forestbird-xzPMUMDDsfk-unsplash.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.hero-section .container {
    display: flex;
    justify-content: flex-start;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.hero-content h1 {
    font-family: "D-DIN-Bold", sans-serif;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.app-buttons {
    display: flex;
    gap: 20px;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    height: 50px;
    transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    cursor: pointer;
    border: 1px solid transparent;
}
.app-btn:hover {
    background-color: rgba(255, 255, 255, 0.5); /* Light overlay effect */
}

.app-btn img {
    height: 100%;
    width: auto;
    transition: transform 0.2s ease;
}

.app-btn img {
    height: 100%;
    width: auto;
    transition: transform 0.2s ease;
}

/* About Section */
.about-section {
    background: #e8f2e7;
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    font-family: "D-DIN-Bold", sans-serif;
    font-size: 36px;
    margin-bottom: 20px;
    color: #49654a;
    letter-spacing: 1px;
}

.about-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #273f27;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: #3d4e3d;
    border-color: #3d4e3d;
    box-shadow: 0 2px 0 rgba(45, 62, 45, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-family: "D-DIN-Bold", sans-serif;
    font-size: 48px;
    line-height: 48px;
    color: #49654a;
}

.stat-item p {
    font-size: 14px;
    color: #666;
}

/* Feature Section */
.feature-section {
    background: #415e42;
    padding: 20px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-content {
    color: white;
}

.feature-content h2 {
    font-family: "D-DIN-Bold", sans-serif;
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.feature-content p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #4a6b4a;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    border: 1px solid transparent;
}

.btn-secondary:hover {
    background: #f0f0f0;
    border-color: #d9d9d9;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.016);
}

.feature-image {
    font-size: 0;
}

.feature-image img {
    width: 100%;
    height: auto;
}

/* Footer */
.footer {
    background: #b1daae;
    padding: 40px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 120px;
    padding-bottom: 24px;
}

.footer-col h4 {
    font-family: "D-DIN-Bold", sans-serif;
    font-size: 16px;
    color: #415e41;
    margin-bottom: 0px;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0;
}

.footer-col ul a {
    color: #4a6b4a;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.footer-col ul a:hover {
    color: #273f27;
}

/* Underline effect only for first 2 columns (About Us & Useful Links) */
.footer-col:nth-child(1) ul a,
.footer-col:nth-child(2) ul a {
    position: relative;
}

.footer-col:nth-child(1) ul a::after,
.footer-col:nth-child(2) ul a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #273f27;
    transition: width 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.footer-col:nth-child(1) ul a:hover::after,
.footer-col:nth-child(2) ul a:hover::after {
    width: 100%;
}

.footer-col p {
    font-size: 14px;
    color: #4a6b4a;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    color: #4a6b4a;
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    text-decoration: none;
}

.social-icons a::after {
    display: none;
}

.social-icons a:hover {
    background: #4a6b4a;
    color: white;
    box-shadow: 0 2px 4px rgba(74, 107, 74, 0.2);
}

/* Language Selector */
.language-selector {
    position: relative;
    margin-top: 15px;
}

.language-btn {
    background: none;
    border: none;
    color: #4a6b4a;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-btn:hover {
    color: #2c5f2d;
}

.language-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    list-style: none;
    padding: 5px 0;
    margin-bottom: 5px;
    min-width: 150px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 10;
}

.language-dropdown.active {
    display: block;
}

.language-dropdown li {
    margin: 0;
}

.language-dropdown a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    position: relative;
}

.language-dropdown a::after {
    display: none;
}

.language-dropdown a:hover {
    background: #f5f5f5;
}

.footer-bottom {
    background: #e8f2e7;
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #4a6b4a;
}

.certification-icons {
    display: flex;
    gap: 15px;
}

.certification-icons img {
    height: 48px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 40px;
    }

    .about-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid .feature-content {
        order: 1;
    }

    .feature-grid .feature-image {
        order: 2;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .app-buttons {
        flex-direction: column;
    }

    .about-content h2,
    .feature-content h2 {
        font-size: 28px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-item h3 {
        font-size: 36px;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .about-content h2,
    .feature-content h2 {
        font-size: 24px;
    }

    .stat-item h3 {
        font-size: 30px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.about-content,
.feature-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: #273f27;
    z-index: 200;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 80px 30px;
}

.mobile-menu ul li {
    margin-bottom: 30px;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 150;
}

.mobile-overlay.active {
    display: block;
}

/* Wood Database Page Styles */

/* Header Variations */
.header-solid {
    position: relative;
    background: #e8f2e7;
}

.logo-dark {
    color: #2d3e2d;
}

.nav-dark a {
    color: #2d3e2d;
}

.nav-dark a::after {
    background: #2d3e2d;
}

.mobile-menu-dark {
    color: #2d3e2d;
}

/* Database Hero */
.database-hero {
    background: #e8f2e7;
    padding: 40px 0;
}

.database-hero-content h1 {
    font-family: "D-DIN-Bold", sans-serif;
    font-size: 42px;
    color: #2d3e2d;
    /* margin-bottom: 12px; */
    line-height: 1.2;
}

.database-hero-content p {
    font-size: 16px;
    color: #4a6b4a;
    line-height: 1.2;
    margin-bottom: 32px;
}

/* Classes Section inside Hero */
.database-hero .classes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Classes Section - removed, now inside database-hero */

/* Scroll Indicator */
.scroll-indicator {
    text-align: center;
    color: #b0daad;
}

.scroll-indicator i {
    display: block;
    font-size: 24px;
    animation: bounce 2s infinite;
}

.scroll-indicator i:nth-child(2) {
    margin-top: -10px;
    opacity: 0.5;
    animation-delay: 0.2s;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Wood Carousel Section */
.wood-carousel-section {
    background: #e8f2e7;
    padding: 20px 0;
}

.carousel-title {
    font-family: "Couture", sans-serif;
    font-size: 42px;
    color: #2d3e2d;
    margin-bottom: 20px;
    text-align: left;
}

.wood-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 300px;
    height: 300px;
    /* aspect-ratio: 4/3; */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
}

.carousel-item.active {
    flex: 0 0 700px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-item.active img {
    width: 300px;
}

.carousel-item:not(.active):hover {
    transform: scale(1.02);
}

.carousel-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 40px 20px 12px;
}

.carousel-item-overlay h3 {
    color: white;
    font-family: "D-DIN-Bold", sans-serif;
    font-size: 20px;
    margin: 0;
    text-align: center;
}

/* Carousel Navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-btn i {
    font-size: 18px;
    color: #2d3e2d;
}

.carousel-prev {
    left: 5px;
}

.carousel-next {
    right: 5px;
}

/* Search Section */
.search-section {
    background: #e8f2e7;
    padding: 40px 0 0;
}

.search-wrapper {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 60px 15px 20px;
    border: 2px solid #6d846d;
    border-radius: 50px;
    font-size: 16px;
    font-family: "D-DIN", sans-serif;
    background: transparent;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4a6b4a;
    box-shadow: 0 0 0 2px rgba(109, 132, 109, 0.4);
}

.search-icon {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 45px;
    height: 45px;
    font-size: 24px;
    font-weight: 400;
    color: #6d846d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #4a6b4a;
}

.search-btn i {
    color: white;
    font-size: 18px;
}

/* Simple Footer */
.footer-simple {
    background: #e8f2e7;
    padding: 20px 0 30px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: #6e866f;
    font-size: 20px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-links a::after {
    display: none;
}

.social-links a:hover {
    color: #4a6b4a;
    transform: translateY(-3px);
}

/* Wood Database Responsive */
@media (max-width: 1024px) {
    .database-hero .classes-grid {
        grid-template-columns: 1fr;
    }

    /* .carousel-item {
      flex: 0 0 calc(50% - 10px);
    }

    .carousel-item.active {
      flex: 0 0 100%;
    }

    .carousel-item.active img {
      width: 40%;
    }

    .item-detail {
      width: 60%;
    } */
}

@media (max-width: 768px) {
    .database-hero-content h1 {
        font-size: 32px;
    }

    .carousel-title {
        font-size: 32px;
    }

    /* .carousel-item {
      flex: 0 0 100%;
    }

    .carousel-item.active {
      flex: 0 0 100%;
      flex-direction: column;
      aspect-ratio: auto;
      height: auto;
    }

    .carousel-item.active img {
      width: 100%;
      height: 250px;
    }

    .item-detail {
      position: relative;
      width: 100%;
      padding: 25px 20px;
    } */

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .item-detail .detail-content h3 {
        font-size: 18px;
    }

    .item-detail .detail-content p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .database-hero {
        padding: 100px 0 60px;
    }

    .database-hero-content h1 {
        font-size: 24px;
    }

    .database-hero-content p {
        font-size: 14px;
    }

    .carousel-title {
        font-size: 24px;
    }

    .class-card-overlay h3 {
        font-size: 18px;
    }
    .class-card-overlay h5 {
        font-size: 10px;
    }
}

/* Detail Panel */
.detail-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: #4a6b4a;
    color: white;
    padding: 60px 40px 40px;
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 200;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
}

.detail-panel.active {
    right: 0;
}

.detail-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.detail-close:hover {
    opacity: 0.7;
}

.detail-content h3 {
    font-family: "Couture", sans-serif;
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.detail-content p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.class-card {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.class-card:hover {
    transform: translateY(-5px);
}

.class-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.class-card:hover img {
    transform: scale(1.05);
}

.class-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 40px 20px 12px;
}

.class-card-overlay h3 {
    color: white;
    font-family: "D-DIN-Bold", sans-serif;
    font-size: 24px;
    margin: 0;
    text-align: center;
}

.class-card-overlay h5 {
    color: white;
    font-family: "D-DIN-Bold", sans-serif;
    font-size: 18px;
    margin: 0;
    text-align: center;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.btn-outline:hover {
    background: white;
    color: #4a6b4a;
}

/* Wood Detail Section */
.wood-detail {
    background: #4a6b4a;
    padding: 40px 35px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.wood-detail.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.wood-detail .detail-content h3 {
    font-family: "Couture", sans-serif;
    font-size: 24px;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
}

.wood-detail .detail-content p {
    font-size: 13px;
    line-height: 1.7;
    color: white;
    margin-bottom: 25px;
}

/* Item Detail inside carousel-item */
.item-detail {
    position: absolute;
    right: 0;
    top: 0;
    flex: 0 1 400px;
    max-width: 400px;
    height: 100%;
    background: #4a6b4a;
    padding: 35px 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-item.active .item-detail {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.item-detail .detail-content h3 {
    font-family: "Couture", sans-serif;
    font-size: 22px;
    color: white;
    margin-bottom: 12px;
    line-height: 1.2;
}

.item-detail .detail-content p {
    font-size: 12px;
    line-height: 1.7;
    color: white;
    margin-bottom: 20px;
}

/* Glossary Page Styles */

/* Glossary Hero Section */
.glossary-hero {
    position: relative;
    min-height: 60vh;
    background-image: url("/assets/img/update/r-g-VJ-CQ9WApes-unsplash.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.glossary-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.glossary-hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    max-width: 800px;
    padding-top: 80px;
}

.glossary-hero-content h1 {
    font-family: "D-DIN-Bold", sans-serif;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.glossary-hero-content p {
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Glossary Search */
.glossary-search-wrapper {
    max-width: 400px;
    position: relative;
}

.glossary-search-input {
    width: 100%;
    padding: 15px 60px 15px 20px;
    border: 1px solid white;
    border-radius: 50px;
    font-size: 16px;
    font-family: "D-DIN", sans-serif;
    background: transparent;
    color: white;
    transition: all 0.2s ease;
}

.glossary-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.glossary-search-input::placeholder {
    color: #f0f0f0;
}

.glossary-search-icon {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glossary-search-btn:hover {
    background: #3d5a3d;
    box-shadow: 0 2px 8px rgba(74, 107, 74, 0.3);
}

.glossary-search-btn i {
    color: white;
    font-size: 18px;
}

/* Glossary Scroll Section */
.glossary-scroll {
    background: #e8f2e7;
    padding: 20px 0;
}

.glossary-scroll .scroll-indicator {
    cursor: pointer;
}

/* Glossary Content Section */
.glossary-content-section {
    background: #e8f2e7;
    padding: 40px 0 80px;
}

/*.glossary-grid {*/
/*    display: grid;*/
/*    grid-template-columns: 1fr 1.5fr;*/
/*    gap: 60px;*/
/*    align-items: center;*/
/*}*/

.glossary-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.glossary-text h2 {
    font-family: "D-DIN-Bold", sans-serif;
    font-size: 36px;
    margin-bottom: 20px;
    color: #49654a;
    letter-spacing: 1px;
}

.glossary-text p {
    font-size: 15px;
    line-height: 1.2;
    color: #666;
}

/* Glossary Responsive Design */
@media (max-width: 1024px) {
    .glossary-hero-content h1 {
        font-size: 40px;
    }

    .glossary-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .glossary-hero {
        min-height: 70vh;
    }

    .glossary-hero-content {
        padding-top: 40px;
    }

    .glossary-hero-content h1 {
        font-size: 32px;
    }

    .glossary-hero-content p {
        font-size: 14px;
    }

    .glossary-search-wrapper {
        max-width: 100%;
    }

    .glossary-text h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .glossary-hero-content h1 {
        font-size: 24px;
    }

    .glossary-search-input {
        font-size: 14px;
        padding: 12px 50px 12px 15px;
    }

    .glossary-search-btn {
        width: 40px;
        height: 40px;
    }

    .glossary-text h2 {
        font-size: 24px;
    }

    .glossary-text p {
        font-size: 14px;
    }
}

/* Blogs Page Styles */

/* Blogs Hero Section */
.blogs-hero {
    position: relative;
    min-height: 60vh;
    background-image: url("/assets/img/update/harvey-abayasiri-OGnx12BmLfQ-unsplash.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.blogs-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.blogs-hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    max-width: 800px;
    padding-top: 60px;
}

.blogs-hero-content h1 {
    font-family: "D-DIN-Bold", sans-serif;
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.blogs-hero-content p {
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Blogs Search */
.blogs-search-wrapper {
    max-width: 400px;
    position: relative;
}

.blogs-search-input {
    width: 100%;
    padding: 15px 60px 15px 20px;
    border: 1px solid white;
    border-radius: 50px;
    font-size: 16px;
    font-family: "D-DIN", sans-serif;
    background: transparent;
    transition: all 0.2s ease;
}

.blogs-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.blogs-search-input::placeholder {
    color: #f0f0f0;
}

.blogs-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #f0f0f0;
    font-size: 20px;
    cursor: pointer;
}

/* Blogs Content Section */
.blogs-content-section {
    background: #e8f2e7;
    padding: 80px 0 0;
}

.blogs-slider {
    position: relative;
    overflow: hidden;
}

.blogs-track {
    position: relative;
}

.blog-item {
    display: none;
    flex-direction: column;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.blog-item.active {
    display: flex;
    opacity: 1;
}

.blog-text {
    display: flex;
    margin-bottom: 20px;
    gap: 40px;
}

.blog-text h2 {
    font-family: "D-DIN-Bold", sans-serif;
    font-size: 28px;
    color: #2d3e2d;
    line-height: 1.2;
}

.blog-text p {
    font-size: 15px;
    line-height: 1.2;
    color: #666;
    position: relative;
}

.blog-read-more {
    position: absolute;
    bottom: 0;
    left: 0;
    color: #4a6b4a;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.blog-read-more:hover {
    color: #2d3e2d;
}

.blog-image {
    position: relative;
    width: 100%;
}

.blog-image img {
    max-height: 150px;
    width: 150px;
    object-fit: contain;
    margin: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Blog Navigation Buttons */
.blog-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #b1daae;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-nav-btn:hover {
    background: #9acb96;
    box-shadow: 0 4px 12px rgba(177, 218, 174, 0.4);
}

.blog-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.blog-nav-btn i {
    font-size: 20px;
    color: white;
}

.blog-prev {
    left: -64px;
}

.blog-next {
    right: -64px;
}

/* App Download Section */
.app-download-section {
    background: #e8f2e7;
    padding: 60px 0;
    text-align: center;
}

.app-download-section .app-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Blogs Responsive Design */
@media (max-width: 1024px) {
    .blogs-hero-content h1 {
        font-size: 36px;
    }

    .blog-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blog-nav-btn {
        width: 50px;
        height: 50px;
    }

    .blog-prev {
        left: 10px;
    }

    .blog-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .blogs-hero {
        min-height: 50vh;
    }

    .blogs-hero-content {
        padding-top: 40px;
    }

    .blogs-hero-content h1 {
        font-size: 28px;
    }

    .blogs-hero-content p {
        font-size: 14px;
    }

    .blogs-search-wrapper {
        max-width: 100%;
    }

    .blog-text h2 {
        font-size: 24px;
    }

    .blog-text p {
        font-size: 14px;
    }

    .blog-nav-btn {
        width: 45px;
        height: 45px;
    }

    .blog-nav-btn i {
        font-size: 16px;
    }

    .app-download-section .app-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .blogs-hero-content h1 {
        font-size: 24px;
    }

    .blogs-search-input {
        font-size: 14px;
        padding: 12px 50px 12px 15px;
    }

    .blog-text h2 {
        font-size: 20px;
    }

    .blog-text p {
        font-size: 13px;
    }

    .blog-read-more {
        font-size: 14px;
    }
}

/* ==== Cards grid ==== */
.blogs-cards{
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
}
@media (min-width:576px){ .blogs-cards{ grid-template-columns:repeat(2,1fr);} }
@media (min-width:992px){ .blogs-cards{ grid-template-columns:repeat(3,1fr);} }

/* ==== Card ==== */
.blog-card{
    display:block;
    background:#fff;
    border:1px solid rgba(0,0,0,.08);
    border-radius:14px;
    overflow:hidden;
    text-decoration:none;
    color:inherit;
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.blog-card:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 24px rgba(0,0,0,.08);
    border-color:rgba(0,0,0,.12);
}

/* Thumbnail (ảnh gọn, không quá to) */
.blog-card__thumb{
    position:relative;
    width:100%;
    height:100px;      /* kiểm soát chiều cao ảnh */

    background:#f6f6f6;
}
@media (min-width:768px){ .blog-card__thumb{ height:200px; } }
.blog-card__thumb img{
    width:100%;
    height:100%;
    object-fit:cover;  /* cắt cho vừa khung, không méo */
    display:block;
}

/* Body */
.blog-card__body{ padding:14px 14px 16px; }

/* Tiêu đề: clamp 2 dòng */
.blog-card__title{
    font-family:"D-DIN-Bold",sans-serif;
    font-size:1rem;
    line-height:1.35;
    margin:0 0 8px;
    font-weight:700;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    color:#2d3e2d;
}

/* Tóm tắt: clamp 3 dòng */
.blog-card__excerpt{
    font-size:.93rem;
    line-height:1.55;
    color:#444;
    margin:0 0 10px;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

/* Meta */
.blog-card__meta{
    font-size:.82rem;
    color:#666;
    display:flex;
    align-items:center;
    gap:8px;
}
.blog-card__meta .dot{ opacity:.6; }
.blog-card__meta i{ margin-right:6px; }

/* --- Ghi đè cái slider cũ không dùng nữa --- */
.blogs-slider, .blogs-track, .blog-item{ display:none !important; }


/* Contact Us Page Styles */

/* Contact Hero Section */
.contact-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8f2e7;
}

.contact-hero-img {
    min-height: 60vh;
    background-image: url("/assets/img/update/shutterstock_2630680017.jpg");
    background-size: cover;
    background-position: center;
    margin: 20px -20px 40px;
}

.contact-hero-content {
    text-align: center;
    margin-bottom: 30px;
}

.contact-hero-content h1 {
    font-family: "D-DIN-Bold", sans-serif;
    font-size: 42px;
    line-height: 1.2;
    letter-spacing: 2px;
}

.contact-hero-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Contact Info Section */
.contact-info-section {
    background: #567856;
    padding: 60px 0;
}

.contact-info-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.contact-info-item {
    text-align: center;
    color: white;
}

.contact-divider {
    width: 2px;
    height: 240px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 60px;
}

.contact-icon {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.contact-icon i {
    font-size: 36px;
    color: #567856;
}

.contact-info-item h3 {
    font-family: "D-DIN-Bold", sans-serif;
    font-size: 22px;
    letter-spacing: 0.5px;
}

.contact-info-item p {
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 14px;
    opacity: 0.95;
}

.contact-info-item .contact-detail {
    font-family: "D-DIN", sans-serif;
    font-size: 14px;
    margin-bottom: 0;
    opacity: 0.95;
}

/* Contact App Section */
.contact-app-section {
    background: #e8f2e7;
    padding: 30px 0 60px;
}

.contact-app-content {
    text-align: center;
}

.contact-app-content h2 {
    font-family: "D-DIN-Bold", sans-serif;
    font-size: 36px;
    color: #2d3e2d;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.contact-app-content p {
    font-size: 15px;
    color: #4a6b4a;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-app-content .app-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Contact Responsive Design */
@media (max-width: 1024px) {
    .contact-hero-content h1 {
        font-size: 36px;
    }

    .contact-info-grid {
        gap: 30px;
    }

    .contact-divider {
        width: 2px;
        height: 240px;
        background: rgba(255, 255, 255, 0.3);
        margin: 0 30px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 50vh;
    }

    .contact-hero-content {
        padding: 80px 20px 40px;
    }

    .contact-hero-content h1 {
        font-size: 28px;
    }

    .contact-hero-content p {
        font-size: 14px;
    }

    .contact-info-section {
        padding: 50px 0;
    }

    .contact-icon {
        width: 75px;
        height: 75px;
    }

    .contact-icon i {
        font-size: 30px;
    }

    .contact-info-item h3 {
        font-size: 20px;
    }

    .contact-info-item p {
        font-size: 13px;
    }

    .contact-app-section {
        padding: 50px 0;
    }

    .contact-app-content h2 {
        font-size: 28px;
    }

    .contact-app-content p {
        font-size: 14px;
    }

    .contact-app-content .app-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .contact-hero-img {
        margin: 0 -15px;
    }

    .contact-hero-content h1 {
        font-size: 24px;
    }

    .contact-hero-content p {
        font-size: 13px;
    }

    .contact-info-grid {
        flex-direction: column;
    }

    .contact-divider {
        width: 240px;
        height: 2px;
        background: rgba(255, 255, 255, 0.3);
        margin: 0 60px;
    }

    .contact-icon {
        width: 70px;
        height: 70px;
    }

    .contact-icon i {
        font-size: 28px;
    }

    .contact-info-item h3 {
        font-size: 18px;
    }

    .contact-app-content h2 {
        font-size: 24px;
    }
}


table, th, td {
    border: 1px solid black; /* 1px solid black border */
}

/* Căn lại layout header để icon cờ về đúng vị trí */
.header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo | nav | lang | mobile */
    gap: 12px;
}

/* Khối switcher nhỏ gọn, không bị kéo giãn */
.lang-switcher {
    display: flex;
    align-items: center;
}

/* ✅ Ép kích thước icon cờ nhỏ */
.lang-switcher .lang-flag {
    width: 24px !important;   /* hoặc 18px nếu muốn lớn hơn chút */
    height: 24px !important;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    border: 1px solid #ccc;
    vertical-align: middle;
    /* Chặn ảnh gốc quá lớn gây vượt container */
    max-width: 100%;
    max-height: 100%;
}

/* (tuỳ chọn) hiệu ứng hover nhẹ */
.lang-switcher a:hover .lang-flag {
    transform: scale(1.06);
    transition: transform .15s ease;
}

/* Nếu icon vẫn to do CSS cũ, ta chốt kích thước ảnh trong header chung */
.header .header-content img[alt="lang"] {
    width: 24px !important;
    height: 24px !important;
}



/* Responsive nhỏ gọn hơn trên mobile */
@media (max-width:480px){
    .glossary-thumb{ height:140px; }
    .glossary-grid{ gap:14px; }
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1.5fr); /* ✅ chỉ 2 cột */
    gap: 24px;
    padding: 24px;
    justify-items: center;
    /*    overflow-x: auto;     !* ✅ Cho phép trượt ngang *!*/
    /*    overflow-y: hidden;   !* ✅ Không cho tràn xuống *!*/
    /*    white-space: nowrap;  !* ✅ Ngăn grid xuống dòng *!*/
}

.glossary-card {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid #e9e5de;
    border-radius: 12px;
    width: 100%;
    max-width: 560px; /* ✅ card to hơn, vừa khung 2 cột */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}


.glossary-thumb {
    width: 100%;
    height: 320px; /* ảnh cao hơn cho rõ */
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(250, 249, 247, 0.34);
    border-radius: 10px;
    overflow: hidden;
}

.glossary-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* giữ nguyên tỉ lệ ảnh */
    object-position: center;
}

@media (max-width: 768px) {
    .glossary-grid {
        grid-template-columns: 1fr; /* ✅ mobile: 1 card mỗi hàng */
    }
    .glossary-thumb {
        height: 240px;
    }
}

/* Hiệu ứng hover cho card */
.glossary-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Khi hover lên card */
.glossary-card:hover {
    transform: translateY(-6px); /* Nổi lên nhẹ */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Bóng đổ nhẹ */
    background-color: #fffefb; /* Tăng sáng nhẹ nền */
}

/* Khi hover, ảnh hơi phóng nhẹ */
.glossary-thumb img {
    transition: transform 0.4s ease;
}
.glossary-card:hover .glossary-thumb img {
    transform: scale(1.05);
}




/* WOODID Hero */
.woodid-hero {
    position: relative;
    background: #e8f2e7;
}


/*.blogs-hero {*/
/*    position: relative;*/
/*    min-height: 60vh;*/
/*    background-image: url("/assets/img/update/harvey-abayasiri-OGnx12BmLfQ-unsplash.jpg");*/
/*    background-size: cover;*/
/*    background-position: center;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    color: white;*/
/*}*/

.woodid-hero-img {
    position: relative;
    min-height: 60vh;
    background-image: url("/assets/img/update/woodid_hero.png"); /* thay ảnh */
    background-size: cover;
    background-position: center;
    display: flex;
    /*margin: 00px -00px 00px;*/
}

/*.woodid-hero-content {*/
/*    text-align: center;*/
/*    margin-bottom: 30px;*/
/*}*/
/*.woodid-hero-content h1 {*/
/*    font-family: "D-DIN-Bold", sans-serif;*/
/*    font-size: 42px; line-height: 1.2; letter-spacing: 2px;*/
/*}*/
/*.woodid-hero-content p {*/
/*    font-size: 15px; line-height: 1.6; margin: 0;*/
/*}*/

.woodid-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.woodid-hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    max-width: 800px;
    padding-top: 20px;
    padding-bottom: 20px;;
}

.woodid-hero-content h1 {
    font-family: "D-DIN-Bold", sans-serif;
    font-size: 44px;
    line-height: 1.0;
    /*margin-bottom: 20px;*/
    letter-spacing: 2px;
}

.woodid-hero-content p {
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.8;
}



/* Submenu WOODID trong header */
.nav-menu .main-menu { position: relative; }
.nav-menu .submenu{
    position:absolute; top:100%; left:0; background:#fff; border-radius:8px;
    box-shadow:0 6px 14px rgba(0,0,0,.08); list-style:none; margin:0; padding:6px 0;
    display:flex; flex-direction:column; gap:0; min-width:240px; z-index:1000;
    opacity:0; visibility:hidden; transform:translateY(8px); transition:all .2s ease;
}
.nav-menu .main-menu:hover .submenu{ opacity:1; visibility:visible; transform:translateY(0); }
.nav-menu .submenu li a{
    display:block; padding:7px 14px; line-height:1.3; font-size:.92rem; color:#333; text-decoration:none;
}
.nav-menu .submenu li+li a{ border-top:1px solid #f0f0f0; }
.nav-menu .submenu li a:hover{ background:#f5f5f5; color:#0a58ca; }

/* Section khung dùng chung */
.woodid-section { padding: 60px 0; }
.woodid-section.alt { background: rgb(232, 242, 231); }      /* nền nhạt xen kẽ */
.woodid-title {
    font-family:"D-DIN-Bold", sans-serif; font-size:36px; color:#2d3e2d;
    text-align:center; margin-bottom:18px; letter-spacing:1px;
}
.woodid-subtitle { text-align:center; color:#4a6b4a; font-size:18px; line-height:1.6; }

/* Intro (text + image) */
.woodid-intro {
    display:grid; grid-template-columns: 1.2fr 1fr; gap:36px; align-items:center;
}
.woodid-intro .intro-text { font-size:18px; line-height:1.8; color:#2e3b2e; text-align: justify}
.woodid-intro .intro-img {
    border-radius:12px; overflow:hidden; box-shadow:0 10px 20px rgba(0,0,0,.07);
}
.woodid-intro .intro-img img{ width:100%; height:auto; display:block; }

/* Stories */
.story-grid{
    display:grid; grid-template-columns: repeat(3,1fr); gap:18px;
}
.story-card{
    background:#fff; border-radius:12px; box-shadow:0 8px 16px rgba(0,0,0,.06);
    overflow:hidden; display:flex; flex-direction:column; transition:transform .2s ease, box-shadow .2s ease;
}
.story-card:hover{ transform: translateY(-3px); box-shadow:0 12px 24px rgba(0,0,0,.09); }
.story-thumb{ aspect-ratio: 16/9; background:#f2f2f2; }
.story-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.story-body{ padding:14px 16px; }
.story-title{ font-family:"D-DIN-Bold"; font-size:18px; margin-bottom:6px; color:#2d3e2d; }
.story-meta{ font-size:13px; color:#6a6a6a; margin-bottom:8px; }
.story-desc{ font-size:14px; line-height:1.6; color:#374537; }


/* How-to steps */
.howto-steps{
    display:grid; grid-template-columns: repeat(4,1fr); gap:16px; align-items:stretch;
}
.howto-step{
    background:#fff; border-radius:12px; padding:18px; text-align:center;
    box-shadow:0 8px 16px rgba(0,0,0,.05);
}
.howto-icon{
    width:84px; height:84px; border:2px solid #654104; border-radius:50%;
    display:flex; align-items:center; justify-content:center; margin:0 auto 10px;
}
.howto-title{ font-family:"D-DIN-Bold"; font-size:18px; margin-bottom:6px; color:#2d3e2d; }
.howto-desc{ font-size:14px; color:#475a47; line-height:1.6; }


/* Media */
.media-grid{
    display:grid; grid-template-columns: repeat(4,1fr); gap:14px;
}
.media-item{
    aspect-ratio: 16/10; border-radius:10px; overflow:hidden; background:#e9efe9;
    box-shadow:0 6px 12px rgba(0,0,0,.06);
}
.media-item img, .media-item iframe{
    width:100%; height:100%; object-fit:cover; display:block;
}

/* FAQ */
.faq-accordion{ max-width: 920px; margin: 0 auto; }
.faq-item{ border-bottom:1px solid #e9e9e9; padding:12px 0; }
.faq-q{
    width:100%; text-align:left; background:#fff; border:0; padding:10px 4px;
    font-family:"D-DIN"; font-size:18px; color:#2d3e2d; display:flex; justify-content:space-between; align-items:center;
}
.faq-a{ padding:0 4px 10px; color:#475a47; font-size:14px; line-height:1.6; display:none; }
.faq-item.active .faq-a{ display:block; }


@media (max-width:1024px){
    .woodid-hero-content h1{ font-size:36px; }
    .woodid-intro{ grid-template-columns: 1fr; }
    .story-grid{ grid-template-columns: repeat(2,1fr); }
    .howto-steps{ grid-template-columns: repeat(2,1fr); }
    .media-grid{ grid-template-columns: repeat(3,1fr); }
}

@media (max-width:768px){
    .woodid-hero{ min-height:50vh; }
    .woodid-hero-content{ padding:80px 20px 40px; }
    .woodid-hero-content h1{ font-size:28px; }
    .woodid-hero-content p{ font-size:14px; }
    .woodid-section{ padding:50px 0; }
    .woodid-title{ font-size:28px; }
    .story-grid{ grid-template-columns: 1fr; }
    .media-grid{ grid-template-columns: repeat(2,1fr); }
    .howto-steps{ grid-template-columns: 1fr; }
    .woodid-download h2{ font-size:28px; }
    .woodid-download p{ font-size:14px; }
}

@media (max-width:480px){
    .woodid-hero-img{ margin:0 -15px; }
    .woodid-hero-content h1{ font-size:24px; }
    .media-grid{ grid-template-columns: 1fr; }
}

/* Pills cho nhóm đối tượng */
.intro-pill-group{ display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 14px; }
.pill{
    background:#f0f6f0; color:#2e3b2e; border:1px solid #d9e6d9;
    padding:6px 10px; border-radius:999px; font-size:13px;
}

/* Hàng tính năng so le */
.feature-row{
    display:grid; grid-template-columns: 1fr 1.1fr; gap:24px; align-items:center;
    padding:18px 0;
}
.feature-row.reverse{ grid-template-columns: 1.1fr 1fr; }
.feature-row.reverse .feature-media{ order:2; }
.feature-row.reverse .feature-body{ order:1; }

.feature-media{
    border-radius:14px; overflow:hidden; box-shadow:0 10px 18px rgba(0,0,0,.07);
    aspect-ratio: 16/10; background:#e9efe9;
}
.feature-media img{ width:100%; height:100%; object-fit:cover; display:block; }

.feature-body .feature-tag{
    width:40px; height:40px; border-radius:50%;
    background:#567856; color:#fff; display:flex; align-items:center; justify-content:center;
    font-family:"D-DIN-Bold"; margin-bottom:10px; font-size:16px;
}
.feature-title{
    font-family:"D-DIN-Bold"; font-size:24px; color:#2d3e2d; margin:4px 0 8px;
}
.feature-text{ color:#475a47; font-size:18px; line-height:1.7; }

/* Responsive cho feature rows */
@media (max-width:1024px){
    .feature-row, .feature-row.reverse{
        grid-template-columns: 1fr;
    }
    .feature-row.reverse .feature-media,
    .feature-row.reverse .feature-body{ order:unset; }
}


/* Flipbook khung + điều khiển */
#flipWrap{
    width: 100%;
    max-width: 1100px;
    margin: 10px auto 0;
}
.flipbook{
    margin: 0 auto;
    /* chiều cao do PageFlip tính theo tỉ lệ; khung stretch theo container */
}
.flip-toolbar{
    display:flex; align-items:center; justify-content:center;
    gap: 16px; margin-bottom: 12px;
}
.flip-btn{
    width:42px; height:42px; border-radius:50%;
    border:1px solid #d6e3d6; background:#fff; color:#2d3e2d;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 4px 10px rgba(0,0,0,.06);
    transition: transform .15s ease, background .15s ease;
}
.flip-btn:hover{ background:#f3f7f3; transform: translateY(-1px); }
.flip-info{ font-family:"D-DIN-Bold", sans-serif; color:#2d3e2d; }
.flip-hint{
    text-align:center; color:#4a6b4a; font-size:13px; margin-top:10px;
}

/* PageFlip mặc định đã có style; chỉnh nhẹ góc bo */
.stf__item{
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(0,0,0,.08);
}

@media (max-width: 768px){
    #flipWrap{ max-width: 96vw; }
    .flip-btn{ width:38px; height:38px; }
}

.flip-controls {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.flip-controls button {
    background: #567856;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flip-controls button:hover {
    background: #355a35;
    transform: scale(1.05);
}

.flip-controls span {
    font-family: "D-DIN", sans-serif;
    font-size: 16px;
    margin: 0 5px;
}

/* đảm bảo flipWrap là khung tương đối để overlay bám theo */
#flipWrap { position: relative; }

/* overlay */
.flip-loader{
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(2px);
    z-index: 10;
}

/* spinner quay */
.spinner{
    width: 44px; height: 44px;
    border: 3px solid #d9e6d9;
    border-top-color: #567856;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin{ to { transform: rotate(360deg); } }

.flip-loading-text{
    font-size: 14px;
    color: #2d3e2d;
    opacity: .9;
}

/* Media Section */
#media {
    background-color: #e8f2e7;
    padding: 60px 0;
}

.media-header {
    margin-bottom: 40px;
}

.media-header h2 {
    font-family: "D-DIN-Bold", sans-serif;
    font-size: 36px;
    color: #2d3e2d;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.media-header p {
    color: #4a6b4a;
    font-size: 16px;
    line-height: 1.6;
}

/* Video container */
.media-video-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: #000;
}

.woodid-video {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.woodid-video:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .media-header h2 {
        font-size: 28px;
    }
    .media-header p {
        font-size: 14px;
    }
}

html { scroll-behavior: smooth; }

/* Mục lục */
.faq-toc {
    background: rgba(255,255,255,0.3);
    border: 1px solid rgba(100,100,100,0.2);
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    backdrop-filter: blur(6px);
}
.faq-toc strong {
    display: block;
    margin-bottom: 15px;
    font-size: 20px;
    color: #2d3e2d;
    font-family: "D-DIN-Bold", sans-serif;
}
.faq-toc ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}
.faq-toc a {
    color: #2d3e2d;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
}
.faq-toc a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    border: 1px solid rgba(100, 100, 100, 0.15);
    border-radius: 12px;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-q {
    width: 100%;
    background: rgba(255, 255, 255, 0);
    color: #2d3e2d;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}
.faq-q:hover {
    background: rgba(255, 255, 255, 0.01);
}
.faq-q i {
    transition: transform 0.2s ease;
}
.faq-item.open .faq-q i {
    transform: rotate(180deg);
}
.faq-a {
    display: none;
    padding: 18px 22px;
    font-size: 16px;
    line-height: 1.7;
    color: #222;
}
.faq-item.open .faq-a {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-q { font-size: 16px; }
    .faq-a { font-size: 15px; }
    .faq-toc strong { font-size: 18px; }
    .faq-toc a { font-size: 15px; }
}

