.mark4-modules-section {
    padding: 70px 0 60px;
    max-width: 1200px;
    margin: 30px auto 0;
    position: relative;
    z-index: 3;
}

.et_pb_section_1 .mark4-modules-section {
    width: 100%;
    max-width: 1520px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: -160px;
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    padding: 100px 4% 60px;
}

.et_pb_section_1 .mark4-modules-section:after {
    content: "";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
    width: 0;
}

.mark4-modules-title {
    font-size: 36px;
    font-weight: 700;
    color: #072E4C;
    text-align: center;
    margin-bottom: 10px;
}

.mark4-modules-subtitle {
    text-align: center;
    color: #666;
    font-size: 18px;
    margin-bottom: 40px;
}

.mark4-modules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mark4-module-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.mark4-module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.mark4-module-card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.mark4-module-card-body {
    padding: 25px;
}

.mark4-module-card-body h3 {
    font-size: 22px;
    font-weight: 700;
    color: #072E4C;
    margin-bottom: 10px;
}

.mark4-module-card-body p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.mark4-module-link {
    color: #d49a5f;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mark4-module-card-img {
    animation: mark4ZoomLeft 1s ease-in-out 0.1s forwards;
    opacity: 0;
}

@keyframes mark4ZoomLeft {
    0% {
        opacity: 0;
        transform: scale(1.2) translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

/* Module page styles */
.mark4-module-page {
    background: linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, .8)), url(/wp-content/uploads/2022/05/topography-1.png) !important;
}

.mark4-module-hero {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.mark4-module-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: mark4ZoomLeft 1s ease-in-out 0.1s forwards;
    opacity: 0;
}

@media (max-width: 768px) {
    .mark4-module-hero {
        height: 250px;
    }
}

.mark4-module-page .entry-content {
    padding: 40px 0;
}

.mark4-module-page .entry-content h2 {
    font-size: 32px;
    color: #072E4C;
    margin-bottom: 20px;
}

.mark4-module-page .entry-content h3 {
    font-size: 22px;
    color: #235885;
    margin: 30px 0 15px;
}

.mark4-module-page .entry-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.mark4-module-page .entry-content ol,
.mark4-module-page .entry-content ul {
    margin: 0 0 30px 20px;
}

.mark4-module-page .entry-content li {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 8px;
}

.mark4-module-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mark4-back-link {
    color: #d49a5f;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
}

.mark4-back-link:hover {
    text-decoration: underline;
}


