/* ==========================================================================
   pages/home.css — Home Page Specific Styles
   KC INTERPRESS

   Scope: Hero Slider, Stats Bar (Home version), About Section,
          Features Row, Products Section wrapper, Blog Section wrapper
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
    background: var(--gray-100); min-height: 88vh;
    display: flex; flex-direction: column; justify-content: center;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        repeating-linear-gradient(90deg, transparent, transparent 79px, var(--gray-200) 79px, var(--gray-200) 80px),
        repeating-linear-gradient(0deg,  transparent, transparent 79px, var(--gray-200) 79px, var(--gray-200) 80px);
    opacity: 0.45;
}
.hero-accent   { position: absolute; top: -80px; right: -80px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 70%); pointer-events: none; }
.hero-accent-2 { position: absolute; bottom: -120px; left: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(249,115,22,0.07) 0%, transparent 70%); pointer-events: none; }

/* --------------------------------------------------------------------------
   SLIDER
   -------------------------------------------------------------------------- */
.slider-wrap  { position: relative; width: 100%; }
.slide        { display: none; }
.slide.active-slide { display: block; }

.slide-inner {
    max-width: var(--container); margin: 0 auto; padding: 80px 24px;
    display: grid; grid-template-columns: 1fr 1fr; align-items: center;
    gap: 64px; min-height: 72vh;
}

.slide-text { position: relative; z-index: 2; }
.slide-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--orange); color: var(--white); font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; margin-bottom: 20px; }
.slide-kicker { font-family: var(--font-th); font-size: clamp(14px,2vw,18px); font-weight: 300; color: var(--gray-600); letter-spacing: 0.04em; margin-bottom: 4px; }
.slide-title  { font-family: var(--font-en); font-size: clamp(48px,7vw,88px); font-weight: 700; line-height: 0.95; letter-spacing: -0.03em; color: var(--black); text-transform: uppercase; margin-bottom: 20px; }
.slide-title .accent { color: var(--orange); }
.slide-desc   { font-family: var(--font-th); font-size: 20px; font-weight: 400; color: var(--gray-600); line-height: 1.55; margin-bottom: 36px; max-width: 420px; }
.slide-desc strong { color: var(--orange); font-weight: 600; }
.slide-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.slide-image  { position: relative; display: flex; align-items: center; justify-content: center; }
.slide-img-frame { position: relative; width: 100%; max-width: 500px; }
.slide-img-frame::before { content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg); background: var(--white); }
.slide-img-frame .img-ph { position: relative; z-index: 1; height: 380px; border-radius: var(--radius-lg); padding: 20px; }
.slide-img-frame img { position: relative; z-index: 1; width: 100%; border-radius: var(--radius-lg); object-fit: cover; }
.slide-img-tag { position: absolute; bottom: -16px; left: 20px; background: var(--black); color: var(--white); font-family: var(--font-en); font-size: 12px; font-weight: 600; padding: 8px 16px; border-radius: var(--radius-sm); letter-spacing: 0.06em; z-index: 2; }

/* Slider Controls */
.slider-controls { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; z-index: 10; }
.dot { width: 8px; height: 8px; border-radius: 100px; background: var(--gray-400); cursor: pointer; border: none; transition: var(--transition); padding: 0; }
.dot.active { background: var(--orange); width: 24px; }

.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: var(--white); border: 1px solid var(--gray-200); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--black); font-size: 16px; z-index: 10; transition: var(--transition); }
.slider-arrow:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }
.prev-arrow { left: 24px; }
.next-arrow { right: 24px; }

.hero-scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--font-en); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-400); z-index: 5; }
.scroll-line { width: 1px; height: 32px; background: linear-gradient(to bottom, var(--orange), transparent); animation: scrollPulse 1.8s ease infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

@media (max-width: 768px) {
    .slide-inner { grid-template-columns: 1fr; gap: 32px; padding: 60px 24px; min-height: auto; text-align: center; }
    .slide-desc  { max-width: 100%; }
    .slide-actions { justify-content: center; }
    .slide-image { order: -1; }
    .slide-img-frame .img-ph { height: 240px; }
    .slider-arrow { display: none; }
}

/* --------------------------------------------------------------------------
   ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-section { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 72px; }
.about-img { position: relative; }
.about-img .img-ph { height: 440px; border-radius: var(--radius-lg); }
.about-img-tag { position: absolute; bottom: 20px; right: -20px; background: var(--orange); color: var(--white); font-family: var(--font-en); font-size: 12px; font-weight: 700; padding: 12px 20px; border-radius: var(--radius-sm); letter-spacing: 0.04em; text-align: center; line-height: 1.3; }
.about-text-wrap p { font-family: var(--font-th); font-size: 16px; color: var(--gray-600); line-height: 1.8; margin-top: 20px; margin-bottom: 28px; }
.about-text-wrap strong { color: var(--orange); }

/* Features Row */
.features-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--gray-200); border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; }
.feature-card { background: var(--white); padding: 32px 28px; transition: var(--transition); }
.feature-card:hover { background: var(--gray-50); }
.feature-icon { width: 44px; height: 44px; background: var(--gray-100); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--orange); margin-bottom: 18px; border: 1px solid var(--gray-200); transition: var(--transition); }
.feature-card:hover .feature-icon { background: var(--orange); color: var(--white); border-color: var(--orange); }
.feature-card h3 { font-family: var(--font-th); font-size: 16px; font-weight: 600; color: var(--black); margin-bottom: 8px; line-height: 1.35; }
.feature-card p  { font-family: var(--font-th); font-size: 13px; color: var(--gray-600); line-height: 1.65; }

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-img-tag { right: 12px; }
    .about-img .img-ph { height: 280px; }
    .features-row { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   PRODUCTS SECTION (home wrapper only — cards are in components.css)
   -------------------------------------------------------------------------- */
.products-section { background: var(--gray-50); }

/* --------------------------------------------------------------------------
   ARTICLE CARDS (Home page style - minimal variant)
   -------------------------------------------------------------------------- */
.article-card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-md); overflow: hidden;
    transition: var(--transition);
}
.article-card:hover { transform: translateY(-5px); border-color: var(--orange); }

.article-thumb {
    position: relative; height: 200px; background: var(--gray-100);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-thumb i { font-size: 48px; color: var(--gray-200); }

.category-badge { position: absolute; top: 15px; left: 15px; background: #444; color: var(--white); padding: 4px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; border-radius: 3px; font-family: var(--font-en); }

.article-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.article-meta-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.meta-line { width: 20px; height: 2px; background: var(--orange); border-radius: 2px; }
.meta-cat-name { font-size: 12px; color: var(--orange); font-weight: 600; }

.article-title { font-family: var(--font-th); font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 12px; margin-top: 0; color: #222; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 50px; }
.article-title a { color: inherit; text-decoration: none; }
.article-title a:hover { color: var(--orange); }
.article-excerpt { font-family: var(--font-th); font-size: 14px; color: #666; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 20px; }

.article-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px solid #f0f0f0; margin-top: auto; }
.article-date { font-size: 12px; color: #999; display: flex; align-items: center; gap: 6px; }
.article-date i { color: var(--orange); }

.btn-readmore { font-size: 12px; color: #333; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 5px; background: #f8f8f8; padding: 6px 12px; border-radius: 4px; transition: var(--transition); }
.btn-readmore:hover { background: var(--orange); color: var(--white); }

.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; margin-top: 40px; }
@media (max-width: 768px) { .article-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   BLOG SECTION wrapper (home)
   -------------------------------------------------------------------------- */
.blog-section { background: var(--gray-50); }