.modern-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f0f0f0, #ffffff);
    text-align: center;
    /* Removed top and bottom borders */
    border-top: none;
    border-bottom: none;
}

.modern-header {
    margin-bottom: 40px;
}

.modern-title {
    font-size: 2.5rem;
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    margin-top: 0; /* Reverted to no negative margin */
}

.modern-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    font-style: italic;
}

.modern-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.modern-link-group {
    flex: 1;
    max-width: 300px;
    min-width: 200px;
}

.modern-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-list li {
    margin: 15px 0;
}

.modern-list a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.modern-list a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.landing-style {
    padding: 80px 20px;
    background: linear-gradient(135deg, #e3f2fd, #ffffff);
    display: flex;
    align-items: center; /* Aligns both the image and content vertically */
    justify-content: space-between; /* Ensures proper spacing between image and content */
}

.landing-style .modern-image {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    align-self: center; /* Centers the image within its container */
}

.landing-style .modern-title {
    font-size: 3.5rem; /* Maintained the requested size */
    line-height: 1.2; /* Reduced line spacing slightly */
    text-align: left; /* Aligned to the left for desktop */
    margin-bottom: 10px; /* Reduced margin to decrease space */
    padding-bottom: 0; /* Removed padding to tighten spacing */
    color: #333;
    font-weight: 700;
    margin-top: 0; /* Removed top margin to align properly */
}

.landing-style .modern-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: left; /* Aligned to the left for desktop */
}

.landing-style .modern-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.modern-section .btn-modern {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.modern-section .btn-modern:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

.modern-section .btn-modern span {
    font-weight: bold;
}

.modern-section .modern-image {
    border-radius: 15px; /* Updated to match the correct border radius of the cards */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06); /* Retained the shadow for consistency */
}

.modern-section .hero-title {
    font-size: 3rem; /* Updated to match the size of an h1 */
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.landing-style .btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2rem;
    color: #fff;
    background-color: #00aaff; /* Light blue color matching the other buttons */
    border: none;
    border: none;
    border-radius: 50px; /* Consistent pill shape */
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.landing-style .btn:hover {
    background-color: #0088cc; /* Slightly darker blue for hover effect */
    color: #fff;
    transform: translateY(-3px);
}

.landing-style .btn span {
    font-weight: bold;
}

.landing-style .modern-content {
    align-self: center; /* Centers the content within its container */
}

@media (max-width: 768px) {
    .modern-title {
        font-size: 2rem;
    }

    .modern-subtitle {
        font-size: 1rem;
        text-align: center; /* Center alignment for smaller screens */
    }

    .modern-links-container {
        flex-direction: column;
        gap: 20px;
    }

    .landing-style {
        flex-direction: column;
        text-align: center;
    }

    .landing-style .modern-image {
        margin-bottom: 20px;
    }

    .landing-style .modern-buttons {
        justify-content: center;
    }

    .landing-style .modern-title {
        text-align: center; /* Center alignment for smaller screens */
    }

    .landing-style .modern-subtitle {
        text-align: center; /* Center alignment for mobile only */
    }
}

@media (min-width: 1024px) {
    .landing-style .modern-image {
        height: 100%; /* Ensures the image matches the height of the content */
        object-fit: cover; /* Maintains aspect ratio while filling the height */
    }

    .modern-image {
        margin-top: 25px;
    }
}