@import url('./font.css');
@import url("./home/form-section.css");

#wpadminbar {
    display: none;
}

:root {
    --color-primary: #134E90;
    --color-primary-custom: 19, 78, 144;
    --color-secondary: #00BDF2;
    --color-secondary-custom: 0, 189, 242;
    --color-dark: #333;
    --color-light: #f9f9f9;
    --color-text: #333;
    --color-muted: #666;
    --color-border: #eee;
    --color-white: #fff;
    --color-bg-footer: #134E90;
    --color-bg-footer-bottom: #134E90;
    --color-hover: #ffd369;
    --color-primary-end: #00BDF2;
    --container-width: 1200px;
    --height-header: 113px;
    --section-paddingX: 15px;
    --section-paddingY: 70px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: "SVN-gilroy", sans-serif;
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.4;
    background-color: var(--color-white);

}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Reset input, textarea, select, button về trạng thái sạch */
input,
textarea,
select,
button {
    all: unset;
    box-sizing: border-box;
    font: inherit;
    color: inherit;
    line-height: 1.5;
    background: none;
    border: none;
    margin: 0;
    padding: 0;
}

/* Restore cursor + outline riêng biệt */
input,
textarea,
select {
    outline: none;
    width: 100%;
}

button,
[type="button"],
[type="submit"] {
    cursor: pointer;
}

/* Remove iOS shadow + tap highlight */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.section {
    padding: var(--section-paddingY) var(--section-paddingX);
}

/* Container chuẩn layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

ul, ol {
    list-style-type: none;
}

button {
    all: unset;
    display: inline-block;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.background-title {
    font-size: 46px;
    color: var(--color-white);
}

.section-title {
    font-size: 36px;
    color: var(--color-primary);
}

.swiper-button-next::after, .swiper-button-prev::after {
    content: "";
    font-size: initial;
    display: block;
    background-image: url("/wp-content/uploads/2025/08/right-arrow.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 100%;
    height: 100%;
    font-size: 0 !important;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(111deg) brightness(102%) contrast(103%);
}

.swiper-button-prev, .swiper-button-next {
    background-color: #C7C7C7;
    border-radius: 50%;
    width: 32px !important;
    height: 32px !important;
    padding: 8px;
}

.swiper-button-prev {
    transform: rotate(180deg);
}

main {
    margin-top: var(--height-header);
}


.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.page-numbers>li>a.current:not(.next, .prev), .page-numbers>li span.current:not(.next, .prev) {
    color: var(--color-white);
}

.page-numbers>li>a, .page-numbers>li span {
    color: var(--colo-dark);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 400;
    display: flex;
    -ms-align-items: center;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-color: #EBEBEB;
}

.page-numbers a, .page-numbers span {
    position: relative;
}

.page-numbers .next::after {
    content: "";
    border: solid var(--color-text);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.page-numbers .prev::after {
    content: "";
    border: solid var(--color-text);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}

.page-numbers>li>a::before, .page-numbers>li span::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    top: 0;
    width: 0;
    transition: 0.3s ease-in-out;
    z-index: -1;
    background: linear-gradient(95.32deg, var(--color-primary) 7.46%, var(--color-primary-end) 93.41%);
}

.page-numbers>li>a.current:not(.next, .prev), .page-numbers>li span.current:not(.next, .prev) {
    background-color: unset;
}

.page-numbers>li>a.current:not(.next, .prev)::before, .page-numbers>li span.current:not(.next, .prev)::before {
    width: 100%;
}

.btn-detail {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 16px;
    border-radius: 40px;
    width: fit-content;
    color: var(--color-primary);
    background: linear-gradient(180deg, rgba(var(--color-primary-custom), 0.1) 0%, rgba(var(--color-primary-custom), 0) 100%);
}

.btn-detail img {
    width: 18px;
    height: 18px;
    transition: .4s ease-in-out;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(19%) sepia(37%) saturate(4189%) hue-rotate(199deg) brightness(98%) contrast(86%);
}

.btn-detail:hover img {
    transform: rotate(45deg);
}

.date img {
    width: 16px;
    height: 16px;
}

.date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #777;
}

.swiper-fade .swiper-slide {
    opacity: 0 !important;
}

.swiper-fade .swiper-slide.swiper-slide-active {
    opacity: 1 !important;
}

.play {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, .2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

.play-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-left: 18px solid #ffffff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}
.form-poppup{
    position: fixed;
    top:50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    background-color: var(--color-white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
    border-radius: 16px;
    display: none;
}
.form-poppup .section-title{
    font-size: 25px;
	text-align: center;
}
.form-poppup .register-form{
    margin: 0;
    width: 100%;
}
.form-grid{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
}
.form-poppup .btn-x{
    position: absolute;
    top: 15px;
    right: 15px;
}
.btn-x{
  --size: 32px;
  width: var(--size);
  height: var(--size);
  display: inline-block;
  position: relative;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #333;
}
.btn-x::before,
.btn-x::after{
  content:"";
  position:absolute;
  left:50%; top:50%;
  width:60%; height:2px;
  background: currentColor;
  transform-origin:center;
}
.btn-x::before{ transform: translate(-50%,-50%) rotate(45deg); }
.btn-x::after { transform: translate(-50%,-50%) rotate(-45deg); }
.btn-x:hover{ opacity:.8; }
.btn-x:active{ transform: scale(.95); }

/* Mặc định là desktop */
.d-desktop {
    display: block !important;
}

.d-desktop-flex {
    display: flex !important;
}

.d-mobile,
.d-mobile-flex {
    display: none !important;
}

/*  (Mobile) */
@media (max-width: 1023px) {
    :root {
        --height-header: 83px;
        --section-paddingY: 40px;
    }
    .d-mobile {
        display: block !important;
    }

    .d-mobile-flex {
        display: flex !important;
    }

    .d-desktop,
    .d-desktop-flex {
        display: none !important;
    }
    .background-title{
        font-size: 30px;
    }
    .section-title {
        font-size: 26px;
    }

    .btn-detail {
        background: none;
        font-size: 14px
    }
    .form-poppup{
        width: calc(100vw - 30px);
    }
    .form-poppup .register-form{
        padding: 25px 15px;
    }
   .form-poppup .register-form input,
   .form-poppup .register-form select,
   .form-poppup .register-form textarea{
        min-height: 45px;
        padding: 10px 12px;
        font-size: 14px;
    }
}