.wp-exam-module-container {
    background-color: #ffffff; /* Main card background */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Soft shadow for the main card */
    padding: 40px;
    width: 100%; /* Important for Avada layouts */
    margin: 0 auto; /* Center the module block within Avada's layout */
    border: 1px solid #e8e8ed; /* Subtle border for the main card */
    box-sizing: border-box; /* Include padding/border in element's total width/height */
    text-align: center; /* Center the top section content */

    /* Apply primary font and font smoothing locally */
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.4; /* Slightly more compact line height for Apple feel */
}

/* Top Icon Section */
.wp-exam-module-container .exam-header-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%; /* Circle shape */
    background-color: rgba(0, 122, 255, 0.1); /* Light blue background for top icon */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto; /* Center and add bottom margin */
}

.wp-exam-module-container .exam-header-icon-wrapper svg {
    width: 40px; /* Size of the SVG icon inside the circle */
    height: 40px;
}

.wp-exam-module-container .exam-header-icon-wrapper svg path {
    fill: #007aff; /* Apple Blue for icon */
}

/* Main Heading */
.wp-exam-module-container h2 {
    font-size: 38px;
    font-weight: 700; /* Bold */
    color: #1d1d1f; /* Dark text */
    margin-top: 0 !important; /* Force reset Avada's default margin */
    margin-bottom: 15px !important; /* Force reset Avada's default margin */
    letter-spacing: -0.02em; /* Tighter letter spacing */
    line-height: 1.2; /* Tighter line height for headings */
}

/* Descriptive Paragraph */
.wp-exam-module-container .exam-description-text {
    font-size: 17px;
    color: #6e6e73; /* Lighter gray */
    margin-top: 0 !important; /* Force reset Avada's default margin */
    margin-bottom: 40px !important; /* Force reset Avada's default margin */
    max-width: 580px; /* Control line length for readability */
    margin-left: auto;
    margin-right: auto; /* Center the paragraph itself */
    line-height: 1.5; /* Slightly more relaxed line height for body text */
}

/* Exam List */
.wp-exam-module-container .exam-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto !important; /* ✅ centers the list */
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 660px;
}


/* Individual Exam Link (each one is a card) */
.wp-exam-module-container .exam-link {
    display: flex; /* Layout for icon, text, and arrow */
    align-items: center; /* Vertically centers icon and text */
    padding: 20px;
    background-color: #ffffff; /* White background for each link item */
    border-radius: 10px;
    text-decoration: none !important; /* Force remove underline */
    color: #1d1d1f; /* Default text color for the link block (for inheritance) */
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; /* Smooth transitions */
    border: 1px solid #e8e8ed; /* Subtle border for definition */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Very subtle shadow for each card */
    text-align: left; /* Align text left within the link item */
    box-sizing: border-box; /* Ensures padding is included in element's total size */
}

/* Hover and Active (click) states for links */
.wp-exam-module-container .exam-link:hover {
    background-color: #f0f0f2; /* Subtle light gray on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Slightly more prominent shadow on hover */
}

.wp-exam-module-container .exam-link:active {
    transform: translateY(0); /* Return to original position */
    box-shadow: none; /* Remove shadow on click */
    background-color: #e8e8ed; /* Slightly darker gray on click */
}

/* Icon within each exam link */
.wp-exam-module-container .exam-item-icon {
    width: 24px; /* Size of the SVG icon */
    height: 24px;
    flex-shrink: 0; /* Prevents icon from shrinking on smaller screens */
    margin-right: 15px; /* Space between icon and text content */
}

.wp-exam-module-container .exam-item-icon svg {
    display: block; /* Ensures SVG behaves like a block element, removing extra space */
    width: 100%;
    height: 100%;
}

.wp-exam-module-container .exam-item-icon svg path {
    fill: #6e6e73; /* Softer gray for item icons */
    stroke: #6e6e73; /* Applies color to strokes within SVG */
}

/* Text content container for title and description */
.wp-exam-module-container .exam-text-content {
    flex-grow: 1; /* Allows text content to take available space */
    display: flex;
    flex-direction: column; /* Stacks title and description vertically */
}

.wp-exam-module-container .exam-title {
    font-size: 18px;
    font-weight: 600; /* Semibold for link titles */
    color: #1d1d1f; /* Dark text */
    margin-bottom: 2px !important; /* Force reset */
    margin-top: 0 !important; /* Force reset */
    letter-spacing: -0.01em; /* Tighter letter spacing for titles */
}

.wp-exam-module-container .exam-description {
    font-size: 15px;
    color: #6e6e73; /* Lighter gray for descriptions */
    font-weight: 400; /* Regular */
    margin-top: 0 !important; /* Force reset */
    margin-bottom: 0 !important; /* Force reset */
}

/* Right Arrow Icon */
.wp-exam-module-container .exam-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-left: 15px; /* Space between text content and arrow */
}

.wp-exam-module-container .exam-arrow svg {
    display: block;
    width: 100%;
    height: 100%;
}

.wp-exam-module-container .exam-arrow svg path {
    stroke: #b0b0b0; /* Light gray for subtle arrows */
}

/* Message for No Exams */
.wp-exam-module-container .no-exams-message {
    text-align: center;
    font-size: 18px;
    color: #5e5e5f;
    padding: 20px 0;
    margin: 0 !important; /* Force reset Avada's margins */
}

/* Responsive Adjustments (scoped to the module) */
@media (max-width: 768px) {
    .wp-exam-module-container {
        padding: 30px 20px;
    }

    .wp-exam-module-container .exam-header-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

    .wp-exam-module-container .exam-header-icon-wrapper svg {
        width: 35px;
        height: 35px;
    }

    .wp-exam-module-container h2 {
        font-size: 32px;
        margin-bottom: 10px !important;
    }

    .wp-exam-module-container .exam-description-text {
        font-size: 16px;
        margin-bottom: 30px !important;
    }

    .wp-exam-module-container .exam-list {
        gap: 10px;
    }

    .wp-exam-module-container .exam-link {
        padding: 15px;
    }

    .wp-exam-module-container .exam-item-icon {
        width: 22px;
        height: 22px;
        margin-right: 10px;
    }

    .wp-exam-module-container .exam-title {
        font-size: 17px;
    }

    .wp-exam-module-container .exam-description {
        font-size: 14px;
    }

    .wp-exam-module-container .exam-arrow {
        width: 16px;
        height: 16px;
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .wp-exam-module-container {
        padding: 25px 15px;
    }

    .wp-exam-module-container h2 {
        font-size: 28px;
    }
}