/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}



/* Blog Section */
.blog-section {
    background-color: #f5f9ff; /* Light background */
    padding: 50px 0;
}

.blog-section h2 {
    text-align: center;
    font-size: 2.8rem;
    color: #03396c;
    margin-bottom: 40px;
    font-weight: bold;
}

/* Grid Layout for Blog Tiles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.blog-tile {
    background-color: #03396c; /* Light Blue */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height : 550px;
    position: relative; /* Ensure the pseudo-element is positioned correctly */
    overflow: hidden; /* Prevent pseudo-element from overflowing */
}

.blog-tile:hover {
    transform: translateY(-40px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}


/* hover */

.blog-tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 91, 150, 0.8), rgba(3, 57, 108, 0.8));
    opacity: 0; /* Start transparent */
    transition: opacity 0.3s ease-in-out; /* Smooth transition */
    z-index: 1; /* Place above the tile but below content */
    border-radius: 12px; /* Match the tile's border radius */
}

.blog-tile:hover::before {
    opacity: 2; /* Make gradient visible on hover */
}

/* Ensure content is above the gradient */
.blog-tile img,
.blog-tile h3,
.blog-tile p {
    position: relative;
    z-index: 2;
}

.blog-tile img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.blog-tile h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.blog-tile p {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
}

.read-more {
    font-size: 1.1rem;
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #03396c;
    color: #fff;
}


.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto; /* Add auto margins for center alignment */
    width: 100%; /* Ensures the divider spans the full width of the parent */    position: relative;
    width: 40%; /* Each line takes 49.5% for a total of 99% */
    padding-bottom: 30px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    
    height: 2px;
    background-color: #0775be; /* Light blue color */
}

.diamond1 {
    width: 20px;
    height: 20px;
    background-color: #011f4b ; /* Match line color */
    transform: rotate(45deg); /* Create a diamond shape */
    
}
.diamond {
    width: 20px;
    height: 20px;
    background-color: #005b96; /* Match line color */
    transform: rotate(45deg); /* Create a diamond shape */
    
}

.diamond1 + .diamond {
    margin-left: -7px; /* Overlap the diamonds slightly */
}


/* Navbar */
header nav {
    background-color: #011f4b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav .logo img {
    max-width: 120px;
    height: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #f9f9f9;
    ;
    font-size: 18px;
    padding: 10px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #005b96;
}

/* Dropdown */
.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #E6E6E6;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.dropdown-menu li a {
    display: block;
    color: #005b96;
    padding: 10px 15px;
}

.dropdown-menu li a:hover {
    background-color: #005b96;
    color: #fff;
}

/* Hamburger Icon */
.menu-icon {
    display: none;
    font-size: 24px;
    color:#f9f9f9;
    ;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        display: none; /* Hide menu initially */
        flex-direction: column;
        background-color: #011f4b;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 10px 0;
    }

    nav ul.open {
        display: flex; /* Show menu when toggled */
    }

    nav ul li {
        text-align: center;
    }

    .menu-icon {
        display: block; /* Show hamburger icon */
    }

    nav ul li a {
        font-size: 18px;
        color: #f9f9f9;
        padding: 15px;
    }

    .dropdown-menu {
        position: static;
        background-color: #005b96;
    }
}

 
/* Footer */
footer {
    background-color: #E6E6E6;
    text-align: center;
    justify-content: center;
    padding: 20px;

    margin-top: 20px;
}

footer p {
    color: #333;
    font-size: 18px;
}

.copyright {
    background: #011f4b;
    color: #fff;
    padding: 10px;
    font-size: 18px;
    text-align: center;
} 



.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto; /* Add auto margins for center alignment */
    width: 100%; /* Ensures the divider spans the full width of the parent */    position: relative;
    width: 40%; /* Each line takes 49.5% for a total of 99% */
    padding-bottom: 30px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    
    height: 2px;
    background-color: #0775be; /* Light blue color */
}

.diamond1 {
    width: 20px;
    height: 20px;
    background-color: #011f4b ; /* Match line color */
    transform: rotate(45deg); /* Create a diamond shape */
    
}
.diamond {
    width: 20px;
    height: 20px;
    background-color: #005b96; /* Match line color */
    transform: rotate(45deg); /* Create a diamond shape */
    
}

.diamond1 + .diamond {
    margin-left: -7px; /* Overlap the diamonds slightly */
}
