﻿* {box-sizing: border-box;}
:root {
  --dark: #0a3b85;
  --dark-gray: #ccc;
  --light: #e2e2e2;
  --light-gray: #f5f5f5;
  --shadow: 0 1px 5px rgba(104, 104, 104, 0.8);
  --dark-red: #890000;
}

body{padding:0 0 56px 0;margin:0;overflow-x:hidden;}
.wrapper{margin:0 auto;font:1em Montserrat, arial, sans-serif;}
.wrapper > * {min-width:0;}

.main-head {
  grid-area:header;
  font-size:1em;
  background:linear-gradient(180deg,#8ed8ff 0%, #3f8ee0 26%, #1a5eb4 56%, #0a3a86 100%);
  margin:0 -12px;
  padding:0 12px;
  border-radius:0;
  box-shadow:none;
}
.content {grid-area:content;display:flex;flex-direction:column;padding:0 20px;}
.main-nav {grid-area:nav;display:flex;flex-direction:column;}
.side {grid-area:sidebar;}
.ad {grid-area:ad;text-align:center;margin-top:20px;display:none !important;}
.ad-box {display:none !important;}
.main-footer {
  grid-area:footer;
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:999;
  background:#171717;
  border-top:1px solid #2f2f2f;
}
.full-content{grid-area:full;}
.head-top{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  gap:0;
  padding:6px 16px;
  background:linear-gradient(180deg,#8ed8ff 0%, #3f8ee0 26%, #1a5eb4 56%, #0a3a86 100%);
  border:0;
}
.tenant-main-head{
  box-shadow:0 10px 28px rgba(10,59,133,.18);
  background:linear-gradient(90deg,#7fd2ff 0%, #1c64b8 24%, #114d9f 50%, #1c64b8 74%, #7fd2ff 100%);
}
.tenant-site-body .head-top{
  display:grid;
  grid-template-columns:minmax(640px,1.4fr) auto;
  align-items:center;
  gap:24px;
  padding:8px 26px;
  background:linear-gradient(90deg,#8ad7ff 0%, #1f6ccb 26%, #0f4eaa 50%, #1f6ccb 74%, #8ad7ff 100%);
}
.tenant-brand{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:0;
  text-decoration:none;
  max-width:100%;
}
.tenant-brand-logo{
  display:block;
  height:58px;
  width:auto;
  flex:0 0 auto;
}
.tenant-brand-text{
  display:block;
  min-width:0;
  color:#0f2b61;
  font-size:32px;
  font-weight:800;
  line-height:1.1;
  letter-spacing:.3px;
  overflow-wrap:anywhere;
}
.head-logo{
  display:flex;
  align-items:center;
  gap:0;
  padding:0 12px 0 0;
  margin-right:8px;
  border-radius:0;
  background:transparent;
  border:0;
  box-shadow:none;
  text-decoration:none;
}
.head-logo img{
  display:block;
  height:74px;
  width:auto;
  max-width:100%;
}
.head-time{
  font-size:16px;
  font-weight:700;
  color:#fff;
  white-space:nowrap;
  background:transparent;
  padding:0;
  border-radius:0;
  border:0;
  line-height:42px;
  margin-left:auto;
}
.second-nav-inline{
  flex:1;
  display:flex;
  justify-content:flex-start;
  align-items:center;
  gap:28px;
  overflow-x:auto;
  white-space:nowrap;
  background:transparent;
  border:0;
  border-radius:0;
  min-height:42px;
  padding:0;
}
.tenant-site-body .second-nav-inline{
  flex:0 1 auto;
  justify-content:flex-end;
  gap:24px;
  overflow:visible;
  white-space:nowrap;
  scrollbar-width:none;
  min-height:76px;
}
.tenant-site-body .second-nav-inline::-webkit-scrollbar{display:none;}
.second-nav-inline a{
  flex:0 0 auto;
  color:#f2f8ff;
  text-decoration:none;
  padding:0;
  line-height:42px;
  font-weight:800;
  transition:all .22s ease;
}
.second-nav-inline a:hover{
  color:#ffffff;
  text-shadow:0 0 8px rgba(255,255,255,.38);
}
.mobile-menu-toggle{
  display:none;
  border:1px solid rgba(255,255,255,.65);
  color:#fff;
  background:rgba(255,255,255,.12);
  border-radius:6px;
  padding:6px 10px;
  font-size:14px;
}
.tenant-site-body .mobile-menu-toggle{
  margin-left:0;
}
.mobile-menu-close{
  display:none;
}
.mobile-menu-backdrop{
  display:none;
}
body.menu-lock{
  overflow:hidden;
}
.g-title{display:block;}

.wrapper {
  width:100%;
  max-width:1600px;
  padding:0 12px;
  display:grid;
  grid-gap:20px;
  grid-template-areas:
    "header"
    "full"
    "nav"
    "content"
    "sidebar"
    "ad"
    "footer";
}

.snc{
  width:100vw;
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
  background-color:var(--dark);
}

.second-nav{
  display:flex;
  justify-content:space-between;
  max-width:1200px;
  margin:0 auto;
  padding:8px 12px;
  text-align:center;
}
.second-nav >a{
  color:#fff;
  text-decoration:none;
  padding:4px 0;
  transition:color .25s;
}
.second-nav >a:hover{color:var(--light);}
.second-nav.second-nav-inline{
  flex:1;
  max-width:none;
  margin:0;
  padding:0;
  justify-content:flex-start;
  gap:28px;
}
.second-nav.second-nav-inline > a{
  color:#f2f8ff;
  text-decoration:none;
  padding:0;
  line-height:44px;
  font-weight:800;
  transition:all .22s ease;
}
.second-nav.second-nav-inline > a:hover{
  color:#ffffff;
  text-shadow:0 0 8px rgba(255,255,255,.38);
}

.main-agenda-news{
  display:grid;
  grid-gap:20px;
  padding:20px 0;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
}
.mini-pic-tit-sub{display:flex;flex-direction:column;padding:12px;border:1px solid #e2e2e2;background:#fff;}
.mini-pic-tit-sub img{width:100%;}
.mini-pic-tit-sub h1{font-size:1em;padding:10px 0;margin:0}
.mini-pic-tit-sub h2{font-size:0.8em;font-weight:lighter;padding:5px 0;margin:0;line-height:1.4em;}

.main-list-news{display:flex;flex-direction:column;padding:20px 0;}
.list-news{display:grid;grid-gap:10px;grid-template-columns:1fr;padding:10px;border-bottom:1px solid #e2e2e2;align-items:center;}
.list-news:last-child{border:none;}

.full-pic-tit-sub img{width:100%;}
.full-pic-tit-sub h1{font-size:1.1em;margin:0;padding:4px 0;}
.full-pic-tit-sub h2{font-size:0.85em;margin:0;padding:4px 0;}
.full-pic-tit-sub h3{font-size:0.8em;font-weight:400;margin:0;}
.full-pic-crop{max-height:90px;overflow:hidden;}
.full-pic-tit-sub a{color:var(--dark);text-decoration:none;}

.section-title{letter-spacing:1px;text-decoration:none;text-align:center;font-size:0.9em;padding:7px;display:block;width:100%;font-weight:bold;background-color:var(--light-gray);color:var(--dark);}
span.news-date{font-size:0.68em;font-style:italic;padding:5px 0;}
.mini-pic-crop{max-height:160px;overflow:hidden;}
.g-title{color:var(--dark);text-decoration:none;line-height:1.3em;}

/* CATEGORY / SIDE LIST STYLE FOR INNER PAGES */
.side-categories{
  min-width:0;
}
.side-categories ul{
  list-style:none;
  margin:0;
  padding:0;
  background:#fff;
  border:1px solid #e9e9e9;
  border-top:0;
  display:block !important;
}
.side-categories li{
  list-style:none;
  display:block;
  border-bottom:1px solid #ececec;
}
.side-categories li:last-child{
  border-bottom:0;
}
.side-categories a{
  display:block;
  padding:10px;
  color:#111;
  text-decoration:none;
}
.side-categories a.menu-aktif-kategori{
  font-weight:700;
  background:#f5f5f5;
}
.side-categories.authors ul{
  border-top:1px solid #e9e9e9;
}
.side-categories.authors a{
  line-height:1.3;
}
.side-categories.authors a b{
  display:block;
  margin-bottom:2px;
}
.side-categories.authors a p{
  margin:0;
  font-size:13px;
  color:#444;
  overflow-wrap:anywhere;
}
.main-daily-articles .full-pic-crop{
  max-height:none;
  overflow:hidden;
  border-radius:4px;
  background:#f3f3f3;
}
.main-daily-articles .full-pic-crop img{
  width:100%;
  height:108px;
  object-fit:contain;
  background:#f3f3f3;
}
.popular-news .full-pic-crop{
  max-height:none;
  overflow:hidden;
  border-radius:4px;
  background:#f3f3f3;
}
.popular-news .full-pic-crop img{
  width:100%;
  height:92px;
  object-fit:contain;
  background:#f3f3f3;
}

.yazar-kunye{
  display:flex;
  align-items:center;
  gap:12px;
}
.yazar-kunye img{
  width:88px;
  height:88px;
  object-fit:cover;
  border-radius:6px;
  border:1px solid #ddd;
}

/* DETAIL PAGES: keep article media inside content column */
.article-details{max-width:100%;overflow:hidden;}
.article-details > img{
  display:block;
  max-width:100%;
  width:auto;
  height:auto;
  margin:10px auto;
}
.article-text img{
  display:block;
  max-width:100% !important;
  max-height:520px;
  width:auto !important;
  height:auto !important;
  margin:10px auto;
}
.article-text iframe,
.article-text video{
  max-width:100% !important;
}

/* SERI ILANLAR */
.seri-page{padding:6px 0 20px;}
.seri-wrap{
  max-width:1200px;
  margin:0 auto;
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:10px;
  padding:18px;
}
.seri-title{
  margin:0 0 6px;
  font-size:34px;
  line-height:1.15;
}
.seri-subtitle{
  margin:0 0 14px;
  color:#444;
}
.seri-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.seri-card{
  border:1px solid #e8e8e8;
  border-radius:8px;
  padding:14px;
  background:#fafafa;
}
.seri-card h3{
  margin:0 0 8px;
  font-size:20px;
}
.seri-card p{
  margin:0 0 10px;
  color:#333;
  line-height:1.55;
}
.seri-tag{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  background:#222;
  color:#fff;
  font-size:12px;
}
.seri-note{
  margin-top:14px;
  padding:10px 12px;
  border:1px dashed #bbb;
  border-radius:8px;
  background:#f7f7f7;
}
.ilan-wrap{max-width:1280px;}
.ilan-head{margin:0 0 14px;font-size:28px;line-height:1.2;}
.ilan-article p{line-height:1.65;margin:10px 0;}
.ilan-article h3{margin:18px 0 8px;font-size:22px;}
.ilan-article ul{margin:8px 0 10px 18px;padding:0;}
.ilan-article li{margin:6px 0;line-height:1.55;}
.ilan-form-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:10px;
}
.ilan-col{display:flex;flex-direction:column;gap:6px;}
.ilan-col-full{grid-column:1 / -1;}
.ilan-col input,.ilan-col select,.ilan-col textarea{
  width:100%;
  border:1px solid #ccc;
  border-radius:6px;
  padding:10px;
  font:inherit;
  background:#fff;
}
.ilan-col textarea{resize:vertical;}
.ilan-actions{display:flex;align-items:center;gap:10px;margin-top:12px;}
.ilan-btn{
  border:1px solid #111;
  border-radius:8px;
  background:#111;
  color:#fff;
  padding:10px 14px;
  font-weight:700;
  cursor:pointer;
}
.ok-msg{color:#14532d;font-weight:700;}
.err-msg{color:#9f1239;font-weight:700;}

/* HOME PAGE RESET + 8 COLUMN LAYOUT */
.home-page .wrapper{
  display:block;
  max-width:100%;
  padding:0;
}
.home-page .main-head{font-size:1em;}
.home-page .snc{display:none;}
.home-page .footer-contact{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:14px;
  color:#f2f2f2;
}
.yerel-page-body .wrapper{
  display:block;
  max-width:100%;
  padding:0;
}
.yerel-page-body .content{
  padding:10px 20px 20px;
}
.yerel-page-body .snc{display:none;}

.ftc{
  max-width:1600px;
  margin:0 auto;
  padding:10px 14px;
}
.footer-contact{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  color:#f2f2f2;
  font-size:14px;
}
.footer-contact a{
  color:#f2f2f2;
  text-decoration:none;
}
.footer-contact a:hover{
  text-decoration:underline;
}

.home-eight{
  display:grid;
  grid-template-columns:repeat(8, minmax(0,1fr));
  gap:18px;
  padding:10px 20px 20px;
}
.home-sliders{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:repeat(8, minmax(0,1fr));
  gap:18px;
}
.home-sliders .slider-block{min-width:0;}
.home-sliders .slider-block:nth-child(1){grid-column:1 / span 3;}
.home-sliders .slider-block:nth-child(2){grid-column:4 / span 2;}
.home-sliders .slider-block:nth-child(3){grid-column:6 / span 3;}
.home-sliders .slider-block:nth-child(3) .slider-title{
  background:linear-gradient(90deg,#0f4ea0 0%, #1f6fcb 52%, #e11d2a 100%);
  color:#fff;
  border:1px solid rgba(12,47,104,.25);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28);
}
.home-sliders .slider-block:nth-child(3) .slider-title .slide-link{
  color:#fff;
  text-shadow:0 1px 0 rgba(0,0,0,.32);
}

.home-categories{grid-column:1 / span 1;min-width:0;}
.home-categories ul{list-style:none;margin:0;padding:0;background:#fff;border:1px solid #e9e9e9;border-top:0;}
.home-categories li{border-bottom:1px solid #ececec;}
.home-categories li:last-child{border-bottom:0;}
.home-categories a{display:block;padding:10px;color:#111;text-decoration:none;}

.home-cards-wrap{grid-column:2 / span 6;min-width:0;}
.home-cards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.home-cards-loader{display:none;padding:14px;text-align:center;color:#444;}

.home-authors-col{grid-column:8 / span 1;min-width:0;}
.home-authors-col .list-news{grid-template-columns:1fr;gap:8px;padding:8px 0;}
.home-authors-col .full-pic-crop{max-height:none;overflow:visible;}
.home-authors-col .full-pic-crop img{height:auto;object-fit:contain;}

/* YEREL HABERLER SAYFASI */
.yerel-page{padding:10px 0 18px;}
.yerel-layout{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:16px;
}
.yerel-page-body .main-head{
  position:sticky;
  top:0;
  z-index:1200;
}
.yerel-accordion{
  position:sticky;
  top:78px;
  align-self:start;
  max-height:calc(100vh - 96px);
  overflow:auto;
}
.yerel-accordion-list{
  background:#fff;
  border:1px solid #e9e9e9;
  border-top:0;
}
.yerel-il-item{
  border-bottom:1px solid #ececec;
}
.yerel-il-item:last-child{border-bottom:0;}
.yerel-il-item summary{
  cursor:pointer;
  list-style:none;
  padding:10px 12px;
  font-weight:700;
}
.yerel-il-item summary::-webkit-details-marker{display:none;}
.yerel-ilce-box{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0 12px 12px;
}
.yerel-ilce-btn{
  border:1px solid #ccc;
  border-radius:999px;
  background:#fff;
  padding:6px 10px;
  cursor:pointer;
}
.yerel-ilce-btn.active{
  background:#111;
  border-color:#111;
  color:#fff;
}
.yerel-main{
  background:#fff;
  border:1px solid #e9e9e9;
  padding:12px;
}
.yerel-title{margin:0 0 6px;font-size:30px;line-height:1.15;}
.yerel-sub{margin:0 0 14px;color:#444;}
.yerel-news-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.yerel-empty{
  grid-column:1 / -1;
  border:1px dashed #cfcfcf;
  border-radius:8px;
  padding:16px;
  background:#fafafa;
  color:#444;
}

@media (max-width: 1200px){
  .tenant-site-body .head-top{
    grid-template-columns:minmax(440px,1fr) auto;
  }
  .tenant-site-body .second-nav-inline{
    gap:14px;
  }
  .tenant-brand-mark{
    width:auto;
  }
  .tenant-brand-text{font-size:28px;}
  .second-nav-inline{gap:16px;}
  .home-eight{grid-template-columns:repeat(4,minmax(0,1fr));}
  .home-sliders{grid-template-columns:1fr;}
  .home-sliders .slider-block:nth-child(1),
  .home-sliders .slider-block:nth-child(2),
  .home-sliders .slider-block:nth-child(3){grid-column:1 / -1;}
  .home-categories{grid-column:1 / span 1;}
  .home-cards-wrap{grid-column:2 / span 3;}
  .home-authors-col{grid-column:1 / -1;}
  .yerel-layout{grid-template-columns:1fr;}
  .yerel-accordion{position:static;max-height:none;overflow:visible;}
  .yerel-news-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media (max-width: 700px){
  .tenant-site-body .head-top{
    grid-template-columns:1fr auto;
    grid-template-areas:"brand menu";
    align-items:center;
    justify-items:stretch;
    gap:8px 10px;
    padding:10px 12px 12px;
  }
  .tenant-brand{
    grid-area:brand;
    width:100%;
    max-width:100%;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    align-items:flex-start;
    gap:6px;
  }
  .tenant-brand-logo{
    height:38px;
    max-width:100%;
  }
  .tenant-brand-text{
    display:block;
    width:100%;
    max-width:100%;
    font-size:clamp(18px, 5vw, 22px);
    text-align:left;
    line-height:1.12;
    letter-spacing:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    margin-top:0;
  }
  .tenant-site-body .mobile-menu-toggle{
    grid-area:menu;
    justify-self:end;
    align-self:center;
    margin-left:0;
  }
  .head-top{padding:8px 12px;}
  .head-logo{
    padding:0 10px 0 0;
    margin-right:0;
    border-right:0;
    gap:0;
  }
  .head-logo img{height:44px;}
  .head-time{font-size:14px;line-height:38px;}
  .second-nav-inline{font-size:14px;min-height:40px;}
  .home-eight{grid-template-columns:1fr;padding:10px 12px 16px;}
  .home-categories,.home-cards-wrap,.home-authors-col{grid-column:auto;}
  .home-cards-grid{grid-template-columns:1fr;}
  .yerel-news-grid{grid-template-columns:1fr;}
  .seri-wrap{padding:12px;}
  .seri-title{font-size:28px;}
  .seri-grid{grid-template-columns:1fr;}
  .ilan-form-grid{grid-template-columns:1fr;}
  .ilan-head{font-size:24px;}

  /* Kose sayfalarinda mobilde icerik en ustte acilsin */
  .kose-page .wrapper{
    grid-template-areas:
      "header"
      "full"
      "content"
      "nav"
      "sidebar"
      "ad"
      "footer";
  }
  .kose-page .content{
    padding-top:0;
  }
}

@media (max-width: 520px){
  .tenant-site-body .head-top{
    padding:10px 10px 12px;
  }
  .tenant-brand{
    align-items:flex-start;
  }
  .tenant-brand-logo{
    height:34px;
    max-width:100%;
  }
  .tenant-brand-text{
    font-size:clamp(16px, 4.8vw, 19px);
    line-height:1.08;
    max-width:100%;
  }
}

@media (max-width: 900px){
  .tenant-site-body .head-top{
    grid-template-columns:1fr auto;
    justify-items:stretch;
  }
  .tenant-site-body .tenant-brand{
    grid-column:1 / span 1;
    justify-self:start;
    min-width:0;
  }
  .tenant-site-body .head-time{
    grid-column:auto;
    margin-left:auto;
  }
  .tenant-site-body .mobile-menu-toggle{
    justify-self:end;
    margin-left:auto;
  }
  .head-top{
    flex-wrap:wrap;
    gap:10px;
  }
  .mobile-menu-toggle{
    display:inline-block;
    margin-left:auto;
  }
  .head-time{
    order:2;
    margin-left:0;
    width:auto;
    text-align:right;
    font-size:13px;
    border-left:0;
    padding-left:0;
    line-height:normal;
  }
  .second-nav-inline{
    display:flex;
    position:fixed;
    top:0;
    right:-90vw;
    width:86vw;
    max-width:360px;
    height:100vh;
    z-index:2100;
    flex-direction:column;
    justify-content:flex-start;
    align-items:flex-start;
    gap:0;
    padding:14px 16px 24px;
    background:#df1018;
    border-left:1px solid rgba(255,255,255,.28);
    overflow-y:auto;
    white-space:normal;
    transition:right .25s ease;
  }
  .main-head.menu-open .second-nav-inline{
    right:0;
  }
  .tenant-site-body .second-nav-inline{
    justify-content:flex-start;
    white-space:normal;
    min-height:auto;
  }
  .second-nav-inline a{
    width:100%;
    padding:12px 10px;
    border-bottom:1px solid rgba(255,255,255,.2);
    font-size:16px;
    border-right:0;
    line-height:normal;
  }
  .mobile-menu-close{
    display:block;
    align-self:flex-end;
    border:1px solid rgba(255,255,255,.55);
    border-radius:6px;
    background:rgba(255,255,255,.12);
    color:#fff;
    padding:6px 10px;
    margin-bottom:8px;
    font-size:13px;
  }
  .mobile-menu-backdrop{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    z-index:2050;
    display:none;
  }
  .main-head.menu-open + .mobile-menu-backdrop{
    display:block;
  }
}

.tenant-ready-shell.full-content{
  grid-area:full;
  width:100%;
}

/* LEGACY LAYOUT FOR OTHER PAGES */
@media (min-width: 500px) {
  .wrapper {
    grid-template-columns:220px minmax(0, 1fr);
    grid-template-areas:
      "header  header"
      "full    full"
      "nav     nav"
      "sidebar content"
      "ad ad"
      "footer footer";
  }
  nav ul {display:flex;justify-content:space-between;}
}

@media (min-width: 700px) {
  .wrapper {
    grid-template-columns:220px minmax(0, 1fr) 280px;
    grid-template-areas:
      "header header  header"
      "full   full    full"
      "nav    content sidebar"
      "nav    content ad"
      "footer footer  footer";
  }
  nav ul {flex-direction:column;display:flex;justify-content:space-between;}
  .fmenu{display:none;}
  .list-news{grid-template-columns:1fr 3fr;}
  .full-pic-tit-sub h1{font-size:1.5em;}
}

/* FORCE FULL-WIDTH LAYOUT FOR YEREL PAGE (override legacy grid rules above) */
.yerel-page-body .wrapper{
  display:block !important;
  max-width:100% !important;
  padding:0 !important;
}
.yerel-page-body .wrapper > *{
  width:100%;
}
.yerel-page-body .content{
  width:100%;
  padding:10px 20px 20px !important;
}
.yerel-page-body .yerel-layout{
  width:100%;
  grid-template-columns:420px minmax(0,1fr);
}
.yerel-page-body .yerel-main{
  min-width:0;
}

/* FORCE FULL-WIDTH LAYOUT FOR HABERLERDEN HABERLER */
.hhaber-page .wrapper{
  display:block !important;
  max-width:100% !important;
  padding:0 !important;
}
.hhaber-page .wrapper > *{
  width:100%;
}
