/*
Theme Name: Kundasang UI Platform
Theme URI: https://blog.kundasang.com
Description: Clean, modern, fast publication theme for Kundasang & Mount Kinabalu highlands.
Author: Kundasang Engineering
Author URI: https://kundasang.com
Template: generatepress
Version: 3.0.0
*/

/* -------------------------------------------------------------------------
 * 1. Base Variables & Layout
 * ------------------------------------------------------------------------- */
:root {
    --kds-blue: #2563eb;
    --kds-blue-hover: #1d4ed8;
    --kds-blue-light: #eff6ff;
    --kds-gray-50: #f9fafb;
    --kds-gray-100: #f3f4f6;
    --kds-gray-200: #e5e7eb;
    --kds-gray-300: #d1d5db;
    --kds-gray-600: #4b5563;
    --kds-gray-700: #374151;
    --kds-gray-800: #1f2937;
    --kds-gray-900: #111827;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--kds-gray-50);
    color: var(--kds-gray-700);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#page {
    flex: 1 0 auto;
    width: 100%;
}

a {
    color: var(--kds-blue);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--kds-blue-hover);
}

/* -------------------------------------------------------------------------
 * 2. Header & Main Navigation
 * ------------------------------------------------------------------------- */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--kds-gray-200);
}

.site-header .inside-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-title a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--kds-gray-900);
}

.brand-sub {
    font-size: 22px;
    font-weight: 800;
    color: var(--kds-blue);
    margin-left: 2px;
}

.main-navigation {
    background: #ffffff;
}

.main-navigation .main-nav ul li a {
    font-weight: 500;
    color: var(--kds-gray-700);
    font-size: 0.95rem;
    padding: 0 14px;
    transition: all 0.15s ease;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a {
    color: var(--kds-blue);
    background: transparent;
}

/* Navigation Language Switcher */
.kds-nav-lang-switcher {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
}

.kds-lang-menu {
    display: inline-flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
}

.kds-lang-menu li a {
    color: var(--kds-gray-600);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.kds-lang-menu li.current-lang a {
    background: var(--kds-blue);
    color: #ffffff !important;
    font-weight: 600;
}

.kds-lang-menu li a:hover {
    background: var(--kds-gray-100);
    color: var(--kds-gray-900);
}

/* -------------------------------------------------------------------------
 * 3. Content Card & Typography
 * ------------------------------------------------------------------------- */
.inside-article {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--kds-gray-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    padding: 36px !important;
}

.entry-title a {
    color: var(--kds-gray-900);
    font-weight: 700;
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--kds-blue);
}

.entry-content h2 {
    color: var(--kds-gray-900);
    font-weight: 700;
    font-size: 1.45rem;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--kds-gray-200);
}

.entry-content h3 {
    color: var(--kds-gray-800);
    font-weight: 600;
    font-size: 1.18rem;
    margin-top: 1.4em;
    margin-bottom: 0.5em;
}

/* -------------------------------------------------------------------------
 * 4. Single Post Header & Pills
 * ------------------------------------------------------------------------- */
.kds-entry-header-meta {
    margin-bottom: 16px;
}

.kds-breadcrumbs {
    font-size: 0.85rem;
    color: var(--kds-gray-600);
    margin-bottom: 8px;
}

.kds-breadcrumbs a {
    color: var(--kds-gray-600);
}

.kds-breadcrumbs a:hover {
    color: var(--kds-blue);
}

.kds-meta-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.kds-category-badge {
    display: inline-block;
    background: var(--kds-blue-light);
    color: var(--kds-blue);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid #bfdbfe;
}

.kds-read-time {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--kds-gray-600);
}

/* -------------------------------------------------------------------------
 * 5. Booking Action Box
 * ------------------------------------------------------------------------- */
.kds-booking-cta-card {
    background: #111827;
    color: #ffffff;
    border-radius: 8px;
    padding: 24px;
    margin: 2rem 0;
    border: 1px solid var(--kds-gray-800);
}

.kds-booking-cta-card .cta-badge {
    display: inline-block;
    background: var(--kds-blue);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.kds-booking-cta-card h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin: 0 0 8px;
    font-weight: 600;
}

.kds-booking-cta-card p {
    color: #d1d5db;
    font-size: 0.92rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.kds-booking-cta-card .cta-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.btn-primary-booking {
    background: var(--kds-blue);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    transition: background 0.15s ease;
}

.btn-primary-booking:hover {
    background: var(--kds-blue-hover);
}

.btn-secondary-booking {
    background: #1f2937;
    color: #ffffff !important;
    border: 1px solid #374151;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    transition: background 0.15s ease;
}

.btn-secondary-booking:hover {
    background: #374151;
}

.cta-footer-note {
    font-size: 0.78rem !important;
    color: #9ca3af !important;
    margin: 0 !important;
}

/* -------------------------------------------------------------------------
 * 6. Author Editorial Box
 * ------------------------------------------------------------------------- */
.kds-author-box {
    background: var(--kds-gray-50);
    border: 1px solid var(--kds-gray-200);
    border-radius: 8px;
    padding: 20px;
    margin-top: 2rem;
}

.kds-author-box h4 {
    margin: 0 0 6px;
    color: var(--kds-gray-900);
    font-size: 1rem;
    font-weight: 600;
}

.kds-author-box p {
    font-size: 0.88rem;
    color: var(--kds-gray-600);
    line-height: 1.5;
    margin-bottom: 8px;
}

.author-links {
    font-size: 0.82rem;
    color: var(--kds-gray-600);
}

/* -------------------------------------------------------------------------
 * 7. Callouts & Pagination
 * ------------------------------------------------------------------------- */
.kds-callout {
    padding: 1.1rem 1.35rem;
    margin: 1.5rem 0;
    border-left: 3px solid var(--kds-blue);
    background-color: var(--kds-blue-light);
    border-radius: 0 6px 6px 0;
    border-top: 1px solid #dbeafe;
    border-right: 1px solid #dbeafe;
    border-bottom: 1px solid #dbeafe;
}

.kds-callout.tip {
    border-left-color: #10b981;
    background-color: #f0fdf4;
    border-color: #dcfce7;
}

.kds-callout.warning {
    border-left-color: #f59e0b;
    background-color: #fffbeb;
    border-color: #fef3c7;
}

.kds-callout.info {
    border-left-color: var(--kds-blue);
    background-color: #eff6ff;
    border-color: #dbeafe;
}

.kds-callout-title {
    font-weight: 700;
    color: var(--kds-gray-900);
    font-size: 1rem;
    margin-bottom: 6px;
}

.kds-callout-body {
    font-size: 0.95rem;
    color: var(--kds-gray-700);
    line-height: 1.6;
}

.kds-callout-body p:last-child {
    margin-bottom: 0;
}

.page-links {
    margin: 2em 0 1em;
    padding: 1em;
    background: var(--kds-gray-50);
    border: 1px solid var(--kds-gray-200);
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.page-links .page-links-title {
    font-weight: 600;
    color: var(--kds-gray-900);
    margin-right: 4px;
}

.page-links a,
.page-links > span:not(.page-links-title) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 4px;
    text-decoration: none;
}

.page-links a {
    background: #ffffff;
    border: 1px solid var(--kds-gray-300);
    color: var(--kds-gray-700);
}

.page-links a:hover {
    background: var(--kds-blue);
    color: #ffffff;
    border-color: var(--kds-blue);
}

.page-links > span:not(.page-links-title) {
    background: var(--kds-blue);
    color: #ffffff;
    border: 1px solid var(--kds-blue);
}

.responsive-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1.5em 0;
    border-radius: 8px;
}

.responsive-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* -------------------------------------------------------------------------
 * 8. Clean Streamlined Footer (Anchored at bottom)
 * ------------------------------------------------------------------------- */
.site-footer {
    background: #ffffff !important;
    border-top: 1px solid var(--kds-gray-200);
    color: var(--kds-gray-600);
    padding: 28px 0 20px !important;
    margin-top: auto;
}

.kds-footer-clean {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.kds-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 10px;
    font-size: 14px;
}

.kds-footer-links a {
    color: var(--kds-gray-700);
    font-weight: 500;
}

.kds-footer-links a:hover {
    color: var(--kds-blue);
}

.kds-footer-links .sep {
    color: var(--kds-gray-300);
}

.kds-footer-disclosure {
    font-size: 12px;
    color: var(--kds-gray-600);
    max-width: 700px;
    margin: 0 auto 8px;
    line-height: 1.5;
}

.kds-footer-disclosure code {
    color: var(--kds-blue);
    background: var(--kds-gray-100);
    padding: 1px 4px;
    border-radius: 3px;
}

.kds-footer-copy {
    font-size: 13px;
    color: var(--kds-gray-600);
    margin: 0;
}

/* -------------------------------------------------------------------------
 * 9. Mobile Responsiveness
 * ------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .inside-article {
        padding: 20px 16px !important;
    }
    .kds-footer-links {
        gap: 6px 10px;
        font-size: 13px;
    }
}

/* -------------------------------------------------------------------------
 * 8. Formal Editorial & Magazine Homepage Architecture
 * ------------------------------------------------------------------------- */

/* Masthead Strip */
.kds-masthead-strip {
    background: #0f172a;
    color: #94a3b8;
    padding: 10px 0;
    border-bottom: 1px solid #1e293b;
    font-size: 13px;
}
.kds-masthead-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.kds-masthead-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.kds-live-pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: kds-pulse 2s infinite;
}
@keyframes kds-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.kds-masthead-tag {
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.kds-masthead-sub {
    color: #64748b;
}
.kds-home-lang-pills {
    display: flex;
    gap: 6px;
}
.kds-lang-pill {
    color: #cbd5e1 !important;
    background: #1e293b;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid #334155;
    transition: all 0.2s;
}
.kds-lang-pill:hover,
.kds-lang-pill.active {
    background: #2563eb;
    color: #ffffff !important;
    border-color: #2563eb;
}

/* Editorial Hero Section */
.kds-hero-magazine-section {
    max-width: 1200px;
    margin: 30px auto 20px auto;
    padding: 0 20px;
}
.kds-hero-magazine-grid {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 30px;
}
@media (max-width: 960px) {
    .kds-hero-magazine-grid {
        grid-template-columns: 1fr;
    }
}

/* Lead Cover Story */
.kds-lead-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}
.kds-lead-img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}
.kds-lead-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.kds-lead-card:hover .kds-lead-img {
    transform: scale(1.03);
}
.kds-lead-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #dc2626;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.kds-lead-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.kds-card-category-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.kds-cat-pill {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #2563eb;
    background: #eff6ff;
    padding: 3px 8px;
    border-radius: 4px;
}
.kds-lead-title {
    font-size: 26px;
    line-height: 1.3;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: #0f172a;
}
.kds-lead-title a {
    color: #0f172a !important;
    text-decoration: none !important;
}
.kds-lead-title a:hover {
    color: #2563eb !important;
}
.kds-lead-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 20px;
    flex-grow: 1;
}
.kds-lead-byline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}
.kds-byline-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.kds-byline-avatar {
    width: 34px;
    height: 34px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kds-author-name-text {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}
.kds-byline-date {
    display: block;
    font-size: 12px;
    color: #64748b;
}
.kds-read-cta {
    font-size: 14px;
    font-weight: 700;
    color: #2563eb !important;
    text-decoration: none !important;
}
.kds-read-cta:hover {
    text-decoration: underline !important;
}

/* Spotlight Side Column */
.kds-spotlight-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.kds-spotlight-header {
    border-bottom: 2px solid #0f172a;
    padding-bottom: 8px;
}
.kds-spotlight-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #0f172a;
}
.kds-side-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.kds-side-img-wrap {
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}
.kds-side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.kds-cat-pill-sm {
    font-size: 10px;
    font-weight: 800;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 6px;
    border-radius: 3px;
}
.kds-side-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 4px;
}
.kds-side-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 6px 0;
}
.kds-side-title a {
    color: #0f172a !important;
    text-decoration: none !important;
}
.kds-side-title a:hover {
    color: #2563eb !important;
}
.kds-side-date {
    font-size: 11px;
    color: #94a3b8;
}
.kds-side-booking-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    padding: 14px;
}
.kds-side-booking-card h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.kds-side-booking-card p {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 10px 0;
    line-height: 1.4;
}
.kds-side-booking-btn {
    display: inline-block;
    background: #2563eb;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none !important;
}

/* Trail Alert Strip */
.kds-trail-alert-strip {
    max-width: 1200px;
    margin: 10px auto 30px auto;
    padding: 0 20px;
}
.kds-trail-alert-content {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.kds-alert-pulse-dot {
    width: 10px;
    height: 10px;
    background: #f59e0b;
    border-radius: 50%;
    display: inline-block;
}
.kds-alert-text-wrap {
    font-size: 13px;
    color: #92400e;
    flex-grow: 1;
    line-height: 1.5;
}
.kds-alert-btn {
    background: #d97706;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    white-space: nowrap;
}

/* Magazine Grid Section */
.kds-magazine-grid-section {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}
.kds-section-title-wrap {
    margin-bottom: 24px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}
.kds-section-heading {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
}
.kds-section-subtitle {
    font-size: 14px;
    color: #64748b;
}
.kds-magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.kds-mag-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.kds-mag-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.kds-mag-thumb-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}
.kds-mag-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.kds-mag-card:hover .kds-mag-thumb {
    transform: scale(1.04);
}
.kds-mag-cat-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}
.kds-mag-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.kds-mag-meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}
.kds-mag-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px 0;
}
.kds-mag-title a {
    color: #0f172a !important;
    text-decoration: none !important;
}
.kds-mag-title a:hover {
    color: #2563eb !important;
}
.kds-mag-excerpt {
    font-size: 14px;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 16px;
    flex-grow: 1;
}
.kds-mag-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.kds-mag-link {
    font-size: 13px;
    font-weight: 700;
    color: #2563eb !important;
    text-decoration: none !important;
}

/* Newsletter Section */
.kds-newsletter-card-section {
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}
.kds-newsletter-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 12px;
    padding: 30px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.kds-newsletter-text h3 {
    color: #ffffff;
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 800;
}
.kds-newsletter-text p {
    color: #94a3b8;
    margin: 0;
    font-size: 14px;
    max-width: 600px;
}
.kds-newsletter-actions {
    display: flex;
    gap: 10px;
}
.kds-btn-newsletter-primary {
    background: #2563eb;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none !important;
}
.kds-btn-newsletter-secondary {
    background: rgba(255,255,255,0.1);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none !important;
}

/* Single Post Editorial Metadata Header */
.kds-post-editorial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
    margin: 10px 0 24px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.kds-meta-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}
.kds-author-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: #0f172a;
}
.kds-meta-divider {
    color: #cbd5e1;
}
.kds-editorial-author-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 18px;
}
.kds-author-avatar-wrap .kds-author-avatar-initials {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kds-author-name {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}
.kds-author-bio {
    font-size: 13px;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 12px 0;
}
.kds-author-links {
    display: flex;
    gap: 14px;
}
.kds-author-links a {
    font-size: 12px;
    font-weight: 700;
    color: #2563eb !important;
    text-decoration: none !important;
}

/* -------------------------------------------------------------------------
 * 11. Bespoke Editorial Journal Homepage
 * ------------------------------------------------------------------------- */

.kds-journal-home {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

/* Featured Cover Story */
.kds-cover-section {
    margin-bottom: 48px;
    padding-bottom: 36px;
    border-bottom: 1px solid #e2e8f0;
}

.kds-cover-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 36px;
    align-items: center;
}

@media (max-width: 860px) {
    .kds-cover-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.kds-cover-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f5f9;
}

.kds-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kds-cover-card:hover .kds-cover-img {
    transform: scale(1.02);
}

.kds-cover-details {
    display: flex;
    flex-direction: column;
}

.kds-cover-meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}

.kds-tag-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2563eb;
}

.kds-meta-sep {
    color: #cbd5e1;
}

.kds-cover-headline {
    font-size: 28px;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 14px 0;
}

.kds-cover-headline a {
    color: #0f172a !important;
    text-decoration: none !important;
}

.kds-cover-headline a:hover {
    color: #2563eb !important;
}

.kds-cover-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 20px 0;
}

.kds-cover-byline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.kds-byline-text {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* Feed Section */
.kds-feed-section {
    margin-bottom: 40px;
}

.kds-feed-header {
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.kds-feed-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
}

.kds-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.kds-story-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.kds-story-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 6px;
    background: #f1f5f9;
    margin-bottom: 14px;
}

.kds-story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kds-story-card:hover .kds-story-img {
    transform: scale(1.02);
}

.kds-story-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.kds-story-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.kds-story-headline {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 8px 0;
}

.kds-story-headline a {
    color: #0f172a !important;
    text-decoration: none !important;
}

.kds-story-headline a:hover {
    color: #2563eb !important;
}

.kds-story-excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: #64748b;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.kds-story-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.kds-story-read-link {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb !important;
    text-decoration: none !important;
}

.kds-story-read-link:hover {
    text-decoration: underline !important;
}
