/*
Theme Name: Dq25
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: "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;
  body:not(.home) & {
	max-width: var(--container);
    margin: auto;
  }
}
/* 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; }
.entry-content {
    margin-top: 1.5rem;
  line-height: 1.7;
  color: #222;
  word-wrap: break-word;

  > *:not(:last-child) {
    margin-bottom: 1.5rem;
  }

  h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin: 2rem 0 1rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.1rem; }
  h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }

  p {
    margin: 0 0 1rem;
  }

  a {
    color: #0073aa;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 115, 170, 0.3);

    &:hover,
    &:focus {
      color: #005177;
      border-bottom-color: rgba(0, 81, 119, 0.6);
    }
  }

  ul,
  ol {
    padding-left: 1.5rem;
    margin: 0 0 1rem;
  }

  ul {
    list-style: disc;
  }

  ol {
    list-style: decimal;
  }

  ul ul,
  ul ol,
  ol ul,
  ol ol {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
  }

  li {
    margin-bottom: 0.35rem;

    &:last-child {
      margin-bottom: 0;
    }
  }

  img {
    max-width: 100%;
    height: auto;
        display: flex;
        justify-content: center;
        margin: auto;
  }

  figure {
    margin: 0 0 1.5rem;
    text-align: center;

    img {
      margin-left: auto;
      margin-right: auto;
    }

    figcaption {
      font-size: 0.875rem;
      color: #666;
      margin-top: 0.5rem;
    }
  }

  .alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
  }

  .alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
  }

  .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #0073aa;
    background-color: #f5f9fc;
    color: #333;
    font-style: italic;

    p {
      margin-bottom: 0.5rem;
    }

    cite,
    footer {
      display: block;
      margin-top: 0.5rem;
      font-size: 0.875rem;
      font-style: normal;
      color: #666;
    }
  }

  code {
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 0.875em;
    background-color: #f5f5f5;
    padding: 0.1em 0.3em;
    border-radius: 3px;
  }

  pre {
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    background-color: #1e1e1e;
    color: #f5f5f5;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    overflow: auto;
    margin: 1.5rem 0;
  }

  pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;

    th,
    td {
      border: 1px solid #ddd;
      padding: 0.75rem 0.9rem;
      text-align: left;
      vertical-align: top;
    }

    thead th {
      background-color: #f1f1f1;
      font-weight: 600;
    }

    tbody tr:nth-child(even) {
      background-color: #fafafa;
    }

    caption {
      caption-side: bottom;
      text-align: left;
      font-size: 0.875rem;
      color: #666;
      margin-top: 0.5rem;
    }
  }

  hr {
    border: 0;
    border-top: 1px solid #e1e1e1;
    margin: 2rem 0;
  }

  .gallery {
    margin: 1.5rem -0.5rem;
    overflow: hidden;

    .gallery-item {
      float: left;
      padding: 0.5rem;
      text-align: center;
      margin-bottom: 0.5rem;

      .gallery-icon {
        margin-bottom: 0.25rem;
      }

      .gallery-caption {
        font-size: 0.8rem;
        color: #666;
      }
    }

    &.gallery-columns-3 .gallery-item {
      width: 33.3333%;
    }

    &::after {
      content: "";
      display: table;
      clear: both;
    }
  }

  iframe,
  embed,
  object {
    max-width: 100%;
  }

  .wp-block-embed,
  .wp-block-video {
    margin: 1.5rem 0;

    iframe,
    video {
      width: 100%;
      height: auto;
      display: block;
    }
  }
}

.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;
}
@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);
      }
    }
}

.category-menu, .category-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-menu > li {
    display: block;
    margin-bottom: 5px;
    background-color: transparent;
    border: none;
}

.category-menu > li > a {
    display: block;
    padding: 15px;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
}

.category-menu > li:hover > a, 
.category-menu > li > a:hover {
    background-color: #e68a00;
	color: #fff;
}

.category-menu li ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background-color: #ffffff;
    border: none;
}

.category-menu li:hover > ul {
    max-height: 1000px;
}

.category-menu li ul li a {
    display: block;
    padding: 12px 20px;
    color: #0073aa;
    text-decoration: none;
    border-bottom: 1px solid #eeeeee;
}

.category-menu li ul li a:hover {
    background-color: #e2e2e2;
}

.category-menu .arrow {
    float: right;
    font-size: 12px;
    margin-top: 3px;
    transition: transform 0.3s ease;
}

.category-menu > li:hover > a .arrow {
    transform: rotate(180deg);
}

.tabs-nav .dmsp {
	background-color: #ff9240;
	padding: 10px;
	margin-bottom: 5px;
	border-radius: 4px;
	font-weight: bold;
	color: #fff;
}

.tabs-nav {
	
	ul {
		padding: 0;
		list-style: none;
	}
	
	li {
		
		padding: 0 .75em;
		border-radius: 99px;
		line-height: 2.5em;
		cursor: pointer;
		color: rgba(102, 102, 102, .85);
		
		&:hover {
			color: #000;
		}
		
		&.active {
			background-color: #ff9240;
			color: #fff;
		}
		
		+li {
			border-top: 1px solid #ececec;
		}
	}
}

.tab-content {
  display: none;

  &.active {
    display: block;
  }
  
  p {
	  text-align: justify;
  }
}

#mega-menu-wrap-primary #mega-menu-primary > li > a {
    text-transform: uppercase !important;
    font-size: 1.1em !important;
    padding: 0 15px !important;
}
.mega-sub-menu {
	transition: all 0.5s ease-in-out !important;
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transition-delay: 0.4s;     
    pointer-events: none;
	transform: translateY(10px);
}

.mega-menu-item:hover > ul.mega-sub-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;	
	pointer-events: auto;
    transition-delay: 0s;
	transform: translateY(0px);
}

.mega-menu-item {
	.mega-sub-menu {
		transition: all 0.5s ease-in-out !important;
		transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease !important;
		transition-delay: 0.4s !important;     
		pointer-events: none !important;
		transform: translateY(10px) !important;
	}

	.mega-menu-item:hover > ul.mega-sub-menu {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;	
		pointer-events: auto !important;
		transition-delay: 0s !important;
		transform: translateY(0px) !important;
	}
}