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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: #222;
    background: #F5F7F2;
    line-height: 1.6;
    padding-top: 75px;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 12px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section {
    padding: 80px 0;
}


/* GLOBAL UNIFIED TYPOGRAPHY */
h1 {
    font-size: 48px;
    margin-bottom: 15px;
    color: #1A4332;
}

h2,
.section-heading h2,
.biodiversity-content h2,
.classification-content h3,
.family-content h2,
.genus-content h2,
.species-flip-card .flip-card-back h2,
.family-flip-card .flip-card-back h2,
.genus-flip-card .flip-card-back h2,
.contributor-detail-content h2,
.contribution-content h2,
.contributor-flip-card .flip-card-back h2,
.enquiry-intro h1,
.identify-intro h1,
.explore-hero h1,
.classification-hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #1A4332;
}

h3,
.feature-card h3,
.information-card h3,
.flow-card h3,
.family-content h3,
.family-flip-card .flip-card-back h3,
.contributor-profile-card h3,
.contribution-form h3,
.enquiry-form h3,
.identify-search-heading h2,
.identify-box h2,
.explore-definition h3,
.family-definition h3,
.genus-guide-list h3,
.genus-table-wrapper h3,
.genus-definition h3,
.genus-guide-aside h3,
.identification-tip h2,
.explore-guide h2,
.family-guide h2,
.identification-guide h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #1A4332;
}


/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #2E7D32;
    font-size: 24px;
    font-weight: bold;
}

.logo i {
    margin-right: 8px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    color: #222;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #2E7D32;
}

.dropdown-menu {
    position: absolute;
    top: 35px;
    left: 0;
    min-width: 160px;
    background: #FFFFFF;
    list-style: none;
    padding: 10px 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 18px;
}

.dropdown-menu li a:hover {
    background: #F5F7F2;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* HERO */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    background: #F5F7F2;
}

.hero-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-small-title {
    color: #2E7D32;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero-small-title i {
    margin-right: 6px;
}

.hero h1 span {
    color: #2E7D32;
}

.hero-content > p {
    max-width: 550px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


/* BUTTONS */
.btn-primary,
.btn-secondary,
.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s ease;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary,
.primary-button {
    background: #2E7D32;
    color: #FFFFFF;
    border: none;
}

.btn-primary:hover,
.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(46, 125, 50, 0.25);
    opacity: 0.9;
}

.btn-secondary,
.secondary-button {
    background: #FFFFFF;
    color: #2E7D32;
    border: 1px solid #2E7D32;
}

.btn-secondary:hover,
.secondary-button:hover {
    background: #2E7D32;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(46, 125, 50, 0.20);
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}


/* SECTION HEADING */
.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

.section-label {
    color: #2E7D32;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 8px;
}


/* FEATURE CARDS */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-card {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F7F2;
    color: #2E7D32;
    border-radius: 12px;
    font-size: 23px;
    margin-bottom: 20px;
}

.feature-card p {
    margin-bottom: 20px;
}

.feature-card a {
    color: #2E7D32;
    font-weight: bold;
    font-size: 14px;
}

.feature-card a i {
    margin-left: 5px;
    transition: 0.3s;
}

.feature-card a:hover i {
    transform: translateX(5px);
}


/* BIODIVERSITY */
.biodiversity {
    background: #FFFFFF;
}

.biodiversity-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.biodiversity-content h2 {
    margin-bottom: 20px;
}

.biodiversity-content p {
    margin-bottom: 20px;
}


/* STATISTICS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: #F5F7F2;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.stat-card i {
    font-size: 30px;
    color: #2E7D32;
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 32px;
    color: #2E7D32;
    margin-bottom: 5px;
}


/* CALL TO ACTION */
.cta {
    background: #F5F7F2;
}

.cta-box {
    background: #FFFFFF;
    padding: 60px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.cta-box > i {
    font-size: 40px;
    color: #2E7D32;
    margin-bottom: 15px;
}

.cta-box p {
    margin-bottom: 25px;
}


/* FOOTER */
.footer {
    background: #2E7D32;
    color: #FFFFFF;
    padding-top: 60px;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 15px;
}

.footer-section a {
    display: block;
    color: #FFFFFF;
    margin-bottom: 8px;
    transition: 0.3s;
}

.footer-section a:hover {
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 20px;
}

.footer-bottom p {
    font-style: italic;
}


/* SHARED GRIDS & CARDS */
.contribution-grid,
.contributor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.contributor-flip-card,
.species-flip-card,
.family-flip-card,
.genus-flip-card {
    width: 100%;
    height: 560px;
    perspective: 1000px;
}

.contributor-flip-card .flip-card-inner,
.species-flip-card .flip-card-inner,
.family-flip-card .flip-card-inner,
.genus-flip-card .flip-card-inner,
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
}

.contributor-flip-card:hover .flip-card-inner,
.species-flip-card:hover .flip-card-inner,
.family-flip-card:hover .flip-card-inner,
.genus-flip-card:hover .flip-card-inner,
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.contributor-flip-card .flip-card-front,
.contributor-flip-card .flip-card-back,
.species-flip-card .flip-card-front,
.species-flip-card .flip-card-back,
.family-flip-card .flip-card-front,
.family-flip-card .flip-card-back,
.genus-flip-card .flip-card-front,
.genus-flip-card .flip-card-back,
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    backface-visibility: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.flip-card-front,
.contributor-flip-card .flip-card-front,
.species-flip-card .flip-card-front,
.family-flip-card .flip-card-front,
.genus-flip-card .flip-card-front {
    background: #FFFFFF;
}

.flip-card-back,
.contributor-flip-card .flip-card-back,
.species-flip-card .flip-card-back,
.family-flip-card .flip-card-back,
.genus-flip-card .flip-card-back {
    background: #FFFFFF;
    padding: 30px;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}


/* SHARED FORMS */
.contribution-form,
.enquiry-form {
    max-width: 750px;
    margin: 0 auto;
    background: #FFFFFF;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contribution-form fieldset,
.enquiry-form fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
}

.contribution-form legend,
.enquiry-form legend {
    color: #2E7D32;
    font-weight: bold;
    padding: 0 10px;
}

.contribution-form label,
.enquiry-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: bold;
}

.contribution-form input,
.contribution-form select,
.contribution-form textarea,
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #FFFFFF;
    font-family: Arial, sans-serif;
    font-size: 15px;
}

.contribution-form textarea,
.enquiry-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contribution-form input:focus,
.contribution-form select:focus,
.contribution-form textarea:focus,
.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.10);
}


/* POPUP OVERLAYS */
.guide-overlay,
.explore-guide-overlay,
.family-guide-overlay,
.tip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 30px;
    z-index: 9999;
}


/* EXPLORE & OTHER PAGES */
.explore-hero {
    padding-top: 80px;
    padding-bottom: 80px;
    background: #F5F7F2;
    text-align: center;
}

.explore-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.explore-hero-content > p:not(.section-label) {
    margin-bottom: 30px;
}

.plant-search {
    max-width: 700px;
    margin: auto;
    display: flex;
    background: #FFFFFF;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.plant-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 18px;
    font-size: 15px;
    background: transparent;
}

.plant-search button {
    border: none;
    background: #2E7D32;
    color: #FFFFFF;
    padding: 12px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.plant-search button i {
    margin-right: 6px;
}

.classification-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.classification-card-large {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.classification-card-large:hover {
    transform: translateY(-8px);
}

.classification-image {
    height: 220px;
    overflow: hidden;
}

.classification-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: 0.4s;
}

.classification-card-large:hover .classification-image img {
    transform: scale(1.05);
}

.classification-content {
    padding: 30px;
}

.classification-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F7F2;
    color: #2E7D32;
    border-radius: 10px;
    font-size: 22px;
    margin-bottom: 18px;
}

.classification-content p {
    margin-bottom: 20px;
}

.classification-info {
    margin-bottom: 20px;
    color: #2E7D32;
    font-weight: bold;
}

.classification-info i {
    margin-right: 6px;
}

.text-link {
    color: #2E7D32;
    font-weight: bold;
}

.text-link i {
    margin-left: 5px;
    transition: 0.3s;
}

.text-link:hover i {
    transform: translateX(5px);
}

.information-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.information-card {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: 0.3s;
}

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

.information-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F7F2;
    color: #2E7D32;
    border-radius: 50%;
    font-size: 25px;
}

.classification-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.flow-card {
    width: 250px;
    padding: 30px;
    background: #FFFFFF;
    border-radius: 12px;
    text-align: center;
    color: #222;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.flow-card:hover {
    transform: translateY(-6px);
    color: #2E7D32;
}

.flow-number {
    display: block;
    color: #2E7D32;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
}

.flow-card > i {
    font-size: 35px;
    color: #2E7D32;
    margin-bottom: 15px;
}

.flow-card h3 {
    margin-bottom: 8px;
}

.flow-arrow {
    color: #2E7D32;
    font-size: 24px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #2E7D32;
    cursor: pointer;
}

#menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    font-size: 25px;
    color: #2E7D32;
    cursor: pointer;
}

.classification-hero {
    padding: 80px 0;
    text-align: center;
    background: #F5F7F2;
}

.classification-hero p:not(.section-label) {
    max-width: 700px;
    margin: auto;
}

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

.family-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

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

.family-card img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #F5F7F2;
    border-radius: 0;
}

.family-content {
    padding: 30px;
}

.classification-label {
    color: #2E7D32;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.family-content h3 {
    font-size: 17px;
    font-weight: normal;
    margin-bottom: 15px;
}

.family-content > p {
    margin-bottom: 20px;
}

.plant-detail {
    margin-bottom: 20px;
}

.plant-detail div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.plant-detail i {
    color: #2E7D32;
    margin-top: 5px;
}

.plant-detail strong {
    min-width: 60px;
}

.plant-detail span {
    flex: 1;
}

.classification-box {
    background: #F5F7F2;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.classification-box strong {
    display: block;
    margin-bottom: 5px;
}

.classification-box p {
    margin: 0;
}

.classification-navigation {
    text-align: center;
}

.classification-navigation-content {
    max-width: 700px;
    margin: auto;
}

.classification-navigation h2 {
    margin-bottom: 15px;
}

.classification-navigation-content > p:not(.section-label) {
    margin-bottom: 25px;
}

.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #2E7D32;
    font-weight: bold;
    font-size: 14px;
}

.map-link:hover {
    text-decoration: underline;
}

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

.genus-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

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

.genus-card > img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    background: #F5F7F2;
    border-radius: 0;
}

.genus-content {
    padding: 30px;
}

.genus-content > p {
    margin-bottom: 20px;
}

.species-list {
    background: #F5F7F2;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.species-list strong {
    display: block;
    margin-bottom: 8px;
}

.species-list ul {
    list-style: none;
    padding: 0;
}

.species-list li {
    margin-bottom: 5px;
}

.species-list li:last-child {
    margin-bottom: 0;
}

.species-list i {
    color: #2E7D32;
    margin-right: 6px;
}

.plant-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 12px;
}

.plant-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.plant-gallery img:first-child {
    grid-row: span 2;
}

.plant-gallery img:hover {
    transform: scale(1.03);
}

.flip-card {
    width: 100%;
    height: 480px;
    perspective: 1000px;
}

.flip-card-front img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    background: #F5F7F2;
    border-radius: 0;
}

.flip-card-title {
    padding: 20px 25px;
}

.flip-card-title p {
    color: #2E7D32;
    font-size: 13px;
    font-weight: bold;
}

.flip-card-back > p {
    margin-bottom: 10px;
}

.species-mini {
    background: #F5F7F2;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0 20px;
}

.species-mini p {
    margin-top: 5px;
}

.species-section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 35px;
}

.species-flip-card .flip-card-front img {
    width: 100%;
    height: 390px;
    object-fit: contain;
    background: #F5F7F2;
    border-radius: 0;
}

.species-flip-card .flip-card-title {
    padding: 20px 25px;
}

.species-flip-card .flip-card-title p {
    color: #2E7D32;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.species-info {
    margin-bottom: 15px;
}

.species-info div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 9px;
    flex-wrap: wrap;
}

.species-info i {
    color: #2E7D32;
    margin-top: 5px;
    min-width: 18px;
}

.species-info strong {
    min-width: 75px;
}

.species-info span {
    flex: 1;
}

.species-description {
    background: #F5F7F2;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.species-description strong {
    display: block;
    margin-bottom: 5px;
}

.species-description p {
    margin: 0;
}

.species-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2E7D32;
    font-weight: bold;
    font-size: 14px;
    margin-top: auto;
}

.species-map-link:hover {
    text-decoration: underline;
}

.family-flip-card .flip-card-front img {
    width: 100%;
    height: 430px;
    object-fit: contain;
    background: #F5F7F2;
    border-radius: 0;
}

.family-flip-card .flip-card-title {
    padding: 22px 25px;
}

.family-flip-card .flip-card-title p {
    color: #2E7D32;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.family-info {
    margin-bottom: 15px;
}

.family-info div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.family-info i {
    color: #2E7D32;
    margin-top: 5px;
    min-width: 18px;
}

.family-info strong {
    min-width: 80px;
}

.family-info span {
    flex: 1;
}

.family-description {
    background: #F5F7F2;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.family-description strong {
    display: block;
    margin-bottom: 5px;
}

.family-description p {
    margin: 0;
}

.family-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2E7D32;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 15px;
}

.family-map-link:hover {
    text-decoration: underline;
}

.family-genera-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2E7D32;
    font-weight: bold;
    font-size: 14px;
    margin-top: auto;
}

.family-genera-link i {
    transition: 0.3s;
}

.family-genera-link:hover i {
    transform: translateX(5px);
}

.genus-flip-card .flip-card-front img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #F5F7F2;
    border-radius: 0;
}

.genus-flip-card .flip-card-title {
    padding: 20px 25px;
}

.genus-flip-card .flip-card-title p {
    color: #2E7D32;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.genus-flip-card .flip-card-back > p {
    margin-bottom: 10px;
}

.genus-flip-card .species-mini {
    background: #F5F7F2;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0 15px;
}

.genus-flip-card .species-mini strong {
    display: block;
    margin-bottom: 5px;
}

.genus-flip-card .species-mini p {
    margin: 3px 0;
}

.genus-info {
    margin: 5px 0 10px;
}

.genus-info div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.genus-info i {
    color: #2E7D32;
    margin-top: 5px;
}

.genus-info strong {
    min-width: 60px;
}

.genus-info span {
    flex: 1;
}

.genus-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    color: #2E7D32;
    font-weight: bold;
    font-size: 14px;
}

.genus-map-link:hover {
    text-decoration: underline;
}

.contributor-section {
    background: #FFFFFF;
}

.contributor-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
    transition: transform .3s ease;
}

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

.contributor-card > img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0;
}

.contributor-content {
    padding: 25px;
}

.contributor-name {
    color: #2E7D32;
    font-weight: bold;
    margin-bottom: 8px;
}

.contributor-name i {
    margin-right: 6px;
}

.contributor-content h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.plant-type {
    margin-bottom: 18px;
}

.contributor-comment {
    background: #F5F7F2;
    padding: 15px;
    border-radius: 8px;
}

.contributor-comment strong {
    display: block;
    margin-bottom: 5px;
}

.contributor-comment p {
    margin: 0;
}

.contributor-profile {
    background: #F5F7F2;
}

.contributor-profile-card {
    background: #FFFFFF;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-icon {
    width: 60px;
    height: 60px;
    background: #F5F7F2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2E7D32;
    font-size: 25px;
}

.contributor-detail-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
}

.contributor-detail-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0;
}

.contributor-detail-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contributor-introduction {
    padding-top: 50px;
}

.contributor-introduction-content {
    background: #FFFFFF;
    max-width: 800px;
    margin: auto;
    padding: 50px 40px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contributor-introduction-content > i {
    font-size: 40px;
    color: #2E7D32;
    margin-bottom: 15px;
}

.contributor-introduction-content p:not(.section-label) {
    max-width: 600px;
    margin: 0 auto 25px;
}

.contribution-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

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

.contribution-card > img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #F5F7F2;
    border-radius: 0;
}

.contribution-content {
    padding: 30px;
}

.contribution-info {
    margin-bottom: 15px;
}

.contribution-info div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.contribution-info i {
    color: #2E7D32;
    margin-top: 5px;
    min-width: 18px;
}

.contribution-info strong {
    min-width: 90px;
}

.contribution-info span {
    flex: 1;
}

.contribution-comments {
    background: #F5F7F2;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.contribution-comments strong {
    display: block;
    margin-bottom: 5px;
}

.contribution-comments p {
    margin: 0;
}

.contribution-form-section {
    padding-top: 50px;
}

.contribution-form {
    max-width: 800px;
    margin: auto;
    background: #FFFFFF;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.form-group label {
    width: 150px;
    padding-top: 12px;
    font-weight: bold;
    color: #222;
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group textarea {
    flex: 1;
    min-width: 250px;
    padding: 12px 14px;
    border: 1px solid #D9DED6;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 15px;
    background: #FFFFFF;
    outline: none;
    transition: 0.3s;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="text"]:focus,
.form-group input[type="file"]:focus,
.form-group textarea:focus {
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.10);
}

.form-group input[type="file"] {
    padding: 10px;
}

.required-mark {
    color: #2E7D32;
    font-weight: bold;
    padding-top: 10px;
}

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.contributor-flip-card .flip-card-front img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    background: #F5F7F2;
    border-radius: 0;
}

.contributor-flip-card .flip-card-title {
    padding: 20px 25px;
}

.contributor-flip-card .flip-card-title p {
    color: #2E7D32;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.contributor-info {
    margin-bottom: 15px;
}

.contributor-info div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.contributor-info i {
    color: #2E7D32;
    margin-top: 5px;
    min-width: 18px;
}

.contributor-info strong {
    min-width: 85px;
}

.contributor-info span {
    flex: 1;
}

.contributor-description {
    background: #F5F7F2;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.contributor-description strong {
    display: block;
    margin-bottom: 5px;
}

.contributor-description p {
    margin: 0;
}

.contributor-view-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2E7D32;
    font-weight: bold;
    font-size: 14px;
    margin-top: auto;
}

.contributor-view-link i {
    transition: 0.3s;
}

.contributor-view-link:hover i {
    transform: translateX(5px);
}

.enquiry-section {
    padding: 80px 0 120px;
}

.enquiry-intro {
    text-align: center;
    margin-bottom: 35px;
}

.enquiry-intro p {
    color: #222;
    font-size: 16px;
}

.enquiry-form button {
    margin-top: 20px;
    margin-right: 10px;
    padding: 11px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}

.enquiry-form button[type="submit"] {
    background: #2E7D32;
    color: #FFFFFF;
}

.enquiry-form button[type="reset"] {
    background: #F5F7F2;
    color: #222;
}

.enquiry-form button[type="submit"]:hover {
    opacity: 0.85;
}

.enquiry-form button[type="reset"]:hover {
    background: #e8eee4;
}

.identify-section {
    padding: 80px 0 120px;
}

.identify-intro {
    text-align: center;
    margin-bottom: 45px;
}

.identify-intro > p:last-child {
    color: #222;
}

.identify-box {
    max-width: 750px;
    margin: 0 auto 45px;
    padding: 40px;
    background: #FFFFFF;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.identify-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #F5F7F2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2E7D32;
    font-size: 25px;
}

.identify-box > p {
    max-width: 550px;
    margin: 0 auto 25px;
}

.identify-upload label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.identify-upload input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #FFFFFF;
}

.identify-upload button,
.plant-search button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    background: #2E7D32;
    color: #FFFFFF;
    font-size: 15px;
    cursor: pointer;
}

.identify-upload button:hover,
.plant-search button:hover {
    opacity: 0.85;
}

.identify-search {
    max-width: 900px;
    margin: 0 auto 55px;
    padding: 30px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.identify-search-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.identify-search-heading i {
    color: #2E7D32;
    font-size: 22px;
}

.identify-search > p {
    margin-bottom: 20px;
}

.plant-result {
    max-width: 900px;
    margin: 0 auto;
    padding: 35px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.plant-result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.result-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #F5F7F2;
    border-radius: 8px;
}

.result-item > i {
    color: #2E7D32;
    font-size: 20px;
    min-width: 25px;
    margin-top: 3px;
}

.result-item strong {
    display: block;
    margin-bottom: 5px;
}

.result-item p {
    margin: 0;
}

.guide-toggle {
    display: none;
}

.identification-guide {
    width: 30vw;
    min-width: 300px;
    max-width: 420px;
    position: relative;
    background: #FFFFFF;
    border: 2px solid #2E7D32;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    animation: guideAppear 0.4s ease;
}

.guide-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #F5F7F2;
    color: #222;
    cursor: pointer;
    font-size: 16px;
}

.guide-close:hover {
    background: #2E7D32;
    color: #FFFFFF;
}

.guide-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 50%;
    background: #F5F7F2;
    color: #2E7D32;
    font-size: 22px;
}

.identification-guide p {
    margin-bottom: 20px;
}

.identification-guide ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.identification-guide li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #F5F7F2;
}

.identification-guide li i {
    width: 20px;
    color: #2E7D32;
}

#guide-toggle:checked ~ .guide-overlay {
    display: none;
}

#genus-guide-toggle:not(:checked) ~ .guide-overlay {
    display: none;
}

#genus-guide-toggle:checked ~ .guide-overlay {
    display: flex;
}

@keyframes guideAppear {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.identify-plant-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.identify-plant-grid .flip-card {
    height: 560px;
}

.identify-detail-front {
    padding: 25px;
}

.identify-detail-front div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #F5F7F2;
}

.identify-detail-front i {
    width: 25px;
    color: #2E7D32;
    font-size: 18px;
}

.identify-detail-front span {
    flex: 1;
}

.identify-plant-grid .plant-table {
    font-size: 13px;
    margin: 15px 0 20px;
}

.identify-plant-grid .plant-table th,
.identify-plant-grid .plant-table td {
    padding: 8px;
}

.identify-plant-grid .plant-definition {
    font-size: 14px;
    margin: 10px 0;
}

.identify-plant-grid .plant-definition dt {
    margin-top: 10px;
}

.identify-plant-grid .plant-definition dd {
    margin-bottom: 8px;
}

.explore-guide-toggle,
.family-guide-toggle {
    display: none;
}

.explore-guide,
.family-guide {
    width: 30vw;
    min-width: 300px;
    max-width: 420px;
    float: right;
    position: relative;
    background: #FFFFFF;
    border: 2px solid #2E7D32;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.explore-guide-close,
.family-guide-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #F5F7F2;
    color: #222;
    cursor: pointer;
    font-size: 16px;
}

.explore-guide-close:hover,
.family-guide-close:hover {
    background: #2E7D32;
    color: #FFFFFF;
}

.explore-guide-icon,
.family-guide-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 50%;
    background: #F5F7F2;
    color: #2E7D32;
    font-size: 22px;
}

.explore-guide p,
.family-guide p {
    margin-bottom: 20px;
}

.explore-guide ol,
.family-guide ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.explore-guide li,
.family-guide li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #F5F7F2;
}

.explore-guide li i,
.family-guide li i {
    width: 20px;
    color: #2E7D32;
}

#explore-guide-toggle:checked ~ .explore-guide-overlay {
    display: none;
}

#family-guide-toggle:checked ~ .family-guide-overlay {
    display: none;
}

.classification-image {
    margin: 0;
}

.classification-image img {
    width: 100%;
    display: block;
}

.classification-image figcaption {
    padding: 8px 15px;
    background: #F5F7F2;
    color: #222;
    font-size: 13px;
    text-align: center;
}

.classification-summary,
.family-summary {
    padding-top: 40px;
}

.classification-table,
.family-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    margin-top: 30px;
}

.classification-table caption,
.family-table caption {
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
}

.classification-table th,
.classification-table td,
.family-table th,
.family-table td {
    padding: 14px;
    border: 1px solid #F5F7F2;
    text-align: left;
}

.classification-table th,
.family-table th {
    background: #2E7D32;
    color: #FFFFFF;
}

.classification-table td a,
.family-table td a {
    color: #2E7D32;
    font-weight: bold;
}

.classification-table td a:hover,
.family-table td a:hover {
    text-decoration: underline;
}

.explore-definition,
.family-definition {
    margin-top: 40px;
    padding: 25px;
    background: #F5F7F2;
    border-radius: 12px;
}

.explore-definition dt,
.family-definition dt {
    font-weight: bold;
    color: #2E7D32;
    margin-top: 12px;
}

.explore-definition dd,
.family-definition dd {
    margin-left: 0;
    margin-bottom: 12px;
}

.explore-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 700px;
    margin: 30px auto 0;
}

.explore-search label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.explore-search input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #FFFFFF;
    color: #222;
    font-family: Arial, sans-serif;
    font-size: 15px;
}

.explore-search input:focus {
    outline: none;
    border-color: #2E7D32;
}

.explore-search button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #2E7D32;
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    font-size: 15px;
    cursor: pointer;
}

.explore-search button:hover {
    opacity: 0.85;
}

.genus-guide-section {
    padding: 80px 0;
    background: #F5F7F2;
}

.genus-guide-layout {
    display: flow-root;
}

.genus-guide-main {
    margin-right: 34%;
    background: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.genus-guide-figure {
    margin: 0 0 30px 0;
    text-align: center;
}

.genus-guide-figure img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 10px;
}

.genus-guide-figure figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: #666666;
    font-style: italic;
}

.genus-guide-list {
    margin-bottom: 35px;
}

.genus-guide-list ol {
    padding-left: 25px;
}

.genus-guide-list li {
    margin-bottom: 10px;
    padding-left: 5px;
    line-height: 1.6;
}

.genus-table-wrapper {
    margin-bottom: 35px;
    overflow-x: auto;
}

.genus-guide-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
}

.genus-guide-table th,
.genus-guide-table td {
    padding: 14px 16px;
    text-align: left;
    border: 1px solid #DDE5DA;
}

.genus-guide-table th {
    background: #2E7D32;
    color: #FFFFFF;
    font-weight: 600;
}

.genus-guide-table td {
    background: #FFFFFF;
}

.genus-definition {
    margin-bottom: 10px;
}

.genus-definition dl {
    margin: 0;
}

.genus-definition dt {
    font-weight: bold;
    color: #2E7D32;
    margin-top: 15px;
}

.genus-definition dd {
    margin: 5px 0 0 0;
    line-height: 1.6;
    color: #555555;
}

.genus-guide-aside {
    width: 30%;
    float: right;
    background: #FFFFFF;
    border: 2px solid #2E7D32;
    border-radius: 12px;
    padding: 25px;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.genus-aside-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F7F2;
    border-radius: 50%;
    margin-bottom: 15px;
}

.genus-aside-icon i {
    color: #2E7D32;
    font-size: 22px;
}

.genus-guide-aside p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.genus-aside-divider {
    height: 1px;
    background: #DDE5DA;
    margin: 20px 0;
}

.genus-aside-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
}

.genus-aside-flow i {
    color: #2E7D32;
    font-size: 12px;
}

.tip-toggle {
    display: none;
}

.identification-tip {
    position: relative;
    width: 320px;
    padding: 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    border-left: 5px solid #2E7D32;
}

.tip-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    background: #F5F7F2;
}

.tip-close:hover {
    color: #2E7D32;
}

.tip-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F7F2;
    color: #2E7D32;
    font-size: 22px;
    margin-bottom: 15px;
}

.tip-label {
    color: #2E7D32;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.identification-tip p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.tip-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #2E7D32;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
}

.tip-toggle:checked ~ .tip-overlay {
    display: none;
}

.profile-main {
    padding: 130px 20px 80px 20px;
    background-color: #F8FBF7;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    background: #FFFFFF;
    max-width: 650px;
    width: 100%;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(26, 67, 50, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px auto;
    border: 4px solid #EAF7E3;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-base-info {
    margin-bottom: 35px;
}

.profile-base-info .p-name {
    font-size: 28px;
    font-weight: 800;
    color: #1A4332;
    margin: 0 0 8px 0;
}

.profile-base-info .p-id,
.profile-base-info .p-course {
    font-size: 15px;
    color: #718096;
    margin: 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.profile-sub-title {
    font-size: 20px;
    color: #1A4332;
    margin: 0 0 15px 0;
    font-weight: 700;
    text-align: center;
}

.profile-details-zone {
    width: 100%;
    margin-bottom: 40px;
}

.modern-profile-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background-color: #FFFFFF;
    text-align: left;
}

.modern-profile-table th,
.modern-profile-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #E2E8F0;
}

.modern-profile-table th {
    background-color: #F8FBF7;
    color: #1A4332;
    font-weight: 700;
    border-bottom: 2px solid #EAF7E3;
}

.modern-profile-table td {
    color: #4A5568;
}

.profile-action-zone {
    width: 100%;
    display: flex;
    justify-content: center;
}

.profile-email-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #6DBE45;
    color: #FFFFFF !important;
    padding: 14px 40px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(109, 190, 69, 0.3);
    transition: all 0.25s ease;
}

.profile-email-btn:hover {
    background-color: #1A4332;
    box-shadow: 0 8px 22px rgba(26, 67, 50, 0.35);
    transform: translateY(-2px);
}

.species-card-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.species-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #2E7D32;
    border-radius: 6px;
    background: #F5F7F2;
    color: #2E7D32;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.species-nav-button:hover {
    background: #2E7D32;
    color: #FFFFFF;
}

@media (max-width: 1000px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-container,
    .biodiversity-layout {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 42px;
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .classification-grid {
        grid-template-columns: 1fr;
    }
    .information-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .classification-flow {
        flex-direction: column;
    }
    .flow-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 800px) {
    .genus-guide-main {
        margin-right: 0;
        margin-bottom: 25px;
    }
    .genus-guide-aside {
        width: 100%;
        float: none;
    }
}

@media (max-width: 700px) {
    .nav-container {
        min-height: 65px;
        padding: 12px 0;
        flex-direction: row;
    }
    .hamburger {
        display: block;
    }
    .navbar nav {
        display: none;
    }
    #menu-toggle:checked ~ nav {
        display: block;
    }
    .navbar nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #FFFFFF;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 10px 0;
    }
    .nav-links > li {
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        justify-content: center;
        padding: 12px;
    }
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        background: #F5F7F2;
    }
    .hero {
        padding-top: 100px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .feature-grid,
    .stats-grid,
    .footer-container,
    .information-grid,
    .family-grid,
    .genera-grid,
    .contribution-grid,
    .contributor-grid,
    .identify-plant-grid,
    .plant-result-grid {
        grid-template-columns: 1fr;
    }
    .explore-hero h1,
    .classification-hero h1 {
        font-size: 36px;
    }
    .plant-search,
    .explore-search {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .plant-search button,
    .explore-search button {
        width: 100%;
    }
    .navigation-buttons {
        flex-direction: column;
    }
    .primary-button,
    .secondary-button {
        justify-content: center;
    }
    .family-card img,
    .genus-card > img {
        height: 320px;
    }
    .family-content,
    .genus-content {
        padding: 25px;
    }
    .flip-card {
        height: 430px;
    }
    .flip-card-front img {
        height: 300px;
    }
    .plant-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .plant-gallery img:first-child {
        grid-row: auto;
    }
    .species-flip-card {
        height: 590px;
    }
    .family-flip-card {
        height: 620px;
    }
    .genus-flip-card {
        height: 500px;
    }
    .contributor-detail-card {
        grid-template-columns: 1fr;
    }
    .contributor-detail-card img {
        height: 300px;
    }
    .contributor-detail-content {
        padding: 25px;
    }
    .contributor-introduction-content {
        padding: 40px 25px;
    }
    .contribution-form {
        padding: 25px 20px;
        width: 100%;
    }
    .contribution-form fieldset {
        padding: 20px;
    }
    .form-group {
        display: block;
    }
    .form-group label {
        display: block;
        width: 100%;
        padding-top: 0;
        margin-bottom: 8px;
    }
    .form-group input[type="text"],
    .form-group input[type="file"],
    .form-group textarea {
        width: 100%;
        min-width: 0;
    }
    .form-buttons {
        flex-direction: column;
    }
    .form-buttons .primary-button,
    .form-buttons .secondary-button {
        width: 100%;
        justify-content: center;
    }
    .enquiry-section {
        padding: 50px 0 90px;
    }
    .enquiry-form {
        padding: 25px;
    }
    .identify-section {
        padding: 50px 0 90px;
    }
    .identify-box,
    .identify-search,
    .plant-result {
        padding: 25px;
    }
    .identification-guide,
    .explore-guide,
    .family-guide {
        width: 85vw;
        min-width: auto;
    }
    .guide-overlay,
    .explore-guide-overlay,
    .family-guide-overlay {
        justify-content: center;
        padding: 20px;
    }
    .classification-flow {
        grid-template-columns: 1fr;
    }
    .classification-table,
    .family-table {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .genus-guide-section {
        padding: 60px 0;
    }
    .genus-guide-main {
        padding: 20px;
    }
    .genus-guide-figure img {
        max-height: 220px;
    }
    .genus-guide-table th,
    .genus-guide-table td {
        padding: 10px;
        font-size: 14px;
    }
    .profile-main {
        padding: 100px 15px 50px 15px;
    }
    .profile-card {
        padding: 35px 20px;
    }
    .modern-profile-table th,
    .modern-profile-table td {
        padding: 12px 10px;
        font-size: 14px;
    }
}

/* Genus Guide Popup */
#genus-guide-toggle:not(:checked) ~ .guide-overlay {
    display: none;
}

#genus-guide-toggle:checked ~ .guide-overlay {
    display: flex;
}

/* Genus Guide Button */
.genus-guide-open {
    cursor: pointer;
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9998;
}

/* Assignment 2: linked enquiry dropdown / automatically filled subject. */
.enquiry-form .enquiry-help {
    margin: 6px 0 12px;
    color: #506558;
    font-size: 13px;
}
.enquiry-form input[readonly] {
    background-color: #F4F8F3;
    color: #214D2C;
}
.enquiry-form select:disabled {
    background-color: #F1F4F0;
    cursor: not-allowed;
}


/* =========================================================
   Assignment 2 Enhancement 1: Automatic Image Slideshow
   Homepage hero only; original left-side layout is unchanged.
   ========================================================= */
.hero-slideshow {
    min-width: 0;
}

.slideshow-viewport {
    position: relative;
    overflow: hidden;
    height: 500px;
    background: #e7ede3;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Specificity overrides the original .hero-image img without changing other pages. */
.hero-image .slideshow-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.24s ease;
    box-shadow: none;
}

.hero-image .slideshow-photo.is-fading {
    opacity: 0;
}

.slideshow-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 18px 14px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: end;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    pointer-events: none;
}

.slideshow-caption span:first-child { flex: 1; }
.slideshow-caption span:last-child { white-space: nowrap; font-size: 13px; }

.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #245b29;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.slideshow-arrow:hover,
.slideshow-arrow:focus-visible {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
    outline: 2px solid #2e7d32;
}

.slideshow-prev { left: 12px; }
.slideshow-next { right: 12px; }

.slideshow-dots {
    margin: 12px auto 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
}

.slideshow-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: #bac9ba;
    cursor: pointer;
}

.slideshow-dot.is-active { background: #2e7d32; transform: scale(1.25); }
.slideshow-dot:focus-visible { outline: 2px solid #2e7d32; outline-offset: 3px; }

.slideshow-help { margin: 8px 0 0; font-size: 12px; text-align: center; color: #5e6b5e; }

@media (max-width: 700px) {
    .slideshow-viewport { height: 360px; }
    .slideshow-arrow { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-image .slideshow-photo { transition: none; }
    .slideshow-arrow { transition: none; }
}

.enhancement-report { padding-top: 110px; padding-bottom: 80px; }


/* Assignment 2 Enhancement 3: Enquiry form review dialog */
.form-preview-overlay[hidden], .plant-lightbox[hidden] { display: none !important; }
.modal-is-open { overflow: hidden; }
.form-preview-overlay, .plant-lightbox {
    position: fixed; inset: 0; z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    padding: 24px; background: rgba(10, 24, 19, .78);
}
.form-preview-panel {
    position: relative; width: min(100%, 720px); max-height: 90vh; overflow-y: auto;
    padding: 30px; border-radius: 18px; background: white;
    box-shadow: 0 16px 55px rgba(0, 0, 0, .24);
}
.form-preview-panel h2 { padding-right: 44px; }
.form-preview-close, .plant-lightbox-close {
    position: absolute; top: 10px; right: 14px;
    font-size: 30px; border: 0; background: transparent;
    color: #244c39; cursor: pointer; z-index: 2;
}
.form-preview-details {
    display: grid; grid-template-columns: minmax(120px, 35%) minmax(0, 1fr);
    gap: 8px 15px; margin: 22px 0;
}
.form-preview-details dt { font-weight: 700; color: #1A4332; }
.form-preview-details dd { margin: 0; word-wrap: break-word; white-space: pre-wrap; }
.form-preview-details dt, .form-preview-details dd { padding: 9px 0; border-bottom: 1px solid #e3ece3; }
.form-preview-note { color: #57665c; font-size: 13px; }
.form-preview-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; margin-top: 22px; }
.form-preview-actions button, #enquiry-preview-button {
    padding: 11px 18px; border: 0; border-radius: 8px; cursor: pointer;
}
#enquiry-preview-button, .form-preview-actions .primary-button { background: #2E7D32; color: #fff; }
.form-preview-actions .secondary-button { background: #eaf0e8; color: #1A4332; }

/* Assignment 2 Enhancement 4: mark current navigation item */
.navbar .nav-links a.is-current-page {
    color: #1d6e34; font-weight: 700; background: #e0f0dd;
    border-radius: 8px; padding: 8px 10px;
}
.navbar .nav-links .dropdown-menu a.is-current-page { border-radius: 6px; }
.navbar .logo.is-current-page { text-decoration: underline; text-underline-offset: 5px; }

/* Assignment 2 Enhancement 5: zoom the original plant card photos */
.lightbox-image-trigger { cursor: zoom-in; }
.lightbox-open-button {
    position: absolute; top: 11px; right: 11px; z-index: 2;
    padding: 7px 12px; border: 1px solid #2E7D32;
    background: #fff; color: #25632a; border-radius: 7px;
    font-size: 12px; font-weight: 700; cursor: pointer;
}
.lightbox-open-button:hover, .lightbox-open-button:focus-visible { background: #e3f1df; }
.plant-lightbox { z-index: 3500; }
.plant-lightbox-panel { position: relative; width: min(96vw, 1050px); display: flex; flex-direction: column; align-items: center; }
.plant-lightbox-image { width: 100%; height: min(75vh, 730px); object-fit: contain; border-radius: 10px; background: #15231b; }
.plant-lightbox-caption { color: white; font-size: 16px; text-align: center; margin-top: 12px; }
.plant-lightbox-close { color: white; top: -50px; right: 0; font-size: 36px; }
.plant-lightbox-prev, .plant-lightbox-next {
    position: absolute; top: 40%; border: 0; border-radius: 50%;
    width: 45px; height: 45px; background: rgba(255,255,255,.92); color: #164329;
    font-size: 27px; cursor: pointer; z-index: 1;
}
.plant-lightbox-prev { left: 8px; }
.plant-lightbox-next { right: 8px; }
.plant-lightbox button:focus-visible, .form-preview-overlay button:focus-visible {
    outline: 3px solid #73c58b; outline-offset: 3px;
}
.enhancement-report article.feature-card { margin: 20px 0; }
.enhancement-report article.feature-card p { margin-bottom: 12px; }
.enhancement-report article.feature-card a { color: #1b6b35; text-decoration: underline; }
@media (max-width: 700px) {
    .form-preview-panel { padding: 20px; }
    .form-preview-details { grid-template-columns: 1fr; gap: 0; }
    .form-preview-details dt { border: 0; padding: 10px 0 0; }
    .form-preview-details dd { padding: 0 0 8px; }
    .plant-lightbox-image { height: 62vh; }
}


/* Assignment 2 Enhancement 2: image-based plant identification via Pl@ntNet. */
.ai-identify-box { max-width: 840px; text-align: left; padding: clamp(22px, 4vw, 40px); }
.ai-identify-box .identify-icon { margin-left: 0; }
.ai-identify-box > h2 { font-size: clamp(25px, 3vw, 34px); margin-bottom: 12px; }
.ai-identify-box > p:not(.ai-eyebrow) { margin: 0 0 22px; max-width: 720px; color: #4e5f51; }
.ai-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: #28763c; margin: 0 0 10px !important; }
.ai-identify-box .identify-upload label { text-align: left; font-size: 14px; margin-top: 18px; color: #254534; }
.ai-identify-box .identify-upload input[type="file"] { margin-bottom: 6px; border: 1px dashed #76a782; background: #f8fcf8; }
.ai-identify-box select, .ai-identify-box input[type="password"] {
    width: 100%; border: 1px solid #cddccf; border-radius: 8px; padding: 12px;
    color: #263b2a; background: white; font: inherit;
}
.ai-identify-box input:focus-visible, .ai-identify-box select:focus-visible,
.ai-identify-box button:focus-visible, .ai-browse-links a:focus-visible {
    outline: 3px solid #73c58b; outline-offset: 3px;
}
.ai-photo-preview[hidden], .ai-results-section[hidden] { display: none !important; }
.ai-photo-preview {
    display: flex; gap: 14px; align-items: center; margin: 12px 0 22px;
    padding: 10px; border: 1px solid #e2ebde; border-radius: 12px; background: #f6faf5;
}
.ai-photo-preview img { height: 100px; width: 110px; object-fit: contain; background: #e8f0e7; border-radius: 9px; }
.ai-photo-preview span { color: #45604a; font-size: 13px; overflow-wrap: anywhere; }
.ai-api-settings { margin: 20px 0; padding: 16px; background: #f6faf5; border: 1px solid #d7e6d7; border-radius: 10px; }
.ai-api-settings summary { cursor: pointer; font-size: 14px; color: #28623a; font-weight: 700; }
.ai-api-settings p { font-size: 12px; color: #57675a; margin: 13px 0 4px; line-height: 1.7; }
.ai-api-settings label { margin-top: 14px; }
.ai-api-settings a { color: #286f3b; text-decoration: underline; }
#identify-submit { margin: 4px 0 0; width: 100%; font-weight: 700; }
#identify-submit[disabled] { opacity: .6; cursor: wait; }
.ai-photo-privacy { font-size: 12px; color: #5b6b60; line-height: 1.6; margin: 13px 0 0 !important; }
.ai-status { margin: 15px 0 0 !important; min-height: 1.3em; font-size: 14px; font-weight: 600; }
.ai-status.is-error { color: #b12b27 !important; }
.ai-status.is-success { color: #247143 !important; }
.ai-results-section { max-width: 900px; margin: 0 auto 55px; }
.ai-results-heading { text-align: center; margin-bottom: 22px; }
.ai-results-heading h2 { font-size: 30px; color: #173f2a; margin: 8px 0; }
.ai-results-heading > p:last-child { color: #5b6e5e; max-width: 720px; margin: 0 auto; }
.ai-result-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(235px,1fr)); gap: 15px; }
.ai-result-card { background: white; border-radius: 12px; padding: 22px; box-shadow: 0 6px 24px rgba(0,0,0,.06); border: 1px solid #dbe9d9; }
.ai-result-card:first-child { border: 2px solid #2e7d32; }
.ai-result-rank { font-size: 11px; font-weight: 800; color: #2e7d32; letter-spacing: 1.2px; text-transform: uppercase; }
.ai-result-card h3 { overflow-wrap: anywhere; margin: 9px 0; color: #174329; font-size: 20px; }
.ai-result-score { font-size: 22px; font-weight: 800; color: #2e7d32; margin: 10px 0; }
.ai-result-card dl { margin: 14px 0 0; }
.ai-result-card dt { font-size: 12px; font-weight: 800; color: #596e5e; margin-top: 9px; }
.ai-result-card dd { font-size: 14px; margin: 3px 0 0; overflow-wrap: anywhere; }
.ai-quota { color: #5b6b60; font-size: 12px; margin-top: 12px; text-align: center; }
.ai-browse-links { display: flex; gap: 12px; flex-wrap: wrap; }
.ai-browse-links a { padding: 10px 15px; background: #e7f2e6; color: #205f32; font-weight: 700; border-radius: 8px; text-decoration: none; }
.ai-browse-links a:hover { background: #d4e7d1; }
@media (max-width: 550px) {
    .ai-photo-preview { flex-direction: column; align-items: flex-start; }
    .ai-photo-preview img { width: 100%; height: 160px; }
    .ai-result-grid { grid-template-columns: 1fr; }
}


/* Enhancement 2: clear recognition / no-plant state and photo comparisons. */
.ai-detection-feedback[hidden] { display: none !important; }
.ai-detection-feedback {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 22px 24px; margin: 0 0 22px;
    border-radius: 14px; border: 1px solid #c8e1cd;
    background: #eff8f0; color: #225135;
}
.ai-detection-feedback.is-unknown { background: #fff8e9; border-color: #ecd49b; color: #765419; }
.ai-feedback-icon { font-size: 26px; margin-top: 4px; }
.ai-detection-feedback h3 { margin: 0 0 6px; font-size: 23px; color: inherit; }
.ai-detection-feedback p { color: inherit; margin: 0; line-height: 1.6; }
.ai-remember-key { display: flex !important; align-items: center; gap: 8px; font-size: 13px !important; }
.ai-remember-key input { width: auto !important; accent-color: #377e48; }
.ai-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ai-result-card { display: flex; flex-direction: column; min-width: 0; gap: 10px; }
.ai-result-card.ai-top-match {
    grid-column: 1 / -1; display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, .78fr) minmax(0, 1.3fr);
    gap: 18px; align-items: start; background: #f8fcf7;
}
.ai-result-content { min-width: 0; }
.ai-result-card h3 { margin-bottom: 4px; }
.ai-common-name { color: #5b6b60; margin: 0 0 12px; font-size: 14px; }
.ai-result-card figure { margin: 0; min-width: 0; }
.ai-result-card figure img { width: 100%; height: 185px; border-radius: 10px; object-fit: contain; background: #ecf1e8; display: block; }
.ai-result-card figure figcaption { font-size: 11px; color: #687668; line-height: 1.5; padding-top: 7px; overflow-wrap: anywhere; }
.ai-result-card .ai-reference-photo img { object-fit: cover; }
.ai-score-row { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.ai-score-row .ai-result-score { font-size: 27px; margin: 3px 0; }
.ai-score-guide { color: #4d6b50; font-size: 12px; }
.ai-score-track { height: 9px; overflow: hidden; border-radius: 999px; background: #dfeadf; }
.ai-score-fill { height: 100%; background: linear-gradient(90deg, #85b77a, #28784e); border-radius: inherit; }
.ai-score-disclaimer { font-size: 11px; color: #637164; line-height: 1.55; margin-top: 14px; }
@media (max-width: 780px) {
    .ai-result-card.ai-top-match { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ai-result-card.ai-top-match .ai-result-content { grid-column: 1 / -1; }
}
@media (max-width: 550px) {
    .ai-result-grid { grid-template-columns: 1fr; }
    .ai-result-card.ai-top-match { grid-template-columns: minmax(0, 1fr); }
    .ai-result-card.ai-top-match .ai-result-content { grid-column: auto; }
    .ai-detection-feedback { padding: 16px; }
}


/* Enhancement 6/7: persistent plant identification history and candidate comparison. */
.ai-history, .ai-comparison {
    max-width: 900px; margin: 0 auto 55px; padding: 25px;
    background: #f8fcf7; border: 1px solid #dcebd9; border-radius: 15px;
}
.ai-comparison { margin: 26px 0 0; background: #f3faf3; }
.ai-comparison[hidden] { display: none !important; }
.ai-feature-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.ai-feature-header h2, .ai-feature-header h3 { color: #19462e; margin: 7px 0; font-size: clamp(20px, 2.5vw, 27px); }
.ai-feature-header p:not(.section-label) { color: #5b6b5e; font-size: 14px; line-height: 1.6; margin: 6px 0; }
.ai-action-button, .ai-compare-button {
    border: 1px solid #7eaa82; background: white; color: #246036;
    padding: 10px 14px; border-radius: 9px; font: inherit; font-size: 13px;
    font-weight: 700; cursor: pointer; transition: background-color .2s;
}
.ai-action-button:hover, .ai-compare-button:hover { background: #e3f0e1; }
.ai-action-button:focus-visible, .ai-compare-button:focus-visible { outline: 3px solid #83c993; outline-offset: 3px; }
.ai-action-button:disabled { opacity: .45; cursor: not-allowed; }
.ai-action-danger { border-color: #dcbbbb; color: #9a3d3d; }
.ai-compare-button { margin-top: 13px; align-self: start; }
.ai-compare-button[aria-pressed="true"] { background: #267348; border-color: #267348; color: white; }
.ai-small-note { font-size: 13px; color: #556958; margin: 0 0 15px; line-height: 1.6; }
.ai-history-list { display: grid; gap: 11px; }
.ai-history-empty { color: #607166; font-size: 14px; padding: 14px 0; }
.ai-history-item {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    border: 1px solid #e1ebdf; border-radius: 10px; background: #fff; padding: 15px;
}
.ai-history-info { display: grid; gap: 7px; min-width: 0; }
.ai-history-info strong { font-size: 17px; color: #225034; overflow-wrap: anywhere; }
.ai-history-info span { font-size: 12px; color: #637568; }
.ai-history-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.ai-comparison-table { width: 100%; overflow-x: auto; }
.ai-difference-table { border-collapse: collapse; width: 100%; background: #fff; font-size: 14px; min-width: 450px; }
.ai-difference-table caption { text-align: left; font-weight: 700; color: #365741; padding: 0 0 10px; }
.ai-difference-table th, .ai-difference-table td { border: 1px solid #d8e8d6; padding: 12px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.ai-difference-table thead { background: #dcf0dc; color: #19472d; }
.ai-difference-table tbody th { background: #f3f9f2; color: #365543; width: 28%; }
@media (max-width: 650px) {
    .ai-feature-header, .ai-history-item { flex-direction: column; align-items: stretch; }
    .ai-history-actions { margin-top: 6px; }
    .ai-history, .ai-comparison { padding: 18px; }
}
