/* Premium Base Styles: pomodorofocustimer Aesthetic */

:root {
    /* Premium Modern Palette (HSL) */
    --pomo-h: 2;
    --pomo-s: 55%;
    --pomo-l: 55%;
    /* Coral/Red */
    --short-h: 182;
    --short-s: 43%;
    --short-l: 45%;
    /* Teal/Mint */
    --long-h: 205;
    --long-s: 45%;
    --long-l: 45%;
    /* Indigo/Slate */

    /* Active Mode (Default Pomo) */
    --current-h: var(--pomo-h);
    --current-s: var(--pomo-s);
    --current-l: var(--pomo-l);

    /* Elite Professional Palette (Elevated Studio HEX) */
    --pomo-color: #d95550;
    --short-color: #4c9195;
    --long-color: #457ca3;

    /* Active Mode (Dynamic) */
    --color-main: var(--pomo-color);
    --bg-color: var(--pomo-color);

    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);

    /* Integrated Depth & Glass Effects */
    --card-bg: rgba(255, 255, 255, 0.12);
    --card-text: #ffffff;
    --card-shadow: none;
    --glass-border: rgba(255, 255, 255, 0.2);
    --border-color: rgba(255, 255, 255, 0.15);

    /* Silk Transitions */
    --theme-transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease;
    --hover-transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Layout Constants */
    --card-width: 720px;
    --section-gap: 4.5rem;
    --section-gap-mobile: 2.5rem;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.time-label,
.action-btn {
    font-family: 'Outfit', sans-serif !important;
}

/* Header Styles (Transparent & Minimal) */
.premium-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1000;
}

.header-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding .site-title {
    margin: 0;
}

.elite-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--hover-transition);
}

.elite-logo-link:hover {
    transform: scale(1.03);
}

.elite-icon {
    height: 52px;
    width: auto;
    display: block;
    /* The image is white, but this filter ensures it pops and handles any non-white edges */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.site-branding .site-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Elite Logo Sizing - Forced */
.custom-logo-link,
.site-logo-wrapper,
.site-branding {
    display: flex !important;
    align-items: center !important;
}

.site-logo-wrapper img,
.custom-logo-link img,
.custom-logo {
    max-height: 42px !important;
    /* Slightly larger but controlled */
    height: 42px !important;
    width: auto !important;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
    display: block !important;
}

.custom-logo-link:hover img {
    transform: scale(1.05);
}

.premium-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Desktop: nav container is a horizontal flex row */
.premium-nav-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* === Hamburger Button === */
.mobile-menu-toggle {
    display: none;
    /* hidden on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
    flex-shrink: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        width 0.3s ease;
    transform-origin: center;
}

/* Animate to X when open */
.mobile-menu-toggle.is-open .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open .hamburger-bar:nth-child(2) {
    opacity: 0;
    width: 0;
}

.mobile-menu-toggle.is-open .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Footer Styles */
.premium-footer {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 6rem 0 3rem;
    margin-top: 8rem;
    color: var(--text-color);
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 780px; /* Aligned with header-container */
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 2.5rem;
    text-align: left;
    margin-bottom: 3.5rem;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.footer-elite-icon {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
    letter-spacing: -0.5px;
    font-family: 'Outfit', sans-serif !important;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
    max-width: 320px;
}

.footer-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 1.25rem 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--hover-transition);
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s;
}

.footer-bottom a:hover {
    opacity: 0.8;
}

/* Mobile Footer Transitions */
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links a:hover {
        transform: none;
    }
}

/* Content Container for pomodorofocustimer-style column */
#content {
    max-width: 480px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

/* Mode-specific overrides for variables */
body.mode-pomo {
    --bg-color: var(--pomo-color);
    --color-main: var(--pomo-color);
}

body.mode-short {
    --bg-color: var(--short-color);
    --color-main: var(--short-color);
}

body.mode-long {
    --bg-color: var(--long-color);
    --color-main: var(--long-color);
}

/* Studio Background System */
.bg-mesh-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: var(--bg-color);
    transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.bg-mesh-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
}

.bg-mesh-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.mesh-blob,
.blob-1,
.blob-2,
.blob-3 {
    display: none;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

/* Elite WordPress Login Styling */
body.login {
    background: linear-gradient(135deg, var(--bg-color) 0%, #1a1a1a 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login h1 a {
    background-image: none !important;
    text-indent: 0 !important;
    width: auto !important;
    height: auto !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 32px !important;
    color: #fff !important;
    letter-spacing: -1px !important;
    margin-bottom: 20px !important;
}

.login h1 a::after {
    content: 'pomodorofocustimer';
}

.login #loginform {
    background: #fff !important;
    border: none !important;
    border-radius: 24px !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3) !important;
    padding: 40px !important;
    width: 350px !important;
}

.login label {
    color: #444 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.login .input {
    border: 2px solid #eee !important;
    border-radius: 12px !important;
    padding: 10px !important;
    box-shadow: none !important;
    transition: border-color 0.3s !important;
}

.login .input:focus {
    border-color: var(--bg-color) !important;
}

.login .button-primary {
    background: var(--bg-color) !important;
    border: none !important;
    text-shadow: none !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
    border-radius: 12px !important;
    height: 50px !important;
    line-height: 50px !important;
    padding: 0 !important;
    width: 100% !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    margin-top: 20px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.login .button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

.login #nav a,
.login #backtoblog a {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 600 !important;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #fff !important;
}

/* ==========================================================
   LAYOUT RESPONSIVE SYSTEM
   Breakpoints: 900px · 640px · 480px · 390px
   ========================================================== */

/* --- Tablet Landscape (≤900px) --- */
@media (max-width: 900px) {
    .header-container {
        max-width: 100%;
        padding: 0.875rem 24px;
    }

    #content {
        max-width: 100%;
        padding: 1.25rem 20px;
    }
}

/* --- Tablet Portrait / Large Mobile (≤640px) --- */
@media (max-width: 640px) {
    .header-container {
        padding: 0.75rem 16px;
        flex-wrap: wrap;
        /* allow drawer to drop below */
    }

    #content {
        padding: 1rem 14px;
    }

    .premium-nav {
        gap: 0.375rem;
    }

    /* Reduce badge size */
    .premium-badge {
        font-size: 0.58rem;
        padding: 2px 6px;
    }

    /* Slightly smaller logo text */
    .site-branding .site-title a {
        font-size: 1.1rem;
    }
}

/* === Mobile Nav Toggle Breakpoint (≤560px) === */
@media (max-width: 560px) {

    /* Show hamburger */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Nav container becomes a full-width dropdown drawer */
    #premium-nav-container {
        display: none !important;
        /* Force hide by default */
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;
        /* span full header width */
        order: 3;
        /* go below logo + hamburger row */
        padding: 12px 0 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        animation: mobileNavIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    /* Open state */
    #premium-nav-container.nav-open {
        display: flex !important;
        /* Force show when open */
    }

    /* Each button goes full-width, left-aligned with icon + text */
    .header-btn {
        width: 100%;
        padding: 12px 14px;
        border-radius: 10px;
        font-size: 0.92rem;
        justify-content: flex-start;
        gap: 10px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    /* Always show button text in mobile drawer */
    .header-btn span {
        display: inline !important;
    }

    .header-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: none;
    }

    /* header-container needs to allow wrap for the drawer */
    .header-container {
        flex-wrap: wrap;
        align-items: center;
        padding: 0.625rem 14px;
    }

    /* Branding takes all remaining space so hamburger goes to right */
    .site-branding {
        flex: 1;
    }
}

@keyframes mobileNavIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Standard Mobile (≤480px) --- */
@media (max-width: 480px) {
    .header-container {
        padding: 0.625rem 12px;
    }

    #content {
        padding: 0.75rem 10px;
    }

    .pomodoro-container {
        margin: 0 auto;
    }

    .header-btn {
        padding: 7px;
        min-width: 32px;
    }

    /* Footer more compact */
    .premium-footer {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }

    .site-info {
        font-size: 0.78rem;
    }
}

/* --- Extra Small (≤390px) --- */
@media (max-width: 390px) {
    .header-container {
        padding: 0.5rem 10px;
    }

    #content {
        padding: 0.5rem 8px;
    }

    .premium-nav {
        gap: 0.25rem;
    }

    .header-btn {
        padding: 6px;
        min-width: 30px;
    }

    .site-branding .site-title a {
        font-size: 1rem;
    }

    .custom-logo-link img,
    .custom-logo {
        max-height: 34px !important;
        height: 34px !important;
    }
}

.premium-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* =====================================================
   SEO CONTENT HUB — Below Timer
   ===================================================== */

.seo-content-hub {
    width: 100%;
    margin: var(--section-gap) auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: var(--section-gap);
    box-sizing: border-box;
}

.hub-section {
    width: 100%;
    max-width: var(--card-width);
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem;
    border-radius: 20px;
}

.hub-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.5px;
    text-align: center;
}

.hub-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

/* --- How-To Steps Grid --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.step-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    position: relative;
    transition: transform 0.2s ease, background 0.2s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.13);
}

.step-number {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.step-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.step-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.step-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0;
}

/* --- Features Grid --- */
.features-section {
    padding: 0;
}

.features-section .hub-title,
.features-section .hub-subtitle {
    padding: 0 0.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature-card {
    padding: 1.5rem;
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.feature-card p {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
    margin: 0;
}

/* --- FAQ Section --- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.faq-question:hover {
    color: rgba(255, 255, 255, 0.9);
}

.faq-question[aria-expanded="true"] {
    color: #fff;
}

.faq-arrow {
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.faq-question[aria-expanded="true"] .faq-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    display: none;
    animation: faqOpen 0.25s ease forwards;
}

.faq-answer:not([hidden]) {
    display: block;
}

.faq-answer p {
    font-size: 0.92rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.faq-answer p strong {
    color: #fff;
}

.faq-answer p em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes faqOpen {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Blog Preview Grid --- */
.blog-preview-section {
    padding: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.blog-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-thumb img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.blog-cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
}

.blog-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.blog-card-title a::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.blog-card-title a:hover {
    opacity: 0.85;
}

.blog-card-excerpt {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.blog-read-more {
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: color 0.2s ease;
    align-self: flex-start;
}

.blog-read-more:hover {
    color: #fff;
}

.blog-cta {
    text-align: center;
    margin-top: 1rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* =====================================================
   RESPONSIVE — SEO CONTENT HUB
   ===================================================== */

@media (max-width: 740px) {

    .steps-grid,
    .features-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .seo-content-hub {
        padding: 0 16px 3rem;
        gap: 2rem;
    }

    .hub-section {
        padding: 1.5rem;
    }

    .hub-title {
        font-size: 1.4rem;
    }

    .steps-grid,
    .features-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .faq-question {
        font-size: 0.92rem;
        padding: 0.875rem 1rem;
    }
}

/* =====================================================
   BLOG INDEX & SINGLE POST LAYOUT
   ===================================================== */

/* Page Headers */
.page-header-container {
    max-width: 780px;
    margin: 4rem auto 2rem;
    padding: 0 24px;
    text-align: center;
}

.page-header-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -1px;
}

.page-header-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

/* Blog Index Grid */
.blog-index-container {
    max-width: 900px;
    margin: 0 auto 5rem;
    padding: 0 24px;
}

.blog-index-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .blog-index-grid {
        grid-template-columns: 1fr;
    }
}

/* Single Post Layout */
.single-post-container {
    max-width: 760px;
    margin: 3rem auto 6rem;
    padding: 0 24px;
}

.post-hero {
    margin-bottom: 3rem;
    text-align: center;
}

.post-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-hero-category {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-hero-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.post-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    letter-spacing: -1px;
}

@media (max-width: 600px) {
    .post-hero-title {
        font-size: 2.2rem;
    }
}

.post-hero-thumbnail {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.post-hero-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content Typography */
.post-content {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.8;
}

@media (max-width: 600px) {
    .post-content {
        padding: 1.5rem;
        font-size: 1.05rem;
    }
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.post-content h2 {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content h4 {
    font-size: 1.25rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 4px;
    transition: var(--hover-transition);
}

.post-content a:hover {
    text-decoration-color: #fff;
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 12px 12px 0;
    font-size: 1.2rem;
    font-style: italic;
    color: #fff;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--hover-transition);
}

.pagination .page-numbers:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.pagination .page-numbers.current {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.pagination .next,
.pagination .prev {
    padding: 10px 20px;
}

/* =====================================================
   LEGAL & INFO PAGES (About, Contact, Privacy, Terms)
   ===================================================== */
.legal-page-main {
    padding-bottom: 5rem;
}

.legal-page-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 24px;
}

/* Legal Hero */
.legal-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.legal-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.legal-hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 1rem 0;
    letter-spacing: -1px;
    line-height: 1.2;
}

.legal-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Body */
.legal-content-body {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.8;
}

.legal-content-body h2 {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem 0;
    letter-spacing: -0.5px;
}

.legal-content-body h2:first-child {
    margin-top: 0;
}

.legal-content-body h3 {
    color: #fff;
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
}

.legal-content-body p {
    margin-bottom: 1.5rem;
}

.legal-content-body a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.legal-content-body a:hover {
    text-decoration-color: #fff;
}

.legal-content-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content-body li {
    margin-bottom: 0.5rem;
}

/* Contact Page Specifics */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-card h3 {
    margin: 0.5rem 0;
    font-size: 1.15rem;
}

.contact-info-card p {
    font-size: 0.95rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 1.25rem;
}

.contact-form-column {
    background: rgba(0, 0, 0, 0.15);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #fff;
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contact-success-card {
    text-align: center;
    padding: 3rem 1rem;
}

.contact-success-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.contact-error-msg {
    background: rgba(217, 85, 80, 0.2);
    border: 1px solid rgba(217, 85, 80, 0.5);
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* About CTA */
.about-cta-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.about-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #000 !important;
    text-decoration: none !important;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    transition: transform 0.2s ease;
}

.about-cta-btn:hover {
    transform: translateY(-2px);
}

/* Amazing Feature Showcase */
.app-features-showcase {
    max-width: var(--card-width);
    margin: var(--section-gap) auto;
    padding: 3rem 2rem;
    /* Kept internal padding for showcase content */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.8s ease;
    width: 100%;
    box-sizing: border-box;
}


.features-header {
    margin-bottom: 3.5rem;
}

.showcase-title {
    font-size: 1.95rem;
    font-weight: 800;
    color: #fff;
    margin-top: 10px;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
    margin-bottom: 3.5rem;
    width: 100%;
}

/* Feature Grid Card Style */
.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-icon-bubble {
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.showcase-footer {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.showcase-footer strong {
    color: #fff;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* App Hero Badge Pulse */
.app-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }

    .app-features-showcase {
        margin: var(--section-gap-mobile) 1rem;
        padding: 2rem 1.5rem;
    }

    .showcase-title {
        font-size: 1.75rem;
    }

    .legal-hero-title {
        font-size: 2.5rem;
    }

    .legal-content-body {
        padding: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-info-column {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .contact-info-card {
        flex: 1 1 200px;
    }
}

@media (max-width: 480px) {
    .legal-hero-title {
        font-size: 2rem;
    }

    .legal-content-body {
        padding: 1.5rem;
        font-size: 0.95rem;
    }

    .contact-info-column {
        flex-direction: column;
    }
}