/*
Theme Name: Webmicron - Child
Description: 
Author: Webmicron
Template: hello-elementor
Version: 1.0.0
Text Domain: webmicron---child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: custom-background, custom-logo, custom-menu, featured-images
*/

@import url("../hello-elementor/style.css");

/* Styling for the pagination wrapper */
.custom-pagination-wrapper {
    clear: both;
    text-align: center;
    padding: 30px 0;
}

/* Styling for the pagination links */
.custom-pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    transition: all 0.2s ease;
}

/* Current page number */
.custom-pagination-wrapper .page-numbers.current {
    background-color: #6a5acd; /* Primary color (same as enquiry button) */
    color: #fff;
    border-color: #6a5acd;
    font-weight: bold;
}

/* Hover state */
.custom-pagination-wrapper .page-numbers:hover {
    background-color: #f5f5f5;
    color: #333;
    border-color: #ccc;
}

/* Main Container - centered properly */
.dce-posts-container {
    padding: 40px 20px; /* reduced padding so layout centers properly */
    max-width: 1200px;
    margin: 0 auto;
}

/* Wrapper stays centered */
.dce-posts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ---------------------------------
   ARTICLE CARD STYLES
----------------------------------*/

.dce-post {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.dce-post:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Horizontal Flex Layout */
.dce-post-block {
    display: flex;
    flex-direction: row;
    min-height: 250px;
    align-items: stretch;
}

/* Left Image Section */
.dce-post-block > .dce-item_custommeta:first-child {
    width: 45%;
    min-width: 350px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.dce-post-block > .dce-item_custommeta:first-child .dce-meta-image {
    width: 100%;
    height: 100%;
}

.dce-post-block > .dce-item_custommeta:first-child .dce-meta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dce-post:hover .dce-meta-image img {
    transform: scale(1.05);
}

/* Right Content Section */
.dce-post-block > .dce-item_custommeta:not(:first-child),
.dce-post-block > .dce-item_readmore {
    padding-left: 28px;
    padding-right: 28px;
}

.dce-post-block > .dce-item_custommeta:nth-child(2) {
    padding-top: 24px;
    padding-bottom: 8px;
}

.dce-post-block > .dce-item_custommeta:nth-child(3) {
    padding-bottom: 8px;
}

.dce-post-block > .dce-item_custommeta:nth-child(4) {
    padding-bottom: 16px;
}

.dce-post-block > .dce-item_readmore {
    padding-bottom: 24px;
    margin-top: auto;
}

/* ---------------------------------
   TEXT & BUTTON STYLES
----------------------------------*/

.dce-post-block h5 {
    font-size: 22px;
    font-weight: 600;
    color: #333333;
    margin: 0;
    line-height: 1.3;
}

.dce-post-block .elementor-repeater-item-1c70818 div {
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.6;
}

.dce-post-block .elementor-repeater-item-e55567a div {
    font-size: 14px;
    color: #10b981;
    font-weight: 500;
    margin: 0;
}

/* Button */
.dce-post-button {
    display: inline-block;
}

.elementor-button {
    display: inline-block;
    padding: 10px 32px;
    background-color: #3b82f6;
    color: #ffffff;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.elementor-button:hover {
    background-color: #2563eb;
}

/* Content Flex Fix */
.dce-post-block > .dce-item_custommeta:not(:first-child) {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ---------------------------------
   RESPONSIVE
----------------------------------*/

@media (max-width: 968px) {
    .dce-post-block > .dce-item_custommeta:first-child {
        min-width: 300px;
        width: 40%;
    }
}

@media (max-width: 768px) {
    .dce-post-block {
        flex-direction: column;
        min-height: auto;
    }

    .dce-post-block > .dce-item_custommeta:first-child {
        width: 100%;
        height: 250px;
        min-width: unset;
    }

    .dce-post-block > .dce-item_custommeta:not(:first-child),
    .dce-post-block > .dce-item_readmore {
        padding-left: 20px;
        padding-right: 20px;
    }

    .dce-post-block > .dce-item_custommeta:nth-child(2) {
        padding-top: 20px;
    }

    .dce-post-block h5 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .dce-posts-container {
        padding: 15px 10px;
    }

    .dce-post-block > .dce-item_custommeta:first-child {
        height: 200px;
    }

    .elementor-button {
        width: 100%;
        display: block;
    }
}

/* ---------------------------------
   CUSTOM PROJECT FIXES
----------------------------------*/

.ekit-wid-con .elementskit-post-image-card {
    box-shadow: none !important;
}

.psorg-new-privacy.visible {
    display: none !important;
    opacity: 0 !important;
}

#comments {
    display: none !important;
}

.dce-img {
    width: 200px;
    height: 200px !important;
    object-fit: cover;
}

.dce-meta-item h5 {
    font-size: 26px !important;
    font-weight: 600;
    color: #018BAF;
    font-family: "Lato", Sans-serif;
}

/* GTranslate selector spacing */
select.gt_selector.notranslate {
    margin-top: 80px !important;
}


/* custom card styls */
/* --- Global Reset and Card Wrapper --- */
.custom-clinic-card-wrapper {
    display: flex; /* Enables flexible layout */
    align-items: stretch; /* Stretches height to match tallest content */
    background-color: #fff;
	border: 1px solid #e0e0e0;
    overflow: hidden; /* Contains children border radius */
    max-width: 1000px; /* Optional: Sets a max width for the whole card */
    margin: 20px auto; 
}

/* --- 1. Image and Status Tag --- */
.custom-image-container {
    position: relative;
	max-height: 210px;
    flex: 0 0 35%; /* Image takes 35% of the card width */
    max-width: 300px; /* Optional: Max width for the image container */
    overflow: hidden;
	background-position: center center;
}

.custom-clinic-image {
    display: block;
	width: 100%;
    height: 210px !important;
	min-height: 210px;
    object-fit: cover !important;
    object-position: center !important;
}

.custom-status-tag {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #FFE500; /* Yellow color */
    color: #333;
    padding: 6px 12px;
    font-size: 0.9em;
    z-index: 10;
}

/* --- 2. Content and Header --- */
.custom-content-container {
    flex: 1; /* Takes up the remaining space */
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
}

.custom-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.custom-clinic-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex-grow: 1;
}

/* --- 3. Enquiry Button --- */
.custom-enquiry-button {
    background-color: #6a5acd; /* Purple color */
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9em;
    white-space: nowrap; /* Prevents button from wrapping */
    transition: background-color 0.2s;
    margin-left: 15px;
}

.custom-enquiry-button:hover {
    background-color: #5548a3;
}

/* --- 4. Text Content --- */
.custom-clinic-address {
    font-size: 0.95em;
    color: #666;
    margin: 0 0 10px 0;
}

.custom-consultation-status {
    font-size: 1em;
    color: #4CAF50; /* Green color */
    font-weight: 500;
    margin: 0 0 10px 0;
}

.custom-clinic-description {
    font-size: 0.9em;
    color: #555;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

/* --- 5. Tags --- */
.custom-tags-list {
    margin-top: auto; /* Pushes tags to the bottom */
}

.custom-tag-item {
    display: inline-block;
    background-color: #f0f0f8;
    color: #6a5acd;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    margin-right: 8px;
    font-weight: 500;
}

/* --- 6. Responsiveness (Mobile View) --- */
@media (max-width: 768px) {
    .custom-clinic-card-wrapper {
        flex-direction: column; /* Stacks sections vertically */
    }

    .custom-image-container {
        flex: 0 0 auto;
        width: 100%; /* Image takes full width */
        max-width: none;
        height: 200px; /* Sets a fixed height for mobile image */
    }
    
    .custom-content-container {
        padding: 15px;
    }

    .custom-header-row {
        flex-direction: column;
        align-items: stretch;
    }

    .custom-clinic-title {
        margin-bottom: 10px;
    }

    .custom-enquiry-button {
        margin-left: 0;
        text-align: center;
        padding: 10px 15px;
    }
}