/* ==========================================================================
   Dijital Sistem - Modern Desktop Theme (Preserving Original Brand Palette)
   Original Palette:
   - Brand Gold / Amber: #fab732 (rgba(250, 183, 50)) / #e59a0c
   - Dark Charcoal:      #252525 / #1c1c1c
   - Body Text:          #565656
   - Light Surfaces:     #ffffff / #f7f8fa
   ========================================================================== */

:root {
    --ds-gold: #fab732;
    --ds-gold-dark: #e09b15;
    --ds-gold-soft: rgba(250, 183, 50, 0.14);
    --ds-dark: #252525;
    --ds-darker: #181818;
    --ds-text: #4a4a4a;
    --ds-surface: #f7f8fa;
    --ds-border: #eaedf2;
    --ds-shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.05);
    --ds-shadow-md: 0 14px 36px rgba(0, 0, 0, 0.09);
    --ds-shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.14);
}

body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ds-text);
    -webkit-font-smoothing: antialiased;
}

/* 1. Topbar (Solid Opaque Brand Gold/Amber) */
#topbar.topbar-colored,
#topbar.topbar-colored.dark {
    background: #fab732 !important;
    background-color: #fab732 !important;
    border-bottom: 1px solid #e5a322 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14) !important;
    position: relative;
    z-index: 201;
}

#topbar .top-menu > li > a {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 13.5px !important;
    letter-spacing: 0px !important;
    transition: opacity 0.2s ease;
}

#topbar .top-menu > li > a:hover {
    opacity: 0.85;
}

/* 2. Header & Navigation (Matches Logo Background #fefefe) */
#header #header-wrap,
#header.header-transparent #header-wrap,
#header.header-light-transparent #header-wrap,
#header.header-light-transparent.dark #header-wrap,
#header.header-sticky #header-wrap {
    background-color: #fefefe !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.25s ease;
}

#header #logo {
    background-color: #fefefe !important;
}

#header #logo a > img {
    height: 78px !important;
    width: auto !important;
    max-width: 320px;
    object-fit: contain;
    margin-top: 1px;
    background-color: #fefefe;
    transition: transform 0.25s ease;
}

#header #mainMenu nav > ul > li > a {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    letter-spacing: 0px !important;
    text-transform: none !important;
    color: #17191c !important;
    position: relative;
    transition: color 0.2s ease !important;
    -webkit-font-smoothing: antialiased;
}

#header #mainMenu nav > ul > li:hover > a,
#header #mainMenu nav > ul > li.current > a {
    color: var(--ds-gold-dark) !important;
}

#header #mainMenu nav > ul > li > a .nav-menu-icon {
    display: inline-block;
    width: 17px;
    height: 17px;
    margin-right: 7px;
    vertical-align: -2.5px;
    transition: transform 0.22s ease;
}

#header #mainMenu nav > ul > li > a .nav-icon-fill {
    fill: rgba(250, 183, 50, 0.16);
    transition: fill 0.22s ease;
}

#header #mainMenu nav > ul > li:hover > a .nav-menu-icon,
#header #mainMenu nav > ul > li.current > a .nav-menu-icon {
    transform: translateY(-1px);
}

#header #mainMenu nav > ul > li:hover > a .nav-icon-fill,
#header #mainMenu nav > ul > li.current > a .nav-icon-fill {
    fill: rgba(250, 183, 50, 0.26);
}

@media (min-width: 992px) and (max-width: 1199px) {
    #header #mainMenu nav > ul > li > a {
        padding-left: 9px !important;
        padding-right: 9px !important;
        font-size: 14.5px !important;
    }

    #header #mainMenu nav > ul > li > a .nav-menu-icon {
        width: 15px;
        height: 15px;
        margin-right: 5px;
        vertical-align: -2px;
    }
}

@media (max-width: 991px) {
    #header #mainMenu nav > ul > li > a .nav-menu-icon {
        width: 16px;
        height: 16px;
        vertical-align: -2.5px;
    }
}

#header #mainMenu nav > ul > li > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 22px;
    height: 2.5px;
    background: var(--ds-gold);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.22s ease;
}

#header #mainMenu nav > ul > li:hover > a::after,
#header #mainMenu nav > ul > li.current > a::after {
    transform: scaleX(1);
}

/* Modern Dropdown Menus */
#mainMenu nav > ul > li .dropdown-menu {
    border-radius: 12px !important;
    border: 1px solid var(--ds-border) !important;
    border-top: 3px solid var(--ds-gold) !important;
    box-shadow: var(--ds-shadow-lg) !important;
    padding: 8px !important;
    background: #ffffff !important;
    min-width: 250px;
}

#mainMenu nav > ul > li .dropdown-menu > li > a {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 14.5px !important;
    letter-spacing: 0px !important;
    text-transform: none !important;
    color: #17191c !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    border-bottom: 0 !important;
    transition: all 0.18s ease !important;
}

#mainMenu nav > ul > li .dropdown-menu > li > a:hover {
    background: var(--ds-gold-soft) !important;
    color: #b87b05 !important;
    padding-left: 18px !important;
}

/* 3. Hero Slider Captions */
#slider .slide .slide-captions h2 {
    display: inline-block;
    background: rgba(37, 37, 37, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff !important;
    padding: 20px 30px;
    border-radius: 14px;
    border-left: 5px solid var(--ds-gold);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    line-height: 1.28 !important;
}

/* 4. Page Title Banner */
#page-title {
    position: relative;
}

#page-title::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(24, 24, 24, 0.75) 0%, rgba(37, 37, 37, 0.45) 100%);
    pointer-events: none;
}

#page-title .container,
#page-title .container-wide {
    position: relative;
    z-index: 2;
}

#page-title .page-title {
    width: 100%;
    float: none;
}

#page-title .page-title h2 {
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    position: relative;
    display: inline-block;
}

#page-title .page-title h2::after {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    background: var(--ds-gold);
    border-radius: 2px;
    margin-top: 10px;
}

#page-title .breadcrumb {
    display: none !important;
}

/* 5. Homepage Carousel & Partner/Solution Cards */
.testimonial-item {
    background: #ffffff;
    border: 1px solid var(--ds-border);
    border-radius: 14px;
    padding: 16px !important;
    margin: 8px 4px;
    box-shadow: var(--ds-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--ds-shadow-md);
    border-color: var(--ds-gold);
}

.testimonial-item img {
    border-radius: 8px;
    max-height: 110px;
    width: auto !important;
    margin: 0 auto;
    object-fit: contain;
}

/* 6. Solutions & References Grid Cards (inc_projeler & inc_referanslar) */
.post-item.border {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

.post-item.border > .post-item-wrap {
    padding: 0 !important;
    border: 1px solid var(--ds-border) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: var(--ds-shadow-sm) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.post-item.border:hover > .post-item-wrap {
    transform: translateY(-5px);
    box-shadow: var(--ds-shadow-md) !important;
    border-color: var(--ds-gold) !important;
}

.post-item.border > .post-item-wrap > .post-image {
    padding: 16px !important;
    margin: 0 !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 145px !important;
}

.post-item.border > .post-item-wrap > .post-image a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 100%;
}

.post-item.border > .post-item-wrap > .post-image img {
    max-height: 110px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.post-item.border:hover > .post-item-wrap > .post-image img {
    transform: scale(1.04);
}

.post-item.border > .post-item-wrap > .post-item-description {
    padding: 10px 12px !important;
    margin: 0 !important;
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    background: var(--ds-surface) !important;
    border-top: 1px solid #eef0f4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.post-item.border > .post-item-wrap > .post-item-description h5 {
    margin: 0 !important;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-align: center !important;
}

.post-item.border > .post-item-wrap > .post-item-description h5 a {
    color: var(--ds-dark) !important;
    transition: color 0.2s ease;
}

.post-item.border:hover > .post-item-wrap > .post-item-description h5 a {
    color: var(--ds-gold-dark) !important;
}

/* 7. Detail Page Content & Sidebar (inc_sayfalar & inc_sag) */
#page-content .single-post .post-item {
    background: #ffffff;
    border: 1px solid var(--ds-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--ds-shadow-sm);
}

#page-content .single-post .post-item p,
#page-content .single-post .post-item ul li {
    font-size: 15.5px;
    line-height: 1.78;
    color: #3d3d3d;
}

#page-content .single-post .post-item ul {
    margin: 14px 0 8px;
    padding-left: 20px;
}

#page-content .single-post .post-item ul li {
    margin-bottom: 8px;
}

#page-content .single-post .post-item img[align="right"] {
    border-radius: 12px;
    box-shadow: var(--ds-shadow-sm);
    border: 1px solid var(--ds-border);
    padding: 6px;
    background: #fff;
}

.sidebar .widget-categories {
    background: #ffffff;
    border: 1px solid var(--ds-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--ds-shadow-sm);
}

.sidebar .widget-categories h4 {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: var(--ds-dark) !important;
    border-left: 4px solid var(--ds-gold);
    padding-left: 10px;
    margin-top: 22px;
    margin-bottom: 12px !important;
}

.sidebar .widget-categories h4:first-child {
    margin-top: 0;
}

.sidebar .widget-categories ul.list-arrow-icons > li {
    border-bottom: 1px solid #f1f3f7;
    padding: 7px 0;
}

.sidebar .widget-categories ul.list-arrow-icons > li:last-child {
    border-bottom: 0;
}

.sidebar .widget-categories ul.list-arrow-icons > li > a {
    font-weight: 600;
    color: #444 !important;
    transition: all 0.2s ease;
    display: block;
}

.sidebar .widget-categories ul.list-arrow-icons > li > a:hover,
.sidebar .widget-categories ul.list-arrow-icons > li > a.active {
    color: var(--ds-gold-dark) !important;
    transform: translateX(4px);
}

.sidebar .widget-categories ul.list-arrow-icons > li > a.active {
    font-weight: 700;
}

/* 8. Buttons & GoToTop */
.btn-warning,
.btn.btn-default:hover {
    background-color: var(--ds-gold) !important;
    border-color: var(--ds-gold) !important;
    color: var(--ds-dark) !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 16px rgba(250, 183, 50, 0.3);
}

#goToTop {
    background-color: var(--ds-gold) !important;
    color: var(--ds-dark) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 20px rgba(250, 183, 50, 0.4);
}

/* 9. Footer (Original Light Surface Preserved) */
#footer.footer-light {
    background-color: #f7f8fa !important;
    color: #565656 !important;
    border-top: 3px solid var(--ds-gold);
}

#footer.footer-light .footer-content {
    padding: 28px 0 !important;
}

#footer.footer-light p {
    margin: 6px 0 0;
    color: #4a4a4a !important;
    font-weight: 600;
}

/* 10. Destek Talebi Oluştur Widget */
#goToTop {
    margin-bottom: 46px;
}

.ds-support-fab {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10050 !important;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--ds-dark);
    color: #ffffff;
    border-top: 2px solid var(--ds-gold);
    border-left: 2px solid var(--ds-gold);
    border-right: 0;
    border-bottom: 0;
    border-radius: 14px 0 0 0;
    padding: 12px 20px;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: -4px -4px 20px rgba(0, 0, 0, 0.22);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ds-support-fab:hover {
    background: var(--ds-gold);
    color: var(--ds-dark);
}

.ds-support-panel {
    position: fixed !important;
    right: 12px !important;
    bottom: 56px !important;
    width: 380px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 104px);
    background: #ffffff;
    border: 1px solid var(--ds-border);
    border-radius: 16px;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
    z-index: 10051 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.ds-support-panel[hidden] {
    display: none !important;
}

.ds-support-head {
    background: var(--ds-dark);
    color: #ffffff;
    padding: 16px 20px;
    border-bottom: 3px solid var(--ds-gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ds-support-head h4 {
    margin: 0;
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
}

.ds-support-head span {
    display: block;
    font-size: 12px;
    color: var(--ds-gold);
    margin-top: 2px;
}

.ds-support-close {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.ds-support-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ds-support-body {
    padding: 18px 20px;
    overflow-y: auto;
}

.ds-support-field {
    margin-bottom: 12px;
}

.ds-support-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

.ds-support-field input[type="email"],
.ds-support-field input[type="text"],
.ds-support-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font-size: 13.5px;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ds-support-field input:focus,
.ds-support-field textarea:focus {
    outline: none;
    border-color: var(--ds-gold-dark);
    box-shadow: 0 0 0 3px rgba(250, 183, 50, 0.2);
}

.ds-support-file-box {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 9px;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 500 !important;
    color: #475569 !important;
    margin-bottom: 0 !important;
}

.ds-support-file-box:hover {
    border-color: var(--ds-gold-dark);
}

.ds-support-file-box input[type="file"] {
    display: none;
}

.ds-support-file-box span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12.5px;
}

.ds-support-submit {
    width: 100%;
    padding: 11px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--ds-gold);
    color: var(--ds-dark);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ds-support-submit:hover:not(:disabled) {
    background: var(--ds-gold-dark);
}

.ds-support-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ds-support-alert {
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.45;
}

.ds-support-alert.is-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.ds-support-alert.is-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.ds-support-step-info {
    font-size: 13px;
    line-height: 1.55;
    color: #334155;
    margin: 0 0 12px;
}

.ds-support-dev-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 12.5px;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.ds-support-code-input {
    text-align: center;
    font-size: 20px !important;
    font-weight: 700;
    letter-spacing: 6px;
}

.ds-support-step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.ds-support-link-btn {
    background: none;
    border: 0;
    padding: 4px 0;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
}

.ds-support-link-btn:hover:not(:disabled) {
    color: var(--ds-gold-dark);
}

.ds-support-link-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ds-support-done {
    text-align: center;
    padding: 10px 0 4px;
}

.ds-support-done-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #10b981;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 10px;
}

.ds-support-done h5 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.ds-support-done p {
    font-size: 13px;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 16px;
}

@media (max-width: 600px) {
    .ds-support-fab {
        right: 16px;
        bottom: 68px;
        padding: 10px 16px;
        font-size: 13px;
    }

    .ds-support-panel {
        right: 16px;
        bottom: 120px;
        width: calc(100vw - 32px);
    }
}
