/* Global */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    background-color: #fdfdfd;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.button {
    margin-left: auto;
    padding: 7px 28px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    display: inline-block;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button:hover {
    background-color: #0056b3;
    transform: scale(1.1);
    transition: transform 0.4s ease, color 0.4s ease;
}

.white-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #007bff;
    background-color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.white-button:hover {
    background-color: #ededed;
    transform: scale(1.1);
    transition: transform 0.4s ease, color 0.4s ease;
}

/* Typography */
.white-text {
    color: white;
}

.blue-text {
    color: rgb(0, 85, 255);
    font-weight: bold;
}

.section-subtitle {
    font-style: italic;
}

h1, h2, h3 {
    margin: -5px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 40px;
}

/* Header */
.header-wrapper {
    background-color: #007bff;
    padding-top: 5px;
    padding-bottom: 60px;
}

.header-nav {
    text-align: center;
    line-height: 2;
}

header {
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    margin: 25px auto;
    overflow: hidden;
    padding: 0px 10px;
}

nav {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
}

.nav-container {
    position: relative;
    display: flex;
    justify-content: center; /* Center nav horizontally */
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    min-height: 80px;
    flex-wrap: wrap;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;      /* Remove margin-left */
    padding: 0;
}

nav ul li {
    font-weight: bold;
    font-size: 1.5rem;
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s ease;
}

.nav-button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 7px 28px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    display: inline-block;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

nav ul li a:hover {
    color: rgb(0, 85, 255);
    transform: scale(1.3);
    transition: transform 0.6s ease, color 0.4s ease;
    display: inline-block;
}

/* Blog Section */
.blog {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.blog-header {
    color: black;
    padding: 40px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.blog-icon {
    font-size: .8rem; /* Adjust icon size */
    color: grey; /* Set icon color */
    text-align: left; /* Center the icon */
    display: flex;
    margin-top: 15px;
    margin-left: 10px;
    margin-bottom: -5px; /* Reduce spacing below the icon */
}

.blog-icon p {
    margin-top: -4px;
    margin-left: -13px; 
    color: grey; /* Text color */
    font-size: .95rem; /* Adjust text size */
    font-weight: bold;
    opacity: 0.85; /* Slightly faded text */
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-post {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative; /* Enable positioning for the date badge */
}

.date-badge {
    position: absolute;
    top: 15px; /* Position the badge at the top */
    left: 15px; /* Position the badge on the left */
    background-color: #007bff; /* Blue background */
    color: #fff; /* White text */
    font-size: 0.9rem; /* Adjust font size */
    font-weight: bold;
    padding: 5px 10px; /* Add padding for the oval shape */
    border-radius: 20px; /* Make it an oval */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
    z-index: 1; /* Ensure it appears above the image */
}

.blog-post img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post h3 {
    font-size: 1.2rem; /* Adjust title size */
    font-weight: bold;
    color: #333;
    margin-top: 0; /* Remove extra spacing above the title */
    margin-left: 15px;
    margin-bottom: 0; /* Add consistent spacing below the title */
    text-align: left; /* Center-align the title */
}

.blog-post p {
    padding: 0 15px 15px;
    color: #666;
    line-height: 1.5;
}

.blog-post a {
    display: inline-block;
    margin: 0 15px 15px;
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.blog-post a:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

footer .container {
    padding: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    font-size: 1.8rem;
    color: #007bff;
    transition: color 0.3s ease, transform 0.5s ease;
}

.social-links a:hover {
    color: #0056b3;
    transform: scale(1.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0;
        margin: 0;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }
}