/*
Theme Name: Dq26
Theme URI: https://example.com/mws_theme
Author: Blue
Author URI: https://mywebsite.vn
Description: Theme WordPress tối giản với bố cục cố định theo loại trang, template-parts, sidebar theo post type và font Roboto.
Version: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mws_theme
Tags: two-columns, three-columns, custom-logo, custom-menu, blog, news
*/

/* Reset & base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Arial", sans-serif;
  line-height: 1.4;
  color: #0a0a0a;
  background: #fff;
  overflow-x: hidden;
}

a {
  color: #0073aa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:root {
  --container: 1200px;
  --gap: 24px;
  --right: 300px;
  --left: 180px;
  --rootcolor1: #dd4a13;
  --rootcolor2: #ff9240;
  --rootcolor3: #0b1526;
}

.site-wrapper {
  margin: 0 auto;
  padding: 24px 0;
}

/* Grid layouts */
.site-grid {
  display: block;
}

body.layout-two-right .site-grid {
  display: grid;
  grid-template-columns: 1fr var(--right);
  gap: var(--gap);
}

body.layout-two-left .site-grid {
  display: grid;
  grid-template-columns: var(--right) 1fr;
  gap: var(--gap);
}

body.layout-three .site-grid {
  display: grid;
  grid-template-columns: var(--left) 1fr var(--right);
  gap: var(--gap);
}

body.has_overlay:before {
  content: '';
  position: fixed;
  background: #0000006e;
  height: 100%;
  width: 100%;
  z-index: 3;
  left: 0;
  top: 0;
}

/* Areas */
.site-content {
  min-width: 0;
}

/* prevents overflow in grid */
.sidebar-right,
.sidebar-left {
  background: #f7f7f7;
  border: 1px solid #eee;
  padding: 8px;
  border-radius: 8px;
}

.entry {
  padding: 0 0 24px;
  border-bottom: 1px solid #eee;
  margin-bottom: 24px;
}

.entry-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.entry-meta {
  font-size: .875rem;
  color: #666;
  margin-bottom: 12px;
}

.entry-content {
  font-size: 1rem;
}

.site-footer {
  border-top: 1px solid #eee;
  color: #666;
  padding: 24px 16px;
  text-align: center;
  background: #fafafa;
}

/* Widgets */
.widget {
  margin: 0 0 20px;
}

.widget-title {
  margin: 0 0 10px;
  font-weight: 700;
}

/* Images & embeds */
img,
iframe,
video {
  max-width: 100%;
  height: auto;
}

/* Responsive */
@media (max-width: 900px) {

  body.layout-two-right .site-grid,
  body.layout-two-left .site-grid,
  body.layout-three .site-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sidebar-left,
  .sidebar-right {
    order: 3;
    margin-top: 20px;
  }

  .site-content {
    order: 4;
  }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: auto;
}

body:not(.home) main {
  width: 100%;
  max-width: 900px;
  margin: auto;
}
@media (max-width: 992px) {
  .container {
    padding: 0 20px;
  }
}

.admin-bar .main-header.is-sticky {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  .admin-bar .main-header.is-sticky {
    top: 0 !important;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.btn_detail {
  display: flex;
  width: max-content;
  align-items: center;
  border-radius: 9999px;
  color: #fff;
  border: solid 1px var(--rootcolor2);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  gap: 15px;
  background: transparent;
  transition: all 0.3s ease;
  padding-right: 24px;

  &:hover {
    text-decoration: none;
  }

  .btn_detail_icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--rootcolor2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;

    i {
      transition: transform 0.3s ease;
    }
  }

  .btn_detail_label {
    color: #333;
    white-space: nowrap;
  }

  &.white .btn_detail_label {
    color: #fff;
  }

  &:hover {
    transition: transform 0.3s ease;
    flex-direction: row-reverse;
    background: var(--rootcolor2);
    padding-right: 0;
    padding-left: 24px;
    color: #fff;

    .btn_detail_label {
      color: #fff !important;
      margin-left: 8px;
      margin-right: -8px;
    }

    .btn_detail_icon {}
  }
}

.view-all {
  display: flex;
  justify-content: center;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  color: #111;
  margin-bottom: 20px;
}

/* Navigation */
.swiper-button-prev,
.swiper-button-next {
  color: #888;
  width: 40px;
  height: 40px;
  background: #f3f3f3;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;

  &:after {
    font-size: 16px;
    font-weight: bold;
  }

  &:hover {
    background: #00aaff;
    color: #fff;
  }
}

.swiper-button-prev {
  left: -30px;
}

.swiper-button-next {
  right: -30px;
}

@media (max-width: 768px) {

  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }
}

/* Pagination */
.swiper-pagination {
  position: relative;
  bottom: 0;
  margin-top: 30px;
  text-align: center;

  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: transparent;
    border: 1px solid;
    opacity: 1;
    margin: 0 6px !important;
    transition: all 0.3s ease;

    &.swiper-pagination-bullet-active {
      background: var(--rootcolor2);
      border: var(--rootcolor2) 1px solid;
      transform: scale(1.3);
    }
  }
}

.tabs-nav {
  ul {
    list-style: none;
    padding: 0;
  }

  li {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 5px;

    &.active {
      background: #ff914d;
      color: #fff;
    }
  }
}

.tab-content {
  display: none;

  &.active {
    display: block;
  }
}