/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

header {
    background: #2c3e50;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .logo img {
    height: 100px;
    margin-left: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-right: 20px;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #1abc9c;
}

section {
    padding: 80px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* About Us Section */
#about {
    background: #fff;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.about-content h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 20px;
    margin-top: 0px;
}

.about-content p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}

/* Product Section */
#product {
    background: #1abc9c;
    color: #fff;
}

.product-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.product-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    margin-top: 0px;
}

.product-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

#learn-more {
    background: #fff;
    color: #1abc9c;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

#learn-more:hover {
    background: #2c3e50;
    color: #fff;
}

/* Team Section */
#team {
    background: #fff;
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.team-member {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.team-member img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member h2 {
    font-size: 1.5em;
    margin: 10px 0;
    color: #2c3e50;
}

.team-member p {
    font-size: 0.9em;
    color: #555;
}

/* Blog Section Styles - For both index and blog pages */
.blog-section {
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e5e9f2 100%);
    min-height: calc(100vh - 200px);
}

.blog-section h1 {
    font-size: 2.8em;
    color: #2c3e50;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.blog-section h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1abc9c;
    border-radius: 2px;
}

.blog-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.blog-post {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-post h2 {
    font-size: 1.5em;
    color: #2c3e50;
    margin: 0;
    padding: 20px 25px;
    line-height: 1.4;
}

.blog-post p {
    padding: 0 25px;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-post small {
    color: #888;
    font-size: 0.85em;
    padding: 15px 25px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.read-more {
    display: inline-block;
    color: #1abc9c;
    text-decoration: none;
    font-weight: 500;
    padding: 15px 25px;
    position: relative;
    transition: all 0.3s ease;
}

.read-more::after {
    content: '→';
    position: absolute;
    right: 15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.read-more:hover {
    padding-right: 35px;
    color: #16a085;
}

.read-more:hover::after {
    right: 25px;
    opacity: 1;
}

/* Home page specific styles */
.index-page .blog-container {
    grid-template-columns: repeat(3, 1fr);
}

/* Responsive styles */
@media (max-width: 768px) {
    .blog-section {
        padding: 100px 15px 40px;
    }

    .blog-section h1 {
        font-size: 2.2em;
    }

    .blog-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-post h2 {
        font-size: 1.3em;
    }
}

.view-all-blogs {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #1abc9c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all-blogs:hover {
    color: #16a085;
}

/* Admin Panel Styles */
.admin-section {
    min-height: calc(100vh - 200px);
    padding: 120px 20px 40px;
    background: linear-gradient(135deg, #f5f7fa, #e5e9f2);
}

.admin-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header-actions h1 {
    color: #2c3e50;
    margin: 0;
}

.logout-button {
    background: #e74c3c;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.logout-button:hover {
    background: #c0392b;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-form .form-group {
    position: relative;
}

.admin-form label {
    position: absolute;
    left: 12px;
    top: -10px;
    background: #fff;
    padding: 0 5px;
    font-size: 14px;
    color: #666;
    z-index: 1;
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #fff;
}

.admin-form textarea {
    min-height: 200px;
    resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus {
    border-color: #1abc9c;
    outline: none;
}

.admin-form button {
    background: #1abc9c;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.admin-form button:hover {
    background: #16a085;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* Logo Styles */
.logo a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.1); /* Slightly enlarge the logo on hover */
}


/* Base styles */
/* header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
} */

.logo img {
    height: 50px;
}

/* Add transition for the nav element */
nav {
    flex-grow: 1;
    transition: max-height 0.3s ease-in-out;
    max-height: 0; /* Initially hide the menu */
}

nav.active {
    max-height: 500px; /* Adjust this value based on your menu's height */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.nav-links li {
    display: inline-block;
}


/* Hide menu toggle button on desktop */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        color: white;
        padding: 20px;
    }

    .nav-links a {
        text-decoration: none;
        color: #333;
        font-weight: 500;
        padding: 10px;
    }

    nav {
        position: absolute;
        top: 105px;
        right: 0;
        background: white;
        width: 100%;
        display: none;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }

    .nav-links li {
        display: block;
        padding: 10px 0;
    }

    nav.active {
        display: block;
    }
    
}

/* Cover Section Styles */
.cover {
    background-image: url('../images/cover.jpg'); /* Add your low-res image */
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 150px 20px; /* Increased padding for a taller section */
    text-align: center;
    color: #fff;
    overflow: hidden; /* Ensure the blur effect doesn't overflow */
    height: 500px; /* Set a fixed height for the cover section */
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for better readability */
    z-index: 1;
}

.cover-content {
    position: relative;
    z-index: 2; /* Place content above the overlay */
    max-width: 800px;
    margin: 0 auto;
}

.cover h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cover p {
    font-size: 1.5em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-button {
    background: #1abc9c;
    color: #fff;
    padding: 10px 20px;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #16a085;
}

/* Blur Effect for Low-Resolution Image */
.cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/cover.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    z-index: 0;
}

/* Responsive Styles for Cover Section */
@media (max-width: 768px) {
    .cover {
        height: 400px; /* Adjust height for smaller screens */
        padding: 100px 20px; /* Adjust padding for smaller screens */
    }

    .cover h1 {
        font-size: 2.5em;
    }

    .cover p {
        font-size: 1.2em;
    }

    .cta-button {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .cover {
        height: 300px; /* Adjust height for mobile screens */
        padding: 80px 20px; /* Adjust padding for mobile screens */
    }

    .cover h1 {
        font-size: 2em;
    }

    .cover p {
        font-size: 1em;
    }

    .cta-button {
        font-size: 0.9em;
    }
}
.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(325deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 1;
}


/* Blog Details Section Styles */
.blog-details-section {
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, #f5f7fa, #e5e9f2);
    min-height: calc(100vh - 200px);
}

.blog-details-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-details-container h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.blog-details-date {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.blog-details-content {
    font-size: 1.1em;
    color: #444;
    line-height: 1.8;
    margin-bottom: 40px;
}

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

.blog-details-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.back-to-blogs {
    display: inline-flex;
    align-items: center;
    color: #1abc9c;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-to-blogs:hover {
    color: #fff;
    background: #1abc9c;
    transform: translateX(-5px);
}

/* Responsive styles */
@media (max-width: 768px) {
    .blog-details-container {
        padding: 20px;
    }

    .blog-details-container h1 {
        font-size: 2em;
    }

    .blog-details-content {
        font-size: 1em;
    }
}

/* Add this to your styles.css */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1abc9c, #2c3e50);
}

.login-container {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.login-form input {
    width: 89%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    border-color: #1abc9c;
    outline: none;
}

.login-form label {
    position: absolute;
    left: 12px;
    top: -10px;
    background: #fff;
    padding: 0 5px;
    font-size: 14px;
    color: #666;
}

.login-form button {
    background: #1abc9c;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-form button:hover {
    background: #16a085;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    background: #fde8e7;
    border-radius: 5px;
}


/* Existing Posts Styles */
.existing-posts {
    margin-top: 40px;
    border-top: 2px solid #e0e0e0;
    padding-top: 20px;
}

.existing-posts h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: background 0.3s ease;
}

.post-item:hover {
    background: #f1f3f5;
}

.post-content {
    flex-grow: 1;
}

.post-content h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.post-date {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0 0 0;
}

.delete-form {
    margin-left: 20px;
}

.delete-button {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.delete-button:hover {
    background: #c0392b;
}

.BunnyTracker{
    text-decoration: none;
    color: black;
}

.BunnyTracker:hover {
    color: white;
}