/* ================================================================
   Featured Articles Slider — slider.css  v1.1
   ================================================================ */

.fas-wrapper {
    --fas-accent:       #e74c3c;
    --fas-dark:         #1a1a2e;
    --fas-dark2:        #16213e;
    --fas-white:        #ffffff;
    --fas-text:         #2d2d3a;
    --fas-muted:        #6b7280;
    --fas-radius:       4px;
    --fas-transition:   0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --fas-shadow:       0 4px 32px rgba(0,0,0,0.14);
    --fas-slide-height: 420px;
    --fas-thumb-height: 72px;

    font-family: 'Georgia', 'Times New Roman', serif;
    width: 100%;
    max-width: 100%;
    margin: 0 0 2.5rem;
    background: var(--fas-dark);
    border-radius: var(--fas-radius);
    overflow: hidden;
    box-shadow: var(--fas-shadow);
    position: relative;
    box-sizing: border-box;
}

.fas-no-posts { text-align:center; padding:2rem; color:var(--fas-muted); font-style:italic; }

/* Main layout — fixed height prevents page jump */
.fas-main {
    display: grid;
    grid-template-columns: 60% 40%;
    height: var(--fas-slide-height);
    overflow: hidden;
}

/* IMAGE COLUMN */
.fas-slides-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.fas-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity var(--fas-transition), transform var(--fas-transition);
    pointer-events: none;
}
.fas-slide.fas-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 2;
}
.fas-slide-img-link { display:block; width:100%; height:100%; }
.fas-slide-img      { width:100%; height:100%; object-fit:cover; display:block; transition:transform 8s ease; }
.fas-slide.fas-active .fas-slide-img { transform:scale(1.05); }

/* INFO PANEL */
.fas-info-panel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--fas-white);
}
.fas-info-item {
    position: absolute;
    inset: 0;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--fas-transition), transform var(--fas-transition);
    pointer-events: none;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e0e0e0 transparent;
}
.fas-info-item.fas-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
}

/* Badge */
.fas-badge {
    display: inline-block;
    background: var(--fas-accent);
    color: #fff;
    font-size: 11px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    text-decoration: none;
    width: fit-content;
    flex-shrink: 0;
    transition: background 0.2s;
}
.fas-badge:hover { background: var(--fas-dark); color:#fff; text-decoration:none; }

/* Title */
.fas-title {
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--fas-text);
    margin: 0;
    font-family: 'Georgia', serif;
    flex-shrink: 0;
}
.fas-title a { color:inherit; text-decoration:none; transition:color 0.2s; }
.fas-title a:hover { color:var(--fas-accent); text-decoration:none; }

/* Date */
.fas-meta  { display:flex; align-items:center; gap:12px; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; flex-shrink:0; }
.fas-date  { display:flex; align-items:center; gap:5px; color:var(--fas-muted); font-size:12px; }

/* Excerpt */
.fas-excerpt {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #4b5563;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    flex: 1 1 auto;
    overflow: hidden;
}

/* Actions */
.fas-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    margin-top: auto;
}
.fas-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--fas-accent);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.fas-read-more:hover { background:var(--fas-dark); color:#fff; text-decoration:none; transform:translateX(2px); }

/* SOCIAL — horizontal only, in info panel */
.fas-share-right { display:flex; gap:7px; align-items:center; }

.fas-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    flex-shrink: 0;
}
.fas-social:hover { transform:scale(1.15); opacity:0.9; color:#fff; text-decoration:none; }
.fas-social svg   { width:15px; height:15px; pointer-events:none; }
.fas-fb { background:#1877f2; }
.fas-tw { background:#000; }
.fas-wa { background:#25d366; }
.fas-ln { background:#0a66c2; }

/* THUMBNAILS */
.fas-thumbs-wrap {
    background: var(--fas-dark2);
    height: var(--fas-thumb-height);
    padding: 0 40px;
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    flex-shrink: 0;
}
.fas-thumbs {
    display: flex;
    gap: 6px;
    overflow: hidden;
    scroll-behavior: smooth;
    flex: 1;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.fas-thumb {
    flex: 0 0 auto;
    width: 86px;
    height: 54px;
    border: 2px solid transparent;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    padding: 0;
    transition: border-color 0.25s, transform 0.2s;
    position: relative;
}
.fas-thumb img { width:100%; height:100%; object-fit:cover; display:block; filter:brightness(0.65); transition:filter 0.25s; }
.fas-thumb.fas-active, .fas-thumb:hover { border-color:var(--fas-accent); transform:translateY(-2px); }
.fas-thumb.fas-active img, .fas-thumb:hover img { filter:brightness(1); }
.fas-thumb-overlay { position:absolute; inset:0; background:var(--fas-accent); opacity:0; transition:opacity 0.2s; pointer-events:none; }
.fas-thumb.fas-active .fas-thumb-overlay { opacity:0.15; }

/* Nav arrows */
.fas-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}
.fas-nav:hover { background:var(--fas-accent); }
.fas-nav svg   { width:15px; height:15px; }
.fas-nav-prev  { left:6px; }
.fas-nav-next  { right:6px; }

/* PROGRESS BAR */
.fas-progress-bar  { height:3px; background:rgba(255,255,255,0.1); overflow:hidden; position:relative; flex-shrink:0; }
.fas-progress-fill { height:100%; width:0%; background:var(--fas-accent); animation:fas-progress linear infinite; }
@keyframes fas-progress { from { width:0%; } to { width:100%; } }
.fas-wrapper.fas-paused .fas-progress-fill { animation-play-state:paused; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (min-width:1200px) { .fas-wrapper { --fas-slide-height:480px; } }

@media (max-width:900px) {
    .fas-wrapper { --fas-slide-height:340px; --fas-thumb-height:62px; }
    .fas-main { grid-template-columns:55% 45%; }
    .fas-info-item { padding:16px 14px; gap:8px; }
    .fas-title { font-size:0.95rem; }
    .fas-thumb { width:70px; height:44px; }
}

@media (max-width:680px) {
    .fas-wrapper { --fas-slide-height:auto; --fas-thumb-height:60px; }
    .fas-main { grid-template-columns:1fr; grid-template-rows:210px auto; height:auto; }
    .fas-slides-wrap { height:210px; }
    .fas-info-panel  { position:relative; height:auto; min-height:160px; }
    .fas-info-item   { position:relative; display:none; opacity:1; transform:none; padding:14px 12px; min-height:160px; }
    .fas-info-item.fas-active { display:flex; pointer-events:auto; }
    .fas-thumbs { justify-content:flex-start; overflow-x:auto; gap:5px; padding-bottom:2px; }
    .fas-thumbs-wrap { padding:0 36px; }
    .fas-thumb { width:62px; height:40px; }
}

@media (max-width:480px) {
    .fas-slides-wrap { height:180px; }
    .fas-info-item   { padding:11px 10px; gap:7px; }
    .fas-title       { font-size:0.88rem; }
    .fas-excerpt     { font-size:0.78rem; }
    .fas-thumb       { width:52px; height:33px; }
    .fas-actions     { flex-direction:column; align-items:flex-start; }
}

/* ADMIN */
.fas-admin-wrap { max-width:1100px; }
.fas-admin-wrap h1 { display:flex; align-items:center; gap:8px; font-size:1.5rem; }
.fas-admin-grid { display:grid; grid-template-columns:1fr 320px; gap:24px; margin-top:20px; }
.fas-admin-main { background:#fff; border:1px solid #e2e4e7; border-radius:4px; padding:24px; }
.fas-admin-side .fas-shortcode-box { background:#fff; border:1px solid #e2e4e7; border-left:4px solid #2271b1; border-radius:4px; padding:20px; }
.fas-shortcode-box h3 { margin-top:0; }
.fas-shortcode-box code { display:block; background:#f0f0f1; padding:8px 12px; border-radius:3px; margin:8px 0; font-size:13px; word-break:break-all; }
@media (max-width:900px) { .fas-admin-grid { grid-template-columns:1fr; } }
