/* ========================================================
   Klinik 3S - Custom UI & Responsive Enhancements
   ======================================================== */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Brand Typography */
.brand-logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: #1f232b;
    letter-spacing: -0.5px;
    line-height: 1.1;
    display: block;
}
.brand-logo-sub {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: var(--base-color, #FF6036);
    display: block;
    margin-top: 1px;
}

/* Navbar Fixes: remove awkward vertical divider line and refine spacing */
header .left-nav .navbar-nav:before,
.navbar-nav:before,
.navbar .left-nav:before,
header .left-nav .navbar-nav::before {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    width: 0 !important;
}

.navbar {
    padding-top: 14px;
    padding-bottom: 14px;
    transition: all 0.3s ease;
}

.navbar .container-fluid {
    padding-left: clamp(15px, 4vw, 40px);
    padding-right: clamp(15px, 4vw, 40px);
}

.navbar .navbar-nav .nav-link {
    font-size: 15px;
    font-weight: 600;
    color: #2b303a !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    transition: color 0.2s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--base-color, #FF6036) !important;
}

/* Mobile Navbar Optimization */
@media (max-width: 991.98px) {
    .navbar .navbar-collapse {
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        padding: 20px;
        margin-top: 15px;
        border: 1px solid rgba(0,0,0,0.06);
    }
    .navbar .navbar-nav .nav-link {
        padding: 10px 15px !important;
        border-bottom: 1px solid rgba(0,0,0,0.04);
        font-size: 16px;
    }
    .navbar .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    .brand-logo-text {
        font-size: 20px;
    }
    .brand-logo-sub {
        font-size: 9px;
    }
    .btn-mobile-full {
        width: 100%;
        text-align: center;
        justify-content: center;
        margin-top: 12px;
    }
}

/* Section Spacing & Padding */
.section-py-main {
    padding-top: clamp(45px, 6vw, 85px);
    padding-bottom: clamp(45px, 6vw, 85px);
}
.section-pt-main {
    padding-top: clamp(45px, 6vw, 85px);
}
.section-pb-main {
    padding-bottom: clamp(45px, 6vw, 85px);
}

/* Doctor Card Image Handling */
.doctor-avatar-wrap {
    height: 320px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.doctor-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.team-style-10:hover .doctor-avatar-wrap img {
    transform: scale(1.03);
}

/* Badges */
.badge-highlight {
    background-color: rgba(255, 96, 54, 0.1);
    color: var(--base-color, #FF6036);
    border: 1px solid rgba(255, 96, 54, 0.25);
}

/* Feature cards in Profile */
.feature-card-compact {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.feature-card-compact:hover {
    border-color: #FF6036;
    box-shadow: 0 8px 25px rgba(255, 96, 54, 0.08);
    transform: translateY(-2px);
}

/* Logo Styling */
.navbar-brand img.default-logo {
    height: 46px;
    max-height: 46px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}
@media (max-width: 767.98px) {
    .navbar-brand img.default-logo {
        height: 38px;
        max-height: 38px;
    }
}

/* Table Responsive & Display Utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

@media (max-width: 767.98px) {
    .schedule-desktop-view {
        display: none !important;
    }
    .schedule-mobile-view {
        display: block !important;
    }
    .d-md-none {
        display: block !important;
    }
    .d-md-block {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .schedule-desktop-view {
        display: block !important;
    }
    .schedule-mobile-view {
        display: none !important;
    }
    .d-md-none {
        display: none !important;
    }
    .d-md-block {
        display: block !important;
    }
    .d-md-flex {
        display: flex !important;
    }
}

.table-responsive {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 12px;
}
.schedule-table {
    min-width: 960px !important;
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
}
.schedule-table th,
.schedule-table td {
    vertical-align: middle !important;
    word-break: normal !important;
    word-wrap: normal !important;
    hyphens: manual !important;
}
.schedule-table th:nth-child(1),
.schedule-table td:nth-child(1) {
    width: 250px !important;
    min-width: 250px !important;
}
.schedule-table th:nth-child(2),
.schedule-table td:nth-child(2) {
    width: 240px !important;
    min-width: 240px !important;
}
.schedule-table th:nth-child(3),
.schedule-table td:nth-child(3) {
    width: 160px !important;
    min-width: 160px !important;
}
.schedule-table th:nth-child(4),
.schedule-table td:nth-child(4) {
    width: 200px !important;
    min-width: 200px !important;
}
.schedule-table th:nth-child(5),
.schedule-table td:nth-child(5) {
    width: 160px !important;
    min-width: 160px !important;
}
.schedule-table th:nth-child(6),
.schedule-table td:nth-child(6) {
    width: 140px !important;
    min-width: 140px !important;
}

/* Mobile Schedule Card Styling */
.mobile-schedule-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}
.mobile-schedule-card .badge-schedule-time {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
}

/* Mobile Typography & Spacing Polish */
@media (max-width: 767.98px) {
    h1 {
        font-size: 28px !important;
        line-height: 1.25 !important;
    }
    h2 {
        font-size: 23px !important;
        line-height: 1.3 !important;
    }
    h3 {
        font-size: 19px !important;
        line-height: 1.35 !important;
    }
    .doctor-avatar-wrap {
        height: 280px;
    }
    .p-35px {
        padding: 20px !important;
    }
    .p-30px {
        padding: 18px !important;
    }
    .p-25px {
        padding: 16px !important;
    }
}

