/* Variables */
:root {
    --sdf-bg-color: #1a1b26;
    --sdf-primary-color: #ea1b4f;
    --sdf-text-color: #ffffff;
    --sdf-muted-text: #b6b7cf;
    --sdf-card-bg: rgba(255, 255, 255, 0.05);
    /* slightly light grey pill bg */
}

.sdf-footer-wrapper {
    background-color: var(--sdf-bg-color);
    color: var(--sdf-text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    padding: 0 0 40px 0;
    margin-top: 40px;
    border-top: 4px solid var(--sdf-primary-color);

    /* Break out of container constraints */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.sdf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar: Wrap and align */
.sdf-top-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 10px;
}

/* Contact block */
.sdf-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-style: normal;
    flex-shrink: 1;
    /* Allow shrinking */
}

.sdf-contact-item {
    display: flex;
    align-items: center;
    color: var(--sdf-text-color) !important;
    text-decoration: none !important;
    gap: 12px;
    transition: opacity 0.3s ease;
}

.sdf-contact-item:hover {
    opacity: 0.8;
}

.sdf-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: var(--sdf-primary-color) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
}

.sdf-contact-text {
    display: flex;
    flex-direction: column;
}

/* Logo area */
.sdf-logo-area {
    text-align: center;
    flex-shrink: 1;
    /* Allow shrinking */
    max-width: 30%;
    /* Prevent logo from taking too much horizontal space */
}

.sdf-logo-img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.sdf-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--sdf-text-color);
    letter-spacing: 1px;
    margin: 0;
}

.sdf-contact-text .sdf-label {
    font-size: 13px;
    color: var(--sdf-muted-text) !important;
    margin-bottom: 2px;
}

.sdf-contact-text .sdf-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--sdf-text-color) !important;
}

/* Logo */
.sdf-logo img {
    max-height: 40px;
    width: auto;
}

/* Social */
.sdf-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    /* Social icons can wrap within their own container if needed */
    flex-shrink: 0;
    /* Keep social icons size stable if possible */
}

.sdf-sc-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background-color: var(--sdf-primary-color) !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.sdf-sc-icon:hover {
    background-color: #fff !important;
    color: var(--sdf-primary-color) !important;
    transform: translateY(-2px);
}

/* Navigation Title Tabs */
.sdf-nav-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.sdf-nav-column {
    width: 100%;
}

.sdf-col-title {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--sdf-text-color);
    margin-bottom: 20px;
    font-weight: 600;
    display: inline-block;
    padding: 10px 24px;
    border-radius: 30px;
    /* In the UI, the columns act like tabs and the first one looks active */
    background-color: transparent;
    transition: all 0.3s ease;
}

.sdf-active-column-title {
    background-color: var(--sdf-primary-color);
    color: #fff;
}

/* Shared Titles block in the center of the UI, to replicate the UI exactly, 
   we align titles at the top in a flex container if we want horizontal cols */
@media (min-width: 992px) {
    .sdf-nav-grid {
        flex-direction: row;
        justify-content: center;
    }

    /* Actually the UI shows columns of links below a single row of titles. 
	   Let's create a masonry or grid layout for the links itself.
	   Wait, the design has "Hizmetler", "Ücretsiz Araçlar", "Kurumsal" as a tab bar.
	   Then below a big grid of 4x3 or 4x5 links.
	   We will simulate it carefully: 
	   Let's make the h3s line up using absolute or just block layout.
	   Since WordPress doesn't know active tab without JS, we'll display them nicely. 
	*/

    .sdf-nav-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .sdf-col-title {
        text-align: center;
        display: block;
        background: transparent;
    }

    /* Special override to make the headings look like the tab row */
    .sdf-active-column-title {
        margin: 0 auto 20px auto;
        max-width: max-content;
    }
}

/* Link pill list */
.sdf-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .sdf-link-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sdf-link-list li {
    margin: 0;
}

.sdf-link-list a {
    display: flex;
    align-items: center;
    background-color: var(--sdf-card-bg);
    padding: 14px 20px;
    border-radius: 30px;
    color: var(--sdf-muted-text) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sdf-link-list a::before {
    content: "";
    width: 10px;
    height: 4px;
    background-color: var(--sdf-primary-color);
    border-radius: 4px;
    margin-right: 12px;
    transition: width 0.3s ease;
}

.sdf-link-list a:hover {
    color: var(--sdf-link-hover) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(4px);
}

.sdf-link-list a:hover::before {
    width: 18px;
}

/* Bottom Action Button */
.sdf-bottom-action {
    text-align: center;
    margin-top: 40px;
}

.sdf-show-all-btn {
    display: inline-block;
    background-color: var(--sdf-primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.sdf-show-all-btn:hover {
    background-color: #fff;
    color: var(--sdf-primary-color);
    transform: scale(1.05);
}

/* Responsive specific tweaks */
@media (max-width: 991px) {
    .sdf-top-bar {
        flex-direction: column;
        text-align: center;
    }

    .sdf-contact-info {
        justify-content: center;
    }

    .sdf-social {
        justify-content: center;
    }

    .sdf-active-column-title {
        background-color: transparent;
    }
}

/* Sub-Footer */
.sdf-sub-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    margin-top: 40px;
}

.sdf-sub-footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.sdf-copyright {
    color: var(--sdf-muted-text);
    font-size: 14px;
}

.sdf-sub-footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sdf-dmca-badge,
.sdf-payment-icons {
    max-height: 30px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .sdf-sub-footer-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

/* Fix for short pages: prevent horizontal scroll & cover bottom whitespace */
html,
body {
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body>#page,
body>.site,
body>.site-content,
body>#wrapper {
    flex: 1 0 auto;
}

.sdf-footer-wrapper {
    /* Push background color down to cover any theme native white space at the very bottom */
    padding-bottom: 150px !important;
    margin-bottom: -150px !important;
}