/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9fafc;
    color: #253858;
    text-align: center;
}

/* Header Styles */
header {
    background: linear-gradient(to left, #0747a6, #3a9de5);
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    width: 20vw; /* Logo width will scale based on the viewport width */
    max-width: 200px; /* Ensures the logo doesn't get too large */
    height: auto; /* Maintains aspect ratio */
    min-width: 175px;
    filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.5));
    opacity: 0.9;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    
}

header nav ul li {
    margin: 2 15px;
}

header nav ul li button {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
    
}

header nav ul li button:hover {
    text-decoration: underline;
}
/* Section Navigation Bar */
.section-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.section-nav button {
    margin: 5px;
    padding: 10px 20px;
    background-color: #3a9de5;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.section-nav button:hover {
    background-color: #0747a6;
}

/* Main Content Styles */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px;
    text-align: justify;
}
/* Adjust spacing between "Recent Posts" and the content */
.blog-layout {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Increased gap for consistent spacing */
}    
/* Headings and Title */
h1, h2, h3 {
    color: #0747a6;
    text-align: left;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

h2 {
    font-size: 2em;
    margin-top: 20px;
}

h3 {
    font-size: 2em;
    margin-top: 20px;
}


/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9fafc;
    color: #253858;
    text-align: center;
}

/* Header Styles */
header {
    background: linear-gradient(to left, #0747a6, #3a9de5);
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    width: 20vw;
    max-width: 200px;
    height: auto;
    min-width: 175px;
    filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.5));
    opacity: 0.9;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

header nav ul li {
    margin: 2 15px;
}

header nav ul li button {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
}

header nav ul li button:hover {
    text-decoration: underline;
}

/* Video Gallery Styles */
.video-gallery {
    display: float;
    flex-direction: column;
    align-items: center;
    gap: -50px; /* Overlap thumbnails */
    padding: 20px;
    position: relative;
}

.video-thumbnail {
    position: relative;
    width: 80%;
    max-width: 400px;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.video-thumbnail :hover {
    transform: scale(1.05);
}

.video-thumbnail p {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #0747a6;
    z-index: 3;
}

.video-thumbnail video {
    width: 100%;
    height: auto;
    display: none;
    z-index: 4;
}

.video-thumbnail.playing video {
    display: block;
    z-index: 5;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    header nav ul {
        flex-direction: column;
        margin: 10px 0;
    }

    header nav ul li {
        margin: 10px 0;
    }

    .column {
        width: 90%;
    }
}



/* Adjust font sizes */
.blog-dates h5,
.blog-hashtags h5,
.blog-titles h5 {
    font-size: 1.1em; /* Smaller than content headings */
    color: #3a9de6;
}

/* Adjust content headings */
.blog-content h4 {
    font-size: 1.8em; /* Smaller than before but larger than "Recent Posts" and "Posts" */
    margin-bottom: 10px; /* Reduced space below headings */
}

/* Adjust spacing between "Recent Posts" and "Posts" sections */
.blog-dates,
.blog-titles,
    {
    margin-bottom: 20px; /* Even space between sections */
    text-align: center;
    color: #3a9de6;
}
.hashtags
{
    box-sizing: border-box;
    padding: 20px;
    border: 1px solid rgba(46, 79, 240, 0.798);
    border-radius: 5px;
    background-color: #fff; 
}

.flow-section {
  width: 100%;
  overflow: hidden; /* Hide content outside the viewport */
  position: relative;
  background: none;
  height: 90px; /* Adjust height to fit your content */
  display: flex;
  align-items: center;
}

.scrolling-content {
  display: flex;
  white-space: nowrap; /* Prevent wrapping of items */
  animation: scroll-right-left 25s linear infinite; /* Adjust animation speed */
}

.item {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between icon and text */
  padding: 10px 20px;
  border-right: 1px solid #ccc; /* Optional divider between items */
}

.item img {
  width: 50px; /* Adjust icon size */
  height: 50px;
  object-fit: cover;
}

@keyframes scroll-right-left {
  0% {
    transform: translateX(15%); /* Start off-screen */
  }
  100% {
    transform: translateX(-15%); /* Move off-screen to the right */
  }
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #3a9de5;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    display: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#back-to-top:hover {
    background-color: #0747a6;
}

/* Footer Styles */
footer {
    background: linear-gradient(to right, #0747a6, #3a9de5);
    color: #fff;
    padding: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    header nav ul {
        flex-direction: column;
        margin: 10px 0;
    }

    header nav ul li {
        margin: 10px 0;
    }

    .section-nav {
        flex-direction: column;
    }

    .section-nav button {
        padding: 10px;
        font-size: 12px;
    }

    header .logo img {
        width: 50%; /* Adjust for smaller screens */
    }
}
