/* What every page of the site shares: layout, buttons, the search field and
   pagination, header, footer, page banners — and, at the end, their rules for
   phone width. A page's own rules are in pages/<page>.css, linked by that page. */

html { scroll-behavior: smooth; }

* {
    font-family: var(--primary-kr);
}

body {
    margin: 0;
    color: var(--black);
    line-height: 1.5em;
    font-size: 16px;
}

/* #### Common CSS #### */

/* Layout CSS */
.container {
    width: 100%;
    position: relative;
}

[class*=inner] {
    width: 1280px;
    margin: auto;
}

/* Button(viewmore) CSS */
.btn-viewmore {
    width: 180px;
    padding: 10px;
    border: 1px solid var(--deep-latte);
    border-radius: 30px;
    font-size: 20px;
    font-weight: 500;
    color: var(--deep-latte);
    background-color: var(--creamy-white);
    transition: 0.25s;
}

.btn-viewmore i {
    font-size: 16px;
    color: var(--latte);
    transform: translateY(-10%);
    padding-right: 10px;
    transition: 0.25s;
}

.btn-viewmore:hover {
    background: linear-gradient( 180deg, #A69880, #746448);
    color: white;
}

.btn-viewmore:hover i {
    color: white;
}

/* Button(page-nav) CSS */
.btn-page-nav {
    font-size: 20px;
    padding: 10px 15px;
    color: var(--deep-latte);
    border: none;
    font-weight: 500;
    background-color: var(--whitey-gray);
    margin: 0 5px;
    transition: 0.35s;
    border-radius: 5px;
    box-shadow: 1px 1px 5px rgba(128, 128, 128, 0.436);
}

.btn-page-nav:hover {
    background-color: var(--deep-latte);
    color: #fff;
}

.btn-page-nav:active {
    transform: scale(95%);
}

.btn-page-nav i {
    padding: 0 7px;
    font-size: 14px;
    transform: translateY(-10%);
}

/* Search field CSS */
.search-field {
    display: inline-block;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(128, 128, 128, 0.397);
    width: 370px;
    height: 55px;
    background-color: #fff;
}

.search-field input {
    border: none;
    font-size: 16px;
    color: var(--black);
    padding: 12px 20px;
    float: left;
    height: 100%;
    width: 77%;
}

.search-field:focus-within {
    outline: 1px solid var(--deep-latte);
    box-shadow: 0 0 10px rgba(165, 123, 5, 0.447);
}

.search-field input::placeholder {
    color: var(--silver);
}

.search-field input:focus::placeholder{
    opacity: 0;
}

.search-field button {
    width: 80px;
    height: 100%;
    border: none;
    background-color: var(--latte);
    float: right;
    transition: 0.35s;
}

.search-field button i {
    font-size: 24px;
    color: #fff;
    padding: 10px 0;
    transition: 0.35s;
}

.search-field button:hover {
    background-color: var(--deep-latte);
}

.search-field button:hover > i {
    color: var(--foam-latte);
}

/* Pagenation CSS */
.pagenation {
    display: flex;
    justify-content: center;
    margin: 70px auto 20px auto;
}

.pagebox {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 16px;
    border: 1px solid var(--deep-latte);
    margin-right: 5px;
    background-color: #fff;
    color: var(--deep-latte);
    transition: 0.25s;
}

.pagebox:hover {
    background-color: var(--foam-latte);
}

.pagebox:disabled {
    border: 1px solid var(--light-gray);
    color: var(--whitey-gray);
}

.pagebox.active {
    background-color: var(--deep-latte);
    color: #fff;
}

.pagebox:last-child {
    margin-right: 0;
}

/* The Animation code */
@keyframes floating-effect {
    0% {margin-top: 100px;
        opacity:0;}
    100% {margin-top: 0;
        opacity:1;}
}

@keyframes slide-from-right {
    from { right: -200px; opacity: 0;}
    to { right: 0; opacity: 1; }
}


/* #### Landing Page #### */

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: white;
    box-shadow:0 2px 10px rgba(128, 128, 128, 0.158);
    z-index: 100;
}

.top-banner{
    background-color: var(--foam-latte);
    margin: auto;
    display: flex;
    align-items: center;
}

.top-banner .lnb {
    width: 1280px;
    text-align: right;
    margin: auto;
    padding: 2px 0;
    font-size: 14px;
    font-family: var(--secondary-en);
    font-weight: 500;
    color: var(--dark-gray);
}

.top-banner .lnb span {
    padding: 0 7px;
    color: var(--silver);
}

.top-banner .lnb a:hover {
    color: var(--black);
}

nav {
    width: 1280px;
    height: 55px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jubilee-logo {
    text-align: left;
    flex: 1;
}

.jubilee-logo img{
    width: 100px;
    vertical-align: middle;
}

.gnb ul li {
    list-style: none;
}

.gnb {
    text-align: center;
    margin: 0 auto;
}

.gnb > ul {
    flex: 1;
    display: flex;
    justify-content: space-around;
    padding-inline-start: 0;
    text-align: center;
}

.gnb > ul > li {
    color: var(--black);
    background-color: #fff;
    font-weight: 600;
    font-size: 20px;
    padding: 15px 0;
    margin: 0 20px;
    position: relative;
    padding-inline-start: 0;
    transition: 0.35s;
}

.gnb > ul > li:hover {
    color: var(--red-wine);
}

.gnb > ul > li:before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--red-wine);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: 0.35s;
}

.gnb > ul > li:hover:before {
    width: 100%;
}

.gnb > ul > li > ul {
    width: 120px;
    height: auto;
    background-color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    box-shadow: 2px 2px 8px rgba(128, 128, 128, 0.368);
    position: absolute;
    top: 55px;
    padding-inline-start: 0;
    opacity: 0;
    transition: 0.4s;
}

.gnb > ul > li:hover > ul {
    opacity: 1;
}

.gnb > ul > li > ul > li {
    color: var(--black);
    padding: 6px 10px;
    transition: 0.2s;
}

.gnb > ul > li > ul > li:hover {
    color: white;
    background-color: var(--red-wine);
}

.gnb-mobile {
    display: none;
}

.gnb-mobile.active {
    display: none;
}

/* go-youtube button*/
.goyoutube {
    flex: 1;
    text-align: right;
    opacity: 1;
    visibility: visible;
    transition: 0.35s;
}

.goyoutube img {
    width: 70px;
}

.goyoutube a {
    vertical-align: middle;
}

.goyoutube p {
    font-size: 12px;
    font-family: var(--secondary-kr);
    font-weight: 600;
    color: var(--youtube-red);
    margin: 0;
    padding: 0;
    line-height: 1;
}

.goyoutube p span {
    color: var(--black);
}

/* trigger-layover */
.trigger-layover.active {
    background-color: #000000;
    z-index: 90;
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 60%;
    transition: 0.5s;
    display: none;
}

/* Section common */
.landing section {
    text-align: center;
}

section.floating {
    animation-name: floating-effect;
    animation-duration: 1.8s;
}

/* Sermon cards (home, sermon list) and the space around a 더보기 button */

.sermon-contents a.sermon-card {
    display: inline-block;
    width: 305px;
    height: auto;
    box-shadow: 1px 1px 5px rgba(128, 128, 128, 0.42);
    border-radius: 10px 0 10px 0;
    overflow: hidden;
    transition: 0.4s;
}

.sermon-contents a.sermon-card:hover {
    transform: translate(-1%, -3%);
    box-shadow: 5px 10px 10px rgba(128, 128, 128, 0.174);
}

a.sermon-card {
    text-align: left;
}

.card-desc {
    height: 120px;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-desc .card-badge span {
    font-size: 12px;
    display: inline-block;
    background-color: var(--red-wine);
    padding: 0 8px;
    color: white;
    border-radius: 3px;
}

.card-desc .card-badge em {
    font-style: normal;
    padding-left: 5px;
    font-size: 14px;
    font-weight: 500;
    color: var(--red-wine);
}

.card-desc h4 {
    margin: 0;
    width: 275px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.card-desc b {
    font-weight: 500;
    font-size: 16px;
    color: var(--deep-latte);
}

.btn-viewmore {
    margin: 50px auto;
}

/* Footer */
footer {
    background-color: var(--light-black);
    padding: 70px 0;
    height: auto;
}

.footer-contents {
    display: flex;
}

.church-logo {
    display: flex;
    flex: 1;
}

.church-logo img {
    width: 60px;
    height: 60px;
    margin-right: 12px;
}

.church-logo .church-name {
    color: white;
}

.church-logo .church-name h5 {
    font-family: var(--tertiary-kr);
    margin: 0;
}

.church-logo .church-name p {
    margin: 0;
    padding-top: 3px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    font-family: var(--primary-en);
    letter-spacing: 0.4px;
}

.church-info {
    flex: 1;
    color: var(--light-gray);
    font-family: var(--tertiary-kr);
    text-align: center;
    line-height: 1.7;
    letter-spacing: 0.3px;
}

.church-info hr {
    width: 40px;
    height: 2px;
    border: none;
    background-color: var(--dark-gray);
    color: var(--dark-gray);
    margin: 40px auto;
}

.church-youtube {
    flex: 1;
    text-align: right;
    color: white;
}

.church-youtube .youtube-name i {
    font-size: 24px;
    transform: translateY(5%);
    padding-right: 2px;
}

.church-youtube .youtube-name h3 {
    display: inline-block;
    font-family: 'Rum Raisin';
    margin: 0;
}

.goto-youtube h4 {
    margin: 0;
    padding-top: 5px;
    font-weight: normal;
    font-family: var(--tertiary-kr);
    line-height: 1.3;
}

.goto-youtube h4 i {
    padding-left: 7px;
    font-size: 26px;
    transform: translateY(20%);
    color: var(--foam-latte);
}

footer .copyright {
    text-align: center;
    color: var(--foam-latte);
    font-family: var(--tertiary-kr);
    margin: 0;
    font-weight: 300;
}

/* Go-to-top */
.goto-top {
    position: fixed;
    width: 50px;
    height: 50px;
    background: linear-gradient(180deg, #A69880, #746448);
    border-radius: 50%;
    right: 50px;
    bottom: -50px;
    opacity: 0;
    color: #fff;
    text-align: center;
    font-size: 24px;
    line-height: 50px;
    box-shadow: 2px 2px 5px rgba(106, 106, 106, 0.805);
    transition: 0.5s;
}

.goto-top.active{
    bottom: 40px;
    opacity: 1;
}


/* #### Introduction Pages #### */

/* Pages-common-styles */

.page-banner {
    width: 100%;
    height: 300px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.page-banner:after {
    content: '';
    position: absolute;
    width: inherit;
    height: inherit;
    top: 0;
    left: 0;
    background-color: var(--black);
    opacity: 65%;
}

.page-banner h1 {
    font-size: 40px;
    color: #fff;
    padding-top: 110px;
    text-align: center;
    z-index: 10;
}

section .page-contents {
    padding: 70px 0;
}

h1.sub-title {
    font-weight: 600;
    margin-bottom: 40px;
    line-height: 1.3;
}

/* Phone width */

@media(max-width:768px) {

  /* common */
  [class*=inner] {
    width: 100%;
    margin: 0;
    padding: 15px;
  }
  h1 {
    text-align: center;
  }

  /* button(page-nav) */
  .btn-page-nav span {
    display: none;
  }
  /* button-page-nav */
  .search-field {
    margin-bottom: 30px;
    width: 100%;
  }
  .search-field input {
    width: 75%;
  }

  /* pagenation */
  .pagenation {
    margin-top: 50px;
  }

  /* header */
  .top-banner {
    width: 100%;
    padding-left: 15px;
  }
  nav {
    width: 100%;    
    padding: 0 15px;
  }
  .gnb {
    display: none;
  }
  .gnb-mobile {
    display: block;
  }
  .gnb-mobile.active {
    display: block;
  }
  .goyoutube.active {
    opacity: 0;
    visibility: hidden;
  }
  .goyoutube a {
    margin-right: 60px;
  }
  .goyoutube img {
    width: 90px;
    transform: translateY(15%);
  }
  .goyoutube p {
    display: none;
  }

  /* gnb-mobile */
  .gnb-mobile {
    display: none;
  }

  .gnb-mobile ul li {
    list-style: none;
  }
  .gnb-mobile > ul  {
    background-color: #ffffff;
    position: absolute;
    padding-inline-start: 0;
    padding: 55px 0 0 0;
    height: 100vh;
    top: 13px;
    right: 0;
    width: 200px;
    box-shadow: -3px 3px 10px rgba(128, 128, 128, 0.295);
    z-index: 100;
  }
  .gnb-mobile > ul > li {
    color: var(--black);
    background-color: #fff;
    font-weight: 600;
    font-size: 20px;
    padding: 15px 20px;
    border: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .gnb-mobile ul li i {
    font-size: 12px;
    text-align: right;
    right: 20px;
    color: var(--latte);
    transform: translateY(10%);
  }
  .gnb-mobile ul li i.active {
    transform: rotate(180deg);
  }
  .gnb-mobile ul .sub-menu {
    color: var(--deep-latte);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    padding-inline-start: 0;
    background-color: var(--whitey-gray);
    padding: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
  }
  .gnb-mobile ul .sub-menu.active {
    max-height: 500px;
    opacity: 1;
  }
  .gnb-mobile ul .sub-menu a {
    display: block;
    padding: 6px 20px;
  }

  /* trigger */
  .trigger{
    display: block;
    width: 25px;
    height: 16px;
    position: absolute;
    top: 50px;
    right: 15px;    
    z-index: 101;
  }
  .trigger span{
    background-color: var(--black);
    width: 100%;
    height: 2px;
    position: absolute;
    transition: 0.3s;
  }
  .trigger span:nth-child(1){
    top: 0;
  }
  .trigger span:nth-child(2){
    top: 50%;
  }
  .trigger span:nth-child(3){
    top: 100%;
  }
  .trigger.active span:nth-child(1){
    top: 50%;
    transform: rotate(45deg);
  }
  .trigger.active span:nth-child(2){
    opacity: 0;
  }
  .trigger.active span:nth-child(3){   
    top: 50%;
    transform: rotate(-45deg);
  }
  .trigger.active span{
    background-color: #333;
  }
  /* trigger-layover */
  .trigger-layover.active {
   display: block;
  }
  
  /* Section_common */
  section {
    text-align: center; 
  }
  
  section.floating {
    animation-name: none;
  }

  /* Footer */
  footer {
    padding: 40px 0 ;
  }
  .footer-contents {
    flex-direction: column;
    align-items: center;
  }
  .church-info {
    margin-top: 60px;
    letter-spacing: normal;
  }
  .church-youtube {
    margin-bottom: 60px;
  }

  /* Go-to-top */
  .goto-top {
    display: none;
  }

  /*#### Introduction-Pages #### */
  /* Pages-common-styles */
  .page-banner {
    height: 240px;
  }
  .page-banner h1 {
    font-size: 32px;
  }
  section .page-contents {
    padding: 40px 0;
  }
  h1.sub-title {
    margin-bottom: 20px;
    font-size: 28px;
  }

}
