/* Cengiz Erenoğlu, CE Mümessillik */
:root {
  --page-bg: #eaeaea;
  --box: #fff;
  --text: #34495e;
  --heading: #000;
  --blue: #2980b9;
  --footer-text: #ecf0f1;
  --box-width: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 23px;
  color: var(--text);
  background: var(--page-bg);
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 300;
  color: var(--heading);
  margin: 0 0 10px;
}
h2 { font-size: 35px; line-height: 1.1; }
h3 { font-size: 30px; line-height: 1.1; }
h4 { font-size: 20px; line-height: 1.3; }

p { margin: 10px 0; }

.box {
  max-width: var(--box-width);
  margin: 0 auto;
  background: var(--box);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header -------------------------------------------------------------------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  padding: 0 50px;
}
.logo img { display: block; width: 139px; height: 80px; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  display: block;
  padding: 0 22px;
  line-height: 90px;
  font-family: Oswald, "Arial Narrow", sans-serif;
  letter-spacing: 1px;
  color: var(--blue);
}
.nav a:hover { text-decoration: none; color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }

.nav .sub {
  display: none;
  position: absolute;
  top: 90px;
  left: 0;
  z-index: 10;
  min-width: 260px;
  padding: 8px 0;
  background: var(--box);
  border-top: 3px solid var(--blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.nav li:hover > .sub,
.nav li:focus-within > .sub { display: block; }
.nav .sub a { display: block; padding: 6px 20px; color: var(--text); }
.nav .sub a:hover { color: var(--blue); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--blue);
  color: var(--blue);
  font: inherit;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
}

/* Title banner -------------------------------------------------------------- */
.title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 174px;
  padding: 20px;
  background: #5aa9d6 url("/img/heading_bg.jpg") center / cover no-repeat;
}
.title h1 {
  margin: 0;
  color: #fff;
  font-size: 45px;
  line-height: 1.1;
  letter-spacing: 2px;
  text-align: center;
}

/* Content ------------------------------------------------------------------- */
.content {
  flex: 1;
  padding: 50px 40px 60px;
}
.content ol, .content ul { padding-left: 20px; }

.cols {
  display: grid;
  gap: 20px 30px;
  margin-bottom: 30px;
}
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

figure { margin: 0; }
figcaption { font-size: 13px; line-height: 1.5; margin-top: 6px; }

.center { text-align: center; }
.center img { display: block; margin: 0 auto; }

.float-left { float: left; margin: 0 20px 10px 0; }
.float-right { float: right; margin: 0 0 10px 20px; }
.clear { clear: both; }

.steamloc-lead { text-align: right; color: #000080; }

.post-meta { font-size: 13px; color: #7f8c8d; margin: 0 0 15px; }
.post + .post { margin-top: 40px; padding-top: 30px; border-top: 1px solid #e5e5e5; }
.post-lead { color: #3366ff; }

address { font-style: normal; }

/* Footer -------------------------------------------------------------------- */
.footer {
  background: var(--blue);
  color: var(--footer-text);
  text-align: center;
  padding: 20px;
  font-size: 13px;
}
.footer p { margin: 0; }

/* Small screens ------------------------------------------------------------- */
@media (max-width: 1000px) {
  .header { padding: 0 16px; }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    z-index: 20;
    background: var(--box);
    border-top: 3px solid var(--blue);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .12);
  }
  .header { position: relative; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; }
  .nav > ul > li > a { line-height: 1.4; padding: 12px 16px; }
  .nav .sub {
    display: block;
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 16px;
    min-width: 0;
  }
  .content { padding: 32px 16px 40px; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .title { min-height: 120px; }
  .title h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); }
  .float-left, .float-right { float: none; display: block; margin: 0 auto 16px; }
}
