/**
 * Prompt & Learn - Custom CSS Framework
 * Supplements Tailwind with animations, Gutenberg overrides, and custom components.
 */

/* ============================================
   Self-hosted Google Fonts (@font-face)
   ============================================ */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-700.woff2') format('woff2'); }

@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/outfit-400.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/outfit-500.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/outfit-600.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/outfit-700.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/outfit-800.woff2') format('woff2'); }

@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jetbrains-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jetbrains-mono-500.woff2') format('woff2'); }

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
    --pal-bg: #0a0a0f;
    --pal-surface: #12121a;
    --pal-card: #1a1a2e;
    --pal-border: #2a2a3e;
    --pal-neon: #00f0ff;
    --pal-neon-pink: #ff006e;
    --pal-neon-green: #39ff14;
    --pal-neon-purple: #bf00ff;
    --pal-text: #e4e4e7;
    --pal-muted: #71717a;
    --pal-radius: 16px;
    --pal-transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --space-2xl: 2.5rem;
    --space-3xl: 3.5rem;
}

/* ============================================
   Custom Logo Constraint
   ============================================ */
.custom-logo-link img,
.custom-logo {
    max-height: 40px !important;
    width: auto !important;
    height: auto !important;
    max-width: 160px !important;
}
.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

/* ============================================
   Base & Reset Enhancements
   ============================================ */
*,
*::before,
*::after {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Global Link Reset ── */
a {
    text-decoration: none !important;
    color: inherit;
}
a:hover {
    text-decoration: none !important;
}

/* ── Navigation Menu Links ── */
#site-header nav a,
#site-header .menu a,
#site-header .menu-item a,
#mobile-menu a,
.animate-ticker a {
    text-decoration: none !important;
    border-bottom: none !important;
}
#site-header nav ul,
#mobile-menu ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
#site-header nav li,
#mobile-menu li {
    list-style: none !important;
    white-space: nowrap;
}
#mobile-menu ul {
    flex-direction: column;
    align-items: stretch;
}

/* ── Mobile Menu — Compact slide-down panel ── */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(10, 12, 20, .98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,224,255,.08);
    box-shadow: 0 16px 48px rgba(0,0,0,.6);
    max-height: 100dvh;
    overflow-y: auto;
    animation: mobileMenuIn 0.2s ease-out;
}
.mobile-menu-overlay.hidden {
    display: none !important;
}
@keyframes mobileMenuIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mobile-menu-inner {
    padding: 16px 20px 24px;
}
.mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.4);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.mobile-menu-close:hover {
    color: #fff;
    border-color: rgba(0,224,255,.3);
}
.mobile-menu-nav {
    padding: 0;
}
.mobile-menu-list {
    list-style: none !important;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mobile-menu-list li {
    list-style: none !important;
}
.mobile-menu-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    font-size: .95rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: rgba(255,255,255,.65);
    text-decoration: none !important;
    border-radius: 12px;
    transition: all 0.15s;
}
.mobile-menu-list li a::before {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(0,224,255,.3);
    flex-shrink: 0;
}
.mobile-menu-list li a:hover,
.mobile-menu-list li.current-menu-item a {
    color: #fff;
    background: rgba(0,224,255,.05);
}
.mobile-menu-list li a:hover::before,
.mobile-menu-list li.current-menu-item a::before {
    background: var(--pal-neon);
    box-shadow: 0 0 6px var(--pal-neon);
}
.mobile-menu-list li a span {
    display: block;
    padding: 0;
    min-height: auto;
    font: inherit;
    color: inherit;
    background: none;
}
.mobile-menu-cta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.05);
}
.mobile-menu-subscribe {
    display: block;
    width: 100%;
    text-align: center;
    padding: 13px 20px;
    background: var(--pal-neon);
    color: #0a0a0f;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.2s;
}
.mobile-menu-subscribe:hover {
    box-shadow: 0 4px 20px rgba(0,224,255,.25);
}

/* ── Post Card Link Overrides ── */
article a,
a.block,
.group a {
    text-decoration: none !important;
    border-bottom: none !important;
}
article a:hover h2,
article a:hover h3,
article a:hover h4 {
    color: var(--pal-neon);
}

/* ── Blog Content Readability ── */
.prose {
    color: #d4d4d8 !important;
}
.pal-article-content p {
    color: #d4d4dc !important;
    font-size: 1.0625rem;
    line-height: 1.9;
    letter-spacing: 0.01em;
    margin-bottom: 1.75rem;
}
.pal-article-content p:first-of-type {
    font-size: 1.15rem;
    color: #e4e4e7 !important;
    line-height: 1.85;
}
.prose p,
.prose li,
.prose td,
.prose dd {
    color: #d4d4d8 !important;
}
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: #ffffff !important;
}
.pal-article-content h2 {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
.prose strong,
.prose b {
    color: #ffffff !important;
}
.prose a {
    color: var(--pal-neon) !important;
    text-decoration: none !important;
}
.prose a:hover {
    text-decoration: underline !important;
}
.prose blockquote,
.prose blockquote p {
    color: #d4d4d8 !important;
}
.prose code {
    color: var(--pal-neon) !important;
}
/* Drop cap for first paragraph */
.pal-article-content > p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 0.85;
    padding-right: 0.5rem;
    padding-top: 0.15rem;
    color: var(--pal-neon);
}

/* ── Article Content Mobile Overrides ── */
.pal-article-content pre { overflow-x: auto; max-width: 100%; }
.pal-article-content table { display: block; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.pal-article-content iframe,
.pal-article-content .wp-block-embed__wrapper iframe { max-width: 100%; }
.pal-article-content .wp-block-embed { overflow: hidden; }
.pal-article-content .wp-block-embed.is-type-video .wp-block-embed__wrapper {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
}
.pal-article-content .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.pal-article-content img { max-width: 100%; height: auto; }

/* ── Footer Links ── */
footer a {
    text-decoration: none !important;
}
footer a:hover {
    color: var(--pal-neon);
}

/* ── Post Card Styling ── */
.pal-card-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.pal-card-wrap .pal-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pal-card-wrap .pal-card-excerpt {
    color: var(--pal-muted) !important;
    text-decoration: none !important;
}

::selection {
    background: rgba(0, 240, 255, 0.25);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--pal-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--pal-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--pal-neon);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}
@media (min-width: 768px) {
    html { scroll-padding-top: 100px; }
}

/* ============================================
   Sticky Header States
   ============================================ */
#site-header {
    transition: background var(--pal-transition), box-shadow var(--pal-transition);
}
#site-header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 240, 255, 0.05);
}

/* ============================================
   Ticker Animation
   ============================================ */
@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-ticker {
    display: flex;
    width: max-content;
    animation: ticker 52s linear infinite;
}
.animate-ticker:hover {
    animation-play-state: paused;
}
@media (max-width: 768px) {
    .animate-ticker {
        animation-duration: 33s;
    }
}

/* ============================================
   Neon Glow Effects
   ============================================ */
.neon-glow {
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2),
                0 0 30px rgba(0, 240, 255, 0.1),
                0 0 60px rgba(0, 240, 255, 0.05);
}

.neon-text {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5),
                 0 0 20px rgba(0, 240, 255, 0.3);
}

.neon-border {
    border-color: var(--pal-neon);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15),
                inset 0 0 10px rgba(0, 240, 255, 0.05);
}

/* ============================================
   Card Hover Effects
   ============================================ */
.group:hover .neon-line {
    width: 100%;
}
.neon-line {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pal-neon), var(--pal-neon-purple));
    transition: width var(--pal-transition);
}

/* ============================================
   Gutenberg Block Overrides
   ============================================ */
.wp-block-image {
    border-radius: var(--pal-radius);
    overflow: hidden;
    border: 1px solid var(--pal-border);
}

.wp-block-code {
    background: var(--pal-card) !important;
    border: 1px solid var(--pal-border);
    border-radius: 12px;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: var(--pal-neon);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) {
    .wp-block-code { padding: 1.5rem; font-size: 0.875rem; }
}

.wp-block-quote {
    border-left: 3px solid var(--pal-neon);
    background: rgba(26, 26, 46, 0.5);
    border-radius: 0 12px 12px 0;
    padding: 1rem;
    margin: 1.5rem 0;
}
@media (min-width: 640px) {
    .wp-block-quote { padding: 1.5rem; margin: 2rem 0; }
}
.wp-block-quote p {
    color: var(--pal-text);
    font-style: italic;
}

.wp-block-separator {
    border-color: var(--pal-border) !important;
    opacity: 0.5;
}

/* Table wrapper for mobile horizontal scroll */
.wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.wp-block-table table {
    border-collapse: collapse;
    width: 100%;
    min-width: 480px;
}
.wp-block-table th {
    background: var(--pal-card);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.wp-block-table td,
.wp-block-table th {
    border: 1px solid var(--pal-border);
    padding: 0.5rem 0.75rem;
}
@media (min-width: 640px) {
    .wp-block-table td, .wp-block-table th { padding: 0.75rem 1rem; }
    .wp-block-table th { font-size: 0.75rem; }
}
.wp-block-table tr:hover td {
    background: rgba(0, 240, 255, 0.03);
}

.wp-block-button__link {
    background: var(--pal-neon) !important;
    color: var(--pal-bg) !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    border-radius: 12px !important;
    padding: 0.75rem 2rem !important;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--pal-transition);
}
.wp-block-button__link:hover {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    transform: translateY(-1px);
}

.wp-block-columns {
    gap: 1.5rem;
}

.has-large-font-size { font-size: 1.5rem; }
.has-x-large-font-size { font-size: 2rem; }
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }

/* ============================================
   Search Form
   ============================================ */
.search-form {
    display: flex;
    gap: 0.75rem;
}
.search-form .search-field {
    flex: 1;
    background: var(--pal-card);
    border: 1px solid var(--pal-border);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--pal-transition);
}
.search-form .search-field:focus {
    border-color: var(--pal-neon);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}
.search-form .search-submit {
    background: var(--pal-neon);
    color: var(--pal-bg);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--pal-transition);
}
.search-form .search-submit:hover {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* ============================================
   Comments Styling
   ============================================ */
.comment-list {
    list-style: none;
    padding: 0;
}
.comment-body {
    background: var(--pal-card);
    border: 1px solid var(--pal-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.comment-author .avatar {
    border-radius: 12px;
    margin-right: 0.75rem;
}
.comment-content p {
    color: var(--pal-text);
    font-size: 0.875rem;
}
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    background: var(--pal-card);
    border: 1px solid var(--pal-border);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--pal-transition);
}
.comment-respond input:focus,
.comment-respond textarea:focus {
    border-color: var(--pal-neon);
}
.comment-respond .submit {
    background: var(--pal-neon);
    color: var(--pal-bg);
    font-weight: 700;
    padding: 0.75rem 2rem;
    min-height: 44px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
}

/* ============================================
   Bot-Generated "Key Takeaways" Box Override
   (Bot uses inline styles, but ensure fallback)
   ============================================ */
.entry-content div[style*="border-left: 4px solid #a855f7"],
.prose div[style*="border-left: 4px solid #a855f7"] {
    border-left-color: var(--pal-neon) !important;
}

/* ============================================
   Loading Skeleton
   ============================================ */
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--pal-card) 25%, var(--pal-border) 50%, var(--pal-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* ============================================
   WP Navigation Menu Classes (for wp_nav_menu)
   ============================================ */
.menu { list-style: none; padding: 0; margin: 0; }
.menu-item { display: inline-block; }
.menu-item a { text-decoration: none; }

/* ============================================
   Responsive Overrides
   ============================================ */
@media (max-width: 768px) {
    .prose h2 { font-size: 1.375rem; }
    .prose h3 { font-size: 1.125rem; }
    .prose p  { font-size: 0.9375rem; }
}
@media (max-width: 480px) {
    .prose { font-size: 0.9375rem; }
    .prose h2 { font-size: 1.25rem; }
    .prose h3 { font-size: 1.0625rem; }
    .prose p  { font-size: 0.875rem; line-height: 1.7; }
    .prose pre { font-size: 0.75rem; }
    .animate-ticker { gap: 1.5rem; }
    .search-form { flex-direction: column; }
    .search-form .search-submit { width: 100%; min-height: 44px; }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    body { background: #fff; color: #000; }
    #site-header, .animate-ticker, footer, .search-form { display: none; }
    .prose a { color: #000; text-decoration: underline; }
    .prose a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* ============================================
   Accessibility — Focus Indicators
   ============================================ */
:focus-visible {
    outline: 2px solid var(--pal-neon);
    outline-offset: 2px;
}

/* ============================================
   Polylang Language Switcher — Pill Design
   ============================================ */
.language-switcher {
    position: relative;
}
.language-switcher .lang-toggle {
    cursor: pointer;
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50px;
    padding: 5px 10px;
    min-height: 36px;
    gap: 6px;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}
.language-switcher .lang-toggle:hover {
    border-color: rgba(0,224,255,.35);
    color: var(--pal-neon);
    background: rgba(0,224,255,.06);
    box-shadow: 0 0 16px rgba(0,224,255,.08);
}
.language-switcher .lang-dropdown {
    animation: langDropIn 0.2s ease-out;
    backdrop-filter: blur(16px);
    background: rgba(15,18,28,.96) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.03) inset !important;
    padding: 6px !important;
}
@keyframes langDropIn {
    from { opacity: 0; transform: translateY(-6px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.language-switcher .lang-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.language-switcher .lang-dropdown li {
    display: block;
}
.language-switcher .lang-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: rgba(255,255,255,.55);
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none !important;
    border-radius: 10px;
}
.language-switcher .lang-dropdown li a:hover {
    color: #fff;
    background: rgba(0, 224, 255, 0.08);
}
.language-switcher .lang-dropdown li.current-lang a {
    color: var(--pal-neon);
    background: rgba(0, 224, 255, 0.1);
}
.language-switcher .lang-dropdown li.current-lang a::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--pal-neon);
    margin-left: auto;
    box-shadow: 0 0 6px var(--pal-neon);
}
.language-switcher .lang-dropdown li img,
.language-switcher .lang-toggle img {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

/* ============================================
   RTL Support (Arabic)
   ============================================ */
[dir="rtl"] .animate-ticker {
    animation-direction: reverse;
}
[dir="rtl"] .prose h2 {
    border-left: none;
    border-right: 4px solid var(--pal-neon);
    padding-left: 0;
    padding-right: 1rem;
}
[dir="rtl"] .text-right {
    text-align: left;
}
[dir="rtl"] .text-left {
    text-align: right;
}

/* ============================================
   Page Layout Primitives
   ============================================ */
.container--narrow {
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Page Hero ── */
.page-hero {
    position: relative;
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    overflow: hidden;
    background: var(--pal-bg);
}
@media (min-width: 768px) {
    .page-hero { padding: 6rem 1.5rem 4rem; }
}
.page-hero .container { position: relative; z-index: 1; max-width: 1200px; margin-left: auto; margin-right: auto; }
.container { margin-left: auto !important; margin-right: auto !important; }
.page-hero__label {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pal-neon);
    border: 1px solid rgba(0, 240, 255, 0.3);
    background: rgba(0, 240, 255, 0.08);
    padding: 0.375rem 1rem;
    border-radius: 999px;
}
.page-hero__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-top: 1.5rem;
}
.page-hero__desc {
    font-size: 1.125rem;
    color: var(--pal-muted);
    max-width: 600px;
    margin: 1rem auto 0;
    line-height: 1.7;
}
.page-hero--glossary,
.page-hero--tools { position: relative; }
.page-hero__glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
}
.page-hero__glow--purple { background: var(--pal-neon-purple); top: -100px; right: -100px; }
.page-hero__glow--teal   { background: var(--pal-neon);        bottom: -100px; left: -100px; }

/* ── Page Section ── */
.page-section { padding: 4rem 1.5rem; }
.page-section > .container { max-width: 1200px; margin: 0 auto; }
.page-section--alt { background: var(--pal-surface); }
.page-section__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
}
.page-content { padding: 3rem 1.5rem; }
.page-content__body { color: var(--pal-text); line-height: 1.8; font-size: 1rem; }
.page-content__body p { margin-bottom: 1.25rem; color: var(--pal-text); }
.page-content__body h2 {
    font-family: 'Outfit', sans-serif; font-size: 1.375rem; font-weight: 700;
    color: #fff; margin-top: 2.5rem; margin-bottom: 1rem;
    border-left: 3px solid var(--pal-neon); padding-left: 0.75rem;
}
.page-content__body ul { list-style: none; padding: 0; margin-bottom: 1.25rem; }
.page-content__body ul li { position: relative; padding-left: 1.25rem; margin-bottom: 0.5rem; color: var(--pal-text); }
.page-content__body ul li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--pal-neon); }
.page-content__body a { color: var(--pal-neon); text-decoration: none !important; }
.page-content__body a:hover { text-decoration: underline !important; }

/* ── Legal Content ── */
.legal-content h2 { font-family: 'Outfit', sans-serif; font-size: 1.375rem; font-weight: 700; color: #fff; margin-top: 2.5rem; margin-bottom: 1rem; border-left: 3px solid var(--pal-neon); padding-left: 0.75rem; }
.legal-content p { margin-bottom: 1.25rem; color: var(--pal-text); line-height: 1.8; }
.legal-content ul { list-style: none; padding: 0; margin-bottom: 1.25rem; }
.legal-content ul li { position: relative; padding-left: 1.25rem; margin-bottom: 0.5rem; color: var(--pal-text); }
.legal-content ul li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--pal-neon); }
.legal-content a { color: var(--pal-neon); }
.legal-content a:hover { text-decoration: underline !important; }

/* ============================================
   Button Components
   ============================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; font-weight: 700; border-radius: 12px; transition: all var(--pal-transition); cursor: pointer; border: none; text-decoration: none !important; padding: 0.75rem 1.5rem; font-size: 0.875rem; min-height: 44px; line-height: 1; }
.btn--primary { background: var(--pal-neon); color: var(--pal-bg); }
.btn--primary:hover { box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); transform: translateY(-1px); color: var(--pal-bg); }
.btn--outline { background: transparent; color: var(--pal-neon); border: 1px solid var(--pal-neon); }
.btn--outline:hover { background: rgba(0, 240, 255, 0.1); color: var(--pal-neon); }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }

/* ============================================
   Section Header Components
   ============================================ */
.section__header { margin-bottom: 3rem; }
.section__overline { display: flex; align-items: center; gap: 0.75rem; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pal-neon); margin-bottom: 0.75rem; }
.section__overline::before { content: ''; width: 24px; height: 2px; background: var(--pal-neon); flex-shrink: 0; }
.section__title { font-family: 'Outfit', sans-serif; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; color: #fff; }
.section__description { font-size: 1rem; color: var(--pal-muted); margin-top: 0.75rem; max-width: 500px; line-height: 1.7; }
.section__header-content { max-width: 600px; }

/* ============================================
   Utility Classes
   ============================================ */
.gradient-text { background: linear-gradient(135deg, var(--pal-neon), var(--pal-neon-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.fade-in-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-up.animate-slide-up { opacity: 1; transform: translateY(0); }
.js-scroll-init { opacity: 0; transition: opacity 0.5s ease; }

/* ============================================
   Contact Page Components
   ============================================ */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.contact-card { background: var(--pal-card); border: 1px solid var(--pal-border); border-radius: var(--pal-radius); padding: 2rem; transition: border-color var(--pal-transition); }
.contact-card:hover { border-color: rgba(0, 240, 255, 0.4); }
.contact-card__icon { font-size: 2rem; margin-bottom: 1rem; }
.contact-card__title { font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.contact-card__desc { font-size: 0.875rem; color: var(--pal-muted); line-height: 1.6; margin-bottom: 1rem; }
.contact-card__link { font-family: 'JetBrains Mono', monospace; font-size: 0.875rem; color: var(--pal-neon) !important; }
.contact-card__link:hover { text-decoration: underline !important; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.contact-form__field { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-form__field label { font-size: 0.875rem; color: var(--pal-text); font-weight: 500; }
.contact-form__field input,
.contact-form__field textarea { width: 100%; background: var(--pal-card); border: 1px solid var(--pal-border); color: #fff; padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.875rem; outline: none; transition: border-color var(--pal-transition); font-family: inherit; }
.contact-form__field input:focus,
.contact-form__field textarea:focus { border-color: var(--pal-neon); box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1); }
.contact-form__field textarea { resize: vertical; min-height: 120px; }

/* ============================================
   Business Page Components
   ============================================ */
.biz-hero { position: relative; padding: 5rem 1.5rem 4rem; text-align: center; overflow: hidden; background: var(--pal-bg); }
@media (min-width: 768px) { .biz-hero { padding: 7rem 1.5rem 5rem; } }
.biz-hero__glow { position: absolute; width: 500px; height: 500px; border-radius: 50%; filter: blur(150px); opacity: 0.12; pointer-events: none; }
.biz-hero__glow--purple { background: var(--pal-neon-purple); top: -150px; right: -150px; }
.biz-hero__glow--teal { background: var(--pal-neon); bottom: -150px; left: -150px; }
.biz-hero__inner { position: relative; z-index: 1; }
.biz-hero__title { font-family: 'Outfit', sans-serif; font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; color: #fff; line-height: 1.1; margin-top: 1.5rem; }
.biz-hero__subtitle { font-size: 1.25rem; color: var(--pal-muted); max-width: 640px; margin: 1.5rem auto 0; line-height: 1.7; }
.biz-hero__actions { display: flex; gap: 1rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.biz-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.biz-service-card { background: var(--pal-card); border: 1px solid var(--pal-border); border-radius: var(--pal-radius); padding: 2rem; transition: border-color var(--pal-transition); }
.biz-service-card:hover { border-color: rgba(0, 240, 255, 0.4); }
.biz-service-card__icon { width: 48px; height: 48px; color: var(--pal-neon); margin-bottom: 1.5rem; }
.biz-service-card__icon svg { width: 100%; height: 100%; }
.biz-service-card__title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.25rem; color: #fff; margin-bottom: 0.75rem; }
.biz-service-card__desc { font-size: 0.875rem; color: var(--pal-muted); line-height: 1.7; margin-bottom: 1rem; }
.biz-service-card__list { list-style: none; padding: 0; margin: 0; }
.biz-service-card__list li { position: relative; padding-left: 1.25rem; margin-bottom: 0.375rem; font-size: 0.8125rem; color: var(--pal-text); }
.biz-service-card__list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--pal-neon); }
.biz-process { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.biz-process__step { background: var(--pal-card); border: 1px solid var(--pal-border); border-top: 2px solid var(--pal-neon); border-radius: 0 0 var(--pal-radius) var(--pal-radius); padding: 2rem; }
.biz-process__number { font-family: 'Outfit', sans-serif; font-size: 3rem; font-weight: 800; color: var(--pal-neon); opacity: 0.3; line-height: 1; }
.biz-process__title { font-family: 'Outfit', sans-serif; font-weight: 700; color: #fff; font-size: 1.125rem; margin-top: 0.5rem; }
.biz-process__desc { font-size: 0.875rem; color: var(--pal-muted); margin-top: 0.5rem; line-height: 1.6; }
.biz-contact { background: var(--pal-card); border: 1px solid var(--pal-border); border-radius: var(--pal-radius); padding: 2.5rem; }
@media (min-width: 768px) { .biz-contact { padding: 3.5rem; } }
.biz-form { display: flex; flex-direction: column; gap: 1.5rem; }
.biz-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.biz-form__field { display: flex; flex-direction: column; gap: 0.5rem; }
.biz-form__label { font-size: 0.875rem; color: var(--pal-text); font-weight: 500; }
.biz-form__input { width: 100%; background: var(--pal-surface); border: 1px solid var(--pal-border); color: #fff; padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.875rem; outline: none; transition: border-color var(--pal-transition); font-family: inherit; }
.biz-form__input:focus { border-color: var(--pal-neon); box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1); }
select.biz-form__input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2371717a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1rem; padding-right: 2.5rem; }
.biz-form__textarea { resize: vertical; min-height: 120px; }

/* ============================================
   About Page — Values Grid
   ============================================ */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.value-card { background: var(--pal-card); border: 1px solid var(--pal-border); border-radius: var(--pal-radius); padding: 2rem; transition: border-color var(--pal-transition); }
.value-card:hover { border-color: rgba(0, 240, 255, 0.4); }
.value-card__icon { font-size: 2rem; margin-bottom: 1rem; }
.value-card__title { font-family: 'Outfit', sans-serif; font-size: 1.125rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.value-card__desc { font-size: 0.875rem; color: var(--pal-muted); line-height: 1.6; }

/* ============================================
   Glossary Page Components
   ============================================ */
.glossary-search { position: relative; max-width: 500px; margin: 2rem auto 0; }
.glossary-search__icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--pal-muted); pointer-events: none; }
.glossary-search__input { width: 100%; padding: 0.875rem 1rem 0.875rem 2.75rem; background: var(--pal-card); border: 1px solid var(--pal-border); color: #fff; border-radius: 12px; font-size: 0.875rem; font-family: 'JetBrains Mono', monospace; outline: none; transition: border-color var(--pal-transition); }
.glossary-search__input:focus { border-color: var(--pal-neon); box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1); }
.glossary-search__input::placeholder { color: var(--pal-muted); opacity: 0.6; }
.glossary-alpha { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; margin-top: 1.5rem; }
.glossary-alpha__link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; font-weight: 500; color: var(--pal-muted); border: 1px solid var(--pal-border); border-radius: 8px; transition: all var(--pal-transition); text-decoration: none !important; }
.glossary-alpha__link:hover { color: var(--pal-neon); border-color: var(--pal-neon); background: rgba(0, 240, 255, 0.05); }
.glossary-group { margin-bottom: 2.5rem; }
.glossary-group__letter { font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800; color: var(--pal-neon); border-bottom: 2px solid var(--pal-border); padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
.glossary-item { background: var(--pal-card); border: 1px solid var(--pal-border); border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 0.75rem; transition: border-color var(--pal-transition); }
.glossary-item:hover { border-color: rgba(0, 240, 255, 0.3); }
.glossary-item__term { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.375rem; }
.glossary-item__def { font-size: 0.875rem; color: var(--pal-muted); line-height: 1.6; }

/* ============================================
   Tools Page Components
   ============================================ */
.tools-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.tools-filter__btn { padding: 0.5rem 1rem; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; font-weight: 500; color: var(--pal-muted); background: var(--pal-card); border: 1px solid var(--pal-border); border-radius: 8px; cursor: pointer; transition: all var(--pal-transition); }
.tools-filter__btn:hover { color: var(--pal-neon); border-color: rgba(0, 240, 255, 0.4); }
.tools-filter__btn.is-active { color: var(--pal-bg); background: var(--pal-neon); border-color: var(--pal-neon); }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.tool-card { background: var(--pal-card); border: 1px solid var(--pal-border); border-radius: var(--pal-radius); padding: 1.5rem; display: flex; flex-direction: column; transition: border-color var(--pal-transition); }
.tool-card:hover { border-color: rgba(0, 240, 255, 0.4); }
.tool-card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.tool-card__icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0.5rem; }
.tool-card__icon svg { width: 100%; height: 100%; }
.tool-card__icon--green  { background: rgba(57, 255, 20, 0.1);  color: var(--pal-neon-green); }
.tool-card__icon--blue   { background: rgba(0, 240, 255, 0.1);  color: var(--pal-neon); }
.tool-card__icon--purple { background: rgba(191, 0, 255, 0.1);  color: var(--pal-neon-purple); }
.tool-card__icon--orange { background: rgba(255, 165, 0, 0.1);  color: #ffa500; }
.tool-card__icon--pink   { background: rgba(255, 0, 110, 0.1);  color: var(--pal-neon-pink); }
.tool-card__badge { font-family: 'JetBrains Mono', monospace; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--pal-neon); background: rgba(0, 240, 255, 0.08); border: 1px solid rgba(0, 240, 255, 0.2); padding: 0.25rem 0.5rem; border-radius: 6px; }
.tool-card__title { font-family: 'Outfit', sans-serif; font-size: 1.125rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.tool-card__desc { font-size: 0.8125rem; color: var(--pal-muted); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.tool-card__meta { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--pal-border); }
.tool-card__pricing { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--pal-muted); }
.tool-card__link { display: inline-flex; align-items: center; gap: 0.375rem; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--pal-neon) !important; text-decoration: none !important; transition: opacity var(--pal-transition); }
.tool-card__link:hover { opacity: 0.8; }
.tool-card__link svg { width: 14px; height: 14px; }
.tools-submit { margin-top: 3rem; }
.tools-submit__inner { background: var(--pal-card); border: 1px solid var(--pal-border); border-radius: var(--pal-radius); padding: 2.5rem; text-align: center; }
.tools-submit__title { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.tools-submit__desc { font-size: 0.9375rem; color: var(--pal-muted); max-width: 500px; margin: 0 auto 1.5rem; line-height: 1.6; }

/* ============================================
   Responsive: New Components
   ============================================ */
@media (max-width: 768px) {
    .biz-hero__actions { flex-direction: column; align-items: center; }
    .biz-hero__actions .btn { width: 100%; max-width: 320px; }
    .contact-form__row, .biz-form__row { grid-template-columns: 1fr; }
    .page-hero__glow, .biz-hero__glow { width: 250px; height: 250px; }
    .tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .page-hero { padding: 3rem 1rem 2rem; }
    .page-section { padding: 2.5rem 1rem; }
    .biz-hero { padding: 3.5rem 1rem 2.5rem; }
    .biz-contact { padding: 1.5rem; }
    .glossary-alpha__link { width: 30px; height: 30px; font-size: 0.625rem; }
}

/* ============================================================
   HERO GRID — Design 1
   ============================================================ */

.pal-hero-section { padding: 24px 0 0; }
.pal-hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.pal-hero-grid {
    display: grid !important;
    grid-template-columns: 1fr 300px;
    gap: 16px;
    align-items: start;
}

.pal-hero-main {
    display: flex !important;
    flex-direction: column;
    position: relative;
    background: #161b25;
    border: 1px solid #252f42;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s;
    text-decoration: none;
    color: inherit;
}
.pal-hero-main:hover { border-color: #4f9cf944; }

.pal-hero-img { height: 300px; overflow: hidden; flex-shrink: 0; position: relative; }
.pal-hero-img-el { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.pal-hero-main:hover .pal-hero-img-el { transform: scale(1.03); }
.pal-hero-img-fallback { width: 100%; height: 100%; }

.pal-hero-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.pal-hero-badge {
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
    font-family: monospace;
}

.pal-hero-title {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #e8edf5;
    transition: color 0.2s;
}
.pal-hero-main:hover .pal-hero-title { color: #4f9cf9; }

.pal-hero-excerpt { font-size: 14px; color: #7b8a9e; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.pal-hero-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #7b8a9e; margin-top: auto; flex-wrap: wrap; }
.pal-hero-meta strong { color: #e8edf5; font-weight: 600; }

/* Sidebar */
.pal-hero-sidebar { display: flex !important; flex-direction: column; gap: 8px; }

.pal-hs-card {
    background: #161b25;
    border: 1px solid #252f42;
    border-radius: 12px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    flex: 1;
}
.pal-hs-card:hover { border-color: #4f9cf944; }

.pal-hs-img { height: 110px; overflow: hidden; flex-shrink: 0; }
.pal-hs-img-el { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.pal-hs-card:hover .pal-hs-img-el { transform: scale(1.04); }

.pal-hs-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pal-hs-badge { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-family: monospace; }
.pal-hs-title { font-size: 13px; font-weight: 600; line-height: 1.35; color: #e8edf5; transition: color 0.2s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pal-hs-card:hover .pal-hs-title { color: #4f9cf9; }
.pal-hs-meta { font-size: 11px; color: #7b8a9e; margin-top: auto; padding-top: 4px; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.pal-cat-section { padding: 32px 0; }
.pal-cat-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.pal-sec-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #252f42;
}

.pal-sec-title {
    font-size: 15px;
    font-weight: 700;
    color: #e8edf5;
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.pal-sec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.pal-sec-link {
    font-size: 12px;
    font-weight: 600;
    color: #7b8a9e;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}
.pal-sec-link:hover { color: #4f9cf9; }

/* ============================================================
   GRIDS
   ============================================================ */
.pal-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.pal-grid-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .pal-hero-grid { grid-template-columns: 1fr 260px; }
    .pal-slider-next { right: calc(260px + 16px + 10px); } /* sidebar(260) + gap(16) + offset(10) */
    .pal-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .pal-hero-grid { grid-template-columns: 1fr !important; }
    .pal-slider-next { right: 10px; } /* sidebar collapsed — full width */
    .pal-hero-sidebar { display: none !important; } /* mobilde sidebar gizle — dots doğru yere gelsin */
    .pal-hs-card { flex-direction: row !important; min-height: 90px; }
    .pal-hs-img { width: 120px; height: auto !important; flex-shrink: 0; }
}
@media (max-width: 600px) {
    .pal-grid-3 { grid-template-columns: 1fr !important; }
    .pal-grid-4 { grid-template-columns: 1fr !important; }
    .pal-hs-card { flex-direction: column !important; }
    .pal-hs-img { width: 100% !important; height: 110px !important; }
}

/* ============================================================
   SLIDER — front-page.php
   ============================================================ */
.pal-hero-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 20px 0; }
.pal-slider-wrap { position: relative; }

/* Slides: hidden by default, JS adds pal-slide-active */
.pal-slide { display: none !important; }
.pal-slide.pal-slide-active { display: block !important; }

/* Slider nav buttons */
.pal-slider-btn {
    position: absolute;
    top: 150px; /* vertical center of the 300px hero image */
    transform: translateY(-50%);
    z-index: 10;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(22,27,37,0.85);
    border: 1px solid #252f42;
    color: #e8edf5;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-size: 16px;
    line-height: 1;
}
.pal-slider-btn:hover { background: #252f42; border-color: #4f9cf9; }
.pal-slider-prev { left: 10px; }
@media (min-width: 1025px) {
    .pal-slider-next { right: calc(300px + 16px + 10px); } /* sidebar(300) + gap(16) + offset(10) */
}

/* Dots */
.pal-slider-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 4px; }
.pal-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #3a4255;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.pal-dot.pal-dot-active { background: #4f9cf9; transform: scale(1.25); }

/* Sidebar cards — h variant (pal-hs-h-*) */
.pal-hs-h-card {
    background: #161b25;
    border: 1px solid #252f42;
    border-radius: 12px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    flex: 1;
}
.pal-hs-h-card:hover { border-color: #4f9cf944; }
.pal-hs-h-img { height: 140px; overflow: hidden; flex-shrink: 0; }
.pal-hs-h-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.pal-hs-h-card:hover .pal-hs-h-img img { transform: scale(1.04); }
.pal-hs-h-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pal-hs-title { font-size: 13px; font-weight: 600; line-height: 1.35; color: #e8edf5; transition: color 0.2s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pal-hs-h-card:hover .pal-hs-title { color: #4f9cf9; }
.pal-hs-meta { font-size: 11px; color: #7b8a9e; margin-top: auto; padding-top: 4px; }
.pal-meta-sep { color: #3a4255; margin: 0 3px; }

/* Article cards (pal-acard) */
.pal-acard {
    background: #161b25;
    border: 1px solid #252f42;
    border-radius: 12px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
}
.pal-acard:hover { border-color: #4f9cf944; transform: translateY(-2px); }
.pal-acard-img { height: 180px; overflow: hidden; flex-shrink: 0; }
.pal-acard-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.pal-acard:hover .pal-acard-img img { transform: scale(1.04); }
.pal-acard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pal-acard-title { font-size: 14px; font-weight: 600; line-height: 1.35; color: #e8edf5; transition: color 0.2s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pal-acard:hover .pal-acard-title { color: #4f9cf9; }
.pal-acard-excerpt { font-size: 12px; color: #7b8a9e; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pal-acard-meta { font-size: 11px; color: #7b8a9e; margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; }
.pal-acard-arrow { color: #4f9cf9; font-size: 14px; opacity: 0; transition: opacity 0.2s; }
.pal-acard:hover .pal-acard-arrow { opacity: 1; }

/* Section wrappers */
.pal-section { max-width: 1200px; margin: 0 auto; padding: 8px 20px 32px; }
.pal-section-cat { max-width: 1200px; margin: 0 auto; padding: 8px 20px 32px; }
.pal-sec-more { font-size: 12px; font-weight: 600; color: #7b8a9e; text-decoration: none; letter-spacing: 0.3px; transition: color 0.2s; }
.pal-sec-more:hover { color: #4f9cf9; }

/* Responsive additions */
@media (max-width: 900px) {
    .pal-hs-h-card { flex-direction: row !important; min-height: 90px; }
    .pal-hs-h-img { width: 120px; height: auto !important; flex-shrink: 0; }
}
@media (max-width: 600px) {
    .pal-hs-h-card { flex-direction: column !important; }
    .pal-hs-h-img { width: 100% !important; height: 140px !important; }
    .pal-acard-img { height: 130px; }
}
