/***** RESET *****/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
}

html,
body {
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

/* STICKY FOOTER SETUP */
body {
    line-height: 1;
    font-family: 'Roboto', Tahoma, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

textarea {
    overflow: auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* HEADER / MENU (MODERNIZED & FIXED) */
.menu {
    width: 100%;
    min-height: 80px;
    background: #231F20;
    position: fixed;
    /* Fixed header needs spacer in content */
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    /* Shifted Left (User Request) */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Brand Styles */
.logo1 {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0;
    /* No Gap (User Request) */
}

.brand-link img {
    height: 50px;
    width: auto;
}

.brand-text {
    color: #FECA0A;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.logo2 {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle div {
    width: 25px;
    height: 3px;
    background-color: #FECA0A;
    margin: 4px 0;
    transition: 0.4s;
}

.menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.menu ul li {
    list-style: none;
}

.menu ul li a {
    display: block;
    padding: 30px 25px;
    text-decoration: none;
    color: #FECA0A;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
}

.menu ul li a:hover {
    color: #fff;
}

/* Underline effect */
.menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu ul li a:hover::after {
    width: 70%;
}

.whatsapp-float {
    clear: both;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 101;
}

/* SLIDER */
.slider {
    width: 90%;
    max-width: 1000px;
    margin: 100px auto 20px;
    /* Top margin accounts for fixed header */
    overflow: hidden;
    border-radius: 5px;
    position: relative;
    z-index: 1;
    background: #fff;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.slider-content {
    width: 500%;
    display: flex;
    animation: slide 20s infinite;
}

.slider-content:hover {
    animation-play-state: paused;
}

.slider-item {
    width: 20%;
    flex-shrink: 0;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    10% {
        transform: translateX(-20%);
    }

    20% {
        transform: translateX(-20%);
    }

    30% {
        transform: translateX(-40%);
    }

    40% {
        transform: translateX(-40%);
    }

    50% {
        transform: translateX(-60%);
    }

    60% {
        transform: translateX(-60%);
    }

    70% {
        transform: translateX(-80%);
    }

    80% {
        transform: translateX(-80%);
    }

    90% {
        transform: translateX(0);
    }
}

/* CONTENT */
.middle1 {
    width: 90%;
    max-width: 1212px;
    margin: 20px auto;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    flex: 1;
    /* Pushes footer down if content is short */
}

/* Partners Title Style - MATCHING HAKKIMIZDA */
.partners-title {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
    margin-top: 10px;
}

.partners-title h1 {
    color: #231F20;
    font-size: 25px;
    /* User changed this locally */
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 4px solid #FECA0A;
    display: inline-block;
    padding-bottom: 10px;
    width: fit-content;
}

.kutucuklar {
    width: 150px;
    height: 150px;
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.kutucuklar img {
    max-height: 100px;
    width: auto;
}

/* BOTTOM / FOOTER */
.bottom {
    width: 100%;
    background: #231F20;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    margin-top: auto;
    /* Sticky Footer Key */
    flex-shrink: 0;
}

.botlogo {
    margin-bottom: 20px;
}

.yazı1 {
    text-align: center;
    color: #FECA0A;
    font: bold 20px tahoma;
    margin-bottom: 20px;
}

.sosyal {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.lisans {
    text-align: center;
    color: grey;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
    line-height: 1.6;
    padding: 0 15px;
}

/* MEDIA QUERIES */
@media screen and (max-width: 960px) {
    .menu {
        background: #FECA0A;
        padding: 0;
        min-height: 60px;
        /* Back to mobile height */
        align-items: flex-start;
        align-content: flex-start;
    }

    .logo1 {
        display: none;
    }

    .logo2 {
        display: block;
        position: absolute;
        top: 30px;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 102;
    }

    .logo2 a {
        display: inline-block;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        top: 30px;
        right: 15px;
        transform: translateY(-50%);
        z-index: 102;
        /* Ensure it stays above everything */
        margin: 0;
    }

    .menu-toggle div {
        background-color: #231F20;
    }

    /* MODERN MOBILE MENU START */
    .menu ul {
        width: 100%;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        /* Gradient Horizontal: Left (Black) to Right (Yellow) */
        background: linear-gradient(90deg, #231F20 0%, #FECA0A 100%);
        max-height: 0;
        overflow: hidden;
        margin-top: 60px;
        /* Matches Header Height */
        /* Soft and Slow Animation */
        transition: max-height 1.0s ease-in-out;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .menu ul.active {
        max-height: 500px;
    }

    .menu ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        /* Faint separator */
    }

    .menu ul li a {
        display: block;
        padding: 15px 25px;
        /* Sleeker padding */
        font-size: 15px;
        /* Smaller font for professional look */
        letter-spacing: 1px;
        /* Modern spacing */
        text-transform: uppercase;
        /* Professional uppercase */
        color: #fff;
        /* White text on Black background (left side) */
        font-weight: 500;
        text-align: left;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
    }

    .menu ul li a:hover {
        background: rgba(255, 255, 255, 0.05);
        padding-left: 35px;
        /* Slide effect */
        border-left: 3px solid #FECA0A;
        /* Gold marker */
        color: #FECA0A;
    }

    .menu ul li a::after {
        display: none;
    }

    /* MODERN MOBILE MENU END */

    .slider {
        margin: 80px auto 20px;
        width: 96%;
        border-radius: 5px;
    }

    .logo1 img {
        width: 250px;
        height: auto;
    }

    .kutucuklar {
        width: 45%;
        height: auto;
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .kutucuklar {
        width: 90%;
        padding: 0 20px;
    }

    .whatsapp-float {
        bottom: 10px;
        left: 10px;
    }

    .whatsapp-float img {
        width: 40px;
        height: 40px;
    }
}

/* WELCOME MODAL STYLES */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    /* Black w/ opacity */
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    /* Responsive Dialog */
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
    animation: slideDown 0.5s;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    color: #231F20;
    margin-top: 10px;
    margin-bottom: 20px;
    border-bottom: 3px solid #FECA0A;
    display: inline-block;
    padding-bottom: 5px;
}

.modal-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 25px;
}

.modal-ok-btn {
    background-color: #FECA0A;
    color: #231F20;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-ok-btn:hover {
    background-color: #231F20;
    color: #fff;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}