/* 
 Theme Name:   medicine-child
 Theme URI:    
 Description:  
 Author:       
 Author URI:   
 Template:     ayurvedic-medicine
 Version:      1.0

 /* == Add your own styles below this line ==
--------------------------------------------*/

h1 {
    font-size: clamp(2rem, 4vw, 2.5rem) !important;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2rem) !important;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 1.7rem) !important;
}

p {
    margin-bottom: 0.5rem !important;
}

section {
    margin: 30px 0 !important;
}

:root {
    --first-theme-color: #c32d2d !important;
}

.title h2 {
    background: linear-gradient(90deg, #ff0000 0%, #ffcc00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.title {
    margin-bottom: 15px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    clear: none !important;
}

.list-pos {
    list-style-position: inside;
}

.flex-list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 25px;
    list-style-position: inside;
}

.box {
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 4px #cfcfcf;
    border-bottom: 3px solid #bb340c;
    height: 100%;
}

.box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d4e20a 0%, #df270e 100%);
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.box h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.box p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .box {
        padding: 1rem;
    }

    .box h3 {
        font-size: 1.3rem;
    }

    .box p {
        font-size: 0.95rem;
    }
}

.box-first,
.box-second {
    background: linear-gradient(135deg, #ffd7008f 0%, #ffa50075 50%, #ff6b35b0 100%);
    padding: 17px 15px;
    color: #333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.box-second {
    background: linear-gradient(135deg, #DC143C 0%, #b53c3c 50%, #c11515 100%);
    color: rgb(223, 222, 222) !important;
}

.box-second p {
    color: white !important;
}

@media (min-width:991px) {
    .box-first {
        border-top-left-radius: 21px;
        border-bottom-left-radius: 21px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border-right: none
    }

    .box-second {
        border-top-right-radius: 21px;
        border-bottom-right-radius: 21px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0
    }
}

@media (max-width:991px) {
    .box-first {
        border-radius: 21px 21px 0 0
    }

    .box-second {
        border-radius: 0 0 21px 21px
    }
}

.img_el {
    padding: 60px 0;
    position: relative;
}

.img_el:before {
    content: "";
    background: color-mix(in srgb, #00000091, transparent 10%);
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 17px;
}

.img_el .img_el-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url("/wp-content/themes/medicine-child/images/tecnologia.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    border-radius: 17px;
}

.img_el .container {
    position: relative;
    z-index: 3;
}

.img_el .container h2,
.img_el .container p {
    color: white !important;
}

.img_el .container h3 {
    color: #EF8A54;
}

.cust-card {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.cust-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.cust-card h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.cust-card h2 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.cust-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #d4d10c);
    border-radius: 2px;
}

.cust-card h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #d4d10c);
    border-radius: 2px;
}

.cust-card img {
    transition: transform 0.3s ease;
}

.cust-card img:hover {
    transform: scale(1.05);
}

.cust-card p {
    color: #555;
    text-align: justify;
}

.cust-card p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .cust-card {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .cust-card h3 {
        text-align: center;
        margin-bottom: 1rem;
    }

    .cust-card h2 {
        text-align: center;
        margin-bottom: 1rem;
    }

    .cust-card h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .cust-card h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .cust-card p {
        font-size: 1rem;
        text-align: center;
    }
}

.cust-bg {
    background: linear-gradient(90deg, #891919, #7c7a0e);
    padding: 10px 11px;
    color: white;
    border-radius: 17px;
}

.cust-bg p {
    color: white !important;
}

.cust-bg h2 {
    color: rgb(255 228 126) !important;
}

#button .bi-chevron-up {
    font-size: 27px;
}

#button {
    padding-top: 11px !important;
    background: #c32d2d !important;
}

.entry-content a {
    color: red !important;
    text-decoration: none !important;
}

a:not([href]):not([class]),
a:not([href]):not([class]):hover {
    color: white !important;
}

@media screen and (max-width: 1000px) {

    .main-nav ul ul,
    .main-nav .sub-menu {
        opacity: 0;
        display: none;
    }
}

.box-image .page-header h2,
.box-image .page-header h1 {
    text-transform: capitalize !important;
}

.img-shadow {
    box-shadow: 0 0 10px rgb(0, 0, 0);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.box-image .single-page-img {
    background-image: url('/wp-content/themes/medicine-child/images/vida-en-madrid.jpg') !important;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover !important;
    height: 300px;
}

.header-bg .menu-sec {
    background-color: #912929 !important;
    padding: 0 3px !important;
}

@media screen and (max-width: 1000px) {
    .toggle-nav button {
        background: #912929 !important;
    }
}

.contact-form-container {
    margin: 0 auto;
    padding: 1rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form-header h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #DC143C 0%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-form-header p {
    color: #666;
    font-size: 1.1rem;
}

.contact-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #DC143C;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, #DC143C 0%, #FFD700 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 0.5rem;
        margin: 0.4rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-header h2 {
        font-size: 1.5rem;
    }

    .submit-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

.err {
    min-height: 70vh;
}

#sidebar .widget {
    padding: 3px !important;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 4px #cfcfcf;
    border-bottom: 3px solid #c32d2d !important;
    margin-bottom: 11px !important;
}

#sidebar ul li::before {
    color: #c32d2d !important;
}

#sidebar ul li {
    padding-left: 14px !important;
}

.main-nav a {
    text-decoration: none !important;
}

.main-nav ul ul {
    line-height: 21px !important;
}

.card img {
    width: 100%;
}