/* ============================================
   Lorax Woodlands - Recreated Stylesheet
   Based on WordPress Boot Store theme
   ============================================ */

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

body {
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    background-color: #f7efde;
}

a {
    color: #006d33;
    text-decoration: none;
}

a:hover {
    color: #004d24;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ============================================
   Header
   ============================================ */
.site-header {
    text-align: left;
    padding-top: 30px;
}

.site-branding {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-title {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 0;
}

.site-title a {
    color: #006d33;
    text-decoration: none;
}

.site-title a:hover {
    text-decoration: none;
    opacity: 0.8;
}

.site-description {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 2px;
    margin-bottom: 15px;
}

.header-image {
    width: 100%;
    max-width: 780px;
    margin: 10px auto 0;
    overflow: hidden;
}

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

/* ============================================
   Navigation
   ============================================ */
.main-navigation {
    background: #fff;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    max-width: 780px;
    margin: 0 auto;
}

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

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
}

.nav-menu li a {
    display: block;
    padding: 12px 18px;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.nav-menu li a:hover,
.nav-menu li.current a {
    background: #f5f5f5;
    color: #006d33;
}

.search-box {
    flex-shrink: 0;
}

.search-box input {
    border: 1px solid #ddd;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 3px;
    width: 140px;
    font-family: "Open Sans", sans-serif;
}

.search-box input:focus {
    outline: none;
    border-color: #006d33;
}

/* ============================================
   Carousel / Slideshow
   ============================================ */
.carousel-section {
    max-width: 780px;
    margin: 0 auto;
}

.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    top: 30px;
    left: 40px;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.slide-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.slide-summary {
    font-size: 16px;
    font-weight: 400;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 15px 12px;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0,0,0,0.6);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* ============================================
   Main Content
   ============================================ */
.site-content {
    padding: 30px 0 50px;
}

.page-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.page-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 30px 0 15px;
}

.page-content p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.7;
}

.content-with-image {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
}

.content-with-image .text-content {
    flex: 1;
}

.content-with-image .side-image {
    flex-shrink: 0;
    width: 250px;
}

.content-with-image .side-image img {
    width: 100%;
    border-radius: 2px;
}

.full-width-image {
    margin: 25px 0;
}

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

/* ============================================
   Forest Species Page
   ============================================ */
.species-image {
    float: right;
    margin: 0 0 15px 20px;
    width: 250px;
}

.species-image img {
    width: 100%;
}

.species-image figcaption {
    font-size: 12px;
    font-style: italic;
    color: #666;
    text-align: center;
    margin-top: 5px;
}

.references-list {
    margin: 15px 0 15px 25px;
}

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

.view-database-btn {
    display: inline-block;
    margin: 20px 0;
    padding: 10px 25px;
    background: #006d33;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.view-database-btn:hover {
    background: #004d24;
    color: #fff;
    text-decoration: none;
}

/* ============================================
   Photo Gallery
   ============================================ */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.gallery-item {
    overflow: hidden;
    border: 2px solid #cfcfcf;
}

.gallery-item a {
    display: block;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    background: none;
    border: none;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-email a {
    font-size: 18px;
    font-weight: 600;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #333;
    color: #aaa;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
}

.site-footer a {
    color: #ccc;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .content-with-image {
        flex-direction: column;
    }

    .content-with-image .side-image {
        width: 100%;
    }

    .nav-menu {
        flex-wrap: wrap;
    }

    .nav-menu li a {
        padding: 10px 12px;
        font-size: 12px;
    }

    .search-box {
        display: none;
    }

    .carousel {
        height: 250px;
    }

    .slide-title {
        font-size: 20px;
    }

    .photo-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .species-image {
        float: none;
        width: 100%;
        margin: 0 0 15px 0;
    }
}

@media (max-width: 480px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .carousel {
        height: 200px;
    }
}
