/*
* Template Name: Mediplus - Medical and Health anagement System
* Version: 1.1
* Author: D&DP
* Author URI: https://danddp.com
* Description: This is a new, modern, and responsive CSS for the Mediplus template.
*/

/* --- ICON FONT FIX START ---
 * The following rules ensure that icon fonts are displayed correctly by explicitly
 * setting their required font-family and font-weight, overriding general styles.
*/
.fa, .fas {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}
[class*="icofont-"] {
    font-family: 'IcoFont' !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* --- ICON FONT FIX END --- */


/* 1.  BASE CSS */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
    --primary-color: #2C7BFF;
    --secondary-color: #00B894;
    --text-color: #555;
    --heading-color: #333;
    --light-bg: #f9f9f9;
    --white-color: #fff;
    --border-color: #eee;
    --shadow: 0 10px 30px rgba(0,0,0,0.07);
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--white-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0px;
    margin: 0px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--heading-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.section-title img {
    margin-bottom: 15px;
}

.btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    display: inline-block;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn.primary {
    background-color: var(--secondary-color);
}
.btn.primary:hover {
    background-color: var(--primary-color);
}


/* 2. HEADER */
.header {
    background: var(--white-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .topbar {
    background: var(--light-bg);
    padding: 10px 0;
    font-size: 14px;
}

.header .top-link, .header .top-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}
.header .topbar .row{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .top-contact {
    justify-content: flex-end;
}

.header .header-inner {
    padding: 15px 0;
}

.header .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo img {
    max-height: 40px;
}

.header .main-menu .navigation .nav.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

.header .main-menu .nav.menu li a {
    color: var(--heading-color);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}
.header .main-menu .nav.menu li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}
.header .main-menu .nav.menu li.active a:after,
.header .main-menu .nav.menu li a:hover:after {
    width: 100%;
}

.header .get-quote {
    text-align: right;
}

/* 3. SLIDER */
.slider .single-slider {
    height: 90vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: var(--white-color);
}

.slider .text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white-color);
    margin-bottom: 20px;
}
.slider .text h1 span {
    color: var(--primary-color);
}
.slider .text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
}
.slider .button .btn {
    margin-right: 10px;
}

/* 4. SCHEDULE SECTION */
.schedule .schedule-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.single-schedule {
    background: var(--white-color);
    box-shadow: var(--shadow);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.single-schedule .inner {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.single-schedule .single-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.single-schedule .single-content p {
    flex-grow: 1;
}
.single-schedule:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* 5. FEATURES SECTION */
.Feautes.section {
    position: relative;
    background-image: url('https://tmd92122.cdn1.cafe24.com/seungryel/private/medi/slider3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.Feautes.section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
}
.Feautes .container {
    position: relative;
    z-index: 2;
}
.Feautes .row:last-child {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.single-features {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}
.single-features .signle-icon i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* 6. PORTFOLIO (SLIDER) */
.portfolio .portfolio-slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory; /* Sliding effect */
}
.portfolio .portfolio-slider::-webkit-scrollbar { display: none; }
.portfolio .portfolio-slider { -ms-overflow-style: none; scrollbar-width: none; }

.portfolio .single-pf {
    flex: 0 0 90%;
    max-width: 400px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    scroll-snap-align: center;
}
.portfolio .single-pf img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portfolio .single-pf .btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.4s ease;
}
.portfolio .single-pf:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 123, 255, 0.7);
    opacity: 0;
    transition: all 0.4s ease;
}
.portfolio .single-pf:hover:before,
.portfolio .single-pf:hover .btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 7. SERVICES SECTION */
.services .row:last-child {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.single-service {
    background: var(--white-color);
    box-shadow: var(--shadow);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}
.single-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.single-service i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: var(--light-bg);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
.single-service:hover i {
    background: var(--primary-color);
    color: var(--white-color);
}

/* 8. APPOINTMENT FORM */
.appointment.section {
    background-image: url('https://tmd92122.cdn1.cafe24.com/seungryel/private/medi/slider.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}
.appointment.section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44, 123, 255, 0.8);
}
.appointment .container {
    position: relative;
    z-index: 2;
}
.appointment .section-title h2 {
    color: var(--white-color);
}
.appointment .form {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    margin: 0 auto;
}
.appointment .form .form-group {
    margin-bottom: 20px;
}
.appointment .form input,
.appointment .form textarea {
    width: 90%;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white-color);
}
.appointment .form input::placeholder,
.appointment .form textarea::placeholder {
    color: rgba(255, 255, 255, 0.8);
}
.appointment .form textarea {
    height: 120px;
}
.appointment .form .button .btn {
    width: 100%;
    background: var(--secondary-color);
}
.appointment .form .button .btn:hover {
    background: #00a382;
}

/* 9. FOOTER */
.footer {
    background: var(--heading-color);
    color: #ccc;
}
.footer .footer-top {
    padding: 70px 0;
}
.footer .footer-top .row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
}
.footer .single-footer h2 {
    color: var(--white-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.footer .single-footer p {
    color: #ccc;
}
.footer .f-link ul {
    list-style: none;
    padding: 0;
}
.footer .f-link ul li a {
    color: #ccc;
    padding: 5px 0;
    display: block;
}
.footer .f-link ul li a:hover {
    color: var(--primary-color);
}
.footer .copyright {
    background: #222;
    padding: 20px 0;
    text-align: center;
}

/* 9. RESPONSIVE */
@media (max-width: 991px) {
    .header .topbar .row {
        flex-direction: column;
        gap: 8px;
    }
    .header .main-menu, .header .get-quote {
        display: none; /* 모바일 메뉴를 위해 숨김 */
    }
    .header .inner {
        justify-content: center;
    }
    .footer .footer-top .row {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 767px) {
    /* General Adjustments */
    body {
        font-size: 15px;
    }
    .section {
        padding: 60px 0;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }

    .container {
        padding: 0 20px;
    }

    /* Header */
    .header .topbar {
        display: none;
    }

    /* Hero Section */
    .slider .single-slider {
        height: 50vh;
        display: grid;
        place-items: center;
        text-align: center;
    }
    .slider .text {
        background: rgba(0, 0, 0, 0.4);
        padding: 30px 20px;
        border-radius: 10px;
    }
    .slider .text h1 {
        font-size: 2rem;
        line-height: 1.4;
    }
    .slider .text p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    /* Section Title & Cards */
    .section-title {
        margin-bottom: 40px;
        text-align: center;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .single-schedule, .single-features, .single-service {
        padding: 25px;
        text-align: center;
    }
    .schedule .schedule-inner,
    .Feautes .row:last-child,
    .services .row:last-child {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Portfolio */
    .portfolio .single-pf {
        flex: 0 0 85%;
    }

    /* Appointment Form */
    .appointment .form {
        padding: 30px 20px;
    }
    .appointment .form .row {
        flex-direction: column;
        gap: 0;
    }

    /* Footer */
    .footer .footer-top {
        padding: 50px 0;
    }
    .footer .footer-top .row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }
    .footer .single-footer .social {
        justify-content: center;
    }
    .footer .f-link .row {
        display: block;
    }
    .footer .f-link .row > div:first-child {
        margin-bottom: 15px;
    }
}
