/* Ensure Fancybox navigation buttons are visible */
.fancybox__nav {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Style for the previous and next buttons */
.fancybox__button {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7) !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.fancybox__button:hover {
    background: rgba(0, 0, 0, 1) !important;
}

/* Previous button */
.fancybox__button--prev::after {
    content: "◀";
    font-size: 24px;
    color: white;
}

/* Next button */
.fancybox__button--next::after {
    content: "▶";
    font-size: 24px;
    color: white;
}

/* Close button */
.fancybox__button--close {
    background: red !important;
    color: white;
    font-size: 24px;
}

.fancybox-button {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
}
.fancybox-button svg {
    fill: white;
}



/* Ensure Fancybox navigation buttons are visible */
.fancybox__nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
	

/* Previous and Next Button Styles */
.fancybox__button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7) !important;
    border-radius: 50%;
    transition: background 0.3s ease-in-out;
    z-index: 9999 !important;
    position: relative;
}

.fancybox__button:hover {
    background: rgba(0, 0, 0, 1) !important;
}

/* Previous Button (◀) */
.fancybox__button--prev::after {
    content: "◀";
    font-size: 24px;
    color: white;
}

/* Next Button (▶) */
.fancybox__button--next::after {
    content: "▶";
    font-size: 24px;
    color: white;
}

/* Close Button (✖) */
.fancybox__button--close {
    background: red !important;
    color: white;
    font-size: 20px;
}

/***********************/

/* ✅ Latest Projects Section */
.latest-posts {
    text-align: center;
    padding: 20px;
}

.latest-posts h2 {
    text-align: center;
    color: #b0194d;
    margin-bottom: 25px;
    font-size: 3.3rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px;
	  padding-top: 15px; /* Space for the line */
    display: inline-block;
}

.latest-posts h2::before {
    content: "";
    display: block;
    width: 90px; /* Adjust width as needed */
    height: 4px; /* Thickness of the line */
   /* background-color: #555; /* Green color */
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ✅ Latest Posts Grid */
.latest-posts-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Makes it responsive */
    max-width: 1000px;
    margin: 0 auto;
	  padding-bottom: 80px;
}

/* ✅ Individual Post */
.latest-post-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    max-width: 300px;
    text-align: center;
}

.latest-post-item:hover {
    transform: translateY(-5px);
}

/* ✅ Post Image */
.latest-post-item img {
    width: 100%;
    height: 180px; /* Adjust to fit your design */
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

/* ✅ Post Title */
.latest-post-item h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 15px 10px;
    color: #333;
}

/* ✅ Post Link */
.latest-post-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 10px;
}

/* 🔽 Responsive Design */

/* ✅ For screens below 700px */
@media (max-width: 700px) {
    .latest-posts h2 {
        font-size: 24px;
    }
    .latest-posts-grid {
        flex-direction: column;
        align-items: center;
    }
    .latest-post-item {
        max-width: 80%;
    }
}

/* ✅ For screens below 600px */
@media (max-width: 600px) {
    .latest-posts {
        padding: 10px;
    }
    .latest-posts h2 {
        font-size: 22px;
    }
    .latest-post-item {
       max-width: 80%;
        width: 80%;
    }
}

/* ✅ For screens below 575px */
@media (max-width: 575px) {
    .latest-posts-grid {
        gap: 15px;
    }
    .latest-posts h2 {
        font-size: 20px;
    }
    .latest-post-item img {
        height: 150px; /* Reduce image size on small screens */
    }
    .latest-post-item h3 {
        font-size: 16px;
    }
}

/* ✅ Separator Line Between Technologies and Latest Posts */
.technologies-section {
   
    position: relative;
}

/* ✅ Horizontal Separator Line */
.technologies-section::after {
    content: "";
    display: block;
    width: 90%; /* Adjust width as needed */
    height: 2px; /* Thickness of the line */
   background-color: #555; /* Green color */
    margin: 40px auto; /* Centered with space above and below */
    border-radius: 2px;
}

.hero-section {
    width: 100%; /* Full width */
    height: 60vh; /* Full viewport height */
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents repetition */
}

