/* Universal Styles */
:root {
    --bg-color: #121212; /* Dark background */
    --text-color: #ffffff; /* Light text */
    --accent-color: #1e90ff; /* Police blue */
    --box-bg-color: #1c1c1c; /* Slightly lighter dark for sections */
    --hover-color: #0056b3; /* Darker police blue for hover */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header */
header {
    background: var(--box-bg-color);
    border-bottom: 3px solid var(--accent-color);
    position: relative;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    color: var(--accent-color);
    text-align: left;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    background: var(--box-bg-color);
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--hover-color);
}

/* Hamburger Menu */
.hamburger {
    display: none; /* Hidden by default */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger div {
    width: 30px;
    height: 3px;
    background: var(--text-color);
}

/* Mobile Menu */
.mobile-menu {
    display: none; /* Hidden by default */
    flex-direction: column;
    gap: 1rem;
    background: var(--box-bg-color);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    z-index: 1000;
}

.mobile-menu.active {
    display: flex; /* Show mobile menu when active */
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header h1 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    nav ul {
        display: none; /* Hide desktop menu on small screens */
    }

    .hamburger {
        display: flex; /* Show hamburger icon on small screens */
    }

    .mobile-menu ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    /* Hero Section Adjustments */
    #hero {
        height: auto;
        padding: 1rem;
    }

    .hero-text {
        width: 90%; /* Adjust text width for smaller screens */
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    /* Service Section */
    .service-cards {
        flex-direction: column; /* Stack service cards vertically */
        gap: 1.5rem;
    }

    .card img {
        height: 200px;
        object-fit: cover;
    }

    /* Call to Action Section */
    .cta-box {
        padding: 1rem;
    }

    .cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 1rem;
    }

    /* Footer */
    footer {
        font-size: 0.8rem; /* Adjust footer font size */
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.2rem;
    }

    .hero-text h1 {
        font-size: 1.2rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }
}


main {
    margin: 2rem auto;
    max-width: 1200px;
    padding: 1rem;
}

.section {
    background: var(--box-bg-color);
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    border-left: 5px solid var(--accent-color);
}

.section img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
    background: var(--bg-color); /* Placeholder background for missing images */
}

footer {
    text-align: center;
    padding: 1rem;
    background: var(--box-bg-color);
    border-top: 3px solid var(--accent-color);
    color: var(--text-color);
    font-size: 0.9rem;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}




/* About Page CSS */

.section img {
    width: 50%; /* Adjust percentage as needed */
    max-width: 300px; /* Set a maximum width */
    height: auto; /* Maintain aspect ratio */
    display: block;
    margin: 0 auto; /* Center the image */
    border-radius: 10px; /* Optional: Add rounded corners */
}


/* Hero Section */
#hero {
    position: relative;
    height: 500px; /* Reduced height */
    background: url('../img/salthomepage.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px; /* Adds a buffer below the nav bar */
}

.hero-text {
    position: absolute; /* Overlay the content on the image */
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
    color: var(--text-color); /* Use the text color from your theme */
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    width: 80%; /* Adjust width as needed */
    max-width: 600px; /* Set a maximum width */
    opacity: 0; /* Start hidden */
    transform: translateY(20px); /* Start slightly below the original position */
    transition: opacity 1.5s ease-out, transform 1.5s ease-out; /* Smooth fade-in and slide effect */
}

.hero-text.fade-in {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Reset to the original position */
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color); /* Police blue accent */
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.hero-text .button {
    background: var(--accent-color);
    color: var(--bg-color);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}

.hero-text .button:hover {
    background: var(--hover-color); /* Darker police blue for hover */
}





/* Services Section */
#services {
    text-align: center;
    padding: 2rem;
    background: var(--box-bg-color);
}

#services h2 {
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.service-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.card {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    width: 300px;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--accent-color);
}



/* Call to Action Section */
.cta-box {
    background: var(--box-bg-color); /* Matches the dark theme */
    color: var(--text-color); /* Light text color */
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px; /* Wide layout */
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    border-left: 5px solid var(--accent-color); /* Adds a blue accent */
}

.cta-box h2 {
    color: var(--accent-color); /* Highlight the title in police blue */
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; /* Ensures buttons wrap on smaller screens */
}

.cta-button {
    background: var(--accent-color);
    color: var(--bg-color);
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: var(--hover-color);
}

/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {
    .cta-box {
        padding: 1.5rem;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }

    .cta-box p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-button {
        width: 100%; /* Make buttons stack and full width on smaller screens */
        text-align: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #hero {
        height: 300px; /* Reduce height for smaller screens */
        background-size: cover;
    }

    .hero-text {
        width: 90%; /* Adjust width for smaller screens */
        max-width: 400px; /* Limit maximum width */
        padding: 1.5rem; /* Reduce padding */
    }

    .hero-text h1 {
        font-size: 1.8rem; /* Smaller font size for headings */
    }

    .hero-text p {
        font-size: 1rem; /* Adjust paragraph font size */
    }

    .hero-text .button {
        padding: 0.5rem 1rem; /* Adjust button size */
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #hero {
        height: 250px; /* Further reduce height for very small screens */
    }

    .hero-text {
        width: 95%; /* Maximize usage of screen space */
        max-width: 300px; /* Smaller maximum width */
    }

    .hero-text h1 {
        font-size: 1.5rem; /* Smaller heading */
    }

    .hero-text p {
        font-size: 0.9rem; /* Smaller paragraph text */
    }

    .hero-text .button {
        padding: 0.4rem 0.8rem; /* Smaller button padding */
        font-size: 0.8rem;
    }
}


/* Classes Section */
#classes {
    text-align: center;
    padding: 2rem;
    background: var(--box-bg-color);
}

#classes h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

#classes p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.class-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap; /* Ensures cards wrap on smaller screens */
}

.class-cards .card {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    width: 300px;
    text-align: center;
    border-left: 5px solid var(--accent-color);
}

.class-cards .card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.class-cards .card p {
    font-size: 1rem;
}


/* Testimonials Section */
#testimonials {
    text-align: center;
    padding: 2rem;
    background: var(--box-bg-color);
}

#testimonials h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

#testimonials p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.testimonial-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap; /* Ensures cards wrap on smaller screens */
}

.testimonial-cards .card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    width: 300px;
    text-align: center;
    border-left: 5px solid var(--accent-color);
    font-size: 1rem;
    line-height: 1.6;
}

/* Facebook Embed Section */
#facebook {
    text-align: center;
    padding: 2rem;
    background: var(--box-bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Optional for a polished look */
}

#facebook h2 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#facebook p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.facebook-embed {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%; /* Ensure it fits the container */
    max-width: 400px; /* Limit maximum width */
    overflow: hidden; /* Prevent overflow */
}

.facebook-embed .fb-page {
    width: 100% !important; /* Ensure it adapts to the container */
    max-width: 400px; /* Match the container's max width */
    height: auto; /* Adjust height dynamically */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #facebook {
        padding: 1.5rem;
    }

    #facebook h2 {
        font-size: 1.3rem;
    }

    .facebook-embed {
        max-width: 300px; /* Adjust size for smaller screens */
    }
}

@media (max-width: 480px) {
    #facebook {
        padding: 1rem;
    }

    #facebook h2 {
        font-size: 1.2rem;
    }

    .facebook-embed {
        max-width: 250px; /* Further adjust for very small screens */
    }
}


/* Reuse Call to Action Section Styles */
.cta-box {
    background: var(--box-bg-color);
    color: var(--text-color);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    border-left: 5px solid var(--accent-color);
}

.cta-box h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    background: var(--accent-color);
    color: var(--bg-color);
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: var(--hover-color);
}


/* Facebook Posts Section */
#facebook-posts {
    text-align: center;
    padding: 2rem;
    background: var(--box-bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#facebook-posts h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

#facebook-posts p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.fb-page-container {
    max-width: 500px; /* Set the max width to reduce the size */
    width: 100%; /* Ensures responsiveness */
    height: 600px; /* Adjust height for better fit */
    overflow: hidden;
    margin: 0 auto; /* Centers the container */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}



/* Social Links Section */
.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    color: var(--bg-color);
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease;
    width: 250px;
    text-align: center;
}

.social-button.facebook {
    background: #4267B2; /* Facebook Blue */
}

.social-button.facebook:hover {
    background: #365899;
}

.social-button.linkedin {
    background: #0077B5; /* LinkedIn Blue */
}

.social-button.linkedin:hover {
    background: #005582;
}

/* Adjust Section Styling */
.section {
    text-align: center;
    margin: 2rem auto;
    padding: 1.5rem;
    background: var(--box-bg-color);
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.section h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.section p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.section a {
    color: var(--accent-color);
    text-decoration: none;
}

.section a:hover {
    text-decoration: underline;
}




.contact-description,
.contact-info,
.social-links,
.map {
    background: var(--box-bg-color);
    padding: 1.5rem;
    margin: 1.5rem auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border-left: 5px solid var(--accent-color);
    max-width: 800px;
}

.contact-description h2,
.contact-info h2,
.social-links h2,
.map h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-info a,
.social-links a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-info a:hover,
.social-links a:hover {
    text-decoration: underline;
}

.social-links ul {
    list-style: none;
    padding: 0;
}

.social-links ul li {
    margin: 0.5rem 0;
}

.map iframe {
    border-radius: 10px;
}


/* Slideshow Styles */
#slideshow {
    position: relative;
    margin: 20px auto;
    max-width: 1000px;
    overflow: hidden;
    background-color: var(--box-bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.slideshow-container {
    position: relative;
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    border-radius: 10px;
    height: auto;
}

.caption {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.2rem;
    text-align: center;
}

/* Navigation Buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 10px;
    margin-top: -22px;
    color: var(--text-color);
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s;
    user-select: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover,
.next:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* Animation */
.fade {
    animation: fadeEffect 1.5s;
}

@keyframes fadeEffect {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}


/* Slideshow Container */
#slideshow {
    position: relative;
    margin: 20px auto;
    max-width: 1000px; /* Set a consistent max width */
    background-color: var(--box-bg-color); /* Matches the site's theme */
    border: 5px solid var(--accent-color); /* Add border */
    border-radius: 10px; /* Rounded corners for a polished look */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5); /* Add shadow for depth */
    overflow: hidden; /* Ensure images stay within the container */
}

/* Slides */
.slide img {
    display: block;
    width: 100%; /* Ensure images fill the container width */
    height: 500px; /* Set a consistent height for all images */
    object-fit: cover; /* Ensures images maintain aspect ratio and fill the space */
    border-radius: 5px; /* Adds some rounding to the images */
}