:root {
    --primary: #0B3C5D;
    --secondary: #328CC1;
    --accent: #D9B310;
    --dark: #061f30;
    --light-bg: #f7f9fb;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #222;
    overflow-x: hidden;
    background: #fff;
}

h1, h2, h3, h4, h5 { color: var(--primary); }
.section-title { color: var(--primary); font-weight: 700; }
.bg-light-custom { background: var(--light-bg); }
video, .img-fluid { max-width: 100%; }

/* Ortak Header / Menü */
.site-navbar,
.navbar {
    min-height: 72px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.site-nav-container,
.navbar .container {
    min-height: 72px !important;
    display: flex !important;
    align-items: center !important;
}

.site-logo,
.navbar-brand {
    min-height: 72px !important;
    display: flex !important;
    align-items: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.site-logo img,
.navbar-brand img {
    max-height: 50px !important;
    width: auto !important;
}

#menu-container { width: 100%; }
.site-menu-list { width: 100%; }

.navbar-nav .nav-link {
    color: #263238;
    font-weight: 500;
    padding-left: .75rem !important;
    padding-right: .75rem !important;
    white-space: nowrap;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus { color: var(--secondary); }

@media (min-width: 992px) {
    .site-menu-list,
    #menu-container .navbar-nav {
        justify-content: flex-end;
        align-items: center;
    }
    .navbar-nav .nav-link {
        min-height: 72px !important;
        display: flex !important;
        align-items: center !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

@media (max-width: 991px) {
    #siteMenu { padding-bottom: 12px; }
    .navbar-nav .nav-link {
        padding-top: .55rem !important;
        padding-bottom: .55rem !important;
    }
}

/* Butonlar */
.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-main {
    background: var(--accent);
    color: #000;
    border: 0;
    font-weight: 600;
}
.btn-main:hover,
.btn-main:focus { background: #c7a109; color: #000; }
.btn-free,
.btn-free:disabled {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
    opacity: 1 !important;
    cursor: default !important;
    pointer-events: none !important;
    font-weight: 600;
}

/* Ana sayfa faaliyet kartları */
.faaliyet-card {
    width: 100%;
    max-width: 100%;
    min-height: 340px;
    height: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.faaliyet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,.12);
}
.faaliyet-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
    text-align: center;
}
.faaliyet-link:hover { color: inherit; text-decoration: none; }
.faaliyet-card img {
    width: 100%;
    height: 235px;
    object-fit: cover;
    display: block;
}
.faaliyet-content {
    padding: 18px 12px 10px 12px;
    text-align: center;
}
.faaliyet-content h4 {
    margin: 0;
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--primary);
}
.faaliyet-content p { display: none !important; }
.faaliyet-card .text-center.pb-4 { padding-bottom: 18px !important; }
.faaliyet-card .btn {
    padding: .46rem 1.1rem;
    font-size: .95rem;
    border-radius: 8px;
}

/* Ortak kartlar */
.card, .tool-card, .course-card, .software-card, .villa-card, .partner-card, .contact-card, .info-box, .dashboard-box, .feature-box {
    border-radius: 14px;
}

/* Tasarım araçları */
.converter-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 3px 14px rgba(0,0,0,.08);
    height: 100%;
}
.converter-card h4 { margin-bottom: 16px; }
.converter-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.converter-row label {
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}
.converter-row input { text-align: right; }

/* Ortak Footer */
.site-footer,
footer {
    min-height: 64px !important;
    display: flex !important;
    align-items: center !important;
    background: var(--dark) !important;
    color: #fff !important;
    padding: 18px 0 !important;
    margin-top: 0;
}

@media (max-width: 768px) {
    .faaliyet-card { min-height: 300px; }
    .faaliyet-card img { height: 205px; }
    .converter-row { grid-template-columns: 90px 1fr; }
}


/* v1.5 menü ve kart düzeni */
.site-navbar, .navbar {
    min-height: 74px !important;
}
.site-nav-container, .navbar .container, .navbar .container-fluid {
    min-height: 74px !important;
    max-width: 100% !important;
}
.site-logo, .navbar-brand {
    min-height: 74px !important;
}
.site-logo img, .navbar-brand img {
    max-height: 52px !important;
}
.site-menu-list {
    width: auto !important;
    gap: 2px;
}
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        min-height: 74px !important;
        padding-left: .42rem !important;
        padding-right: .42rem !important;
        font-size: 14px;
    }
    .nav-offer-btn {
        margin-top: 17px;
        padding: .38rem .75rem !important;
        white-space: nowrap;
    }
}
@media (max-width: 991px) {
    .site-menu-list { width: 100% !important; }
    .nav-offer-btn { display: inline-block; margin: .5rem 0; }
}
.faaliyet-card {
    min-height: 360px;
}
.faaliyet-card img {
    height: 255px;
}
.faaliyet-content h4 {
    margin: 0;
    font-weight: 700;
}


/* v1.7 sabit üst menü: Excel'deki üst satırı dondur gibi */
:root{ --topbar-height: 78px; }
body{ padding-top: var(--topbar-height) !important; }
.site-topbar{
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1050 !important;
    height: var(--topbar-height) !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.08) !important;
}
.site-navbar,
.navbar.site-navbar{
    position: static !important;
    min-height: var(--topbar-height) !important;
    height: var(--topbar-height) !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.site-nav-container{
    min-height: var(--topbar-height) !important;
    height: var(--topbar-height) !important;
    display:flex !important;
    align-items:center !important;
}
.site-logo{
    min-height: var(--topbar-height) !important;
    height: var(--topbar-height) !important;
    display:flex !important;
    align-items:center !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
}
.site-logo img{ max-height:52px !important; width:auto !important; }
.site-menu-list{ align-items:center; }
@media (min-width: 992px){
    .site-menu-list .nav-item{
        display:flex;
        align-items:center;
        position:relative;
    }
    .site-menu-list .nav-item:not(:last-child)::after{
        content:"⟋";
        color:#b8c0c7;
        font-size:18px;
        font-weight:300;
        margin:0 9px;
        line-height:1;
    }
    .site-menu-list .nav-link{
        min-height: var(--topbar-height) !important;
        display:flex !important;
        align-items:center !important;
        padding: 0 .2rem !important;
        font-size:14px !important;
        white-space:nowrap;
    }
}
@media (max-width: 991px){
    :root{ --topbar-height: 72px; }
    .site-topbar{ height:auto !important; min-height:var(--topbar-height) !important; }
    .site-navbar, .navbar.site-navbar{ height:auto !important; min-height:var(--topbar-height) !important; }
    .site-nav-container{ height:auto !important; min-height:var(--topbar-height) !important; align-items:center !important; }
    #siteMenu{ background:#fff; border-top:1px solid #eef1f4; padding:8px 0 12px 0; }
    .site-menu-list .nav-link{ padding:.55rem .25rem !important; }
}


/* v1.8 sabit genişlik ve sabit header/menu ölçüleri */
:root{
    --site-width:1140px;
    --topbar-height:78px;
}
body{
    padding-top:var(--topbar-height) !important;
}
.container,
.site-nav-container{
    max-width:var(--site-width) !important;
    width:100% !important;
    margin-left:auto !important;
    margin-right:auto !important;
}
.site-topbar{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    z-index:1050 !important;
    height:var(--topbar-height) !important;
    min-height:var(--topbar-height) !important;
    background:#fff !important;
    box-shadow:0 2px 10px rgba(0,0,0,.08) !important;
}
.site-navbar,
.navbar.site-navbar{
    height:var(--topbar-height) !important;
    min-height:var(--topbar-height) !important;
    padding:0 !important;
    box-shadow:none !important;
}
.site-nav-container{
    height:var(--topbar-height) !important;
    min-height:var(--topbar-height) !important;
    display:flex !important;
    align-items:center !important;
    padding-left:12px !important;
    padding-right:12px !important;
}
.site-logo{
    flex:0 0 190px !important;
    width:190px !important;
    min-height:var(--topbar-height) !important;
    height:var(--topbar-height) !important;
    display:flex !important;
    align-items:center !important;
    padding:0 !important;
    margin:0 !important;
}
.site-logo img{
    width:170px !important;
    height:auto !important;
    max-height:52px !important;
    display:block !important;
}
#siteMenu{
    flex:1 1 auto !important;
}
#menu-container{
    width:100% !important;
}
.site-menu-list{
    width:100% !important;
    justify-content:flex-end !important;
    align-items:center !important;
    flex-wrap:nowrap !important;
}
@media (min-width:992px){
    .site-menu-list .nav-link{
        min-height:var(--topbar-height) !important;
        height:var(--topbar-height) !important;
        display:flex !important;
        align-items:center !important;
        padding:0 .18rem !important;
        font-size:14px !important;
        white-space:nowrap !important;
    }
    .site-menu-list .nav-item{
        min-height:var(--topbar-height) !important;
        display:flex !important;
        align-items:center !important;
    }
}
@media (max-width:991px){
    :root{ --topbar-height:72px; }
    .site-topbar,
    .site-navbar,
    .navbar.site-navbar{
        height:auto !important;
        min-height:var(--topbar-height) !important;
    }
    .site-nav-container{
        height:auto !important;
        min-height:var(--topbar-height) !important;
    }
    .site-logo{
        flex:0 0 auto !important;
        width:auto !important;
        height:var(--topbar-height) !important;
    }
    .site-logo img{
        width:150px !important;
        max-height:48px !important;
    }
    .site-menu-list{
        flex-wrap:wrap !important;
        align-items:flex-start !important;
    }
}


/* =========================================================
   MepFactory sabit responsive header
   Mobil: logo solda, hamburger sağda, menü sağdan açılır.
   ========================================================= */

:root {
    --mf-header-height: 76px;
    --mf-site-width: 1140px;
}

body {
    padding-top: var(--mf-header-height) !important;
}

.mf-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 5000 !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.08) !important;
}

.mf-header-inner {
    width: min(100% - 24px, var(--mf-site-width));
    height: var(--mf-header-height);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;
}

.mf-logo {
    grid-column: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    text-decoration: none;
}

.mf-logo img {
    display: block;
    width: 190px;
    max-width: 100%;
    max-height: 54px;
    height: auto;
    object-fit: contain;
}

.mf-menu-toggle {
    grid-column: 3;
    width: 52px;
    height: 46px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #cfd5da;
    border-radius: 10px;
    background: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mf-menu-toggle span {
    display: block;
    width: 27px;
    height: 3px;
    border-radius: 3px;
    background: #4a4f54;
}

.mf-desktop-menu {
    grid-column: 2 / 4;
    justify-self: end;
}

.mf-menu-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mf-desktop-menu .mf-menu-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
}

.mf-desktop-menu .mf-menu-list li {
    display: flex;
    align-items: center;
}

.mf-desktop-menu .mf-menu-list li:not(:last-child)::after {
    content: "⟋";
    color: #b8c0c7;
    margin: 0 9px;
    font-size: 17px;
    line-height: 1;
}

.mf-menu-list a {
    color: #263238;
    text-decoration: none;
    font-weight: 500;
}

.mf-desktop-menu .mf-menu-list a {
    display: flex;
    align-items: center;
    height: var(--mf-header-height);
    font-size: 14px;
    white-space: nowrap;
}

.mf-menu-list a:hover,
.mf-menu-list a:focus {
    color: #328CC1;
}

.mf-mobile-menu {
    display: none;
}

@media (max-width: 991.98px) {
    :root {
        --mf-header-height: 72px;
    }

    .mf-header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 12px;
    }

    .mf-logo {
        grid-column: 1;
    }

    .mf-logo img {
        width: 165px;
        max-height: 48px;
    }

    .mf-desktop-menu {
        display: none !important;
    }

    .mf-menu-toggle {
        grid-column: 2;
        display: flex !important;
        justify-self: end;
    }

    .mf-mobile-menu {
        position: absolute !important;
        top: var(--mf-header-height) !important;
        right: 12px !important;
        left: auto !important;
        width: min(82vw, 340px) !important;
        margin: 0 !important;
        padding: 10px 14px 14px !important;
        background: #fff !important;
        border: 1px solid #e4e8eb !important;
        border-top: 0 !important;
        border-radius: 0 0 12px 12px !important;
        box-shadow: 0 12px 28px rgba(0,0,0,.15) !important;
    }

    .mf-mobile-menu.is-open {
        display: block !important;
    }

    .mf-mobile-menu .mf-menu-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    .mf-mobile-menu .mf-menu-list li {
        width: 100% !important;
        text-align: right !important;
    }

    .mf-mobile-menu .mf-menu-list a {
        display: block !important;
        width: 100% !important;
        padding: 12px 4px !important;
        text-align: right !important;
        font-size: 18px !important;
        line-height: 1.25 !important;
        border-bottom: 1px solid #eef1f4 !important;
    }

    .mf-mobile-menu .mf-menu-list li:last-child a {
        border-bottom: 0 !important;
    }
}

@media (max-width: 420px) {
    .mf-logo img {
        width: 145px;
    }

    .mf-menu-toggle {
        width: 48px;
        height: 44px;
    }

    .mf-mobile-menu {
        width: min(88vw, 320px) !important;
    }
}


/* ===== MepFactory v1 kararlı ek kuralları ===== */

/* Footer: yalnızca telif ve tam ortalı */
html body footer.site-footer,
html body .site-footer {
    width: 100% !important;
    min-height: 74px !important;
    display: grid !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 18px 12px !important;
    background: #0B3C5D !important;
    color: #fff !important;
    text-align: center !important;
}
html body .site-footer .mf-footer-inner,
html body .site-footer .mf-footer-copy {
    width: 100% !important;
    max-width: 1140px !important;
    margin: 0 auto !important;
    color: #fff !important;
    text-align: center !important;
}

/* İletişim butonu altındaki web ve e-posta */
.mf-contact-links {
    margin-top: 16px !important;
    text-align: center !important;
}
.mf-contact-links div {
    margin: 6px 0 !important;
}
.mf-contact-links a {
    color: #0d6efd !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}
.mf-contact-links a:hover {
    text-decoration: underline !important;
}

/* Ortak form gönder butonu */
.mf-submit-wrap {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 24px !important;
}
.mf-submit-button,
button.mf-submit-button,
input.mf-submit-button {
    min-width: 160px !important;
    padding: 12px 34px !important;
    border: 1px solid #0d6efd !important;
    border-radius: 8px !important;
    background: #0d6efd !important;
    color: #fff !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}
.mf-submit-button:hover,
.mf-submit-button:focus,
.mf-submit-button:active {
    background: #0b5ed7 !important;
    border-color: #0a58ca !important;
    color: #fff !important;
}
@media (max-width: 575.98px) {
    .mf-submit-button {
        width: 100% !important;
        max-width: 320px !important;
    }
}




/* Logo + language selector */
.mf-brand-row{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;
  flex:0 0 auto !important;
  white-space:nowrap;
}
.mf-brand-row .mf-logo{
  display:flex !important;
  align-items:center !important;
  flex:0 0 auto !important;
  margin:0 !important;
}
.mf-brand-row .mf-language-switch{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  gap:5px !important;
  margin:0 !important;
  padding:0 !important;
  width:auto !important;
  white-space:nowrap;
  font-size:14px;
  font-weight:600;
}
.mf-language-switch a{
  display:inline !important;
  width:auto !important;
  text-decoration:none;
  color:inherit;
  opacity:.58;
}
.mf-language-switch a.active{opacity:1;font-weight:700}
.mf-language-switch span{opacity:.35}

@media(max-width:991.98px){
  .mf-brand-row{gap:8px !important}
  .mf-brand-row .mf-language-switch{font-size:13px}
}
