/* ========================================================
   My Dentist Aceh - Custom UI & Responsive Enhancements
   ======================================================== */

/* Brand palette: navy #282970 (primary) + crown gold accent */
:root {
    --base-color: #282970;
    --base-color-rgb: 40, 41, 112;
    --brand-gold: #C9A13B;
    --brand-navy-dark: #1b1c4f;
    --brand-tint: #f4f4fb;
}

/* Hero: Instagram poster shown whole on a soft navy backdrop */
.hero-ig-frame {
    background: linear-gradient(160deg, #e9e9f7 0%, #c9cae9 100%);
    padding: 28px;
}
.hero-ig-frame img {
    display: block;
    margin: 0 auto;
    height: 560px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    box-shadow: 0 18px 40px rgba(var(--base-color-rgb), 0.25);
}
@media (max-width: 767.98px) {
    .hero-ig-frame { padding: 16px; }
    .hero-ig-frame img { height: auto; width: 100%; }
}

/* Before/after carousel: portrait IG posts */
.ig-slide-img {
    display: block;
    height: 480px;
    width: auto;
}
@media (max-width: 767.98px) {
    .ig-slide-img { height: 360px; }
}

/* Services page cards: replace template pink/turquoise with brand tint */
.services-box-style-08 .bg-gradient-misty-rose {
    background-image: linear-gradient(to bottom, #eeeefa 0%, #ffffff 100%) !important;
}
.services-box-style-08 .bg-bright-turquoise {
    background-color: var(--base-color) !important;
    opacity: 0.08 !important;
}

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

/* Brand helpers */
.text-gold { color: var(--brand-gold) !important; }
.bg-gold { background-color: var(--brand-gold) !important; }
.bg-light-orange { background-color: rgba(var(--base-color-rgb), 0.08) !important; }
.bg-seashell { background-color: var(--brand-tint) !important; }
footer.bg-charcoal-blue { background-color: var(--brand-navy-dark) !important; }
.bg-dark-gray.cta-navy, section.cta-navy { background-color: var(--brand-navy-dark) !important; }
.btn.btn-gold {
    background-color: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #fff;
}
.btn.btn-gold:hover {
    background-color: #b38c2d;
    border-color: #b38c2d;
    color: #fff;
}

/* 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(var(--base-color-rgb), 0.08);
    color: var(--base-color);
    border: 1px solid rgba(var(--base-color-rgb), 0.22);
}

/* 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: var(--base-color);
    box-shadow: 0 8px 25px rgba(var(--base-color-rgb), 0.10);
    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;
    }
}

