/* =========================================================
   GLOBAL ROOT VARIABLES & FONT
   ========================================================= */
:root {
    --grey: #355669;
    --cream: #fff8d1;
    --orange: #f29920;
    --text-base: #1F2937;
}

@font-face {
    font-family: 'HPSimplified';
    src: url('../fonts/HPSimplified.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
  font-family: 'HPSimplifiedHans';
  src: url('../fonts/hpsimplifiedhans-regular.ttf') format('truetype');
  font-weight: 400; 
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   BASE ELEMENTS
   ========================================================= */
body {
    font-family: 'HPSimplified', sans-serif;
    color: var(--text-base);
}

h2 {
    font-family: 'HPSimplified', sans-serif;
}

p {
  font-family: 'HPSimplifiedHans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}

/* =========================================================
   TYPOGRAPHY & COLOR UTILITIES
   ========================================================= */
.text-grey { color: var(--grey) !important; }
.text-cream { color: var(--cream) !important; }
.text-orange { color: var(--orange) !important; }

.bg-grey { background-color: var(--grey) !important; }
.bg-cream { background-color: var(--cream) !important; }
.bg-orange { background-color: var(--orange) !important; }

.fw-100 { font-weight: 100 !important; }
.fw-200 { font-weight: 200 !important; }
.fw-300 { font-weight: 300 !important; }
.fw-400 { font-weight: 400 !important; }
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }

.fs-1 { font-size: 2.5rem !important; }
.fs-2 { font-size: 2rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }

.style-retro-heading {
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--orange);
    color: var(--cream) !important;
    font-family: "Caprasimo", cursive;
    font-weight: 400;
    padding: .05em .175em 0;
    border: 2px solid #000;
    transform: rotate(-2deg);
    box-shadow: 5px 5px 0px 0px #00000026;
    border-radius: 10px;
    font-size: 2.5rem;
    line-height: 1.2;
    text-transform: capitalize;
    margin-top: 0;
}

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.section-full-height {
    min-height: 100vh;
    align-items: center;
}

.min-vh-100-plus-header {
    min-height: 100vh;
}

@media (min-width: 992px) {
    .min-vh-100-plus-header {
        width: 100%;
        height: auto;
    }
}

.ml-auto, .mx-auto { margin-left: auto !important; }

/* Aspect Ratios */
.aspect-4-5 { aspect-ratio: 4 / 5; height: auto; }
.aspect-5-3 { aspect-ratio: 5 / 3; height: auto; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-grey {
    background-color: var(--grey) !important;
    border-color: var(--grey) !important;
    color: white !important;
    font-weight: 700 !important;
}
.btn-grey:hover {
    background-color: var(--orange) !important;
    border-color: var(--orange) !important;
    color: white !important;
}

.btn-outline-grey {
    color: var(--grey) !important;
    border-color: var(--grey) !important;
    font-weight: 700 !important;
}
.btn-outline-grey:hover {
    background-color: var(--grey) !important;
    color: white !important;
}

.btn-cream {
    background-color: var(--cream) !important;
    border-color: var(--cream) !important;
    color: var(--grey) !important;
    font-weight: 700 !important;
}
.btn-cream:hover {
    background-color: var(--orange) !important;
    border-color: var(--orange) !important;
    color: white !important;
}

.btn-outline-cream {
    color: var(--cream) !important;
    border-color: var(--cream) !important;
    font-weight: 700 !important;
}
.btn-outline-cream:hover {
    background-color: var(--cream) !important;
    color: var(--grey) !important;
}

.btn-orange {
    background-color: var(--orange) !important;
    border-color: var(--orange) !important;
    color: white !important;
    font-weight: 700 !important;
}
.btn-orange:hover {
    background-color: var(--grey) !important;
    border-color: var(--grey) !important;
    color: white !important;
}

.btn-outline-orange {
    color: var(--orange) !important;
    border-color: var(--orange) !important;
    font-weight: 700 !important;
}
.btn-outline-orange:hover {
    background-color: var(--orange) !important;
    color: white !important;
}

.btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1.1rem !important;
}

/* =========================================================
   HEADER
   ========================================================= */
#main-header {
    height: 80px;
    transition: all 0.3s ease-in-out;
}

#main-header.scrolled {
    height: 64px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

#main-header .logo-img {
    max-height: 48px;
    transition: all 0.3s ease-in-out;
}

#main-header.scrolled .logo-img {
    max-height: 36px;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6rem;
    overflow: hidden;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
    z-index: 1;
}

#hero .container { position: relative; z-index: 2; }

.hero-html-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-html-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* =========================================================
   PENAMPIL (MARQUEE SLIDER)
   ========================================================= */
#penampil { overflow: hidden; padding-bottom: 3rem !important; }

#penampil-slider { position: relative; overflow: visible; }

.swiper-fade-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.swiper-fade-wrapper::before,
.swiper-fade-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 80px;
    pointer-events: none;
    z-index: 2;
}

.swiper-fade-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--cream) 0%, rgba(255, 248, 209, 0) 100%);
}

.swiper-fade-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--cream) 0%, rgba(255, 248, 209, 0) 100%);
}

#penampil .card-thumbnail {
    transition: box-shadow 0.3s ease-in-out;
    border-radius: 12px !important;
}

#penampil .card-thumbnail:hover { box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important; }

#penampil .card-thumbnail img {
    transition: filter 0.5s ease-in-out;
    filter: grayscale(10%);
}

#penampil .card-thumbnail:hover img { filter: grayscale(0%); }

#penampil .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.1) 70%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

#penampil .card-thumbnail:hover .card-overlay { opacity: 1; }

#penampil .card-overlay .text-white {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* =========================================================
   WARTA SLIDER UTILITIES
   ========================================================= */
.btn-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.swiper-slide.h-auto { height: auto; }

/* =========================================================
   LINK CARD & VIDEO
   ========================================================= */
.link-card { transition: all 0.3s ease-in-out; display: block; }
.link-card:hover { transform: scale(1.02); box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; }
.link-card img { transition: filter 0.3s; filter: brightness(90%); }
.link-card:hover img { filter: brightness(100%); }

.card-video { display: block; position: relative; }
.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: transform 0.2s ease-out;
    z-index: 10;
}

.card-video:hover .video-play-icon { transform: translate(-50%, -50%) scale(1.15); }

@media (max-width: 767px) {
    #video.section-full-height {
        min-height: auto;
        display: block;
    }
}

/* =========================================================
   WARTA CARD STYLES
   ========================================================= */
#warta .aspect-4-5 {
    position: relative;
    width: 100%;
    padding-top: 125%;
    overflow: hidden;
}

#warta .aspect-4-5 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#warta .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    opacity: 1;
}

#warta .card-category { z-index: 3; border-radius: 0.375rem; }
#warta .card-info-bottom { z-index: 2; }

#warta .stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination-custom li { margin: 0 0.25rem; }

.pagination-custom .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50rem;
    color: var(--grey);
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    width: 40px;
    height: 40px;
}

.pagination-custom .page-numbers.prev,
.pagination-custom .page-numbers.next {
    width: auto;
    min-width: 40px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.pagination-custom a.page-numbers:hover {
    background-color: #f8f9fa;
    color: var(--grey);
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.pagination-custom .page-numbers.current {
    background-color: var(--orange);
    color: white;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.pagination-custom span.page-numbers:not(.current) {
    background-color: #e9ecef;
    color: #adb5bd;
    box-shadow: none;
    transform: none;
}

/* =========================================================
   ARTICLE CONTENT (single.php)
   ========================================================= */
.article-content { line-height: 1.8; }
.article-content p { margin-bottom: 1.5rem; }

.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: 'HPSimplified', sans-serif;
    color: var(--grey);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-content ul,
.article-content ol { margin-bottom: 1.5rem; padding-left: 2rem; }
.article-content li { margin-bottom: 0.5rem; }

.article-content blockquote {
    border-left: 4px solid var(--orange);
    padding-left: 1.5rem;
    margin-left: 0;
    margin-bottom: 1.5rem;
    font-style: italic;
    font-size: 1.2rem;
    color: #6c757d;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.post-tags .btn-outline-grey { text-decoration: none; font-weight: 600; }
.entry-content img { border-radius: 0.375rem; }

/* =========================================================
   FOOTER
   ========================================================= */
#main-footer {
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
    z-index: 0;
    min-height: 400px;
}

#main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

/* Tabs responsive scroll */
.tabs-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  gap: .5rem;
  /* padding: .25rem; */
  scrollbar-width: thin; 
}
.tabs-scroll::-webkit-scrollbar {
  height: 6px;
}
.tabs-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.15);
  border-radius: 4px;
}

.tabs-scroll .nav-item {
  flex: 0 0 auto; 
}

.tabs-scroll .nav-link {
  white-space: nowrap;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--grey);
  font-weight: 700;
}

.tabs-scroll .nav-link:hover {
  color: var(--orange);
  background: rgba(255,255,255,0.9);
}

.tabs-scroll .nav-link.active {
  color: var(--orange) !important;
  background: #fff !important;
  border-bottom-color: var(--orange);
}

@media (max-width: 768px) {
  .tabs-scroll { scroll-snap-type: x mandatory; }
  .tabs-scroll .nav-item { scroll-snap-align: start; }
}