/*
Theme Name: PhanThiet360 Core
Theme URI: http://localhost:8080/phanthiet360
Description: Giao diện báo chí thời sự Phan Thiết phong cách NBA Minimalism (PRO Edition).
Author: Marcus
Version: 1.7.0
Text Domain: pt360
*/

/* ================== 1. ROOT & TYPOGRAPHY ================== */
:root {
  --nba-blue: #051c2d;
  --nba-red: #e64833;
  --text-main: #111111;
  --text-muted: #555555;
  --border-light: #f0f0f0;
  --nav-height: 48px;
}

body {
  font-family:
    "Roboto",
    -apple-system,
    Arial,
    sans-serif !important;
  background-color: #ffffff;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  font-style: normal !important;
  line-height: 1.6;
  letter-spacing: -0.015em;
}

/* Khử chữ nghiêng hoàn toàn */
h1,
h2,
h3,
h4,
h5,
h6,
a,
span,
p,
div,
em,
b,
strong,
i,
button {
  font-style: normal !important;
}

/* ================== 2. CONTAINER CHUNG ================== */
.nba-container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  max-width: 1320px;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1024px) {
  .nba-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ================== 3. MOBILE MENU ================== */
#mobile-menu {
  z-index: 9999 !important;
  transition: transform 500ms cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

/* ================== 4. HERO + SIDEBAR LAYOUT (CÂN ĐỐI & THOÁNG) ================== */
.nba-left-col {
  flex: 2;
  min-width: 0;
  width: 100%;
}

.nba-right-col {
  flex: 1;
  width: 100%;
  background: #ffffff;
}

@media (min-width: 1024px) {
  .nba-right-col {
    max-width: 360px;
  }
}

/* Responsive Hero + Sidebar */
@media (max-width: 1023px) {
  .nba-right-col {
    border-top: 2px solid #eee;
    padding-top: 48px;
    margin-top: 48px;
  }
}

/* ================== 5. MEMBERSHIP BANNER ================== */
.membership-banner {
  background: linear-gradient(90deg, #051c2d 0%, #e64833 100%);
  color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(230, 72, 51, 0.25);
}

/* ================== 6. HERO SECTION ================== */
.heroSwiper {
  display: block; /* Ép nó là block thay vì flex */
  width: 100% !important;
}

.swiper-slide {
  width: 100% !important;
}

.heroSwiper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.65)
  );
  z-index: 1;
  pointer-events: none;
}

h2.hero-title {
  font-size: clamp(28px, 4.2vw, 44px) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.04em !important;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.hero-excerpt {
  font-size: 15.5px !important;
  line-height: 1.55;
  color: #e5e7eb;
  position: relative;
  z-index: 2;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
  background: #fff !important;
  opacity: 0.4;
  width: 32px !important;
  height: 3px !important;
  border-radius: 0;
  margin-right: 8px;
}

.swiper-pagination-bullet-active {
  background: var(--nba-red) !important;
  opacity: 1;
  width: 52px !important;
}

/* ================== 7. SIDEBAR HEADLINES (ĐÃ LÀM ĐẸP) ================== */
.headlines-list article {
  transition: all 0.25s ease;
}

.headlines-list h4 a {
  font-size: 15.8px;
  line-height: 1.38;
  font-weight: 700;
  color: #111;
}

.headlines-list h4 a:hover {
  color: var(--nba-red);
}

.headlines-list span {
  font-size: 11px;
  color: #777;
  font-weight: 500;
}

.headlines-list article:hover {
  padding-left: 6px;
}

/* ================== 8. SECTION HEADING ================== */
.section-heading {
  font-size: 22px !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  border-bottom: 4px solid var(--nba-blue);
  display: inline-block;
  line-height: 1;
}

/* ================== 9. SPACING & WHITE SPACE (BỐ CỤC THOÁNG HƠN) ================== */
.homepage-content-flow {
  padding-top: 24px;
}

.homepage-content-flow > div {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .homepage-content-flow {
    space-y: 88px;
  }
}

@media (max-width: 1023px) {
  .homepage-content-flow {
    space-y: 64px;
  }

  h2.hero-title {
    font-size: 28px !important;
  }
}

/* ================== 10. SKELETON & UTILITIES ================== */
.skeleton {
  background: #f6f7f8;
  background-image: linear-gradient(
    90deg,
    #f6f7f8 0%,
    #edeef1 20%,
    #f6f7f8 40%,
    #f6f7f8 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* No scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Transition chung */
a,
button {
  transition: all 0.2s ease;
}

.hero-mask {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 40%,
    /* Tăng độ phủ tối lên 40% */ rgba(0, 0, 0, 0) 85%
  );
}

/* Style cho Menu Desktop */
#masthead ul li {
  display: flex;
  align-items: center;
  height: 100%;
}
#masthead ul li a {
  color: white;
  transition: all 0.3s ease;
}
#masthead ul li a:hover {
  color: #e64833; /* Màu nbaRed */
}

/* Style cho Menu Mobile (Sidebar) */
.mobile-nav-custom li {
  margin-bottom: 1.5rem;
}
.mobile-nav-custom li a {
  font-size: 1.875rem; /* text-3xl */
  font-weight: 900; /* font-black */
  font-style: italic;
  text-transform: uppercase;
  color: white;
  transition: color 0.3s;
}
.mobile-nav-custom li a:hover {
  color: #e64833;
}
