/* WordPress / Elementor icerik — birebir gorunum */

.wp-page {
    background: #fff;
}

.wp-article {
    margin: 0;
}

.wp-content {
    max-width: var(--mx-container, 1140px);
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    overflow-x: clip;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--mx-body, #4b5563);
}

.wp-content::after {
    content: '';
    display: table;
    clear: both;
}

.wp-content > h1:first-child,
.wp-hero > h1 {
    font-family: var(--mx-font-heading);
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--mx-heading, #1a1a2e);
    margin: 0 0 1rem;
}

.wp-kicker {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(253, 120, 0, 0.12);
    color: var(--mx-primary, #fd7800);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.wp-section-kicker {
    margin: 2rem 0 0.35rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mx-primary, #fd7800);
}

.wp-hero {
    display: grid;
    gap: 1.25rem 2rem;
    margin-bottom: 2.5rem;
    align-items: center;
}

/* Premium hero'lar yanlışlıkla wp-hero ile sarılırsa grid'i iptal et */
.wp-hero:has(.cs-hero),
.wp-hero:has(.mx-hero-slider),
.wp-hero:has(.bs-premium-hero),
.wp-hero:has(.sh-hero) {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    grid-template-columns: none !important;
}

/* Hero tam genişlik — wp-content kolonundan taşır (100vw kullanmadan) */
.wp-content > .wp-hero:first-child {
    position: relative;
    width: auto;
    margin-inline: calc(50% - 50vw);
    padding: clamp(2.75rem, 6vw, 4.5rem) calc(50vw - 50%);
    margin-bottom: 2.5rem;
    box-sizing: border-box;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(12, 26, 58, 0.96) 0%, rgba(12, 26, 58, 0.88) 52%, rgba(21, 42, 82, 0.92) 100%);
    overflow: hidden;
}

.wp-content > .wp-hero:first-child::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 18%, rgba(253, 120, 0, 0.16) 0%, transparent 46%);
    pointer-events: none;
}

.wp-content > .wp-hero:first-child > * {
    position: relative;
    z-index: 1;
}

.wp-content > .wp-hero:first-child h1,
.wp-content > .wp-hero:first-child > h1 {
    color: #fff;
}

.wp-content > .wp-hero:first-child .wp-kicker {
    background: rgba(253, 120, 0, 0.2);
    color: #ffd8b8;
}

.wp-content > .wp-hero:first-child p {
    color: rgba(255, 255, 255, 0.88);
}

.wp-content > .wp-hero:first-child a:not(.wp-btn):not([class*="btn"]) {
    color: #ffd8b8;
}

.wp-hero > .bs-faq {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
}

@media (min-width: 992px) {
    .wp-hero {
        grid-template-columns: 1fr 1fr;
        gap: clamp(1.5rem, 3vw, 3rem);
    }

    .wp-hero > img:last-of-type,
    .wp-hero > img:only-of-type {
        grid-column: 2;
        grid-row: 1 / span 8;
        justify-self: stretch;
        align-self: center;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: min(70vh, 28rem);
        object-fit: cover;
        border-radius: 1rem;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    }

    .wp-hero > .wp-kicker,
    .wp-hero > h1,
    .wp-hero > p,
    .wp-hero > a {
        grid-column: 1;
    }
}

.wp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
    grid-column: 1;
}

.wp-hero > .wp-hero-actions a {
    margin: 0;
}

.wp-content h2,
.wp-content h3 {
    font-family: var(--mx-font-heading);
    color: var(--mx-heading, #1a1a2e);
    line-height: 1.25;
    margin: 2rem 0 0.75rem;
    clear: both;
}

.wp-content h2:empty {
    display: none !important;
}

.wp-content p {
    margin: 0 0 1rem;
}

.wp-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
}

/* Inline liste ikonlari — dev SVG kaymasini onler */
.wp-content ul,
.wp-content ol {
    padding-left: 1.25rem;
    margin: 0 0 1rem;
}

.wp-content ul li,
.wp-content ol li {
    margin-bottom: 0.5rem;
}

.wp-content ul li:has(svg),
.wp-content ol li:has(svg) {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    list-style: none;
    margin-left: -1.25rem;
    padding-left: 0;
}

.wp-content ul li svg,
.wp-content ol li svg {
    flex: 0 0 1.125rem !important;
    width: 1.125rem !important;
    height: 1.125rem !important;
    max-width: 1.125rem !important;
    margin-top: 0.2rem;
    fill: currentColor;
}

.wp-content ul li:has(svg) + li:has(svg) {
    margin-top: 0.35rem;
}

.wp-content a[href^="tel:"] svg,
.wp-content a[href*="whatsapp"] svg {
    flex: 0 0 1rem !important;
    width: 1rem !important;
    height: 1rem !important;
    max-width: 1rem !important;
    display: inline-block;
    vertical-align: middle;
}

.wp-content .wp-hero > img,
.wp-content > img:first-of-type {
    border-radius: var(--mx-radius-lg, 1rem);
    box-shadow: var(--mx-shadow);
}

.wp-content a[href^="tel:"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    background: var(--mx-secondary, #5c51e0);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 8px 24px rgba(92, 81, 224, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-content a[href^="tel:"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(92, 81, 224, 0.35);
}

.wp-content a[href^="tel:"] svg {
    width: 1.125rem;
    height: 1.125rem;
    fill: currentColor;
    flex-shrink: 0;
}

/* WordPress accordion kalintilari — boyutsuz SVG dev ikona donmesin */
.wp-content a[data-ekit-toggle="collapse"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin: 0.35rem 0;
    border: 1px solid var(--mx-border, #e5e7eb);
    border-radius: 0.65rem;
    background: var(--mx-gray-2, #f3f4f6);
    color: var(--mx-heading, #1a1a2e);
    font-weight: 600;
    text-decoration: none;
}

.wp-content a[data-ekit-toggle="collapse"] svg {
    flex: 0 0 1rem !important;
    width: 1rem !important;
    height: 1rem !important;
    max-width: 1rem !important;
    fill: currentColor;
}

.wp-content a[data-ekit-toggle="collapse"] svg + svg {
    display: none;
}

.wp-content svg:not([width]):not([height]) {
    max-width: 1.25rem;
    max-height: 1.25rem;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.wp-content a[data-anim-type],
.wp-content > a:not([href^="tel:"]):not([href^="#"]):not(.wp-faq-toggle) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.35rem;
    margin: 0.25rem 0.5rem 0.25rem 0;
    border-radius: 999px;
    background: var(--mx-primary, #fd7800);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 8px 24px rgba(253, 120, 0, 0.25);
    transition: background 0.2s ease, transform 0.2s ease;
}

.wp-content a[data-anim-type]:hover,
.wp-content > a:not([href^="tel:"]):not([href^="#"]):hover {
    background: var(--mx-primary-dark, #e56a00);
    transform: translateY(-2px);
}

/* Hizmet kartlari */
.wp-service-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 2.5rem 0;
}

@media (min-width: 640px) {
    .wp-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .wp-service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.wp-service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--mx-radius-lg, 1rem);
    background: #fff;
    border: 1px solid var(--mx-border, #e5e7eb);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    min-height: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.wp-service-card > img {
    display: block;
    width: 100% !important;
    height: 180px !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: cover !important;
    margin: 0 !important;
    border-radius: 0;
    flex-shrink: 0;
    background: #f8f9fa;
}

.wp-service-card > a {
    position: static;
    inset: auto;
    display: block !important;
    flex: 0 0 auto;
    align-items: stretch;
    padding: 0.85rem 1rem !important;
    margin: 0 !important;
    min-height: 0 !important;
    background: var(--mx-primary, #fd7800) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-decoration: none;
    transform: none !important;
    transition: background 0.2s ease;
}

.wp-service-card:hover > a {
    background: var(--mx-primary-dark, #e56a00) !important;
}

.wp-service-card > a h2,
.wp-service-card > a h5,
.wp-service-card > a h6,
.wp-service-card > a .wp-service-card-label {
    margin: 0 !important;
    color: #fff !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-align: center;
}

.wp-service-card > a h2:empty,
.wp-service-card > a h5:empty,
.wp-service-card > a h6:empty {
    display: none !important;
}

/* Marka anakart / hizmet kutulari */
.wp-brand-intro {
    margin: 2rem 0 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--mx-radius-lg, 1rem);
    background: linear-gradient(135deg, rgba(92, 81, 224, 0.08), rgba(253, 120, 0, 0.08));
    border: 1px solid var(--mx-border, #e5e7eb);
}

.wp-brand-intro h6 {
    margin: 0 0 0.5rem;
    font-family: var(--mx-font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mx-heading);
}

.wp-brand-intro p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--mx-body);
}

.wp-brand-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 2rem 0 2.5rem;
}

@media (min-width: 640px) {
    .wp-brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .wp-brand-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.wp-brand-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 0;
    overflow: hidden;
    border-radius: 0.875rem;
    background: #fff;
    border: 1px solid var(--mx-border, #e5e7eb);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.wp-brand-card--link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    border-color: rgba(253, 120, 0, 0.35);
}

.wp-brand-card img {
    width: 100% !important;
    max-width: none !important;
    height: 180px !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0.75rem;
    border-radius: 0;
    box-shadow: none;
    flex-shrink: 0;
    background: #f8f9fa;
    box-sizing: border-box;
}

.wp-brand-card h2,
.wp-brand-card h5,
.wp-brand-card h6 {
    margin: 0 !important;
    padding: 0.85rem 0.75rem !important;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #fff !important;
    background: var(--mx-primary, #fd7800);
}

.wp-brand-card h2:empty,
.wp-brand-card h5:empty,
.wp-brand-card h6:empty {
    display: none !important;
}

.wp-brand-card a {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: inherit !important;
    text-decoration: none !important;
    transform: none !important;
    overflow: hidden;
}

.wp-brand-card a:hover {
    background: transparent !important;
    transform: none !important;
}

.wp-brand-card a img {
    margin-bottom: 0 !important;
}

.wp-brand-card a h2,
.wp-brand-card a h5,
.wp-brand-card a h6 {
    margin-top: 0 !important;
    transition: background 0.2s ease;
}

.wp-brand-card--link:hover a h2,
.wp-brand-card--link:hover a h5,
.wp-brand-card--link:hover a h6 {
    background: var(--mx-primary-dark, #e56a00);
}

/* Yan promo gorseli */
.wp-side-promo,
.wp-content img[height="800"],
.wp-content img[src*="bilgisayar-servisi-ve-tamiri"],
.wp-content img[src*="Laptop-Anakart-Tamiri-ve-degisimi"] {
    float: right;
    width: min(280px, 34%) !important;
    max-width: 280px !important;
    margin: 0 0 1.25rem 1.5rem !important;
    border-radius: var(--mx-radius-lg, 1rem);
    box-shadow: var(--mx-shadow);
}

.wp-side-promo img {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: var(--mx-radius-lg, 1rem);
}

@media (max-width: 767px) {
    .wp-side-promo,
    .wp-content img[height="800"],
    .wp-content img[src*="bilgisayar-servisi-ve-tamiri"],
    .wp-content img[src*="Laptop-Anakart-Tamiri-ve-degisimi"] {
        float: none;
        width: min(100%, 320px) !important;
        margin: 1.5rem auto !important;
    }
}

.wp-content hr {
    border: 0;
    border-top: 1px solid var(--mx-border, #e5e7eb);
    margin: 1.25rem 0;
}

.wp-content h4 {
    font-family: var(--mx-font-heading);
    font-size: 1rem;
    margin: 1.5rem 0 0.5rem;
}

.wp-content h4 a {
    color: var(--mx-secondary, #5c51e0);
    text-decoration: none;
    font-weight: 600;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* SSS / accordion */
.wp-faq-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--mx-border, #e5e7eb);
}

.wp-faq-heading {
    font-family: var(--mx-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mx-heading);
    margin: 0 0 0.5rem;
}

.wp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.wp-faq-item {
    border: 1px solid var(--mx-border, #e5e7eb);
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}

.wp-faq-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 0;
    background: var(--mx-gray-2, #f3f4f6);
    color: var(--mx-heading);
    font-family: var(--mx-font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    line-height: 1.4;
}

.wp-faq-toggle svg {
    width: 1rem !important;
    height: 1rem !important;
    max-width: 1rem !important;
    fill: var(--mx-primary);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.wp-faq-item.is-open .wp-faq-toggle svg {
    transform: rotate(180deg);
}

.wp-faq-panel {
    display: none;
    padding: 0 1.15rem 1rem;
}

.wp-faq-item.is-open .wp-faq-panel {
    display: block;
}

.wp-faq-panel p:last-child {
    margin-bottom: 0;
}

/* Ikon grid (marka ikonlari) */
.wp-content .service-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
    max-width: 100%;
}

@media (min-width: 640px) {
    .wp-content .service-icon-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.wp-content .service-icon-grid img {
    width: 100% !important;
    border-radius: 0.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Dekoratif / gereksiz gorseller */
.wp-content img[src*="shape-4"],
.wp-content img[src*="morbaloncuk"],
.wp-content img[src*="baloncuk"],
.wp-content img[src*="al_about_shape"],
.wp-content img[src*="al_iphone_bg"] {
    display: none !important;
}

.wp-content iframe {
    max-width: 100%;
    border: 0;
    border-radius: var(--mx-radius-lg);
    margin: 2rem 0;
}

.wp-content ul {
    padding-left: 1.25rem;
    margin: 1rem 0;
}

.wp-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    border: 1px solid var(--mx-border, #e5e7eb);
}

.wp-table-wrap table {
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.9375rem;
}

.wp-content > table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.wp-content table th,
.wp-content table td {
    border: 1px solid var(--mx-border);
    padding: 0.65rem 0.85rem;
    text-align: left;
}

.wp-content table th {
    background: var(--mx-gray-2);
    font-weight: 600;
}

/* Blog makale */
.category-blog .wp-content > h1:first-child {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.25rem;
}

.category-blog .wp-content {
    max-width: 820px;
}
