.elementor-1073 .elementor-element.elementor-element-1430890:not(.elementor-motion-effects-element-type-background), .elementor-1073 .elementor-element.elementor-element-1430890 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-image:url("https://hafic-halal.com/wp-content/uploads/2025/03/page-header-default.jpg");background-position:0px -136px;background-repeat:no-repeat;background-size:cover;}.elementor-1073 .elementor-element.elementor-element-1430890 > .elementor-background-overlay{background-color:#000000;opacity:0.55;transition:background 0.3s, border-radius 0.3s, opacity 0.3s;}.elementor-1073 .elementor-element.elementor-element-1430890{transition:background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;padding:80px 0px 80px 0px;}.elementor-widget-heading .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-primary );}.elementor-1073 .elementor-element.elementor-element-e04306f{text-align:center;}.elementor-1073 .elementor-element.elementor-element-e04306f .elementor-heading-title{font-family:"Almarai", Sans-serif;font-size:55px;font-weight:700;color:#FDFFFF;}.elementor-1073 .elementor-element.elementor-element-cd96ead{--display:flex;}@media(max-width:1024px){.elementor-1073 .elementor-element.elementor-element-1430890:not(.elementor-motion-effects-element-type-background), .elementor-1073 .elementor-element.elementor-element-1430890 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-position:0px 0px;}}@media(max-width:767px){.elementor-1073 .elementor-element.elementor-element-1430890:not(.elementor-motion-effects-element-type-background), .elementor-1073 .elementor-element.elementor-element-1430890 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-position:0px 0px;}.elementor-1073 .elementor-element.elementor-element-1430890{margin-top:-39px;margin-bottom:0px;padding:50px 0px 53px 0px;}}/* Start custom CSS for shortcode, class: .elementor-element-b8c3c90 *//* General Styling */
.container {
    max-width: 100%; /* Full width */
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #006400; /* Green color for the title */
    font-size: 24px; /* Adjust font size as needed */
    font-weight: bold; /* Make the title bold */
}

form {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the left */
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
}

#certificate_number {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-button {
    background-color: #28a745;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-button:hover {
    background-color: #218838;
}

#min-length-message {
    color: red;
    font-size: 14px;
    display: none;
    margin-top: 10px;
}

/* Table Styling */
.vertical-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 12px; /* Reduced font size */
    border: 1px solid #ddd; /* Add a thin border around the table */
}

.vertical-table th,
.vertical-table td {
    padding: 8px 10px; /* Reduced padding */
    text-align: left;
    border: 1px solid #ddd;
    min-width: 80px; /* Reduced minimum width */
}

.vertical-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    color: #333;
}

.vertical-table td {
    background-color: #fff;
    color: #555;
}

/* Styling for Images in the Table */
.vertical-table img {
    max-width: 80px; /* Set maximum width for images */
    height: auto; /* Maintain aspect ratio */
    cursor: pointer; /* Change cursor to pointer to indicate clickability */
    border-radius: 4px; /* Rounded corners for the image */
    transition: transform 0.3s ease; /* Smooth zoom effect on hover */
}

.vertical-table img:hover {
    transform: scale(1.1); /* Slightly enlarge the image on hover */
}

/* Styling for Download Button */
.download-certificate-button {
    background-color: #28a745; /* Green color for Download Certificate button */
    color: white;
    padding: 12px 24px; /* Adjusted padding for better alignment */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto; /* Center the button */
    text-align: center; /* Center the text horizontally */
    line-height: normal; /* Ensure vertical alignment */
    text-decoration: none; /* Remove underline */
    white-space: nowrap; /* Prevent text from wrapping */
    font-weight: bold; /* Make the text bold */
}

.download-certificate-button:hover {
    background-color: #218838; /* Darker green on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
    .vertical-table {
        font-size: 10px; /* Reduce font size further for smaller screens */
    }

    .vertical-table img {
        max-width: 60px; /* Reduce image size further for mobile */
    }

    /* Adjustments for the download button on mobile */
    .download-certificate-button {
        padding: 10px 20px; /* Smaller padding for mobile */
        font-size: 14px; /* Smaller font size for mobile */
    }
}

/* ============================== */
/* LIGHTBOX STYLES */
/* ============================== */

.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Ensure it's on top of other elements */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark background with transparency */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    overflow: hidden; /* Prevent scrolling when lightbox is open */
}

.lightbox img {
    max-width: 90%; /* Limit image size to fit the screen */
    max-height: 80vh; /* Limit image height to fit the viewport */
    border-radius: 8px; /* Rounded corners for better aesthetics */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Add a subtle shadow */
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease; /* Smooth hover effect */
}

.lightbox-close:hover {
    color: #ff4d4d; /* Red color on hover */
}/* End custom CSS */