/* Reset CSS */
@import url("https://fonts.googleapis.com/css?family=Raleway:400");

* {
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(2deg, rgba(0, 0, 0, 1) 0%, rgb(10 13 22) 50%, rgba(0, 0, 0, 1) 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.navbar {
    box-shadow: 2px 14px 97px 12px rgba(0,0,0,0.75);
    -webkit-box-shadow: 2px 14px 97px 12px rgba(0,0,0,0.75);
    -moz-box-shadow: 2px 14px 97px 12px rgba(0,0,0,0.75);
    background: rgba(0, 0, 0, 1);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-text {
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center; /* Align the nav links vertically on smaller screens */
}

.nav-links li {
    margin-left: 20px;
}

.nav-links li a {
  opacity: 1;
transition: opacity 1s linear 0s;
    color: #fff;
    text-decoration: none;
}  

.nav-links li a:hover {
  opacity: 0.6;
    color: #c3d5db;
    text-decoration: none;
}

.hero2 {
    background: rgb(0,0,0);
    background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(55,71,102,1) 50%, rgba(0,0,0,1) 100%), url('https://i.postimg.cc/vmHgw00V/8c0b8812-17cb-429b-b6a0-4517492af2b2-1.png'); /* Add your image path here */
    background-size: cover; /* Ensure the image covers the section */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent image repetition */
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 100px 20px; /* Adjusted padding */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 500px 20px; /* Adjusted padding */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-background {
    filter: brightness(50%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(8px); /* Adjust the blur amount as needed */
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-image {
    max-width: 20%; /* Adjust the max-width to control the image size */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Optional: Rounded corners */
    margin-bottom: 20px; /* Space between image and text */
    filter: brightness(1.2); /* Optional: Adjust brightness if needed */
}

/* Additional styling for hero title and text */
.hero-title {
    text-shadow: 0px 0px 16px rgb(100 130 147);
    font-size: 3rem;
    color: azure;
    margin-bottom: 20px;
}

.hero-text {
    text-shadow: 0px 0px 5px rgb(116 141 255);
    font-size: 1.2rem;
    margin-bottom: 30px; 
}

.btn {
    display: inline-block;
    background-color: #63636380;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #53535380;
}

.btn-primary {
  box-shadow: -1px 1px 57px -1px rgba(0,0,0,0.75);
-webkit-box-shadow: -1px 1px 57px -1px rgba(0,0,0,0.75);
-moz-box-shadow: -1px 1px 57px -1px rgba(0,0,0,0.75);}

/* All Posts Page Styling */
#all-posts {
  padding: 40px 20px; /* Padding for spacing */
  margin: 0; /* Remove margin to fit full width */
  width: 100vw; /* Full viewport width */
  min-height: 100vh; /* Full viewport height */
  background: rgb(255,255,255);
background: linear-gradient(180deg, rgba(255,255,255,0.053658963585434205) 0%, rgba(43,84,125,0.4374124649859944) 50%, rgba(255,255,255,0.053658963585434205) 100%);
  backdrop-filter: blur(15px); /* Enhanced blur effect */
  border-radius: 16px; /* Rounded corners for the container */
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4); /* Deep shadow for a floating effect */
  text-align: center; /* Center text within the container */
  position: relative; /* For positioning child elements */
}

/* Title for the All Posts section */
#all-posts h2 {
  font-size: 3rem; /* Larger font size for section title */
  color: rgba(187, 187, 187, 1); /* Vibrant blue color */
  margin-bottom: 40px; /* Space below the title */
  font-weight: 800; /* Extra bold title text */
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4); /* Strong text shadow */
}

/* Container for the posts to handle layout */
.post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Space between grid items */
  justify-content: center; /* Center the grid items */
  padding: 20px; /* Padding inside the grid container */
}




/* Container for the buttons */
.button-container {
    display: flex; /* Use flexbox for alignment */
    justify-content: center; /* Center the buttons horizontally */
    gap: 20px; /* Add spacing between buttons */
    margin-top: 20px; /* Add some space above the buttons */
}

/* Button styles */
.button {
    background: rgba(255, 255, 255, 0.1); /* Glass effect background */
    border: none; /* Remove border */
    border-radius: 8px; /* Rounded corners */
    color: #ffffff; /* Button text color */
    padding: 12px 20px; /* Padding inside the button */
    cursor: pointer; /* Pointer on hover */
    transition: background 0.3s, transform 0.3s; /* Smooth transition */
    font-size: 16px; /* Font size */
}

.button:hover {
    background: rgba(255, 255, 255, 0.2); /* Change background on hover */
    transform: scale(1.05); /* Slightly enlarge the button */
}









.news-section {     
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    align-content: stretch;
    justify-content: center;}

/* Style for each post item */
.post-item {
  border: none; /* Remove default border */
  border-radius: 16px; /* Rounded corners */
  padding: 20px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4)); /* Modern gradient background */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Smooth shadow for depth */
  backdrop-filter: blur(12px); /* Glass effect */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
  flex: 1 1 calc(25% - 20px); /* 4 items per row on large screens */
  text-align: center; /* Center text inside each item */
}

/* Hover effect for post items */
.post-item:hover {
  transform: translateY(-8px); /* Lift the item slightly on hover */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4); /* More pronounced shadow on hover */
}

/* Title styling */
.post-item h3 {
  font-size: 1.8rem; /* Larger font size for titles */
  color: #1e90ff; /* Vibrant blue color */
  margin-bottom: 15px;
  font-weight: 700; /* Bold title text */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Subtle text shadow */
}

/* Summary styling */
.post-item p {
  font-size: 1.2rem; /* Larger font size for readability */
  color: #f0f0f0; /* Lighter text color */
  margin-bottom: 20px; /* Increased margin for spacing */
  line-height: 1.8; /* Improved line spacing for readability */
  max-height: 120px; /* Limit the height of the summary */
  overflow: hidden; /* Hide overflow text */
  position: relative; /* Necessary for the ellipsis effect */
}

/* Date styling */
.post-item small {
  font-size: 0.875rem;
  color: #ddd;
}

/* Button styling */
.post-item .btn {
  display: inline-block;
  padding: 14px 24px; /* Increased padding for prominence */
  font-size: 1.2rem; /* Larger font size for readability */
  color: #fff;
  background: linear-gradient(135deg, rgba(40, 122, 148, 0.7), rgba(40, 122, 148, 0.9)); /* Gradient button color */
  border-radius: 12px; /* Rounded button corners */
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease; /* Smooth transitions */
}

.post-item .btn:hover {
  background: linear-gradient(135deg, rgba(40, 122, 148, 0.9), rgba(40, 122, 148, 1)); /* Darker gradient on hover */
  transform: scale(1.05); /* Slightly scale up the button on hover */
}

/* Link styling */
.post-item a {
  color: #fff; /* White color for links */
  text-decoration: none; /* Remove underline */
  transition: color 0.3s ease; /* Smooth color transition */
}

.post-item a:hover {
  color: rgba(187, 187, 187, 1); /* Change link color on hover */
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .post-item {
    flex: 1 1 calc(33.333% - 20px); /* 3 items per row on medium screens */
  }
}

@media (max-width: 768px) {
  .post-item {
    flex: 1 1 calc(50% - 20px); /* 2 items per row on small screens */
  }
}

@media (max-width: 480px) {
  .post-item {
    flex: 1 1 calc(100% - 20px); /* 1 item per row on very small screens */
  }
}

/* Footer Styling */
.footer {
    background: rgb(255, 255, 255);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.039653361344537785) 0%, rgba(0, 0, 0, 0) 100%);
    color: #e0e0e0; /* Light text color for contrast */
    padding: 40px 20px;
    border-top: 1px solid #333; /* Subtle top border for separation */
    text-align: center; /* Center align text in footer */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center align footer links */
}

.footer-links {
    margin: 0 20px; /* Margin for spacing between columns */
    flex: 1;
    min-width: 200px; /* Ensure columns don’t get too small */
}

.footer-links h3 {
    margin-bottom: 10px; /* Space below heading */
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0; /* Consistent color for headings */
}

.footer-links-grid {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Slightly reduced space between links */
}

.footer-links a {
    color: #c0c0c0; /* Slightly lighter color for links */
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s; /* Smooth color transition */
}

.footer-links a:hover {
    color: #ffffff; /* Change color on hover */
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #333; /* Subtle border for separation */
    padding-top: 20px;
}

.footer-bottom-links {
    margin-bottom: 10px; /* Space between links and copyright */
    font-size: 14px;
    color: #c0c0c0; /* Consistent link color in bottom section */
}

.footer-bottom-links a {
    color: #c0c0c0; /* Link color */
    text-decoration: none;
    transition: color 0.3s; /* Smooth color transition */
}

.footer-bottom-links a:hover {
    color: #ffffff; /* Change color on hover */
}

.footer-info {
    font-size: 14px;
    color: #c0c0c0; /* Consistent color for copyright text */
}

/* Media query for devices with larger widths, like the unfolded Galaxy Fold */
@media screen and (min-width: 600px) {
    .nav-links {
        display: flex; /* Ensure nav links are always visible */
    }

    .hamburger {
        display: none; /* Hide the hamburger button on larger screens */
    }
}

/* Media query for devices with smaller widths, like the folded Galaxy Fold */
@media screen and (max-width: 899px) {
    .nav-links {
        display: none; /* Hide the nav links by default */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Adjust this value based on your navbar height */
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 999;
    }

    .nav-links.active {
        display: flex; /* Show the nav links when active */
    }

    .nav-links li {
        margin: 10px 0;
    }

    .hamburger {
        border-style: solid;
  border-color: rgba(245, 39, 145, 0);
       background: rgba(245, 39, 145, 0);
        display: block; /* Show the hamburger button */
        position: absolute; /* Position the hamburger icon */
        top: 20px; /* Adjust position as needed */
        right: 20px; /* Adjust position as needed */
        z-index: 1001;
        cursor: pointer; /* Add cursor pointer to indicate it's clickable */
    }

    /* Hamburger Icon Styles */
.hamburger-icon {
    display: block;
    width: 30px; /* Adjusted width for better visibility */
    height: 20px; /* Adjusted height for better visibility */
    position: relative;
    transition: transform 0.3s ease;
}

/* Animation for hamburger bars */
.hamburger-icon div {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-icon div:nth-child(1) {
    top: 0;
}

.hamburger-icon div:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-icon div:nth-child(3) {
    bottom: 0;
}

/* Animation for the hamburger bars when the hamburger icon is active */
.hamburger-icon.animation div:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-icon.animation div:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.animation div:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
  
  /* Media query for devices with smaller widths, like the folded Galaxy Fold */
@media screen and (max-width: 899px) {

    .navbar {
        box-shadow: 2px 14px 97px 12px rgba(0,0,0,0.75);
        -webkit-box-shadow: 2px 14px 97px 12px rgba(0,0,0,0.75);
        -moz-box-shadow: 2px 14px 97px 12px rgba(0,0,0,0.75);
        background: #000; /* Solid black background */
        padding: 20px 0;
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 999;
        transition: height 0.3s ease; /* Smooth transition for height change */
    }

    .nav-links {
        display: none; /* Hide the nav links by default */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on your navbar height */
        left: 0;
        width: 100%;
        background-color: #000; /* Solid black background */
        z-index: 999;
        padding: 10px 0; /* Space above and below nav links */
    }

    .nav-links.active {
        display: flex; /* Show the nav links when active */
        top: 60px; /* Adjust based on your navbar height */
        background-color: #000; /* Solid black background */
        padding: 20px 0; /* Space for better layout */
    }
    
    .nav-links li {
        margin: 10px 0; /* Add vertical space between nav items */
    }

    .nav-links li a {
        opacity: 1;
        color: #fff;
        text-decoration: none;
        padding: 15px 20px; /* Adjust padding for better link size */
        text-align: center; /* Ensure links are centered */
        display: block; /* Make the entire area clickable */
        width: 100%; /* Ensure full width for links */
        transition: background-color 0.3s ease, opacity 0.3s ease;
    }

    .nav-links li a:hover {
        background-color: #333; /* Darker background on hover */
        opacity: 0.8;
    }

    .hamburger {
        border-style: solid;
        border-color: rgba(245, 39, 145, 0);
        background: rgba(245, 39, 145, 0);
        display: block; /* Show the hamburger button */
        position: absolute; /* Position the hamburger icon */
        top: 20px; /* Adjust position as needed */
        right: 20px; /* Adjust position as needed */
        z-index: 1001;
        cursor: pointer; /* Add cursor pointer to indicate it's clickable */
    }

    /* Hamburger Icon Styles */
    .hamburger-icon {
        display: block;
        width: 30px; /* Adjusted width for better visibility */
        height: 20px; /* Adjusted height for better visibility */
        position: relative;
        transition: transform 0.3s ease;
    }

    /* Animation for hamburger bars */
    .hamburger-icon div {
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: #fff;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .hamburger-icon div:nth-child(1) {
        top: 0;
    }

    .hamburger-icon div:nth-child(2) {
        top: 10px;
    }

    .hamburger-icon div:nth-child(3) {
        top: 20px;
    }

    /* Animation for the hamburger bars when the hamburger icon is active */
    .hamburger-icon.animation div:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .hamburger-icon.animation div:nth-child(2) {
        opacity: 0;
    }

    .hamburger-icon.animation div:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}
