/*
 *= require_tree .
 *= require_self
 *= require actiontext
 */
 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    padding: 1.5rem 2rem;
    background: steelblue;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 0.8rem 2rem;
    background: rgba(70, 130, 180, 0.9);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo img {
    height: 50px;
    width: auto;
    margin: -4px 0;
    transition: all 0.3s ease;
}

nav.scrolled .logo img {
    height: 40px;
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger span.active:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger span.active:nth-child(2) {
    opacity: 0;
}

.hamburger span.active:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a,
.nav-links li .nav-link {
    text-decoration: none;
    color: white;
    padding: 0 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links li a:not(.admin-link)::after,
.nav-links li .nav-link:not(.admin-link)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links li a:not(.admin-link):hover::after,
.nav-links li a:not(.admin-link).active::after,
.nav-links li .nav-link:not(.admin-link):hover::after,
.nav-links li .nav-link:not(.admin-link).active::after {
    transform: scaleX(1);
}

.nav-links li a:not(.admin-link).active,
.nav-links li .nav-link:not(.admin-link).active {
    font-weight: 500;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: steelblue;
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .nav-links li a:not(.admin-link)::after,
    .nav-links li .nav-link:not(.admin-link)::after {
        bottom: -2px;
        left: 0.5rem;
        right: 0.5rem;
    }

    /* Center the dashboard button in mobile view */
    .admin-links {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 0.5rem 0;
    }

    .admin-link {
        width: 80%;
        max-width: 200px;
        margin: 0 auto;
        text-align: center;
        padding: 0.8rem 1.5rem;
    }
}

/* Hero Section */
.hero {
    /* height: 800px; */
    height: 100vh;
    background: #f0f0f0;
    background-image: url("/assets/hero-image-c5fdc4c6.png");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* Add a dark overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);  /* Adjust opacity as needed */
}

/* Update hero content to ensure it's above the overlay */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;  /* This ensures content stays above overlay */
    z-index: 1;         /* This ensures content stays above overlay */
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;  /* Slightly larger */
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);  /* Add subtle text shadow */
}

.hero-logo {
    height: 200px;
    width: auto;
}

.hero-btn {
    display: inline-block;
    text-decoration: none;
    margin-top: 2rem;
    background-color: steelblue;
    color: white;
    padding: 1.2rem 2.5rem;  /* Slightly larger padding */
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);  /* Add subtle shadow */
}

.hero-btn:hover {
    background-color: #2d5a7f;
    transform: translateY(-2px);  /* Add slight lift effect */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);  /* Enhance shadow on hover */
}

.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.scroll-arrow:hover {
    color: #2d5a7f;
}

/* Content Sections - Enhanced Design */
.content-section {
    padding: 7rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Add subtle background pattern to non-reverse sections */
.content-section:not(.reverse)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, rgba(70, 130, 180, 0.03) 50%, transparent 52%);
    background-size: 20px 20px;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;  /* Increased gap */
    position: relative;
    z-index: 2;
}

.text-content {
    flex: 1;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Left accent border for regular sections */
.text-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: steelblue;
    border-radius: 4px 0 0 4px;
}

/* Right accent border for "How We Provide Value" section */
.reverse .text-content::before {
    left: auto;
    right: 0;
    border-radius: 0 4px 4px 0;
}

.text-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.text-content h2 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
    color: steelblue;
}

/* Style key phrases or words */
.text-content p strong {
    color: steelblue;
    font-weight: 600;
}

.text-content p {
    line-height: 1.8;
    color: #555;
}

.text-content a {
    color: steelblue;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.text-content a:hover {
    color: #2d5a7f;
}

.focus-text {
    display: flex;
    flex-direction: column;    
    justify-content: center;
    align-items: center;
}

.focus-text p {
    text-align: center;
    font-style: italic;
}

.focus-text-name {
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1rem;
}

.image-placeholder {
    flex: 1;
    height: 400px;
    background: #ddd;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateY(0deg);
}

.image-placeholder:hover {
    transform: perspective(1000px) rotateY(2deg) translateY(-5px);
}

.reverse .container {
    flex-direction: row-reverse;
}

/* Add this new style for the reverse section */
.content-section.reverse {
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

/* Add subtle animation to reverse sections */
.content-section.reverse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 48%, rgba(70, 130, 180, 0.03) 50%, transparent 52%);
    background-size: 20px 20px;
    z-index: 1;
}

/* Contact Form - Complete Reset and New Layout */
.contact {
    padding: 7rem 2rem;
    background: #f9f9f9;
}

.contact .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Restore the contact-form-wrapper styles */
.contact-form-wrapper {
    padding: 3rem 2rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
    position: relative;
    margin-top: 25px;
}

.contact-form-wrapper .container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-control {
    width: 100%;
}

.contact-form-wrapper .container .form-button {
    background-color: steelblue;
    color: white;
    border: solid;
    margin-left: 0;
    margin-right: auto;
}

.success-message {
    border: .5px solid black;
    padding: 10px;
    margin-bottom: 10px;
    background-color: lightblue;
    color: white;
    text-align: center;
}

.error-message{
    border: .5px solid black;
    padding: 10px;
    margin-bottom: 10px;
    background-color: lightcoral;
    color: white;
    text-align: center;
}

/* Keep the floating title styles */
.contact-form-wrapper h2 {
    position: absolute;
    top: -65px;  /* Changed from -55px to -65px to move it higher */
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
    margin: 0;
    z-index: 1;
    width: 50%;
    text-align: center;
    color: steelblue;
}

/* Keep the form styles inside the wrapper */
form {
    width: 100%;
    display: grid;
    grid-gap: 1.5rem;
}

input, textarea {
    padding: 1rem;  /* Slightly reduced padding */
    border: 1px solid #ddd;  /* Lighter border */
    border-radius: 8px;
    font-size: 1rem;
}

textarea {
    height: 150px;  /* Reduced height */
    resize: vertical;
}

form button {
    padding: 1rem 2rem;
    margin-top: 0.5rem;
    width: auto;
    justify-self: start;
    background: steelblue;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

form button:hover {
    background: #2d5a7f;
    transform: translateY(-2px);
}

form button:active {
    transform: translateY(0);
}

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

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 0.5rem;
}

/* Points Section */
.points-section {
    padding: 7rem 2rem;
    background-color: #f8f9fa;
}

.points-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: stretch;
}

.point-box {
    flex: 1;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.point-box:hover {
    transform: translateY(-5px);
}

.point-box i {
    font-size: 2.5rem;
    color: steelblue;
    margin-bottom: 1.5rem;
}

.point-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.point-box p {
    color: #666;
    line-height: 1.6;
}

/* Modified container for column layout */
.container.column {
    flex-direction: column;
    gap: 3rem;
}

/* Update the media query to be more specific */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: steelblue;
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .container, 
    .container.column,
    .reverse .container {
        flex-direction: column;
        gap: 2rem;
    }

    .text-content {
        padding: 1.5rem;
    }

    .image-placeholder {
        width: 100%;
        height: 300px;
    }

    .content-section {
        padding: 4rem 1.5rem;
    }

    .points-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .point-box {
        padding: 1.5rem;
    }

    .contact {
        padding: 4rem 1.5rem;
    }

    form {
        padding: 2rem;  /* Adjusted padding for mobile */
        gap: 1.5rem;
    }
    
    .contact h2 {
        font-size: 2rem;  /* Adjusted font size for mobile */
    }

    .contact-form-wrapper h2 {
        width: 80%;  /* Increase width on mobile */
        font-size: 2rem;  /* Slightly reduce font size if needed */
        white-space: nowrap;  /* Prevent text from wrapping */
    }
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
}

.carousel {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.9);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* Contact section updates */
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Form takes 2/3, info takes 1/3 */
    gap: 2rem;
    align-items: start;
}

.contact-info {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
}

.contact-image {
    margin: 2rem 0;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: steelblue;
    font-size: 1.2rem;
}

.contact-item p {
    margin: 0;
    color: #555;
}

/* Responsive design */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Add this after your existing .text-content::before rule */
.focus-text::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: steelblue;
    border-radius: 0 4px 4px 0;
}

/* Add this after your .text-content h2 styles */
.section-icon {
    text-align: center;
    margin: 0 0 1rem 0;
}

.section-icon i {
    font-size: 2rem;
    color: steelblue;
}

/* Blog Styles */
.blog-header {
    padding: 12rem 2rem 6rem;
    background: steelblue;
    color: white;
    text-align: center;
    position: relative; /* Add this to establish positioning context */
    background-size: cover;
    background-position: center;
    background-image: url("/assets/hero-image-c5fdc4c6.png");
}

/* Add the dark overlay */
.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Adjust the last value (0.5) for darkness level - 0 is transparent, 1 is fully black */
    z-index: 1;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.blog-posts {
    padding: 5rem 2rem;
    background: #f9f9f9;
    display: flex;
    justify-content: center;
    width: 100%;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    justify-content: center;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease;
}

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

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.blog-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: steelblue;
}

.blog-content p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: steelblue;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

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

.read-more i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* show page  */

.blog-title {
    display: flex;
    justify-content: center;
}

.empty-post-container {
    height: 500px;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.empty-post-container h2 {
    color: steelblue;
    text-align: center;
}

/* show page end  */

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-header {
        padding: 8rem 1.5rem 4rem;
    }

    .blog-header h1 {
        font-size: 2.5rem;
    }

    .blog-posts {
        padding: 3rem 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .blog-card {
        width: 95vw;
        min-width: 95vw;
        max-width: 95vw;
        margin: 0 auto;
    }
}

/* Update carousel styles for mobile */
@media (max-width: 768px) {
    .carousel-container {
        height: 300px;  /* Reduced from 400px */
    }

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;  /* Changed from cover to contain */
        background: #f5f5f5;  /* Optional: adds a light background */
    }
}

/* Service link styling */
.service-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
}

.service-link:hover {
    transform: none;
}

.service-link:hover .point-box {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Service Header with overlay */
.service-header {
    padding: 12rem 2rem 6rem;
    background: steelblue;
    color: white;
    text-align: center;
    position: relative; /* Add this to establish positioning context */
    background-size: cover;
    background-position: center;
    background-image: url("/assets/hero-image-c5fdc4c6.png");
}

/* Add the dark overlay */
.service-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Adjust the last value (0.5) for darkness level - 0 is transparent, 1 is fully black */
    z-index: 1;
}

/* Ensure content stays above the overlay */
.service-header .container {
    position: relative;
    z-index: 2; 
}

.service-header h1,
.service-header p {
    position: relative;
    z-index: 2;
}

.service-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.service-content {
    padding: 5rem 2rem;
    background: #f9f9f9;
}

.service-detail {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
    padding: 3rem;
    position: relative;
}

.service-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: steelblue;
    border-radius: 4px 0 0 4px;
}

.service-detail h2 {
    color: steelblue;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-detail p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #555;
}

.service-detail ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.service-detail li {
    margin-bottom: 0.5rem;
    color: #555;
}

.back-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background-color: steelblue;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.back-button:hover {
    background-color: #2d5a7f;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .service-header {
        padding: 8rem 1.5rem 4rem;
    }
    
    .service-header h1 {
        font-size: 2.5rem;
    }
    
    .service-content {
        padding: 3rem 1.5rem;
    }
    
    .service-detail {
        padding: 2rem;
    }
}

/* CTA Box styling */
.cta-box {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f0f7ff;
    border-radius: 12px;
    border-left: 4px solid steelblue;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.cta-box h3 {
    color: steelblue;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cta-box p {
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: steelblue;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: #2d5a7f;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .cta-box {
        padding: 1.5rem;
    }
}

/* Benefit Cards styling */
.benefit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.benefit-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
    border-top: 4px solid steelblue;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    margin-bottom: 1.5rem;
}

.benefit-icon i {
    font-size: 2.5rem;
    color: steelblue;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .benefit-cards {
        grid-template-columns: 1fr;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
}

/* Expertise section styling */
.expertise-section {
    margin: 3rem 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.expertise-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-bottom: 3px solid steelblue;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.expertise-icon {
    margin-bottom: 1.2rem;
}

.expertise-icon i {
    font-size: 2rem;
    color: steelblue;
    height: 60px;
    width: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: #f0f7ff;
    display: inline-block;
}

.expertise-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.expertise-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-card {
        padding: 1.5rem;
    }
}

/* Expertise list styling */
.expertise-list {
    margin-top: 2rem;
    padding-left: 1.5rem;
    list-style-type: none;
}

.expertise-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.expertise-list li::before {
    content: '\f0da'; /* FontAwesome icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: steelblue;
    font-size: 1rem;
}

/* Blog Post Page Styles */
.blog-post-header {
    padding: 12rem 2rem 4rem;
    background: steelblue;
    color: white;
    position: relative;
    background-size: cover;
    background-position: center;
    background-image: url("/assets/hero-image-c5fdc4c6.png");
}

.blog-post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.show-container {
    display: flex;
    justify-content: center;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: opacity 0.3s;
}

.back-to-blog:hover {
    opacity: 0.8;
}

.back-to-blog i {
    margin-right: 0.5rem;
}

.blog-post-meta {
    margin-bottom: 1rem;
}

.blog-post-meta span {
    display: inline-block;
    margin-right: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.blog-post-header h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 500;
}

.read-time {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Blog Post Content */
.blog-post-content {
    padding: 4rem 0;
    background: #f9f9f9;
}

.blog-post-content .container {
    max-width: 1400px;
    margin: 0 auto;
    width: 85%;
    padding: 0 2rem;
    display: flex;
    flex-direction: column; /* Ensure vertical stacking */
}

.bottom-navigation {
    display: flex;
    justify-content: center;
}

.featured-image {
    margin: -7rem auto 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 100%; /* Ensure image doesn't overflow */
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.featured-image-create {
    display: flex;
    justify-content: center;
    height: 100px;

}

.image-caption {
    display: block;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    background: #fff;
}

.post-content {
    background: white;
    padding: 4rem;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
    width: 100%; /* Ensure full width */
    height: 100%;
}

.lead {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.post-content h2 {
    font-size: 2rem;
    color: #333;
    margin: 2.5rem 0 1.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 2rem 0 1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid steelblue;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
}

.content-image {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.content-image img {
    width: 30%;
    height: auto;
    display: block;
}

.info-box {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.info-box h4 {
    margin-bottom: 1rem;
    color: #333;
}

.info-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    width: 100%; /* Ensure full width */
}

.tags {
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    margin-right: 0.5rem;
    background: #f0f7ff;
    color: steelblue;
    border-radius: 4px;
    font-size: 0.9rem;
}

.share-post {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-link {
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.share-link:hover {
    color: steelblue;
}

.related-posts {
    margin-top: 4rem;
    width: 100%; /* Ensure full width */
}

.related-posts h3 {
    margin-bottom: 2rem;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%; /* Ensure full width */
}

.related-post-card {
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s;
}

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

.related-post-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-card h4 {
    padding: 1rem;
    margin: 0;
    font-size: 1.1rem;
}

.related-post-card .date {
    display: block;
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* Login screen  */
.login-section {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("assets/your-fossil-background.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    width: 100%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, steelblue, #2d5a7f);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

.fossil-icon {
    font-size: 2.5rem;
    color: steelblue;
    margin-bottom: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: transparent;
}

.form-group input:focus {
    border-color: steelblue;
    outline: none;
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: 0;
    transform: translateY(-100%);
    font-size: 0.8rem;
    color: steelblue;
}

.login-button {
    background: linear-gradient(90deg, steelblue, #2d5a7f);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
}

.additional-options {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.additional-options a {
    color: steelblue;
    text-decoration: none;
    margin: 0 10px;
}

.additional-options a:hover {
    text-decoration: underline;
}

.fossil-pattern {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
}

.fossil-pattern.top-right {
    top: -50px;
    right: -50px;
    transform: rotate(45deg);
}

.fossil-pattern.bottom-left {
    bottom: -50px;
    left: -50px;
    transform: rotate(-135deg);
}

.login-header .login-logo {
    width: 70px; /* Reduced from 80px */
    height: auto;
    margin-bottom: 1.5rem;
}
/* End login screen  */

/* Admin dashboard */

.get-started-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    width: auto;
}

/* Adjust dashboard container spacing */
.dashboard-container {
    padding: 2rem;
    padding-top: 6rem; /* Reduced from 80px to account for navbar */
    margin-top: 0; /* Remove margin-top */
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
}

.create-post-btn {
    background: steelblue;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.create-post-btn:hover {
    background: #2d5a7f;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.post-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.post-image {
    height: 200px;
    background-color: #f5f5f5;
    position: relative;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-status {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: white;
}

.status-published {
    background-color: #28a745; /* Green for published */
}

.status-draft {
    background-color: #ffc107; /* Yellow/Amber for draft */
    color: #333; /* Dark text for better readability on yellow */
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.post-actions {
    display: flex;
    gap: 1rem;
    border-top: 1px solid #eee;
    align-items: center;
}

.action-btn {
    margin-top: 20px;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}
.action-btn i { /* Target the icon */
    line-height: 1.5rem; /* Adjust as needed */
    height: 1.5rem; /* Optional, if needed */
    display: inline-flex; /* To help with vertical centering of icon */
    align-items: center;
}

.edit-btn {
    background: #f0f0f0;
    color: #333;
}

.edit-btn:hover {
    background: #e0e0e0;
}

.delete-btn {
    background: #ffebee;
    color: #d32f2f;
}

.delete-btn:hover {
    background: #ffcdd2;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: steelblue;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.search-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    min-width: 150px;
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .search-filter {
        flex-direction: column;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

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

.image-upload {
    border: 2px dashed #ddd;
    padding: 2rem;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.image-upload:hover {
    border-color: steelblue;
}

.image-upload i {
    font-size: 2rem;
    color: #666;
    margin-bottom: 1rem;
}

.image-preview {
    max-width: 100%; /* Make it responsive within its container */
    height: auto;
    display: block; /* Prevent inline spacing issues */
    margin-bottom: 0.5rem; /* Add some space below the preview */
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-footer button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.save-draft {
    background-color: #f0f0f0;
    color: #333;
}

.save-draft:hover {
    background-color: #e0e0e0;
}

.publish-post {
    background-color: steelblue;
    color: white;
}

.publish-post:hover {
    background-color: #2d5a7f;
}

/* Rich Text Editor Styles */
.trix-editor {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.trix-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Rich Text Editor Toolbar */
.editor-toolbar {
    padding: 0.5rem;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.editor-toolbar button {
    padding: 0.5rem;
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    color: #333;
}

.editor-toolbar button:hover {
    background: #eee;
    border-color: #ddd;
}

/* Mobile-specific adjustments for rich text editor */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem auto;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Compact rich text editor on mobile */
    .trix-editor {
        min-height: 150px;
        max-height: 300px;
        overflow-y: auto;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Make toolbar more compact and wrap to two rows */
    .trix-toolbar {
        padding: 0.3rem;
        gap: 0.3rem;
        justify-content: flex-start;
    }
    
    .trix-button-group {
        margin-bottom: 0.3rem;
        display: flex;
        flex-wrap: wrap;
    }
    
    .trix-button-group button {
        padding: 0.3rem;
        font-size: 0.9rem;
    }
    
    /* Reduce spacing in the editor */
    .trix-content {
        padding: 0.5rem;
    }
    
    /* Ensure action buttons don't overflow */
    .modal-footer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .modal-footer button {
        width: auto;
        min-width: 120px;
        margin-bottom: 0.5rem;
    }
    
    /* Specific styles for the save-draft button */
    .save-draft {
        width: auto;
        min-width: 120px;
    }
    
    /* Specific styles for the publish-post button */
    .publish-post {
        width: auto;
        min-width: 120px;
    }
}

/* logout button  */

.logout-section {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.logout-button {
    background: #ff4757;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logout-button:hover {
    background: #ff6b81;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logout-button i {
    font-size: 1.1rem;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.logout-button:hover i {
    animation: float 2s ease-in-out infinite;
}

/* End Admin dashboard */

  #imageInput {
    display: none;
  }

  #imagePreview {
    display: block; /* Ensure it behaves like a block-level element */
    max-width: 300px; /* Set your desired maximum width */
    max-height: 200px; /* Set your desired maximum height */
    width: auto;     /* Maintain aspect ratio, adjust width if height is constraint */
    height: auto;    /* Maintain aspect ratio, adjust height if width is constraint */
    margin-top: 10px; /* Add some spacing above the preview */
    border: 1px solid #ccc; /* Optional: Add a border */
  }


.admin-link {
    display: inline-block; /* Allows it to sit inline with other elements */
    padding: 12px 12px; /* Basic padding for spacing */
    font-size: 1rem; /* Inherit or set a reasonable font size */
    font-weight: normal; /* Typically normal font weight */
    text-align: center; /* Center the text */
    text-decoration: none; /* Remove default link underline if used as a link */
    cursor: pointer; /* Indicate it's interactive */
    border: 1px solid #ccc; /* A light gray border */
    border-radius: 4px; /* Slightly rounded corners */
    background-color: #f9f9f9; /* A very light gray background */
    color: white; /* Dark text color */
    transition: background-color 0.3s ease; /* Smooth hover effect */
    background-color: steelblue;
  }
  
  .admin-link:hover {
    background-color: #2d5a7f; /* Slightly darker on hover */
  }
  
  .admin-link:active {
    background-color: #d0d0d0; /* Even darker when clicked */
    border-color: #bbb; /* Slightly darker border on active */
  }

.admin-links {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .blog-post-header {
        padding: 8rem 1.5rem 3rem;
    }

    .blog-post-header h1 {
        font-size: 2rem;
    }

    .post-content {
        padding: 1.5rem;
    }

    .featured-image {
        margin-top: -5rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive breakpoints */
@media (max-width: 1400px) {
    .blog-post-content .container {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .blog-post-content .container {
        max-width: 1000px;
    }
}

@media (max-width: 992px) {
    .blog-post-content .container {
        max-width: 800px;
    }
    
    .post-content {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .blog-post-content .container {
        width: 95%;
        padding: 0 1rem;
    }

    .post-content {
        padding: 1.5rem;
    }

    .featured-image {
        margin-top: -5rem;
    }
}


@media (min-width: 768px) and (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(390px, 1fr)); /* Adjust column size */
        padding: 0 1rem;  /* Add some padding around the grid */
    }
    .container {
        max-width: 100%; /* Ensure full width of container */
        padding-left: 1rem;  /* Padding adjustments for spacing */
        padding-right: 1rem;
    }
}

/* Desktop view */
@media (min-width: 1025px) {
    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        padding: 0 1.5rem;
        justify-content: center;
        width: 100%;
        max-width: 1600px;
        margin: 0 auto;
    }
    
    .blog-card {
        min-width: 300px;
    }
}

/* Tablet view */
@media (min-width: 769px) and (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1.5rem;
        justify-content: center;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .blog-card {
        min-width: 320px;
    }
}

/* Dashboard Filter Buttons - Style them like stat cards */
.dashboard-filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.dashboard-filter-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dashboard-filter-btn .stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: steelblue;
    margin-bottom: 0.5rem;
}

.dashboard-filter-btn .stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Make sure the dashboard-stats container works with both div and button elements */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Post Form Styles */
.post-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none;
}

.post-form-container .form-group {
    margin-bottom: 1.5rem;
}

.post-form-container .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
}

.post-form-container .form-group input[type="text"],
.post-form-container .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-form-container .form-group input[type="text"]:focus,
.post-form-container .form-group textarea:focus {
    border-color: steelblue;
    box-shadow: 0 0 0 2px rgba(70, 130, 180, 0.2);
    outline: none;
}

.post-form-container .form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.post-form-container .image-upload {
    border: 2px dashed #ddd;
    padding: 2rem;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    margin-bottom: 1rem;
}

.post-form-container .image-upload:hover {
    border-color: steelblue;
    background-color: rgba(70, 130, 180, 0.05);
}

.post-form-container .image-upload i {
    font-size: 2rem;
    color: #666;
    margin-bottom: 1rem;
}

.post-form-container .image-preview {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
    border-radius: 4px;
}

.post-form-container .featured-image-create {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
    border-radius: 4px;
}

.post-form-container .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.post-form-container .save-draft-btn,
.post-form-container .publish-post-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.post-form-container .save-draft-btn {
    background-color: #f0f0f0;
    color: #333;
}

.post-form-container .save-draft-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.post-form-container .publish-post-btn {
    background-color: steelblue;
    color: white;
}

.post-form-container .publish-post-btn:hover {
    background-color: #2d5a7f;
    transform: translateY(-2px);
}

/* Error messages styling */
.post-form-container .error-messages {
    background-color: #fff5f5;
    border-left: 4px solid #ff4757;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.post-form-container .error-messages h2 {
    color: #ff4757;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.post-form-container .error-messages ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #666;
}

/* Responsive adjustments for post form */
@media (max-width: 768px) {
    .post-form-container {
        padding: 1.5rem;
    }
    
    .post-form-container .form-actions {
        flex-direction: column;
    }
    
    .post-form-container .save-draft-btn,
    .post-form-container .publish-post-btn {
        width: 100%;
    }
}

/* Page Title Container */
.page-title-container {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title-container h1 {
    color: steelblue;
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0;
    padding: 0.5rem 0;
}

/* Add smooth scrolling to the entire page */
html {
  scroll-behavior: smooth;
}

/* Add a scroll margin to sections with IDs to account for the fixed navbar */
section[id] {
  scroll-margin-top: 80px;
}
