/* ==================================================
   RESPONSIVE LOGO + MENÜ OPTİMİZE CSS
   Class ve ID isimleri değiştirilmemiştir
================================================== */

@import url(https://fonts.googleapis.com/css?family=Open+Sans);

/* ===============================
   GENEL HEADER ALANI
================================ */

.rmenu {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  background: url(../img/rbg1.png) repeat;
  box-sizing: border-box;
}

/* Dekoratif yan alanlar */
.rlogo1,
.rlogo2 {
  padding: 84px 0 0 0;
  margin: 0;
  width: 8%;
  box-sizing: border-box;
}

.rlogo1 {
  float: left;
}

.rlogo2 {
  float: right;
}

/* Ana logo + menü taşıyıcı */
.rlogo3 {
  width: 82%;
  margin: 0;
  padding: 0 1%;
  float: left;
  background: #fff;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
}

/* Logo alanı */
.rlogo {
  width: auto;
  max-width: 28%;
  margin: 0;
  padding-top: 0;
  float: none;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.rlogo img {
  width: 300px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===============================
   MENÜ RESET
================================ */

#cssmenu,
#cssmenu ul,
#cssmenu ul li,
#cssmenu ul li a,
#cssmenu #menu-button {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
  line-height: 1;
  display: block;
  position: relative;
  box-sizing: border-box;
}

#cssmenu:after,
#cssmenu > ul:after {
  content: "";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

#cssmenu {
  width: auto;
  max-width: 72%;
  margin: 0;
  padding: 0;
  float: none;
  flex: 1 1 auto;
  font-family: 'Open Sans', sans-serif;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#cssmenu #menu-button {
  display: none;
}

/* Ana menü */
#cssmenu > ul {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  flex-wrap: nowrap;
  width: auto;
}

#cssmenu > ul > li {
  float: none;
}

#cssmenu > ul > li > a {
  padding: 39px 11px 37px 11px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  text-transform: uppercase;
  color: #333;
  white-space: nowrap;
  transition: all 0.25s ease;
}

/* Hover ve aktif menü */
#cssmenu > ul > li:hover > a {
  background: #929fab;
  color: #fff;
}

#cssmenu > ul > li.active > a {
  background: #79848d;
  color: #fff;
}

/* Alt menülü ana link */
#cssmenu > ul > li.has-sub > a {
  padding-right: 27px;
}

/* Aşağı ok */
#cssmenu > ul > li.has-sub > a::after {
  position: absolute;
  top: 43px;
  right: 13px;
  width: 5px;
  height: 5px;
  border-bottom: 1px solid #333;
  border-right: 1px solid #333;
  content: "";
  transform: rotate(45deg);
  transition: border-color 0.25s ease;
}

#cssmenu > ul > li.has-sub:hover > a::after,
#cssmenu > ul > li.active.has-sub > a::after {
  border-color: #fff;
}

/* Menü çizgisi kullanılmıyorsa gizli */
#menu-line {
  position: absolute;
  display: none;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #78838d;
  transition: all 0.25s ease-out;
}

/* ===============================
   ALT MENÜLER
================================ */

#cssmenu ul ul {
  position: absolute;
  top: 100%;
  left: -9999px;
  min-width: 240px;
  padding: 8px 0;
  background: #eff1f6;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  z-index: 9999;

  text-align: left;
}

#cssmenu li:hover > ul {
  left: 0;
}

#cssmenu.align-right li:hover > ul {
  right: 0;
  left: auto;
  text-align: left;
}

#cssmenu ul ul li {
  width: 100%;
  height: auto;
  float: none;
  transition: all 0.2s ease;

  text-align: left;
  text-indent: 0;
}

#cssmenu ul ul li a {
  width: 250px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  text-decoration: none;
  color: #333;
  background: #eff1f6;
  white-space: normal;
  transition: all 0.25s ease;

  text-align: left;
  text-indent: 0;
}

/* Sub menü içindeki tüm yazılar sola hizalı */
#cssmenu ul ul,
#cssmenu ul ul ul,
#cssmenu ul ul li,
#cssmenu ul ul ul li,
#cssmenu ul ul li a,
#cssmenu ul ul ul li a {
  text-align: left;
  text-indent: 0;
}

#cssmenu ul ul li:hover > a,
#cssmenu ul ul li a:hover {
  color: #fff;
  background: #79848d;
}

/* 3. seviye menü */
#cssmenu ul ul ul {
  top: 0;
  margin-left: 100%;
  text-align: left;
}

#cssmenu.align-right ul ul ul {
  margin-left: 0;
  margin-right: 100%;
  text-align: left;
}

/* Alt menü sağ ok */
#cssmenu ul ul li.has-sub > a::after {
  position: absolute;
  top: 15px;
  right: 13px;
  width: 5px;
  height: 5px;
  border-bottom: 1px solid #777;
  border-right: 1px solid #777;
  content: "";
  transform: rotate(-45deg);
  transition: border-color 0.25s ease;
}

#cssmenu ul ul li.has-sub:hover > a::after {
  border-color: #fff;
}

#cssmenu.align-right ul ul li.has-sub > a::after {
  right: 13px;
  left: auto;
  border-bottom: 1px solid #777;
  border-right: 1px solid #777;
  border-top: 0;
  border-left: 0;
}

/* align-right olsa bile sub menü yazıları sola hizalı */
#cssmenu.align-right ul ul,
#cssmenu.align-right ul ul ul,
#cssmenu.align-right ul ul li,
#cssmenu.align-right ul ul ul li,
#cssmenu.align-right ul ul li a,
#cssmenu.align-right ul ul ul li a {
  text-align: left;
  text-indent: 0;
}

/* ===============================
   ORTA EKRAN OPTİMİZASYONU
================================ */

@media screen and (max-width: 1200px) {

  .rlogo3 {
    width: 84%;
    padding: 0 1.5%;
  }

  .rlogo1,
  .rlogo2 {
    width: 8%;
  }

  .rlogo img {
    width: 250px;
  }

  #cssmenu > ul > li > a {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 12px;
  }

  #cssmenu > ul > li.has-sub > a {
    padding-right: 23px;
  }

  #cssmenu > ul > li.has-sub > a::after {
    right: 10px;
  }
}
/* ==================================================
   TABLET + MOBİL GELİŞTİRİLMİŞ RESPONSIVE MENÜ
   Class ve ID isimleri değiştirilmemiştir
================================================== */

/* ===============================
   TABLET GÖRÜNÜM
================================ */

@media screen and (max-width: 1024px) {

  .rmenu {
    position: relative;
    width: 100%;
    z-index: 9998;
    background: #ffffff;
  }

  .rlogo1,
  .rlogo2 {
    padding-top: 58px;
    width: 6%;
  }

  .rlogo3 {
    width: 88%;
    min-height: 76px;
    padding: 8px 2%;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  }

  .rlogo {
    max-width: 34%;
  }

  .rlogo img {
    width: 210px;
    max-width: 100%;
    height: auto;
  }

  #cssmenu {
    max-width: 66%;
  }

  #cssmenu > ul > li > a {
    padding: 29px 7px 27px 7px;
    font-size: 11px;
    line-height: 16px;
  }

  #cssmenu > ul > li.has-sub > a {
    padding-right: 20px;
  }

  #cssmenu > ul > li.has-sub > a::after {
    top: 32px;
    right: 9px;
  }

  #cssmenu ul ul,
  #cssmenu ul ul li,
  #cssmenu ul ul li a {
    text-align: left;
    text-indent: 0;
  }

  .nivo-caption p.p1,
  .nivo-caption p.p2,
  .nivo-caption p.p3,
  .theme-default .nivo-directionNav {
    display: none;
  }

  .author_wrapper_main,
  .author {
    width: 300px;
  }

  .allgalleries1 .gallerylist #gallerylist1c ul li {
    width: 100%;
  }

  .allgalleries1 .gallerylist #gallerylist1c ul li a span {
    float: right;
    font-size: 10pt;
    width: 92%;
    padding-right: 4%;
    padding-bottom: 5px;
    text-align: left;
  }

  .allgalleries1 .gallerylist #gallerylist1c ul li a span.gsdesc {
    display: none;
  }
}

/* ===============================
   MOBİL MENÜ - MODERN VE KULLANIŞLI
================================ */

@media screen and (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  .rmenu {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99998;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  }

  .rlogo1,
  .rlogo2 {
    display: none;
  }

  .rlogo3 {
    width: 100%;
    min-height: 66px;
    padding: 10px 16px;
    float: none;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);

    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .rlogo {
    width: auto;
    max-width: calc(100% - 62px);
    padding: 0;
    margin: 0;
    flex: 1 1 auto;
  }

  .rlogo img {
    width: 175px;
    max-width: 100%;
    height: auto;
    display: block;
  }

  #cssmenu {
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  /* Hamburger buton */
  #cssmenu #menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    cursor: pointer;
    font-size: 0;
    text-indent: -9999px;
    background: #f4f5f8;
    border-radius: 12px;
    transition: all 0.25s ease;
  }

  #cssmenu #menu-button:hover {
    background: #e8eaf0;
  }

  /* Hamburger çizgileri */
  #cssmenu #menu-button::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 9px;
    display: block;
    width: 28px;
    height: 3px;
    background: #554b7d;
    border-radius: 6px;
    box-shadow: 0 8px 0 #554b7d;
    transition: all 0.25s ease;
  }

  #cssmenu #menu-button::before {
    content: "";
    position: absolute;
    top: 30px;
    right: 9px;
    display: block;
    width: 28px;
    height: 3px;
    background: #554b7d;
    border: 0;
    border-radius: 6px;
    transition: all 0.25s ease;
  }

  /* Menü açıldığında buton rengi */
  #cssmenu.open #menu-button,
  #cssmenu #menu-button.menu-opened {
    background: #554b7d;
  }

  #cssmenu.open #menu-button::after,
  #cssmenu #menu-button.menu-opened::after {
    background: #ffffff;
    box-shadow: 0 8px 0 #ffffff;
  }

  #cssmenu.open #menu-button::before,
  #cssmenu #menu-button.menu-opened::before {
    background: #ffffff;
  }

  /* Açılır menü paneli */
  #cssmenu > ul {
    display: none;
    position: absolute;
    top: 60px;
    right: 12px;
    width: 310px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    overflow-x: hidden;

    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    z-index: 99999;
    padding: 8px;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.06);
  }

  /* Eğer JS #cssmenu'ya open class veriyorsa */
  #cssmenu.open > ul {
    display: flex;
  }

  /* Eğer eski JS inline display:block veriyorsa */
  #cssmenu > ul[style*="display: block"] {
    display: flex !important;
  }

  #cssmenu > ul::-webkit-scrollbar {
    width: 5px;
  }

  #cssmenu > ul::-webkit-scrollbar-track {
    background: transparent;
  }

  #cssmenu > ul::-webkit-scrollbar-thumb {
    background: #c8ccd6;
    border-radius: 10px;
  }

  #cssmenu ul {
    width: 100%;
    text-align: left;
  }

  #cssmenu > ul > li,
  #cssmenu.align-center > ul > li,
  #cssmenu.align-right > ul > li {
    width: 100%;
    float: none;
    display: block;
    margin: 2px 0;
    border-radius: 10px;
    overflow: hidden;
  }

  #cssmenu ul li,
  #cssmenu ul ul li,
  #cssmenu ul li:hover > ul > li {
    width: 100%;
    height: auto;
    border-top: 0;
    text-indent: 0;
    text-align: left;
    font-weight: 600 !important;
  }

  #cssmenu > ul > li:first-child {
    border-top: 0;
  }

  /* Ana menü linkleri */
  #cssmenu > ul > li > a {
    width: 100%;
    padding: 14px 52px 14px 16px !important;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #2f2f35;
    background: #f4f5f8;
    border-radius: 10px;
    white-space: normal;
    text-transform: uppercase;
    transition: all 0.22s ease;
  }

  #cssmenu > ul > li:hover > a,
  #cssmenu > ul > li.active > a {
    background: #554b7d;
    color: #ffffff;
  }

  #cssmenu > ul > li.active > a {
    box-shadow: inset 4px 0 0 rgba(255, 255, 255, 0.45);
  }

  /* Mobil alt menüler */
  #cssmenu ul ul,
  #cssmenu ul ul ul {
    position: relative;
    display: none;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    min-width: 100%;
    margin: 6px 0 0 0;
    padding: 6px;
    background: #f8f9fb;
    box-shadow: none;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: left;
  }

  /* Eski JS display:block yapıyorsa destek */
  #cssmenu ul ul[style*="display: block"],
  #cssmenu ul ul ul[style*="display: block"] {
    display: block !important;
  }

  #cssmenu ul ul li {
    text-align: left;
    text-indent: 0;
    margin: 2px 0;
    border-radius: 8px;
    overflow: hidden;
  }

  #cssmenu ul ul li a {
    width: 100%;
    padding: 11px 44px 11px 18px !important;
    font-size: 13px;
    line-height: 19px;
    font-weight: 600;
    color: #444852;
    background: transparent;
    border-radius: 8px;
    text-align: left;
    text-indent: 0;
    text-transform: none;
  }

  #cssmenu ul ul ul li a {
    padding-left: 30px !important;
    font-size: 12.5px;
    color: #555b66;
    text-align: left;
    text-indent: 0;
  }

  #cssmenu ul ul li:hover > a,
  #cssmenu ul ul li a:hover {
    background: #eef0f5;
    color: #554b7d;
  }

  #cssmenu > ul > li.has-sub > a::after,
  #cssmenu ul ul li.has-sub > a::after {
    display: none !important;
  }

  #menu-line {
    display: none;
  }

  /* Mobil alt menü artı butonu */
  #cssmenu .submenu-button {
    position: absolute;
    z-index: 20;
    right: 2px;
    top: 2px;
    display: block;
    width: 44px;
    height: 44px;
    border-left: 0;
    border-radius: 10px;
    background: rgba(85, 75, 125, 0.08);
    cursor: pointer;
    transition: all 0.22s ease;
  }

  #cssmenu .submenu-button:hover {
    background: rgba(85, 75, 125, 0.16);
  }

  #cssmenu .submenu-button::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 21px;
    display: block;
    width: 14px;
    height: 2px;
    background: #554b7d;
    border-radius: 2px;
    z-index: 99;
  }

  #cssmenu .submenu-button::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 15px;
    display: block;
    width: 2px;
    height: 14px;
    background: #554b7d;
    border-radius: 2px;
    z-index: 99;
  }

  #cssmenu .submenu-button.submenu-opened {
    background: #554b7d;
  }

  #cssmenu .submenu-button.submenu-opened::before {
    background: #ffffff;
  }

  #cssmenu .submenu-button.submenu-opened::after {
    display: none;
  }

  #cssmenu > ul > li:hover > .submenu-button::before,
  #cssmenu > ul > li:hover > .submenu-button::after {
    background: #554b7d;
  }

  #cssmenu > ul > li:hover > .submenu-button.submenu-opened::before {
    background: #ffffff;
  }
}

/* ===============================
   KÜÇÜK TELEFONLAR
================================ */

@media screen and (max-width: 480px) {

  /*
    Eski kodda burada .mainslider1 display:none idi.
    Bu slider'ı mobilde gizliyordu.
    Görünsün istiyorsan aşağıdaki gibi kalmalı.
  */
  .mainslider1 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .rlogo3 {
    min-height: 60px;
    padding: 8px 14px;
  }

  .rlogo {
    max-width: calc(100% - 56px);
  }

  .rlogo img {
    width: 145px;
    max-width: 100%;
    height: auto;
  }

  #cssmenu {
    max-width: none;
  }

  #cssmenu #menu-button {
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }

  #cssmenu #menu-button::after {
    top: 12px;
    right: 8px;
    width: 26px;
    height: 3px;
    box-shadow: 0 8px 0 #554b7d;
  }

  #cssmenu #menu-button::before {
    top: 28px;
    right: 8px;
    width: 26px;
    height: 3px;
  }

  #cssmenu.open #menu-button::after,
  #cssmenu #menu-button.menu-opened::after {
    box-shadow: 0 8px 0 #ffffff;
  }

  #cssmenu > ul {
    top: 54px;
    right: 10px;
    width: 292px;
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 74px);
    border-radius: 12px;
    padding: 7px;
  }

  #cssmenu > ul > li > a {
    padding: 13px 50px 13px 14px !important;
    font-size: 13px;
    line-height: 19px;
  }

  #cssmenu ul ul li a {
    padding: 10px 42px 10px 16px !important;
    font-size: 12.5px;
    text-align: left;
    text-indent: 0;
  }

  #cssmenu ul ul ul li a {
    padding-left: 30px !important;
    text-align: left;
    text-indent: 0;
  }

  #cssmenu .submenu-button {
    width: 40px;
    height: 40px;
  }

  #cssmenu .submenu-button::before {
    left: 13px;
    top: 19px;
    width: 14px;
  }

  #cssmenu .submenu-button::after {
    left: 19px;
    top: 13px;
    height: 14px;
  }
}

/* ===============================
   ÇOK KÜÇÜK EKRANLAR
================================ */

@media screen and (max-width: 360px) {

  .rlogo img {
    width: 132px;
  }

  #cssmenu > ul {
    width: 270px;
    right: 8px;
    max-width: calc(100vw - 16px);
  }

  #cssmenu > ul > li > a {
    font-size: 12px;
  }

  #cssmenu ul ul li a,
  #cssmenu ul ul ul li a {
    font-size: 12px;
    text-align: left;
    text-indent: 0;
  }
}

