/*
 * film.newstapa.org 공통 스타일.
 * 뉴스타파가 기존 화면을 보고 새로 작성했다. Bootstrap 4 위에 얹는다.
 */

/* ---------- 본문 바로가기: 기존 화면처럼 보이지 않게 둔다 ---------- */
.film-skippy {
  display: none;
}

/* ---------- 상단 헤더 ---------- */
.film-header {
  position: relative;
  top: 0;
  width: 100%;
  left: 0;
  right: 0;
  z-index: 101;
}
.film-header__section {
  z-index: 1;
  border-bottom: 1px solid #e3e6f0;
  background-color: #fff;
}
.film-header__navbar {
  z-index: 10;
  padding: 0;
}
.film-header__brand {
  width: 150px;
}
.film-header__brand-wrapper {
  flex-shrink: 0;
}
.film-header__nav-link {
  color: #5a5757;
}
.film-header__nav-link:hover,
.film-header__nav-link:focus {
  color: #168652;
}

/* 로고: 576px 미만은 작은 로고 하나, 그 이상은 기본·스크롤용 로고 */
.film-header__logo--mobile {
  display: inline-block;
}
.film-header__logo--default,
.film-header__logo--on-scroll {
  display: none;
}
@media (min-width: 576px) {
  .film-header__logo--mobile {
    display: none;
  }
  .film-header__logo--default {
    display: inline-block;
  }
  .film-header__logo--on-scroll {
    display: inline;
  }
}

/* 햄버거 버튼 (992px 미만에서만 보임) */
.film-hamburger,
.btn.film-hamburger {
  flex-shrink: 0;
  align-items: center;
  order: 1;
  padding: 2px;
  line-height: 0;
}
.film-hamburger__box {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 43.2px;
  line-height: 43.2px;
  text-align: center;
}

/* 992px 미만: 햄버거 | 가운데 로고 | 펼침 메뉴 */
@media (max-width: 991.98px) {
  .film-header__brand-wrapper {
    flex: 0 0 50%;
    order: 2;
    max-width: 50%;
    text-align: center;
  }
  .film-header__brand {
    margin-right: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  .film-hamburger {
    display: flex;
    flex: 0 0 25%;
    max-width: 25%;
  }
  .film-hamburger__box {
    display: block;
  }
  .film-header__collapse {
    order: 4;
  }
  .film-header__nav {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .film-header__nav-link {
    display: flex;
    align-items: center;
  }
  .film-header__nav-item-btn {
    padding-top: 16px;
    padding-bottom: 22px;
  }
}

/* 992px 이상: 히어로 위에 겹쳐 놓이는 한 줄 헤더 */
@media (min-width: 992px) {
  .film-header {
    position: absolute;
  }
  .film-header__brand-wrapper {
    order: 1;
  }
  .film-header__brand {
    margin-right: 22px;
    padding: 16px 16px 15px 0;
  }
  .film-header__collapse {
    order: 2;
  }
  .film-header__nav {
    align-items: center;
    margin-left: auto;
  }
  .film-header .film-header__nav .film-header__nav-link {
    padding: 22px 14px;
  }
  .film-header__nav-item-btn {
    padding-left: 16px;
  }
}

/* 스크롤 상태 (film.js 가 붙인다): 헤더 높이만큼 내리면 잠시 숨고, 100px 더 내리면 위에 고정돼 나타난다 */
.film-header.film-header--fixed {
  position: fixed;
}
.film-header.film-header--hidden {
  display: none;
}

/* ---------- 맨 위로 버튼 (film.js 가 400px 넘게 내리면 보인다) ---------- */
.film-go-to {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 100;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background-color: #e67f47;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease-out, transform 1s ease-out;
}
.film-go-to--visible {
  opacity: .5;
  transform: none;
}
.film-go-to--leaving {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .35s ease-in, transform .35s ease-in;
}
.film-go-to:hover,
.film-go-to:focus:hover {
  color: #fff;
  opacity: 1;
}
.film-go-to__inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ---------- 본문 공통 (기존 화면에서 잰 값) ---------- */
/* 히어로: 배경 사진을 꽉 채우고 위쪽에 어두운 그라데이션, 992px 이상은 화면 높이의 85% */
.film-hero {
  position: relative;
  z-index: 1;
  background-size: cover;
  background-repeat: no-repeat;
}
.film-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(21, 27, 38, .5) 100%);
  background-repeat: repeat-x;
}
@media (min-width: 992px) {
  .film-hero__body {
    height: 85vh;
  }
  .film-hero__content {
    margin-top: 56px;
  }
}

/* 섹션 위아래 여백: 기본 64px, --lg 변형은 992px 이상에서 128px */
.film-section {
  padding-top: 64px;
  padding-bottom: 64px;
}
@media (min-width: 992px) {
  .film-section--lg,
  .film-section--lg-top {
    padding-top: 128px;
  }
  .film-section--lg,
  .film-section--lg-bottom {
    padding-bottom: 128px;
  }
}
.film-bg-gray {
  background-color: #f5f8fb;
}

/* 본문 폭: 768px 이상 75%, 992px 이상 60% */
@media (min-width: 768px) {
  .film-narrow {
    width: 75%;
  }
}
@media (min-width: 992px) {
  .film-narrow {
    width: 60%;
  }
}
.film-w-60 {
  width: 60%;
}

/* 간격 */
.film-mt-56 {
  margin-top: 56px;
}
.film-mb-56 {
  margin-bottom: 56px;
}
.film-mb-64 {
  margin-bottom: 64px;
}
.film-pb-56 {
  padding-bottom: 56px;
}
@media (min-width: 768px) {
  .film-pr-md-56 {
    padding-right: 56px;
  }
}

/* ---------- 기본값 (theme.css 대신 공식 Bootstrap 4.1.3 위에서 기존 화면 값으로 맞춤) ---------- */
body {
  font-family: "Noto Sans KR", sans-serif;
  line-height: 1.7;
}
main {
  position: relative;
}
a {
  color: #bc6434;
}
a:hover {
  color: #168652;
  text-decoration: none;
}
:focus,
a:focus,
button:focus {
  outline: 0;
}
::selection {
  color: #fff;
  background-color: #bc6434;
}
p {
  color: #646f79;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 400;
  line-height: 1.5;
}
h6, .h6 {
  font-weight: 500;
}
h1 > a, h2 > a, h3 > a, h4 > a, h5 > a, h6 > a,
.h1 > a, .h2 > a, .h3 > a, .h4 > a, .h5 > a, .h6 > a {
  color: #151b26;
  font-weight: 400;
}
h1 > a:hover, h2 > a:hover, h3 > a:hover, h4 > a:hover, h5 > a:hover, h6 > a:hover,
.h1 > a:hover, .h2 > a:hover, .h3 > a:hover, .h4 > a:hover, .h5 > a:hover, .h6 > a:hover {
  color: #168652;
}
h1.text-white > a,
h1.text-white > a:hover {
  color: #fff;
}
.display-1 {
  font-weight: 400;
}
hr {
  border-top-color: #e3e6f0;
}

/* Bootstrap 4.1.3 값을 기존 화면에 맞춤 */
.m-5 { margin: 2rem !important; }
.mt-5, .my-5 { margin-top: 2rem !important; }
.mb-5, .my-5 { margin-bottom: 2rem !important; }
.ml-5, .mx-5 { margin-left: 2rem !important; }
.mr-5, .mx-5 { margin-right: 2rem !important; }
.p-5 { padding: 2rem !important; }
.pt-5, .py-5 { padding-top: 2rem !important; }
.pb-5, .py-5 { padding-bottom: 2rem !important; }
.pl-5, .px-5 { padding-left: 2rem !important; }
.pr-5, .px-5 { padding-right: 2rem !important; }
.text-dark { color: #151b26 !important; }
.text-secondary { color: #646f79 !important; }
.text-muted { color: #8c98a4 !important; }
.bg-dark { background-color: #151b26 !important; }
.card,
.table,
.table thead,
.table tbody,
.table tr,
.table td,
.table th,
.table-bordered {
  border-color: #e3e6f0;
}
.card-img-top {
  border-top-left-radius: .25rem;
  border-top-right-radius: .25rem;
}
.modal-footer {
  border-top-color: #e3e6f1;
}
.navbar-brand,
.navbar-toggler {
  font-size: 1rem;
}
.btn {
  padding: .75rem 1rem;
  line-height: 1.7;
  border-width: .1rem;
}
.btn:focus,
.btn.focus {
  box-shadow: none;
}
.btn-lg {
  padding: 1.125rem;
  font-size: 1rem;
}
.btn-primary {
  background-color: #e67f47;
  border-color: #e67f47;
}
.btn-primary:hover {
  background-color: #bc6434;
  border-color: #bc6434;
}
.btn-secondary {
  background-color: #646f79;
  border-color: #646f79;
}
.btn-secondary:hover {
  background-color: #535c64;
  border-color: #4d555d;
}
@media (min-width: 992px) {
  .navbar-expand-lg {
    flex-wrap: wrap;
  }
}

/* 그리드 열 비율: 기존 화면은 소수 다섯째 자리(33.33333%)까지라 공식(33.333333%)과 1/64px 어긋난다. 기존 값으로 맞춤 */
@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 33.33333%;
    max-width: 33.33333%;
  }
  .col-md-8 {
    flex: 0 0 66.66667%;
    max-width: 66.66667%;
  }
}
@media (min-width: 992px) {
  .col-lg-2 {
    flex: 0 0 16.66667%;
    max-width: 16.66667%;
  }
  .col-lg-4 {
    flex: 0 0 33.33333%;
    max-width: 33.33333%;
  }
  .col-lg-5 {
    flex: 0 0 41.66667%;
    max-width: 41.66667%;
  }
  .col-lg-8 {
    flex: 0 0 66.66667%;
    max-width: 66.66667%;
  }
  .offset-lg-2 {
    margin-left: 16.66667%;
  }
}

/* ---------- 뉴스타파가 theme.css 끝에 덧붙여 쓰던 규칙 (그대로 옮김) ---------- */
.section_b div.line {
		width: 100%;
		height: .119rem;
		margin-bottom: 20px;
	}
	.section_b p.title {
		font-size: 25px;
		font-weight: bold;
		color: #000;
	}
	.section_b p.desc {
		font-size: 14px;
	}

button.accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    cursor: hand;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1rem;
    transition: 0.4s;
    margin-top: 10px;
    line-height: 2rem;
}
button.accordion:after {
	content: "\f067";
	font-weight: 900;
	font-family: "Font Awesome 5 Free";
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	display: inline-block;
	font-style: normal;
	font-variant: normal;
	text-rendering: auto;
	line-height: 100%;
	margin-left: .3rem;
	font-size: 2rem;
	float: right;
	color: #717171;
}
button.accordion.active, button.accordion:hover {
    background-color: #ddd;
} 
button.accordion.active:after {
	content: "\f068";
	font-weight: 900;
	font-family: "Font Awesome 5 Free";
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	display: inline-block;
	font-style: normal;
	font-variant: normal;
	text-rendering: auto;
	line-height: 100%;
	margin-left: .3rem;
	font-size: 2rem;
	float: right;
	color: #717171;
}
button.accordion[data-redirect=Y]:after {
	content: "\f064";
	font-weight: 900;
	font-family: "Font Awesome 5 Free";
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	display: inline-block;
	font-style: normal;
	font-variant: normal;
	text-rendering: auto;
	line-height: 100%;
	margin-left: .3rem;
	font-size: 2rem;
	float: right;
	color: #717171;
}
.board_content_wrap {
	border-bottom: 1px solid #eeeeee;
	border-left: 1px solid #eeeeee;
	border-right: 1px solid #eeeeee;
	padding: 2rem;	
	background-color: #fff;	
}

@media screen and (max-width:640px) {
	button.accordion {
		padding: 12px;
		font-size: 16px;
	}
	button.accordion:after {
		line-height: 1.8rem;
		font-size: 1.2rem;		
	}
}

.slick-slide {
	padding: 5px;
}
