/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set the background color of the entire website to black */
body {
    background-color: #000; /* Black background */
    color: #ffb347; /* Light orange text color for readability */
    font-family: Arial, sans-serif;
}


/* Navbar Styling with Blur Effect */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(26, 26, 26, 0.8); /* Dark background with transparency */
    backdrop-filter: blur(10px); /* Blur effect */
    padding: 15px 30px;
    color: #fff;
    position: absolute;
    width: 100%;
    z-index: 1000;
    top: 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

/* Logo and Nav Links Container */
.logo-nav {
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;
    height: auto;
    margin-right: 15px;
}

.nav-links a {
    color: #ffb347; /* Light orange */
    text-decoration: none;
    margin: 0 20px;
    font-weight: bold;
    font-size: 1.1em;
}

.nav-links a:hover {
    color: #ffa500; /* Bright orange */
}

/* Search Bar Styling */
.search-bar {
    display: flex;
    align-items: center;
    background: rgba(51, 51, 51, 0.9); /* Dark background */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    border-radius: 20px; /* Rounded corners */
    overflow: hidden;
    height: 40px;
    width: 57%;
}


.search-bar input {
    padding: 8px 10px;
    border: none;
    background: transparent;
    color: #ffb347; /* Light orange text color */
    outline: none;
    flex: 1;
}

.search-button {
    background: transparent; /* No background */
    border: none;
    color: #ffb347; /* Icon color */
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%; /* Rounded icon button */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

.search-button img {
    width: 20px; /* Adjust the size of the image */
    height: 20px;
}

/* Container for search results */
.search-results-container {
  width: 50%; /* Adjust the width as needed */
  margin-top: 10px;
  padding: 10px;
  background-color: rgba(51, 51, 51, 0.9);
  border-radius: 0px;
  display: none;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 9999;
  position: absolute;
  top: 45px;
  left: 70%;
  transform: translateX(-50%);
  
}

/* Individual Search Result */
.search-result {
  padding: 15px;
  border-radius: 0px;
  margin-bottom: 10px;
  
}

.search-result a {
  color: #f39c12; /* Light orange color for links */
  font-weight: bold;
  text-decoration: none;
  font-size: 1.2em;
}

.search-result a:hover {
  text-decoration: underline;
  color: #e67e22;
}

.search-result p {
  color: #ccc; /* Light grey color for description */
  font-size: 1em;
  margin-top: 5px;
}

/* Show the results container when there are results */
.search-results-container.active {
  display: block;
}

/* Carousel Section */
.carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-top: 5px;
    display: flex; /* Enables side-by-side arrangement */
}

.carousel-wrapper {
    display: flex;
    width: 300%; /* Allows space for all slides */
    transition: transform 0.8s ease-in-out; /* Smooth sliding effect */
}

.carousel-slide {
    width: 100%;
    flex-shrink: 0; /* Prevent shrinking of slides */
    height: 100%;
    background-size: cover;
    background-position: center;
}

.carousel-content {
    position: relative; /* Already fixed by you */
    bottom: -379px;
    left: 30px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    backdrop-filter: blur(8px); /* Frosted glass effect */
    padding: 10px 15px; /* Adjustable padding for spacing */
    border-radius: 5px; /* Rounded corners */
    color: #ffb347;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    display: inline-block; /* Allows dynamic sizing */
    max-width: 90%; /* Prevents the content from getting too wide */
    word-wrap: break-word; /* Ensures text breaks properly if it's too long */
}

.carousel-slide.active .carousel-content {
    opacity: 1; /* Make content visible */
}

/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffb347;
    font-size: 2.5em;
    cursor: pointer;
    padding: 10px;
}

.prev {
    left: 5px;
}

.next {
    right: 20px;
}

/* Banner Section */
.banner img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 10px; /* Optional rounded corners */
}

/* Posts Section Styling */
.posts {
    padding: 40px 20px;
    text-align: center;
    background-color: #000; /* Slightly lighter black for contrast */
    color: #ffb347;
    margin-top: 20px;
    border-radius: 10px;
}

.posts h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #ffb347; /* Orange heading */
}

/* Blog Post Styling */
.blog-post {
    margin: 20px auto;
    max-width: 800px;
    background-color: #000; /* Darker background for the post */
    padding: 20px;
    border-radius: 10px;
}

.blog-content {
    text-align: left;
}

.blog-content h2 a {
    color: #ffb347; /* Light orange */
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

.blog-content h2 a:hover {
    color: #ffa500; /* Bright orange */
}

.blog-post-link {
    display: block; /* Make the link block-level */
    background-color: #262626; /* Default background color for the post box */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Soft shadow */
    transition: background-color 0.3s, transform 0.3s; /* Smooth transition */
    color: #ffb347; /* Text color inside the post */
    text-decoration: none;
}

.blog-post-link:hover {
    background-color: #333333; /* Darker background on hover */
    transform: scale(1.05); /* Slightly enlarge the post */
}

.featured-image {
    width: 100%;
    border-radius: 10px;
    margin: 10px 0;
}

.post-date {
    color: #ccc; /* Light gray for the date */
    font-size: 0.9em;
    margin-top: 10px;
}

footer {
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff; /* White text */
    padding: 20px;
    text-align: center; /* Center-align the text */
    font-size: 0.9em; /* Optional: Slightly smaller text */
}

footer p {
    margin: 5px 0; /* Space between lines */
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    /* Navbar layout for mobile */
    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    /* Logo and Navigation Links stack vertically */
    .logo-nav {
        flex-direction: row;
        align-items: flex-start;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        justify-content: center;
        margin-top: 15px;
        align-items: center;
    }

    .nav-links a {
        margin: 0 15px;
        font-size: 1em;
    }

    /* Search Bar to take full width */
    .search-bar {
        width: 100%;
        margin-top: 15px;
    }

    /* Carousel section */
    .carousel {
        height: 300px;
        margin-top: 80px; /* Space below navbar */
    }

    .carousel-content {
        position: absolute;
        bottom: 20px; /* Ensure visibility at the bottom */
        left: 10px;
        right: 10px; /* Prevent text from going off-screen */
        background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
        color: #ffb347; /* Light orange text */
        padding: 10px; /* Padding around the text */
        font-size: 1em; /* Adjust font size */
        word-wrap: break-word; /* Wrap long words */
    }

    /* Posts Section */
    .posts {
        padding: 20px 10px;
    }

    /* Blog Post */
    .blog-post {
        padding: 15px;
        max-width: 100%;
    }

    /* Blog Post Link */
    .blog-post-link {
        padding: 15px;
    }

    footer {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    /* Further adjustments for very small screens */
    .navbar {
        padding: 10px 15px;
    }

    .logo img {
        width: 30px;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        justify-content: center;
        margin-top: 5px;
        align-items: center;
        margin-left: 15px;
    }

    .nav-links a {
        font-size: 1em;
        margin: 0 12px;
    }

    .search-bar {
        height: 35px;
  }

    .carousel {
        height: 250px;
        margin-top: 100px; /* Space below navbar */
    }

    .carousel-content {
        position: relative;
        bottom: -179px; /* Ensure visibility at the bottom */
        left: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
        color: #ffb347; /* Light orange text */
        padding: 10px;
        font-size: 0.9em; /* Smaller font for very small screens */
        word-wrap: break-word;
    }
}

* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}
