/*
Theme Name: Kalium - Child Theme
Theme URI: https://kaliumtheme.com
Author: Laborator
Author URI: https://laborator.co
Description: Start creating that amazing website that you have always wanted, only with Kalium &mdash; Connect with Laborator on: <a href="https://twitter.com/thelaborator">Twitter X</a> &bull; <a href="https://www.facebook.com/laboratorcreative">Facebook</a> &bull; <a href="https://www.instagram.com/laboratorcreative">Instagram</a>
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Template: kalium
Text Domain: kalium
*/

/* Category Grid */
/* Category Grid - Force 6 per row */
.epc-category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* exactly 6 columns */
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    text-align: center;
}

.epc-category-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.epc-category-item:hover {
    transform: translateY(-5px);
}

.epc-cat-img {
    margin: 0 auto 12px;
}

.epc-cat-img img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.epc-cat-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #009fe3;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.epc-category-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}


header {
    margin-bottom: 0px !important;
}

.epc-post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.epc-post-item {
    /* Remove border and padding if desired */
    padding: 10px 0;
    /* optional spacing */
}

.epc-post-item img {
    width: 100%;
    height: auto;
}

.epc-post-title a {
    font-family: 'Arial', Helvetica, Arial, Lucida, sans-serif;
    font-size: 16px;
    color: #009bd9 !important;
    font-weight: 700;
    --k-line-height: 24.2px !important;
}

.epc-post-meta {
    font-size: 12px;
    color: #888;
}

.epc-post-excerpt {
    margin-top: 5px;
    font-size: 14px;
    /* optional, adjust as needed */
    color: #333;

}

/* new  */
#epc-post-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
}

.epc-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.epc-popup-content {
    position: relative;
    max-width: 800px;
    width: 90%;
    background: #00a9eb;
    margin: 50px auto;
    padding: 20px;
    display: flex;
    gap: 20px;
}

.epc-popup-content img {
    /* max-width: 40%; */
    height: auto;
}

.epc-popup-text {
    width: 60%;
}

.epc-popup-text h2 {
    font-size: 18px;
    color: #009bd9;
    font-weight: 700;
    margin: 0 0 10px;
}

.epc-popup-text p {
    font-size: 14px;
    color: #333;
}

.epc-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* Ensure popup-inner arranges content side by side */
#epc-popup-inner {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

/* Left column (image) */
.epc-popup-left {
    flex: 0 0 40%;
    /* fixed 40% width */
}

.epc-popup-left img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Right column (text) */
.epc-popup-right {
    flex: 1;
    color: #333;
}

.epc-popup-right h3 {
    font-size: 20px;
    color: #fff;
    margin: 0 0 10px;
    font-weight: 700;
}

.epc-popup-right p {
    font-size: 14px;
    line-height: 1.5;
    color: #fff;
}


/* login page  */
/* Full-screen background section */
.custom-login {
    display: flex;
    justify-content: center;
    /* horizontal center */
    align-items: center;
    /* vertical center */
    min-height: 100vh;
    /* full viewport height */
    background: url('YOUR-BACKGROUND-IMAGE-URL') no-repeat center center;
    background-size: cover;
    padding: 20px;
}

/* Login form box */
.custom-login .um-5203 {
    max-width: 450px;
    width: 100%;
    padding: 40px;
    margin-top: 151px;
    background: transparent;
    /* fully transparent */
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Form labels */
.custom-login .um-5203 label {
    font-weight: 600;
    color: #222222;
}

/* Input fields */
.custom-login .um-5203 .um-form-field {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

/* Login button */
.custom-login .um-5203 .um-button {
    background-color: #ff0000;
    /* Red */
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
}

/* Register button */
.custom-login .um-5203 .um-button.um-alt {
    background-color: #0066cc;
    /* Blue */
    color: #ffffff;
}

/* Checkbox styling */
.custom-login .um-5203 .um-field-checkbox-state i {
    color: #ff0000;
    /* Red checkbox icon */
}

/* Links */
.custom-login .um-5203 .um-link-alt {
    color: #0066cc;
    /* Blue */
    display: block;
    margin-top: 15px;
}

/* Hide default Ultimate Member Register button */
.custom-login .um-5203 .um-button.um-alt {
    display: none;
}
/* Hide "Keep me signed in" checkbox */
.custom-login .um-5203 .um-field-c {
    display: none;
}

/* Hide "Forgot your password?" link */
.custom-login .um-5203 .um-col-alt-b {
    display: none;
}


/* Container */
.custom-login .wpcf7 {
    max-width: 450px;
    width: 100%;
    padding: 40px;
    margin-top: 151px; /* same as login form */
    background: transparent; /* match login form */
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Labels */
.custom-login .wpcf7 label {
    font-weight: 600;
    color: #222222;
    display: block;
    margin-bottom: -40px;
}

/* Input fields */
.custom-login .wpcf7 input[type="text"],
.custom-login .wpcf7 input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

/* Submit button */
.custom-login .wpcf7 input[type="submit"] {
    background-color: #0066cc; /* Red like login form button */
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

/* Hover effect */
.custom-login .wpcf7 input[type="submit"]:hover {
    background-color: #0066cc; /* Slightly darker red on hover */
}

/* Hide CF7 default messages (optional) */
.custom-login .wpcf7 .wpcf7-response-output {
    text-align: center;
    margin-top: 10px;
}


/* Add a heading inside the login form */
.custom-login .um-5203::before {
    content: "Login";
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    text-align: center;
}
/* Add heading before CF7 form */
.custom-login .wpcf7-form::before {
    content: "Request Login Info";
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    text-align: center;
}
