/* Main turki.doctor header and footer, scoped to avoid changing page content. */
.td-topbar,
.td-header,
.td-footer {
    font-family: "Almarai", sans-serif;
}

.td-main-container {
    width: min(1220px, calc(100% - 42px));
    margin-inline: auto;
}

.td-topbar {
    padding: 9px 0;
    background: #1C1A32;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.8;
}

.td-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.td-topbar-links {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.td-topbar a {
    color: #ffffff;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.td-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #e5eaf0;
}

.td-nav {
    min-height: 86px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.td-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    color: inherit;
    text-decoration: none;
}

.td-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(100, 184, 194, 0.25);
}

.td-eye-logo {
    position: relative;
    overflow: hidden;
    background: #1C1A32;
}

.td-eye-logo::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 18px;
    border: 3px solid #64B8C2;
    border-radius: 50%;
    background: transparent;
}

.td-eye-logo span {
    position: relative;
    z-index: 2;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #64B8C2;
    box-shadow: 0 0 0 4px rgba(100, 184, 194, 0.18);
}

.td-brand-text strong {
    display: block;
    color: #1C1A32;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.td-brand-text span {
    color: #667085;
    font-size: 13px;
    line-height: 1.8;
}

.td-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.td-nav-links a {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.2s ease;
}

.td-nav-links > a:hover {
    color: #64B8C2;
}

.td-nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.td-nav-dropdown-toggle {
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s ease;
}

.td-nav-dropdown-toggle:hover {
    color: #64B8C2;
}

.td-nav-dropdown-toggle::after {
    content: "⌄";
    color: #64B8C2;
    font-size: 15px;
    line-height: 1;
    transition: 0.2s ease;
}

.td-nav-dropdown:hover .td-nav-dropdown-toggle::after,
.td-nav-dropdown:focus-within .td-nav-dropdown-toggle::after,
.td-nav-dropdown.open .td-nav-dropdown-toggle::after {
    transform: rotate(180deg);
}

.td-nav-submenu {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    z-index: 1200;
    width: 310px;
    padding: 10px;
    display: grid;
    gap: 6px;
    border: 1px solid rgba(100, 184, 194, 0.22);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(28, 26, 50, 0.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.22s ease;
}

.td-nav-dropdown:hover .td-nav-submenu,
.td-nav-dropdown:focus-within .td-nav-submenu,
.td-nav-dropdown.open .td-nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.td-nav-submenu a {
    padding: 13px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: #ffffff;
    color: #1C1A32;
    line-height: 1.55;
}

.td-nav-submenu a:hover {
    border-color: rgba(100, 184, 194, 0.20);
    background: rgba(100, 184, 194, 0.12);
    color: #1C1A32;
}

.td-nav-submenu a strong {
    color: #1C1A32;
    font-size: 14px;
    font-weight: 800;
}

.td-nav-submenu a span {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.td-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.td-btn {
    padding: 13px 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.22s ease;
}

.td-btn-primary {
    background: #64B8C2;
    color: #1C1A32;
    box-shadow: 0 14px 28px rgba(100, 184, 194, 0.24);
}

.td-btn-primary:hover {
    background: #55a8b2;
    color: #1C1A32;
    transform: translateY(-2px);
}

.td-menu-btn {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #e5eaf0;
    border-radius: 15px;
    background: #ffffff;
    color: #1C1A32;
    font-family: inherit;
    font-size: 22px;
    cursor: pointer;
}

.td-footer {
    padding: 54px 0 26px;
    background: #1C1A32;
    color: #ffffff;
}

.td-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 30px;
    margin-bottom: 34px;
}

.td-footer h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.8;
}

.td-footer p,
.td-footer a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.8;
}

.td-footer p {
    margin: 0;
}

.td-footer a {
    text-decoration: none;
}

.td-footer a:hover {
    color: #ffffff;
}

.td-footer-links {
    display: grid;
    gap: 10px;
}

.td-footer-title {
    margin-bottom: 12px;
    color: #ffffff;
    font-weight: 800;
}

.td-footer-bottom {
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

@media (max-width: 1150px) {
    .td-nav-links {
        gap: 12px;
        font-size: 13px;
    }
}

@media (max-width: 1050px) {
    .td-nav-links {
        position: fixed;
        top: 86px;
        right: 20px;
        left: 20px;
        padding: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid #e5eaf0;
        border-radius: 24px;
        background: #ffffff;
        box-shadow: 0 24px 70px rgba(28, 26, 50, 0.10);
    }

    .td-nav-links.active {
        display: flex;
    }

    .td-nav-dropdown {
        width: 100%;
        display: grid;
    }

    .td-nav-dropdown-toggle {
        width: 100%;
        padding: 12px 10px;
        justify-content: space-between;
        border-radius: 16px;
    }

    .td-nav-dropdown-toggle:hover {
        background: rgba(100, 184, 194, 0.12);
    }

    .td-nav-submenu {
        position: static;
        width: 100%;
        margin-top: 6px;
        display: none;
        border-radius: 18px;
        background: #f7f9fb;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .td-nav-dropdown.open .td-nav-submenu {
        display: grid;
    }

    .td-menu-btn {
        display: block;
    }
}

@media (max-width: 720px) {
    .td-topbar {
        display: none;
    }

    .td-main-container {
        width: min(100% - 28px, 1220px);
    }

    .td-nav {
        min-height: 78px;
    }

    .td-brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .td-eye-logo::before {
        width: 26px;
        height: 16px;
    }

    .td-eye-logo span {
        width: 8px;
        height: 8px;
    }

    .td-brand-text strong {
        font-size: 15px;
    }

    .td-brand-text span {
        font-size: 11px;
    }

    .td-nav-actions .td-btn {
        display: none;
    }

    .td-nav-links {
        top: 78px;
    }

    .td-footer-grid {
        grid-template-columns: 1fr;
    }
}

.td-whatsapp-float {
    position: fixed;
    left: 24px;
    bottom: 28px;
    z-index: 1200;
    width: 62px;
    height: 62px;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: 0.22s ease;
}

.td-whatsapp-float:hover {
    transform: translateY(-3px) scale(1.04);
}

.td-whatsapp-float img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

@media (max-width: 720px) {
    .td-whatsapp-float {
        left: 16px;
        bottom: 18px;
        width: 56px;
        height: 56px;
    }
}
