/* --- Spirant EDOF IOL Section --- */
.sp-edof-section {
    background-color: #ffffff;
    padding: 40px 0;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.sp-edof-container {
    max-width: 1300px !important;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.sp-edof-text-col {
    flex: 1;
    max-width: 600px;
}

.sp-edof-title {
    font-size: 38px;
    color: #117855;
    font-weight: 700;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

.sp-edof-desc {
    font-size: 17px;
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.sp-edof-img-col {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.sp-edof-gradient-box {
    background: linear-gradient(135deg, #f0fdff 0%, #a4f2ff 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 520px;
}

.sp-edof-product-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(5px 15px 25px rgba(0, 0, 0, 0.15));
}

/* --- Responsive Breakpoints (Tablet & Mobile) --- */
@media (max-width: 992px) {
    .sp-edof-container {
        flex-direction: column;
        /* --- Responsive Breakpoints (Tablet & Mobile) --- */
        text-align: center;
        gap: 45px;
    }
    .sp-edof-text-col {
        max-width: 100%;
    }
    .sp-edof-img-col {
        justify-content: center;
        width: 100%;
    }
    .sp-edof-title {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .sp-edof-section {
        padding: 60px 0;
    }
    .sp-edof-title {
        font-size: 28px;
    }
    .sp-edof-desc {
        font-size: 15px;
    }
    .sp-edof-gradient-box {
        padding: 30px 20px;
    }
}

/* --- Lens Variants Section --- */
.iol-variant-section {
    background-color: #ffffff;
    padding: 40px 0;
    width: 100%;
}

.iol-variant-container {
    max-width: 900px !important;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* --- Card Styling --- */
.iol-variant-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 40px 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    border: 1px solid #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.iol-variant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.09);
}

/* --- Typography for the Card Titles --- */
.iol-variant-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0 0 35px 0;
    text-transform: uppercase;
}

.cla-text {
    color: #a8a8a8;
}

.xanthous-text {
    color: #e5cc4d;
}

.iol-variant-img-wrap {
    width: 100%;
    max-width: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.iol-variant-img-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.12));
}

/* --- Responsive Breakpoints (Tablet & Mobile) --- */
@media (max-width: 768px) {
    .iol-variant-container {
        grid-template-columns: 1fr;
        /* --- Responsive Breakpoints (Tablet & Mobile) --- */
        max-width: 500px !important;
        gap: 30px;
    }
    .iol-variant-section {
        padding: 60px 0;
    }
    .iol-variant-title {
        font-size: 24px;
        margin: 0 0 25px 0;
    }
}

@media (max-width: 480px) {
    .iol-variant-card {
        padding: 30px 15px;
    }
    .iol-variant-img-wrap {
        max-width: 180px;
    }
}

/* --- EDOF Characteristics Section --- */
.edof-char-section {
    background-color: #ffffff;
    padding: 30px 0;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.edof-char-container {
    max-width: 1050px !important;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Table Styling --- */
.edof-table-wrapper {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.edof-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.edof-table thead th {
    background-color: #009a66;
    color: #ffffff;
    padding: 18px 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    border-bottom: none;
}

.edof-table tbody td {
    padding: 14px 20px;
    border: 1px solid #e8f0eb;
    font-size: 14px;
    color: #444444;
    line-height: 1.5;
    vertical-align: top;
}

.edof-label {
    width: 35%;
    color: #333333 !important;
    font-weight: 500;
    border-right: 1px solid #e8f0eb;
}

/* --- Diagram Image Wrapper --- */
.edof-diagram-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 50px;
}

.edof-diagram-img {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* --- Responsive Breakpoints (Tablet & Mobile) --- */
@media (max-width: 768px) {
    .edof-char-section {
        padding: 50px 0;
    }
    .edof-label {
        width: 45%;
        /* --- Responsive Breakpoints (Tablet & Mobile) --- */
    }
}

@media (max-width: 600px) {
    .edof-table tbody td {
        padding: 12px 15px;
        font-size: 13px;
        /* --- Responsive Breakpoints (Tablet & Mobile) --- */
    }
    .edof-table thead th {
        font-size: 16px;
        padding: 15px;
    }
    .edof-table,
    .edof-table tbody,
    .edof-table tr {
        display: block;
        width: 100%;
    }
    .edof-table thead {
        display: block;
    }
    .edof-table tbody td {
        display: block;
        width: 100% !important;
        border: none;
        border-bottom: 1px solid #e8f0eb;
    }
    .edof-label {
        font-weight: 700;
        background-color: #f9fbf9;
        /* --- Responsive Breakpoints (Tablet & Mobile) --- */
        border-bottom: none !important;
        padding-bottom: 4px;
    }
    .edof-table tbody td:not(.edof-label) {
        padding-top: 4px;
        margin-bottom: 10px;
    }
}

/* --- Autofocus Pro Cards Section --- */
.af-cards-section {
    background-color: #ffffff;
    padding: 30px 0;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.af-cards-container {
    max-width: 900px !important;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* --- Card Styling --- */
.af-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #f2f4f7;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.af-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.af-card-img-wrap {
    background: linear-gradient(180deg, #dcf6fc 0%, #a8edfa 100%);
    border-radius: 8px;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

.af-card-img-wrap img {
    max-width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.15));
}

.af-card-title {
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #202b36;
    margin: 22px 0 18px 0;
}

.af-card-btn-wrap {
    text-align: center;
    margin-bottom: 10px;
}

.af-card-btn {
    display: inline-block;
    background-color: #d82b2b;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 30px;
    font-size: 14.5px;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.af-card-btn:hover {
    background-color: #bd2323;
}

.af-card-btn:active {
    transform: scale(0.97);
}

/* --- Responsive Breakpoints (Tablet & Mobile) --- */
@media (max-width: 768px) {
    .af-cards-container {
        grid-template-columns: 1fr;
        /* --- Responsive Breakpoints (Tablet & Mobile) --- */
        max-width: 500px !important;
    }
    .af-cards-section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .af-card-img-wrap {
        min-height: 210px;
    }
    .af-card-img-wrap img {
        max-height: 130px;
    }
}
