/*
Theme Name: Day & Night Dubai
Theme URI: https://terracore.tech
Author: Terra Core Technologies
Author URI: https://terracore.tech
Description: A custom theme for Day&Night Dubai Blog.
Version: 1.0
License: GNU General Public License v2 or later
Tags: blog
Text Domain: dn-dubai
*/


@font-face {
  font-family: "CeraPro";
  src: url("./assets/fonts/cerapro-regular-webfont.woff2") format("opentype");
  font-weight: 400;
}

@font-face {
  font-family: "CeraPro";
  src: url("./assets/fonts/cerapro-medium-webfont.woff2") format("opentype");
  font-weight: 500;
}

@font-face {
  font-family: "PP Woodland";
  src: url("./assets/fonts/PPWoodland-Regular.woff2") format("opentype");
  font-weight: 400;
}


:root {
  --backgroundColor: #F5EFEA;
  --primaryColor: #363131;
  --secondaryColor: #2C2727;
  --secondaryDarkColor: #272121;
  --textColor: #473A3A;
  --whiteColor: #fff;
  --breacrumbColor: #756868;
  --borderColor: #DBD1C8;
  --tocColor: #5B5353;
  --footerTextColor: #c2c2c2;
  --footerDividerColor: #999999;
  --copyrightColor: #575656;
  --primaryBlueColor: #597299;
  --mobileNavBorder: #504242;
}

* {
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  position: relative;
  background: var(--backgroundColor);
}

.bg-pattern {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: -1;
  width: 100%;
  background: linear-gradient(0deg, var(--backgroundColor) 30%, transparent 50%), url(./assets/images/pattern.svg);
  background-repeat: repeat-x;
  max-height: 350px;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* Helper Classes */

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-1 {
  flex: 1;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.px-20 {
  padding-left: 20px;
  padding-right: 20px;
}

.px-35 {
  padding-left: 35px;
  padding-right: 35px;
}

.py-40 {
  padding-top: 40px;
  padding-bottom: 40px;
}

.boxed-content {
  max-width: 1440px;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
}

.white-bg {
  background: var(--whiteColor);
}

.text-font {
  font-family: 'CeraPro';
}

.title-font {
  font-family: 'PP Woodland';
}

.no-decoration {
  text-decoration: none;
}

.font-regular {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.fs-12 {
  font-size: 12px;
}

.fs-13 {
  font-size: 13px;
}

.fs-14 {
  font-size: 14px;
}

.fs-15 {
  font-size: 15px;
}

.fs-17 {
  font-size: 17px;
}

.fs-22 {
  font-size: 22px;
}

.fs-32 {
  font-size: 32px;
}

.fs-42 {
  font-size: 42px;
}

.text-color {
  color: var(--primaryColor);
}

.text-white {
  color: var(--whiteColor);
}

.text-center {
  text-align: center;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.py-20 {
  padding-top: 20px;
  padding-bottom: 20px;
}

.pt-20 {
  padding-top: 20px;
}

.pl-30 {
  padding-left: 30px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.ml-30 {
  margin-left: 30px;
}

.ml-8 {
  margin-left: 8px;
}

.mt-0 {
  margin-top: 0px;
}

.mt-15 {
  margin-top: 15px;
}

.mt-52 {
  margin-top: 52px;
}

.mr-4 {
  margin-right: 4px;
}

.mb-5 {
  margin-bottom: 5px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-28 {
  margin-bottom: 28px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mb-50 {
  margin-bottom: 50px;
}

/* Shared */

.load-more-wrapper {
  text-align: center;
  margin-top: 65px;
}

#load-more {
  border-radius: 100px;
  font-size: 15px;
  font-family: 'CeraPro', sans-serif;
  padding: 0px 30px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  background: var(--textColor);
  color: #fff;
  border: none;
  gap: 8px;
}

#load-more:hover {
  cursor: pointer;
  opacity: 0.8;
}

.read-more img {
  transition: all linear .3s;
}

.read-more:hover img {
  transform: translateX(5px);
}

/* Header */

header .boxed-content {
  display: flex;
  align-items: center;

}

/* Header Nav */


.desk-nav .sub-menu {
  display: none;
}

.desk-nav .menu-item-has-children > a::after {
  content: url(./assets/images/chevron-down.svg);
  font-size: 0.6em;
  margin-left: 0.5em;
  transition: transform linear .3s;
  display: inline-flex;
}

.desk-nav .menu-item-has-children > a {
  color: var(--primaryColor);
  font-size: 17px;
  position: relative;
}

.desk-nav .sub-menu {
  position: absolute;
  background: var(--whiteColor);
  padding: 10px;
  border-radius: 6px;
  margin-top: 10px;
  max-height: 200px;
  overflow: auto;
}

.desk-nav .sub-menu li {
  padding: 5px 0px;
}

.desk-nav .sub-menu li a {
  font-family: 'CeraPro', sans-serif;
  color: var(--textColor);
  font-size: 15px;
  font-weight: 400;
}


.desk-nav #menu-header, #menu-header ul {
  list-style: none;
  font-family: 'CeraPro';
  font-weight: 500;
}

.desk-nav #menu-header a {
  text-decoration: none;
}

.desk-nav #menu-header a.rotate::after{
  transform: rotate(180deg);
}

/* Mobile Nav */

.mobile-nav-btn {
  display: none;
}

.mobile-nav {
  display: none;
  background: var(--textColor);
  color: var(--whiteColor);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 40px 20px;
  border-radius: 0px 0px 26px 26px;
  z-index: 5;
  font-family: 'CeraPro', sans-serif;
}

.mobile-nav .logo {
  width: 145px;
}

.mobile-nav ul {
  list-style-type: none;
  padding: 0px;
}

.mobile-nav-header {
  margin-bottom: 50px;
}

.mobile-nav .menu-item-has-children > a {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  display: block;
  margin-bottom: 25px;
  letter-spacing: 2px;
}

.mobile-nav .sub-menu {
  padding-left: 15px;
}


.mobile-nav li:not(.menu-item-has-children):not(:last-child) {
  border-bottom: 1px solid var(--mobileNavBorder);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.mobile-nav a {
  color: var(--whiteColor);
  text-decoration: none;
}


/* Blog */

.blog h1 {
  font-size: 56px;
  margin: 0 0 40px;
}

.page-title {
  margin: 0 0 35px;
}

.featured-post {
  height: 522px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 20%, transparent 50%);
}

.featured-post .post-thumb {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.featured-post .text-content {
  position: relative;
  z-index: 1;
  padding: 35px;
}

.featured-post .text-content h2 {
  margin: 0 0 20px;
  line-height: 42px;
}

.featured-post .text-content p {
  margin: 0 0 20px;
  line-height: 23px;
}

.categories.clickable {
  margin-bottom: 40px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 10px;
}

.categories.clickable .category-badge {
  padding: 10px 20px;
  border: 1px solid var(--primaryColor);
  white-space: nowrap;
}


.categories.clickable .category-badge:not(.active):hover {
  cursor: pointer;
  opacity: 0.8;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.regular-post {
  font-family: 'CeraPro';
}

.regular-post .post-thumb {
  border-radius: 10px;
  object-fit: cover;
  height: 243px;
}

.regular-post h2 {
  line-height: 30px;
  margin: 0 0 15px;
}

.regular-post p {
  line-height: 23px;
}

.categories {
  flex-wrap: nowrap;
  gap: 10px;
}

.category-badge {
  border-radius: 50px;
  line-height: 1;
  padding: 3px 8px;
}

.category-badge.dark {
  background: var(--textColor);
  color: var(--whiteColor);
}

.category-badge.active {
  color: var(--whiteColor);
  background: var(--primaryColor);
  border-color: transparent;
}

/* Single Post */

.breadcrumbs {
  flex-wrap: wrap;
  gap: 5px 0px;
}

.breadcrumbs a {
  color: var(--breadcrumbColor);
}

.breadcrumbs img {
  transform: rotate(-90deg);
  margin: 0 6px;
}

.single .main-article {
  max-width: 1240px;
  width: 100%;
  border-bottom: 1px solid var(--borderColor);
  margin-bottom: 45px;
  padding-bottom: 45px;
}

.single .excerpt {
  color: var(--textColor);
  line-height: 28px;
}

.single .upper {
  max-width: 850px;
}

.single-content {
  max-width: 1240px;
  width: 100%;
}

.single-content .content {
  display: inline-block;
  max-width: calc(80% - 60px);
  padding-left: 60px;
}

.single-content .toc {
  max-width: 260px;
  width: 20%;
  position: sticky;
  top: 20px;
  vertical-align: top;
}

.single-content .content h1, .single-content .content h2, .single-content .content h3, .single-content .content h4, .single-content .content h5, .single-content .content h6 {
  font-family: 'PP Woodland';
}

.single-content .content {
  font-family: 'CeraPro';
}

.post-meta {
  color: var(--textColor);
  max-width: 1240px;
  width: 100%;
  border-top: 1px solid var(--borderColor);
}

.post-meta .post-author img {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.post-date {
  border-left: 1px solid var(--borderColor);
}

.single .featured-image {
  height: 454px;
  border-radius: 16px;
  max-width: 1240px;
  width: 100%;
  object-fit: cover;
  display: block;
}

.lwptoc_header {
  display: none;
}

.toc h3 {
  letter-spacing: 2px;
  margin: 0 0 25px;
}

.lwptoc {
  margin-top: 0 !important;
  font-family: 'CeraPro';
  padding: 0px !important;
  border-left: 1px solid var(--borderColor);
}

.lwptoc, .lwptoc_i  {
  width: 100%;
  background: transparent !important;
}

.lwptoc_i {
  padding: 0px !important;
}

.single-content .lwptoc .lwptoc_i a {
  color: var(--tocColor) !important;
  padding-left: 20px;
  display: inline-block;
  position: relative;
}

.single-content .lwptoc .lwptoc_i a.active::before {
  content: '';
  left: -1px;
  top: 0;
  height: 20px;
  background: var(--primaryColor);
  width: 1px;
  display: block;
  position: absolute;
}

.lwptoc_itemWrap {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-left: 0px !important;
}

.lwptoc_item .lwptoc_itemWrap .lwptoc_item {
  font-size: 13px !important;
  margin-top: 3px !important;
}

.single-content .lwptoc .lwptoc_i a.active {
  color: var(--primaryColor) !important;
}


.single-content .content :first-child {
  margin-top: 0px !important;
}

.single-post .related-post .post-thumb {
  height: 228px;
}

.single-post .main-article .wp-block-image {
  position: relative;
}

.single-post .main-article .wp-element-caption {
  padding: 70px 20px 10px;
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  color: var(--whiteColor);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 20%, transparent 90%);
  margin: 0;
  font-size: 15px;
}

/* Footer */

.web-button {
  background-color: var(--primaryBlueColor);
  width: 100%;
  color: var(--whiteColor) !important;
  transition: .2s;
  letter-spacing: .01em !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  line-height: 20px !important;
  border-radius: 100px !important;
}

footer {
  background-color: var(--secondaryColor);
  background-image: url("./assets/images/dubai_footer_bg.svg");
  background-position: right bottom;
  background-repeat: no-repeat;
}

footer .footer-content {
  gap: 5%;
  padding: 50px 26px;
  background-repeat: no-repeat;
  background-position: bottom right;
  max-width: 1152px;
  margin: 0 auto;
}

@media only screen and (max-width: 767px) {
  footer .footer-content {
    padding-top: 35px;
  }
}

footer .footer-content .right {
  gap: 15%;
}

footer .footer-content .right.mobile {
  display: none;
}

footer .footer-content .column.first {
  width: 30%;
}

footer .footer-content .column.first .logo img {
  height: 46px;
  max-width: 100%;
}

footer .footer-content .column.first .socials {
  gap: 11px;
}

footer .footer-content .column.first .socials mat-icon {
  height: 40px;
  width: 40px;
}

footer .footer-content .column.no-border .nav-items {
  border: none;
}

footer .footer-content .column p {
  color: var(--footerTextColor);
}

footer .footer-content .column p a {
  color: var(--footerTextColor);
}

footer .footer-content .column p.description {
  line-height: 20px;
}

footer .footer-content .column p.contact {
  line-height: 26px;
}

footer .footer-content .column h4 {
  font-size: 10px;
  margin: 0 0 4px;
  color: var(--footerDividerColor);
  font-weight: 700;
}

footer .footer-content .column .nav-items {
  padding-left: 15px;
  border-left: 1px solid var(--footerDividerColor);
  padding-top: 15px;
  gap: 20px;
}

footer .footer-content .column .nav-items a {
  color: var(--whiteColor);
}

footer .footer-content .column .nav-items .web-button {
  height: 37px;
}

@media only screen and (max-width: 991px) {
  footer .footer-content {
    gap: 50px;
  }

  footer .footer-content .first.column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: auto;
  }

  footer .footer-content .first.column p {
    text-align: left;
    max-width: 350px;
  }

  footer .footer-content .right {
    margin: 0 0 50px 100px;
    gap: 20px;
    width: auto;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  footer .footer-content .right .column {
    max-width: calc(50% - 10px);
    width: 100%;
    align-items: flex-start;
    display: inline-flex;
    flex-direction: column;
  }

  footer .footer-content .right .column.fifth .nav-items {
    padding-left: 0px;
  }
}

@media only screen and (max-width: 767px) {
  footer .footer-content {
    flex-direction: column;
    gap: 20px 0px;
    align-items: center;
    max-width: 400px;
  }

  footer .footer-content .desk {
    display: none;
  }

  footer .footer-content .mobile {
    display: flex !important;
  }

  footer .footer-content .mobile .mobile-nav-wrapper {
    gap: 20px;
  }

  footer .footer-content .mobile .mobile-nav-wrapper .column {
    width: 100%;
    max-width: 100%;
  }

  footer .footer-content .column {
    flex: 1;
    max-width: calc(100% - 10px) !important;
  }

  footer .footer-content .column.first {
    width: auto;
    margin-right: auto;
    align-items: center;
  }

  footer .footer-content .column.first .logo {
    margin-bottom: 10px !important;
  }

  footer .footer-content .column.first p {
    text-align: center;
    margin-bottom: 15px !important;
  }

  footer .footer-content .column.first .contact-wrapper {
    margin-top: 10px;
  }

  footer .footer-content .column.fourth {
    width: auto !important;
    flex: unset;
  }

  footer .footer-content .column.fifth {
    align-items: flex-end !important;
  }

  footer .footer-content .column.fifth a {
    text-align: center;
  }

  footer .footer-content .column.fifth .nav-items {
    padding-left: 15px !important;
  }

  footer .footer-content .right {
    order: -1;
    margin-left: 0px;
    width: 100%;
  }
}

@media only screen and (max-width: 479px) {
  footer .footer-content {
    gap: 0px;
  }
}

footer .copyright {
  background-color: var(--secondaryDarkColor);
  padding-top: 19px;
  padding-bottom: 19px;
  width: 100%;
  color: var(--copyrightColor);
  font-size: 14px;
}

@media only screen and (max-width: 767px) {
  footer .copyright {
    position: absolute;
  }
}

@media only screen and (max-width: 479px) {
  footer .copyright {
    font-size: 12px;
  }
}

footer .copyright a {
  color: var(--copyrightColor);
}

footer .copyright .copyright-content {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0px 26px;
}

@media only screen and (max-width: 991px) {
  footer .copyright .copyright-content {
    text-align: center;
  }
}


/* Responsive */

@media only screen and (max-width: 991px) {
  .post-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 767px) {
  .regular-post .post-thumb {
    height: 198px;
  }

  .featured-post {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 40%, transparent 90%);
    height: 440px;
  }

  .featured-post .text-content h2 {
    font-size: 26px;
    line-height: 30px;
  }

  .featured-post .text-content p, .featured-post .read-more {
    font-size: 15px;
  }

  .single-content {
    display: flex;
    flex-direction: column;
  }

  .single-content .toc {
    position: static;
  }

  .single-content .toc, .single-content .content {
    width: 100%;
    max-width: 100%;
    padding-left: 0px;
  }

}

@media only screen and (max-width: 575px) {
  .single .single-title {
    font-size: 28px;
  }

  .single .excerpt {
    font-size: 16px;
  }

  .post-meta {
    flex-direction: column;
    gap: 15px;
    padding-bottom: 25px;
  }

  .post-meta .post-date {
    border: none;
    padding: 0;
    margin: 0;
  }

  .single .main-article .featured-image {
    height: 242px;
    margin-bottom: 28px;
  }

  .single-post .related-post .post-thumb {
    height: 198px;
  }

  .blog h1 {
    font-size: 32px;
    margin: 0 0 25px;
  }

  .page-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .featured-post .text-content {
    padding: 20px;
  }
}

@media only screen and (max-width: 479px) {
  .post-list {
    grid-template-columns: repeat(1, 1fr);
  }
  .desk-nav {
    display: none;
  }


  header .boxed-content {
    width: 100%;
    justify-content: space-between;
  }

  header .dummy-width {
    width: 23px;
  }

  .mobile-nav-btn {
    height: 14px;
    width: 23px;
    position: relative;
    z-index: 10;
    display: block;
  }

  .mobile-nav-btn span {
    background: var(--textColor);
    width: 23px;
    height: 2px;
    position: absolute;
    top: 0;
    transition: all linear .3s;
  }

  .mobile-nav-btn span:nth-child(2) {
    top: 10px;
  }

  .mobile-nav-btn.opened span {
    background: var(--whiteColor);
  }

  .mobile-nav-btn.opened span:nth-child(1) {
    transform: rotate(-45deg);
  }

  .mobile-nav-btn.opened span:nth-child(2) {
    transform: rotate(45deg);
    top: 0;
  }

}
