/*==========================================================
   responsive.css — Kapsamlı Ekran Uyum Geliştirmeleri
   Breakpoints:
     xl  : 1400px+
     lg  : 1200px - 1399px
     md  : 992px  - 1199px
     sm  : 768px  - 991px
     xs  : 480px  - 767px
     xxs : 0      - 479px
==========================================================*/

/* --------------------------------------------------------
   Temel: Tüm görseller fluid
-------------------------------------------------------- */
img {
  max-width: 100%;
  height: auto;
}
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* --------------------------------------------------------
   #map: harita iframe responsive
-------------------------------------------------------- */
#map {
  width: 100%;
  overflow: hidden;
  position: relative;
}
#map iframe {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* --------------------------------------------------------
   İletişim formu — mobilde tam genişlik input
-------------------------------------------------------- */
#contact-form input,
#contact-form textarea,
.comment-form input,
.comment-form textarea {
  max-width: 100%;
  box-sizing: border-box;
}

/* --------------------------------------------------------
   Footer Flickr galeri görselleri
-------------------------------------------------------- */
footer .up-footer ul.flickr li a img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

/* --------------------------------------------------------
   Logo görseli
-------------------------------------------------------- */
header div.logo a img,
.footer-widget img {
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------
   Slider görselleri
-------------------------------------------------------- */
.tp-banner img,
.tp-banner-container img {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------
   Hizmet, haber, galeri kartları
-------------------------------------------------------- */
.offer-post > a img,
.news-gallery img,
.project-post img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------
   Sayfa görselleri (haber detay, hizmet detay)
-------------------------------------------------------- */
.blog-section img,
.haber-detay img,
.hizmet-detay img,
.sayfa-icerik img {
  max-width: 100%;
  height: auto;
}

/* ========================================================
   BREAKPOINT: max-width 1200px (Laptop küçük)
======================================================== */
@media (max-width: 1200px) {
  #content {
    max-width: 100%;
  }

  header {
    width: 240px;
    margin-left: -580px;
  }

  #content .inner-content {
    margin-left: 240px;
  }

  .top-line ul.info-list li {
    padding-right: 20px;
  }

  .top-line ul.info-list li p {
    font-size: 13px;
  }
}

/* ========================================================
   BREAKPOINT: max-width 1020px (Tablet Yatay / Küçük Laptop)
======================================================== */
@media (max-width: 1020px) {
  /* Header mobil mod */
  header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    z-index: 100;
  }

  #content .inner-content {
    margin-left: 0 !important;
  }

  #container {
    padding: 0;
  }

  .container {
    padding: 0 15px;
  }

  /* Slider tam genişlik */
  .tp-banner-container {
    width: 100%;
  }

  /* Top-line dar ekranda 2 kolon */
  .top-line ul.info-list li {
    width: 50%;
  }
  .top-line ul.info-list li:last-child {
    display: none;
  }

  /* Galeri 2'li */
  .project-box .project-post {
    width: 50%;
  }

  /* Harita yüksekliği */
  #map {
    height: 300px !important;
  }
}

/* ========================================================
   BREAKPOINT: max-width 991px (Tablet Dikey)
======================================================== */
@media (max-width: 991px) {
  /* Nav menü */
  header nav.nav-menu {
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Top-line gizle */
  .top-line {
    display: none;
  }

  /* Responsive link (hamburger) göster */
  a.elemadded {
    display: block;
    width: 100%;
    text-align: center;
  }

  /* Logo ortala */
  header div.logo {
    text-align: center;
    padding: 10px 15px;
  }

  /* Hizmet kartları — tablet'te 2 kolon */
  .services-offer-section .col-sm-4 {
    width: 50%;
    float: left;
  }
  .services-offer-section .col-sm-4:last-child {
    width: 100%;
  }

  /* Offer post margin */
  .offer-post {
    margin-bottom: 30px;
  }

  /* Harita */
  #map {
    height: 280px !important;
  }

  /* Footer widgetlar */
  .footer-widget {
    margin-bottom: 30px;
  }
  footer .up-footer .col-md-4 {
    width: 100%;
    float: none;
    display: block;
  }

  /* Page banner */
  .page-banner-section {
    text-align: center;
  }
  .page-banner-section h2 {
    margin-bottom: 5px;
    font-size: 20px;
  }
  .page-banner-section ul.page-depth {
    text-align: center;
  }

  /* Contact */
  .contact-info {
    margin-bottom: 30px;
  }

  /* About section */
  .tabs-section .col-sm-7,
  .tabs-section .col-sm-5 {
    width: 100%;
    float: none;
  }
  .tabs-section .about-box {
    margin-top: 30px;
  }

  /* Testimonial */
  .testimonial-section .title-section h1 {
    font-size: 20px;
  }

  /* Galeri 2'li */
  .project-box .project-post {
    width: 50%;
  }

  /* News posts */
  .news-section .col-sm-4 {
    width: 50%;
    float: left;
  }
  .news-section .col-sm-4:last-child {
    width: 100%;
  }

  /* Banner section */
  .banner-section h2 {
    font-size: 14px;
  }
  .banner-section h2 a {
    margin-left: 10px;
    display: block;
    margin-top: 10px;
  }

  /* Quote/iletişim section */
  .quote-section .col-sm-5,
  .quote-section .col-sm-offset-7 {
    width: 100%;
    margin-left: 0;
    float: none;
  }
  .quote-box {
    margin-top: 20px;
    padding: 20px;
  }

  /* İletişim formu */
  .contact-section .col-sm-8,
  .contact-section .col-sm-4 {
    width: 100%;
    float: none;
  }

  /* Referanslar */
  .clients-section blockquote {
    margin-top: 20px;
    margin-bottom: 0;
  }
}

/* ========================================================
   BREAKPOINT: max-width 767px (Mobil Yatay / Küçük Tablet)
======================================================== */
@media (max-width: 767px) {
  /* Header */
  header {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  /* Guide box gizle */
  header .guide-box {
    display: none;
  }

  /* Slider metinleri küçült */
  #home-section .tp-caption.finewide_medium_white {
    font-size: 20px !important;
    line-height: 28px !important;
  }

  /* Tüm col-sm% → full width */
  .services-offer-section .col-sm-4,
  .news-section .col-sm-4,
  .projects-section .col-sm-8,
  .projects-section .col-sm-4,
  .clients-section .col-sm-6,
  .contact-section .col-sm-8,
  .contact-section .col-sm-4,
  .tabs-section .col-sm-7,
  .tabs-section .col-sm-5,
  .quote-section .col-sm-5,
  .quote-section .col-sm-offset-7 {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
  }

  /* Hizmet kartları */
  .offer-post {
    margin-bottom: 25px;
  }
  .offer-post > a img {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }

  /* Galeri — 2'li */
  .project-box .project-post {
    width: 50%;
  }

  /* Harita */
  #map {
    height: 250px !important;
  }

  /* Haberler */
  .news-section .news-post {
    margin-bottom: 25px;
  }
  .news-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  /* About */
  .about-us-box {
    margin-bottom: 25px;
  }
  .tabs-section .about-box {
    padding-left: 0;
    margin-top: 20px;
  }
  .tabs-section .about-box img {
    height: 250px;
    object-fit: cover;
  }

  /* Quote/iletişim */
  .quote-section {
    padding-top: 0;
  }
  .quote-box {
    padding: 25px 20px;
  }
  .quote-box h1 {
    font-size: 18px !important;
  }
  #contact-form input,
  .comment-form input {
    width: 100%;
    margin-bottom: 10px;
  }
  #contact-form textarea,
  .comment-form textarea {
    width: 100%;
    height: 120px;
  }

  /* Footer */
  footer .up-footer {
    padding: 30px 15px;
  }
  footer .up-footer .col-md-4 {
    width: 100%;
    float: none;
    margin-bottom: 25px;
  }
  footer .up-footer ul.flickr li a img {
    width: 65px;
    height: 65px;
  }
  footer p.copyright {
    font-size: 11px;
    padding: 15px 10px;
  }

  /* Sayfa banner */
  .page-banner-section h2 {
    font-size: 18px;
  }
  .page-banner-section {
    padding: 20px 0;
  }

  /* İletişim sayfası */
  .contact-section {
    padding: 25px 0;
  }
  .contact-info ul.information-list li {
    font-size: 13px;
  }

  /* Banner section */
  .banner-section {
    padding: 20px 0;
  }
  .banner-section h2 {
    font-size: 13px;
  }

  /* Referanslar */
  .clients-section {
    padding: 25px 0;
  }
  .clients-section blockquote {
    margin-top: 25px;
  }

  /* Title section */
  .title-section h1 {
    font-size: 22px;
    margin: 0 0 20px;
  }

  /* Sections padding küçült */
  .services-offer-section,
  .tabs-section,
  .testimonial-section,
  .news-section {
    padding: 30px 0;
  }
  .projects-section {
    padding: 30px 0;
  }

  /* WhatsApp & mobildestek butonları */
  .whatsapp {
    left: 10px;
    bottom: 10px;
  }
  .mobildestek {
    left: 10px;
    bottom: 65px;
  }
  .whatsapp a,
  .mobildestek a {
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 22px;
  }

  /* Flexbox blog / pagination */
  .blog-section .blog-box ul.pagination-list {
    margin-bottom: 30px;
    text-align: center;
  }
}

/* ========================================================
   BREAKPOINT: max-width 480px (Mobil Dikey)
======================================================== */
@media (max-width: 480px) {
  /* Galeri tek kolon */
  .project-box .project-post {
    width: 100%;
  }

  /* Slider */
  #home-section .tp-caption.finewide_medium_white {
    font-size: 16px !important;
    line-height: 22px !important;
    white-space: normal !important;
  }
  #home-section .tp-caption span.corner-border {
    width: 40px;
    height: 40px;
  }

  /* Harita */
  #map {
    height: 220px !important;
  }

  /* Logo */
  header div.logo {
    padding: 8px 10px;
  }
  header div.logo a img {
    max-height: 50px;
    width: auto;
  }

  /* Nav link boyutu */
  header nav.nav-menu ul.menu-list li a {
    font-size: 12px;
    padding: 12px 20px;
  }

  /* Hizmet görseli */
  .offer-post > a img {
    height: 180px;
  }

  /* Haber görseli */
  .news-gallery img {
    height: 180px;
  }

  /* Footer flickr küçük ekran */
  footer .up-footer ul.flickr li a img {
    width: 55px;
    height: 55px;
  }

  /* İletişim formu */
  .quote-box {
    padding: 20px 12px;
  }
  #contact-form input[type="submit"],
  .comment-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }

  /* Footer copyright */
  footer p.copyright {
    font-size: 10px;
    padding: 12px 8px;
    line-height: 1.5;
  }

  /* Sections padding daha küçük */
  .services-offer-section,
  .tabs-section,
  .testimonial-section,
  .news-section,
  .projects-section,
  .clients-section {
    padding: 20px 0;
  }

  /* Title */
  .title-section h1 {
    font-size: 18px;
  }

  /* Banner */
  .banner-section h2 {
    font-size: 12px;
  }
  .banner-section h2 a {
    font-size: 12px;
    padding: 6px 20px;
    margin-top: 8px;
  }

  /* Page banner */
  .page-banner-section h2 {
    font-size: 15px;
  }

  /* About posts ikonlar */
  .tabs-section .about-us-box .about-us-post a {
    width: 45px;
    height: 45px;
    line-height: 45px;
    font-size: 18px;
  }
  .tabs-section .about-us-box .about-us-post h2 {
    margin-left: 58px;
    font-size: 14px;
  }
  .tabs-section .about-us-box .about-us-post span {
    margin-left: 58px;
  }

  /* Referans section */
  .referans-section img {
    max-width: 120px;
    height: auto;
  }

  /* Galeri sayfa */
  .fotogaleri-section .project-post {
    width: 100%;
  }

  /* Haber listesi sayfası */
  .blog-section .blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  /* Contact info */
  .contact-info h2 {
    font-size: 16px;
  }
  .contact-info ul.information-list li {
    font-size: 12px;
    margin-bottom: 10px;
  }
}

/* ========================================================
   BREAKPOINT: max-width 360px (Küçük Akıllı Telefon)
======================================================== */
@media (max-width: 360px) {
  /* Container padding minimu */
  .container {
    padding: 0 10px;
  }

  /* Logo küçült */
  header div.logo a img {
    max-height: 40px;
  }

  /* Nav font */
  header nav.nav-menu ul.menu-list li a {
    font-size: 11px;
    padding: 10px 15px;
  }
  a.elemadded {
    font-size: 13px;
    padding: 12px 15px;
  }

  /* Harita */
  #map {
    height: 180px !important;
  }

  /* Title */
  .title-section h1 {
    font-size: 15px;
    margin-bottom: 15px;
  }

  /* Footer */
  footer .up-footer {
    padding: 20px 10px;
  }
  footer .up-footer h2 {
    font-size: 13px;
    margin-bottom: 15px;
  }
  footer .up-footer ul.flickr li a img {
    width: 48px;
    height: 48px;
  }

  /* İletişim formu buton */
  #contact-form input[type="submit"] {
    font-size: 13px;
    padding: 10px;
  }

  /* news/haber listesi */
  .news-section .news-post {
    margin-bottom: 20px;
  }
}

/* ========================================================
   Panel (solidmedya) — AdminLTE responsive iyileştirmeler
======================================================== */
@media (max-width: 991px) {
  .wrapper .main-header .logo {
    font-size: 14px !important;
    padding: 0 10px !important;
  }

  .sidebar-menu > li > a {
    padding: 10px 12px;
    font-size: 13px;
  }

  .content-wrapper {
    margin-left: 0 !important;
  }

  /* Panel formları */
  .box-body input[type="text"],
  .box-body input[type="email"],
  .box-body input[type="password"],
  .box-body textarea,
  .box-body select {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .main-header .navbar {
    min-height: 44px;
  }

  .content-header h1 {
    font-size: 18px;
  }

  .box {
    margin-bottom: 15px;
  }

  table.dataTable {
    font-size: 12px;
  }

  /* Panel table responsive */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ========================================================
   Yardımcı: Tüm iframeler responsive
======================================================== */
.embed-responsive {
  position: relative;
  display: block;
  height: 0;
  padding: 0;
  overflow: hidden;
}
.embed-responsive.embed-responsive-16by9 {
  padding-bottom: 56.25%;
}
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* ========================================================
   Yardımcı: Overflow düzeltmeleri
======================================================== */
.row {
  margin-right: -15px;
  margin-left: -15px;
}

@media (max-width: 767px) {
  .row {
    margin-right: -10px;
    margin-left: -10px;
  }

  [class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
  }
}

/* ========================================================
   Print — yazdırma için
======================================================== */
@media print {
  header,
  footer,
  .whatsapp,
  .mobildestek,
  #map,
  .tp-banner-container,
  nav {
    display: none !important;
  }

  #content .inner-content {
    margin-left: 0 !important;
    box-shadow: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }
}
