/* General Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
    color: #2c3e50;
}

a {
    color: #2980b9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Navigation */
#top-nav {
background-color: #2c3e50;
padding: 1rem;
position: sticky;
top: 0;
z-index: 100;
}

#top-nav ul {
list-style: none;
display: flex;
justify-content: center;
gap: 1.5rem;
}

#top-nav li {
display: inline;
}

#top-nav a.button-link {
color: white;
padding: 0.5rem 1rem;
border-radius: 5px;
transition: background-color 0.3s;
}

#top-nav a.button-link:hover {
background-color: #34495e;
text-decoration: none;
}

.hamburger {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Header */
header {
    text-align: center;
    padding: 2rem;
    background-color: #ecf0f1;
}

header .logo {
    max-width: 150px;
    margin-bottom: 1rem;
}

header h1 {
    font-size: 2.5rem;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #2980b9;
    padding-bottom: 0.5rem;
}

/* Error and Success Messages */
.error, .success {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.error {
    background-color: #e74c3c;
    color: white;
}

.success {
    background-color: #2ecc71;
    color: white;
}

/* Evidence Gallery */
#evidence-gallery {
position: relative;
}

#evidence-carousel {
display: flex;
align-items: center;
position: relative;
overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-item {
    flex: 0 0 300px;
    margin-right: 20px;
    cursor: pointer;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.carousel-item img, .carousel-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.carousel-caption {
    padding: 1rem;
    text-align: center;
}

.carousel-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.carousel-nav {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

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

.lightbox-media {
    max-width: 90%;
    max-height: 80vh;
    text-align: center;
}

.lightbox-image, .lightbox-video {
    max-width: 100%;
    max-height: 80vh;
}

.lightbox-caption {
    color: white;
    text-align: center;
    max-width: 90%;
    padding: 1rem;
}

.lightbox-caption h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.nav-btn.prev {
    left: 10px;
}

.nav-btn.next {
    right: 10px;
}

/* Bio and Contact */
.bio-image, .contact-image {
    max-width: 200px;
    margin-bottom: 1rem;
    border-radius: 5px;
}

/* Management Sections */
.management-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-top: 1rem;
}

.expand-icon {
    font-size: 1.2rem;
}

.management-section {
    display: none;
    background-color: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.management-auth input[type="password"] {
    padding: 0.5rem;
    margin-right: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.management-controls form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.management-controls input, .management-controls textarea, .management-controls select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.management-controls button {
    padding: 0.5rem 1rem;
    background-color: #2980b9;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.management-controls button:hover {
    background-color: #3498db;
}

.logout-button {
    display: inline-block;
    margin-top: 1rem;
    color: #e74c3c;
}

.inline-form {
    display: inline;
}

.inline-form button {
    background-color: #e74c3c;
}

.inline-form button:hover {
    background-color: #c0392b;
}

.evidence-item, .blog-post, .testimonial, .category {
    background-color: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.evidence-image, .blog-post-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.evidence-video {
    max-width: 100%;
    height: auto;
}

/* Reviews */
#testimonial-list .testimonial {
margin-bottom: 1rem;
}

#testimonial-form {
display: flex;
flex-direction: column;
gap: 0.5rem;
}

#captcha {
margin: 1rem 0;
}

#captcha-question {
margin-bottom: 0.5rem;
}

/* Updates */
#blog-list .blog-post {
margin-bottom: 2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #2c3e50;
    color: white;
}

footer a {
    color: #3498db;
}

/* Responsive Design */
@media (max-width: 768px) {
    #top-nav ul {
    display: none;
    flex-direction: column;
    background-color: #2c3e50;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    }

    #top-nav ul.active {
    display: flex;
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .carousel-item {
        flex: 0 0 250px;
    }

    .lightbox-media {
        max-width: 95%;
    }
}
