@charset "utf-8";


.container {
    width: 100%;
    max-width: 1400px; /* SET YOUR PREFERRED WIDTH HERE */
    margin: 0 auto;    /* Centers the container on the page */
    padding: 0 30px;   /* Prevents content touching screen edges on mobile */
    box-sizing: border-box;
}



/* Container for the whole section */
.module-container {
    width: 100%;
    padding: 30px 0;
    background-color: transparent; /* Or #ffffff */
}



.module-row {
    display: grid;
    grid-template-columns: 200px 1fr 330px; 
    align-items: stretch;
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
    background: #ffffff;
    overflow: hidden;   /* This ensures the image corners don't overlap the row border */
}



/* New styling for the Text in the left box */
.box-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;   /* vertical text alignment */
    align-items: center;    /* text centered horizontally */
    padding-top: 50px;
    text-align: center;
    height: 100%;   /* Ensure the box still fills the full row height */
    box-sizing: border-box;   /* Keeps the padding from growing the box */
    background-color: #fcfcfc;   /* Optional: slight tint to distinguish the "label" area */
}



.module-duration {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.2;
    color: #2323ff;
    text-transform: none;
    display: block;
}



.module-duration-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.2;
    color: #2323ff;
    text-transform: none;
    display: block;
    margin: 40px 15px 0 15px;
}



/* Mid box remains the same but ensure borders match */
.box-mid { 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Aligns content to the top where your padding starts */
    align-items: flex-start;
    padding: 30px 50px;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}



.box-mid .module-intro {
    font-size: 1.3rem; 
    font-weight: 700;
    margin-bottom: 20px; 
    line-height: 1.7;    /* Increased from 1.4 */
}



.box-mid p {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;    /* Added to create more breathing room */
}



/* Optional: Removes the gap from the very last paragraph so it doesn't push the buttons down too far */
.box-mid p:last-of-type {
    margin-bottom: 0;
}



.box-mid h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    color: #2323ff;
    margin: 0 0 30px 0;
    /*letter-spacing: 1px; */
}



.module-intro {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.4;        /* Adjusted for readability at larger sizes */
    color: #212427;             /* Slightly darker for better contrast */
}



.box-mid .module-intro {
    font-size: 1.3rem; 
    font-weight: 700;
    margin-bottom: 20px; 
}



.button-group {
    display: flex;
    gap: 50px;            /* Space between the two buttons */
    margin-top: 40px;     /* Gap between text and buttons */
    width: 100%;
    justify-content: flex-start; /* Aligns buttons to the left */
}



.module-btn {
    display: inline-block;
    width: fit-content;      /* Button only as wide as its text */
    padding: 12px 25px;
    background-color: #008000;  
    color: #ffffff;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
    border-radius: 6px;
    border: none;
    white-space: nowrap;    /* Prevents text from wrapping inside the button */
    margin-top: 0 !important;
}



/* Optional: Different color for the second button */
.btn-two {
    background-color: #2323ff;
}



.module-btn:hover {
    background-color: #f40000; 
    color: #ffffff;
    text-decoration: none;
}




/* Mobile Tweak: Stack buttons if the screen is too narrow */
@media (max-width: 480px) {
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }
    .module-btn {
        text-align: center;
    }
}



/* Mobile Tweak: Ensure the text looks good when stacked */
@media (max-width: 768px) {
    .module-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .box-left {
        border-bottom: 1px solid #eee;
        padding: 15px;
    }
}



.box-right {
    padding: 5px;        /* Adds a small buffer so the photo doesn't touch the edges */
    display: flex;
    align-items: center;  /* Centers the photo vertically */
    justify-content: center; /* Centers the photo horizontally */
    background: #ffffff;  /* Matches the row background */
    height: 100%;
}



.module-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* This is key: it crops the photo to fill the box without stretching it */
    display: block;
}


 
 .box-mid {
        border-left: none;
        border-right: none;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
}



.grid-intro-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: #212427;
    padding-left: 30px;
    margin-top: 35px;
    margin-bottom: 10px;
    display: block;    /* Ensures it sits on its own line */
}



.grid-intro-text2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 400 !important;
    color: #212427;
    padding-left: 30px;
    margin-bottom: 25px;
    display: block;    /* Ensures it sits on its own line */
}



/* Container for the grid */
.module-grid {
    padding: 0 0 10px 0;
    background-color: #f9f9f9;   /* Optional light background to distinguish from header */
}

/* The Row setup */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;   /* Offsets the column padding */
}

/* The Columns */
.column {
    flex: 0 0 33.333%;   /* Takes up 1/3 of the width */
    max-width: 33.333%;
    padding: 15px;
    box-sizing: border-box;
}

/* The Box/Card Style */
.card {
    background: #ffffff;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    height: 100%;    /* Ensures all boxes in a row are same height */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

.card p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    flex-grow: 1; /* Pushes the button to the bottom if text is short */
    color: #212427;
    line-height: 1.5;
    margin-bottom: 6px;
}



/* Responsive: Stack columns on tablets and phones */
@media (max-width: 992px) {
    .column {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 600px) {
    .column {
        flex: 0 0 100%;
        max-width: 100%;
    }
}