/*
Theme Name: LoopScale Blog
Theme URI: https://loopscale.com.br
Author: LoopScale
Author URI: https://loopscale.com.br
Description: Tema personalizado para o Blog da LoopScale
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: loopscale-blog
*/

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --loopscale-blue: #1718FE;
    --loopscale-blue-dark: #455EEB;
    --gray-text: #615F5F;
    --gray-light: #F6F6F6;
    --black: #000000;
    --white: #FFFFFF;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 48px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 64px;
    }
}

@media (min-width: 1280px) {
    .container {
        padding: 0 96px;
    }
}

@media (min-width: 1536px) {
    .container {
        padding: 0 131px;
    }
}

/* ==================== HEADER ==================== */
.site-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.header-nav {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .header-nav {
        padding: 0 48px;
    }
}

@media (min-width: 1024px) {
    .header-nav {
        padding: 0 64px;
        height: 92px;
    }
}

@media (min-width: 1280px) {
    .header-nav {
        padding: 0 96px;
    }
}

@media (min-width: 1536px) {
    .header-nav {
        padding: 0 131px;
    }
}

.header-logo img {
    height: 45px;
    width: auto;
}

@media (min-width: 1024px) {
    .header-logo img {
        height: 61px;
    }
}

.header-menu {
    display: none;
    list-style: none;
    align-items: center;
    gap: 40px;
}

@media (min-width: 1024px) {
    .header-menu {
        display: flex;
    }
}

@media (min-width: 1280px) {
    .header-menu {
        gap: 60px;
    }
}

@media (min-width: 1536px) {
    .header-menu {
        gap: 95px;
    }
}

.header-menu a {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: -0.36px;
    color: var(--black);
    transition: color 0.3s ease;
}

.header-menu a:hover,
.header-menu a.active {
    color: var(--loopscale-blue);
}

.header-menu .menu-item-dropdown {
    position: relative;
}

.header-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: -0.36px;
    color: var(--loopscale-blue);
    transition: opacity 0.3s ease;
}

.header-menu .dropdown-toggle:hover {
    opacity: 0.8;
}

.header-menu .dropdown-toggle svg {
    transition: transform 0.3s ease;
}

.header-menu .menu-item-dropdown.open .dropdown-toggle svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 16px;
    background: var(--white);
    border: 1px solid #e5e7eb;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    z-index: 50;
    display: none;
    min-width: 200px;
    padding: 16px;
}

.menu-item-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    text-transform: none;
    letter-spacing: normal;
    color: var(--black);
    transition: color 0.3s ease;
}

.dropdown-menu a:hover {
    color: var(--loopscale-blue);
}

.header-cta {
    display: none;
    position: relative;
    overflow: hidden;
    background: var(--loopscale-blue);
    color: var(--white);
    padding: 16px 20px;
    height: 53px;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    letter-spacing: 0.84px;
    border: none;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .header-cta {
        display: flex;
    }
}

.header-cta .cta-bg {
    position: absolute;
    inset: 0;
    background: var(--loopscale-blue-dark);
    transform: translateX(-100%);
    transition: transform 0.5s ease-out;
}

.header-cta:hover .cta-bg {
    transform: translateX(0);
}

.header-cta .cta-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-cta:hover .cta-content svg {
    transform: translateX(4px);
}

.header-cta .cta-content svg {
    transition: transform 0.3s ease;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: block;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--black);
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid #f3f4f6;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 16px 24px;
}

.mobile-menu.open {
    display: block;
}

@media (min-width: 1024px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu > ul > li {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu > ul > li > a,
.mobile-menu > ul > li > button {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: -0.36px;
    color: var(--black);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.mobile-menu .mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu .mobile-dropdown-menu {
    display: none;
    padding-left: 16px;
    padding-bottom: 8px;
}

.mobile-menu .mobile-dropdown.open .mobile-dropdown-menu {
    display: block;
}

.mobile-menu .mobile-dropdown-menu a {
    display: block;
    padding: 8px 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-transform: none;
    color: #4b5563;
}

.mobile-menu .mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 12px 20px;
    background: var(--loopscale-blue);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    letter-spacing: 0.84px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    width: 100%;
    background: var(--white);
    padding: 48px 0 64px;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 64px 0 80px;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 80px 0;
    }
}

.hero-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .hero-container {
        padding: 0 48px;
    }
}

@media (min-width: 1024px) {
    .hero-container {
        padding: 0 64px;
    }
}

@media (min-width: 1280px) {
    .hero-container {
        padding: 0 96px;
    }
}

@media (min-width: 1536px) {
    .hero-container {
        padding: 0 212px;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

@media (min-width: 1280px) {
    .hero-content {
        flex-direction: row;
        gap: 64px;
    }
}

@media (min-width: 1536px) {
    .hero-content {
        gap: 96px;
    }
}

.hero-text {
    flex: 1;
    max-width: 715px;
}

.hero-label {
    color: var(--loopscale-blue);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin-bottom: 16px;
    text-decoration: underline;
}

@media (min-width: 768px) {
    .hero-label {
        font-size: 16px;
        margin-bottom: 24px;
    }
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.84px;
    color: var(--black);
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 42px;
        letter-spacing: -1.44px;
        margin-bottom: 32px;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .hero-subtitle {
        font-size: 18px;
    }
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-text);
    max-width: 678px;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .hero-description {
        font-size: 18px;
    }
}

/* ==================== FORM ==================== */
.hero-form {
    width: 100%;
    flex-shrink: 0;
}

@media (min-width: 1280px) {
    .hero-form {
        width: 495px;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-fieldset {
    border: 1px solid var(--black);
    padding: 4px 16px 16px;
}

.form-fieldset legend {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--black);
    padding: 0 8px;
}

.form-fieldset input,
.form-fieldset textarea {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--black);
    background: transparent;
    border: none;
    outline: none;
}

.form-fieldset input::placeholder,
.form-fieldset textarea::placeholder {
    color: #9ca3af;
}

.form-fieldset textarea {
    resize: vertical;
    min-height: 80px;
}

.form-submit {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: var(--loopscale-blue);
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    letter-spacing: 0.84px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-submit .btn-bg {
    position: absolute;
    inset: 0;
    background: var(--loopscale-blue-dark);
    transform: translateX(-100%);
    transition: transform 0.5s ease-out;
}

.form-submit:hover .btn-bg {
    transform: translateX(0);
}

.form-submit .btn-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-submit:hover .btn-content svg {
    transform: translateX(4px);
}

.form-submit .btn-content svg {
    transition: transform 0.3s ease;
}

.form-message {
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.form-message.success {
    background: #dcfce7;
    color: #166534;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* ==================== POSTS SECTION ==================== */
.posts-section {
    width: 100%;
    background: var(--white);
    padding: 48px 0 64px;
    border-top: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .posts-section {
        padding: 64px 0 80px;
    }
}

.posts-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .posts-container {
        padding: 0 48px;
    }
}

@media (min-width: 1024px) {
    .posts-container {
        padding: 0 64px;
    }
}

@media (min-width: 1280px) {
    .posts-container {
        padding: 0 96px;
    }
}

@media (min-width: 1536px) {
    .posts-container {
        padding: 0 212px;
    }
}

.posts-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .posts-title {
        font-size: 24px;
        margin-bottom: 40px;
    }
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 768px) {
    .posts-list {
        gap: 40px;
    }
}

/* ==================== POST CARD ==================== */
.post-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .post-card {
        flex-direction: row;
        gap: 24px;
    }
}

@media (min-width: 768px) {
    .post-card {
        gap: 32px;
    }
}

.post-card-image {
    width: 100%;
    flex-shrink: 0;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--gray-light);
}

@media (min-width: 640px) {
    .post-card-image {
        width: 280px;
        aspect-ratio: auto;
        height: 180px;
    }
}

@media (min-width: 768px) {
    .post-card-image {
        width: 320px;
        height: 200px;
    }
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--black);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .post-card-title {
        font-size: 20px;
    }
}

.post-card:hover .post-card-title {
    color: var(--loopscale-blue);
}

.post-card-meta {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--gray-text);
    line-height: 1.5;
}

.post-card-meta span {
    display: block;
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    font-family: 'Inter', sans-serif;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    color: var(--black);
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: var(--loopscale-blue);
    color: var(--loopscale-blue);
}

.pagination .current {
    background: var(--loopscale-blue);
    border-color: var(--loopscale-blue);
    color: var(--white);
}

/* ==================== SINGLE POST ==================== */
.single-post-section {
    width: 100%;
    background: var(--white);
    padding: 48px 0 64px;
}

@media (min-width: 768px) {
    .single-post-section {
        padding: 64px 0 80px;
    }
}

.single-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .single-post-container {
        padding: 0 48px;
    }
}

.single-post-header {
    margin-bottom: 32px;
}

.single-post-category {
    display: inline-block;
    color: var(--loopscale-blue);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin-bottom: 16px;
    text-decoration: underline;
}

.single-post-title {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .single-post-title {
        font-size: 36px;
    }
}

@media (min-width: 1024px) {
    .single-post-title {
        font-size: 42px;
    }
}

.single-post-meta {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--gray-text);
}

.single-post-featured-image {
    width: 100%;
    margin-bottom: 32px;
    overflow: hidden;
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
}

.single-post-content {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--black);
}

@media (min-width: 768px) {
    .single-post-content {
        font-size: 18px;
    }
}

.single-post-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 16px;
}

@media (min-width: 768px) {
    .single-post-content h2 {
        font-size: 28px;
    }
}

.single-post-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px;
}

@media (min-width: 768px) {
    .single-post-content h3 {
        font-size: 22px;
    }
}

.single-post-content p {
    margin-bottom: 16px;
}

.single-post-content ul,
.single-post-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.single-post-content li {
    margin-bottom: 8px;
}

.single-post-content blockquote {
    border-left: 4px solid var(--loopscale-blue);
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: var(--gray-text);
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    margin: 24px 0;
}

.single-post-content a {
    color: var(--loopscale-blue);
    text-decoration: underline;
}

.single-post-content a:hover {
    color: var(--loopscale-blue-dark);
}

/* ==================== FOOTER ==================== */
.site-footer {
    width: 100%;
    background: var(--black);
    padding: 40px 0;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 48px 0;
    }
}

.footer-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .footer-container {
        padding: 0 48px;
    }
}

@media (min-width: 1024px) {
    .footer-container {
        padding: 0 64px;
    }
}

@media (min-width: 1280px) {
    .footer-container {
        padding: 0 96px;
    }
}

@media (min-width: 1536px) {
    .footer-container {
        padding: 0 197px;
    }
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 1024px) {
    .footer-content {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        text-align: left;
        margin-bottom: 48px;
    }
}

.footer-logo img {
    height: 80px;
    width: auto;
}

@media (min-width: 768px) {
    .footer-logo img {
        height: 100px;
    }
}

@media (min-width: 1024px) {
    .footer-logo img {
        height: 116px;
    }
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

@media (min-width: 768px) {
    .footer-nav {
        gap: 40px;
    }
}

@media (min-width: 1024px) {
    .footer-nav {
        justify-content: flex-start;
        gap: 60px;
    }
}

.footer-nav a {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: -0.36px;
    color: #5c5c5c;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 1024px) {
    .footer-contact {
        align-items: flex-start;
    }
}

.footer-email {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: -0.54px;
    color: var(--white);
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .footer-email {
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .footer-email {
        font-size: 18px;
    }
}

.footer-email:hover {
    color: #d1d5db;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

@media (min-width: 768px) {
    .footer-social {
        margin-top: 20px;
    }
}

.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-social svg {
    width: 14px;
    height: 14px;
    color: #f6f6f6;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 24px;
}

@media (min-width: 768px) {
    .footer-bottom {
        padding-top: 32px;
    }
}

.footer-copyright {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: -0.54px;
    color: #5c5c5c;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-copyright {
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .footer-copyright {
        font-size: 18px;
    }
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    background: var(--gray-light);
    padding: 16px 0;
}

.breadcrumb-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .breadcrumb-container {
        padding: 0 48px;
    }
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--gray-text);
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    color: var(--gray-text);
}

.breadcrumb-list a {
    color: var(--gray-text);
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: var(--loopscale-blue);
}

.breadcrumb-list li:last-child {
    color: var(--black);
    font-weight: 500;
}

/* ==================== SINGLE POST ENHANCED ==================== */
.single-article {
    width: 100%;
}

.single-post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.single-post-category {
    display: inline-block;
    color: var(--loopscale-blue);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.single-post-category:hover {
    color: var(--loopscale-blue-dark);
}

.single-post-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--gray-text);
    margin-bottom: 24px;
    max-width: 700px;
}

@media (min-width: 768px) {
    .single-post-excerpt {
        font-size: 20px;
    }
}

/* Meta Author with Avatar */
.meta-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.meta-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-author-name {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    transition: color 0.3s ease;
}

.meta-author-name:hover {
    color: var(--loopscale-blue);
}

.meta-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--gray-text);
}

.meta-separator {
    color: var(--gray-text);
}

.meta-reading-time {
    color: var(--gray-text);
}

/* Tags Section */
.single-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.tags-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    display: inline-block;
    padding: 6px 12px;
    background: var(--gray-light);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--gray-text);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: var(--loopscale-blue);
    color: var(--white);
}

/* Post Navigation Enhanced */
.post-navigation {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.post-navigation-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .post-navigation-links {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

.nav-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--gray-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #e5e7eb;
}

.nav-link.nav-next {
    text-align: right;
}

.nav-link.nav-empty {
    background: transparent;
}

.nav-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--loopscale-blue);
    font-weight: 600;
}

.nav-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--black);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== AUTHOR BOX ==================== */
.author-box {
    margin-top: 48px;
    padding: 32px;
    background: var(--gray-light);
    border-radius: 12px;
}

.author-box-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

@media (min-width: 640px) {
    .author-box-inner {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 24px;
    }
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--loopscale-blue);
    font-weight: 600;
    margin-bottom: 4px;
}

.author-name {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}

.author-name a {
    color: inherit;
    transition: color 0.3s ease;
}

.author-name a:hover {
    color: var(--loopscale-blue);
}

.author-bio {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-text);
    margin-bottom: 16px;
}

.author-posts-link {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--loopscale-blue);
    transition: color 0.3s ease;
}

.author-posts-link:hover {
    color: var(--loopscale-blue-dark);
}

/* ==================== RELATED POSTS SECTION ==================== */
.related-posts-section {
    width: 100%;
    background: var(--gray-light);
    padding: 64px 0;
}

@media (min-width: 768px) {
    .related-posts-section {
        padding: 80px 0;
    }
}

.related-posts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .related-posts-container {
        padding: 0 48px;
    }
}

.related-posts-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 32px;
    text-align: center;
}

@media (min-width: 768px) {
    .related-posts-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.related-post-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.related-post-image {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 20px;
}

.related-post-category {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--loopscale-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.related-post-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--black);
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .related-post-title {
        font-size: 18px;
    }
}

.related-post-title a {
    color: inherit;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: var(--loopscale-blue);
}

.related-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--gray-text);
}

/* ==================== CATEGORY PAGE ==================== */
.category-header {
    background: var(--white);
    padding: 48px 0;
    border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .category-header {
        padding: 64px 0;
    }
}

.category-header-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .category-header-container {
        padding: 0 48px;
    }
}

.category-header-content {
    text-align: center;
}

.category-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--loopscale-blue);
    margin-bottom: 12px;
}

.category-title {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .category-title {
        font-size: 42px;
    }
}

.category-description {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-text);
    margin-bottom: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .category-description {
        font-size: 18px;
    }
}

.category-count {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--gray-text);
}

.category-count .count-number {
    font-weight: 700;
    color: var(--loopscale-blue);
}

/* Post Card Category Badge */
.post-card-category {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--loopscale-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.post-card-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-text);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Other Categories Section */
.other-categories-section {
    background: var(--gray-light);
    padding: 48px 0;
}

@media (min-width: 768px) {
    .other-categories-section {
        padding: 64px 0;
    }
}

.other-categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .other-categories-container {
        padding: 0 48px;
    }
}

.other-categories-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 24px;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 640px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: var(--white);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-card:hover {
    border-color: var(--loopscale-blue);
    transform: translateY(-2px);
}

.category-card-name {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 4px;
}

.category-card-count {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--gray-text);
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 48px 0;
}

.no-posts p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--gray-text);
    margin-bottom: 24px;
}

.back-to-blog {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--loopscale-blue);
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: var(--loopscale-blue-dark);
}

/* ==================== AUTHOR PAGE ==================== */
.author-profile-section {
    background: var(--white);
    padding: 48px 0;
    border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .author-profile-section {
        padding: 64px 0;
    }
}

.author-profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .author-profile-container {
        padding: 0 48px;
    }
}

.author-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

@media (min-width: 640px) {
    .author-profile-card {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 32px;
    }
}

.author-profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gray-light);
}

@media (min-width: 768px) {
    .author-profile-avatar img {
        width: 150px;
        height: 150px;
    }
}

.author-profile-info {
    flex: 1;
}

.author-profile-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--loopscale-blue);
    margin-bottom: 8px;
}

.author-profile-name {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .author-profile-name {
        font-size: 36px;
    }
}

.author-profile-bio {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-text);
    margin-bottom: 20px;
}

.author-profile-bio p {
    margin-bottom: 12px;
}

.author-profile-bio p:last-child {
    margin-bottom: 0;
}

.author-profile-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 20px;
    justify-content: center;
}

@media (min-width: 640px) {
    .author-profile-stats {
        justify-content: flex-start;
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 640px) {
    .stat-item {
        align-items: flex-start;
    }
}

.stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--loopscale-blue);
    line-height: 1;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--gray-text);
    margin-top: 4px;
}

.author-profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

@media (min-width: 640px) {
    .author-profile-links {
        justify-content: flex-start;
    }
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gray-light);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--black);
    transition: all 0.3s ease;
}

.author-link:hover {
    background: var(--loopscale-blue);
    color: var(--white);
}

.author-link svg {
    width: 16px;
    height: 16px;
}

/* ==================== SHARE SIDEBAR ==================== */
.share-sidebar {
    display: none;
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
}

@media (min-width: 1280px) {
    .share-sidebar {
        display: block;
    }
}

.share-sidebar-inner {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.share-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--gray-text);
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
    color: var(--gray-text);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--loopscale-blue);
    color: var(--white);
}

.share-btn.copied {
    background: #10b981;
    color: var(--white);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

/* ==================== SINGLE HEADER SECTION ==================== */
.single-header-section {
    background: var(--white);
    padding: 32px 0 48px;
    text-align: center;
}

@media (min-width: 768px) {
    .single-header-section {
        padding: 40px 0 64px;
    }
}

.single-header-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .single-header-container {
        padding: 0 48px;
    }
}

/* Breadcrumb Inline */
.breadcrumb-inline {
    margin-bottom: 24px;
}

.breadcrumb-inline .breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    list-style: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--gray-text);
}

.breadcrumb-inline .breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-inline .breadcrumb-list li:not(:last-child)::after {
    content: '›';
    color: var(--gray-text);
}

.breadcrumb-inline .breadcrumb-list a {
    color: var(--gray-text);
    transition: color 0.3s ease;
}

.breadcrumb-inline .breadcrumb-list a:hover {
    color: var(--loopscale-blue);
}

.breadcrumb-inline .breadcrumb-list li:last-child {
    color: var(--black);
}

/* Category Badge */
.single-category-badge {
    margin-bottom: 20px;
}

.single-category-badge a {
    display: inline-block;
    padding: 8px 20px;
    background: var(--loopscale-blue);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: background 0.3s ease;
}

.single-category-badge a:hover {
    background: var(--loopscale-blue-dark);
}

/* Single Header Title */
.single-header-title {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .single-header-title {
        font-size: 36px;
    }
}

@media (min-width: 1024px) {
    .single-header-title {
        font-size: 42px;
    }
}

/* Single Header Meta */
.single-header-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--gray-text);
}

@media (min-width: 640px) {
    .single-header-meta {
        gap: 24px;
    }
}

.meta-author-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--black);
    font-weight: 500;
    transition: color 0.3s ease;
}

.meta-author-link:hover {
    color: var(--loopscale-blue);
}

.meta-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.meta-divider {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-text);
}

.meta-divider svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

/* ==================== AUTHOR BOX SECTION ==================== */
.author-box-section {
    background: var(--white);
    padding: 0 0 48px;
}

.author-box-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .author-box-container {
        padding: 0 48px;
    }
}

.author-box-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 32px;
    background: var(--gray-light);
    border-radius: 12px;
    border-left: 4px solid var(--loopscale-blue);
}

@media (min-width: 640px) {
    .author-box-card {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 24px;
        padding: 32px 40px;
    }
}

.author-box-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
}

@media (min-width: 640px) {
    .author-box-avatar img {
        width: 100px;
        height: 100px;
    }
}

.author-box-content {
    flex: 1;
}

.author-box-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--gray-text);
    margin-bottom: 4px;
}

.author-box-name {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}

.author-box-name a {
    color: inherit;
    transition: color 0.3s ease;
}

.author-box-name a:hover {
    color: var(--loopscale-blue);
}

.author-box-bio {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-text);
    margin-bottom: 16px;
}

.author-box-link {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--loopscale-blue);
    transition: color 0.3s ease;
}

.author-box-link:hover {
    color: var(--loopscale-blue-dark);
}

/* ==================== POST NAVIGATION SECTION ==================== */
.post-nav-section {
    background: var(--gray-light);
    padding: 32px 0;
}

.post-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .post-nav-container {
        padding: 0 48px;
    }
}

.post-nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .post-nav-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

.post-nav-item a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.post-nav-item a:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-nav-prev a {
    flex-direction: row;
}

.post-nav-next a {
    flex-direction: row;
    justify-content: flex-end;
    text-align: right;
}

.post-nav-arrow {
    font-size: 24px;
    font-weight: 300;
    color: var(--loopscale-blue);
    line-height: 1;
}

.post-nav-content {
    flex: 1;
}

.post-nav-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--loopscale-blue);
    margin-bottom: 4px;
}

.post-nav-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-nav-empty {
    padding: 20px;
    text-align: right;
}

.post-nav-none {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--gray-text);
}

/* ==================== RELATED SECTION ==================== */
.related-section {
    background: var(--white);
    padding: 48px 0 64px;
    border-top: 1px solid #e5e7eb;
}

.related-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .related-container {
        padding: 0 48px;
    }
}

.related-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 24px;
}

.related-title svg {
    color: var(--loopscale-blue);
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.related-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.related-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-card-image img {
    transform: scale(1.05);
}

.related-card-title {
    padding: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--black);
}

.related-card-title a {
    color: inherit;
    transition: color 0.3s ease;
}

.related-card-title a:hover {
    color: var(--loopscale-blue);
}

/* ==================== CATEGORY HERO ==================== */
.cat-hero {
    background: var(--loopscale-blue);
    padding: 48px 0;
}

@media (min-width: 768px) {
    .cat-hero {
        padding: 64px 0;
    }
}

.cat-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .cat-hero-container {
        padding: 0 48px;
    }
}

.cat-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.cat-hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .cat-hero-title {
        font-size: 42px;
    }
}

.cat-hero-description {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    max-width: 600px;
}

.cat-hero-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.cat-hero-count svg {
    opacity: 0.8;
}

/* ==================== CATEGORY POSTS SECTION ==================== */
.cat-posts-section {
    background: var(--white);
    padding: 48px 0 64px;
}

@media (min-width: 768px) {
    .cat-posts-section {
        padding: 64px 0 80px;
    }
}

.cat-posts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .cat-posts-container {
        padding: 0 48px;
    }
}

.cat-posts-showing {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--gray-text);
    margin-bottom: 32px;
}

.cat-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 640px) {
    .cat-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cat-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Category Card */
.cat-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.cat-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.cat-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cat-card:hover .cat-card-image img {
    transform: scale(1.05);
}

.cat-card-content {
    padding: 20px;
}

.cat-card-date {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--loopscale-blue);
    margin-bottom: 8px;
}

.cat-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--black);
    margin-bottom: 12px;
}

.cat-card-title a {
    color: inherit;
    transition: color 0.3s ease;
}

.cat-card-title a:hover {
    color: var(--loopscale-blue);
}

.cat-card-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-text);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--loopscale-blue);
    transition: gap 0.3s ease;
}

.cat-card-link:hover {
    gap: 10px;
}

.cat-card-link svg {
    transition: transform 0.3s ease;
}

.cat-card-link:hover svg {
    transform: translateX(2px);
}

/* ==================== FEATURED POST SECTION ==================== */
.featured-section {
    background: var(--white);
    padding: 48px 0 64px;
}

.featured-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .featured-container {
        padding: 0 48px;
    }
}

.featured-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .featured-card {
        flex-direction: row;
        align-items: flex-end;
        gap: 40px;
    }
}

.featured-image {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    background: var(--gray-light);
}

@media (min-width: 768px) {
    .featured-image {
        flex: 1;
        max-width: 55%;
    }
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.03);
}

.featured-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 768px) {
    .featured-content {
        flex: 1;
        padding-bottom: 16px;
    }
}

.featured-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--black);
}

@media (min-width: 768px) {
    .featured-title {
        font-size: 22px;
    }
}

@media (min-width: 1024px) {
    .featured-title {
        font-size: 24px;
    }
}

.featured-title a {
    color: inherit;
    transition: color 0.3s ease;
}

.featured-title a:hover {
    color: var(--loopscale-blue);
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--gray-text);
}

.featured-author {
    color: var(--gray-text);
}

.featured-date {
    color: var(--gray-text);
}

/* ==================== AUTHOR PAGE (NEW) ==================== */
.author-breadcrumb {
    background: var(--gray-light);
    padding: 16px 0;
}

.author-breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.author-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--gray-text);
}

.author-breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-breadcrumb-list li:not(:last-child)::after {
    content: '›';
    color: var(--gray-text);
}

.author-breadcrumb-list a {
    color: var(--loopscale-blue);
    transition: opacity 0.3s ease;
}

.author-breadcrumb-list a:hover {
    opacity: 0.7;
}

/* Author Hero */
.author-hero {
    background: var(--white);
    padding: 48px 0;
}

.author-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.author-hero-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

@media (min-width: 640px) {
    .author-hero-card {
        flex-direction: row;
        text-align: left;
        gap: 32px;
    }
}

.author-hero-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gray-light);
}

.author-hero-info {
    flex: 1;
}

.author-hero-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--loopscale-blue);
    margin-bottom: 8px;
}

.author-hero-name {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .author-hero-name {
        font-size: 32px;
    }
}

.author-hero-bio {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-text);
    margin-bottom: 16px;
    max-width: 600px;
}

.author-hero-stats {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .author-hero-stats {
        justify-content: flex-start;
    }
}

.author-stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--loopscale-blue);
}

.author-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--gray-text);
}

.author-hero-links {
    display: flex;
    gap: 12px;
}

@media (min-width: 640px) {
    .author-hero-links {
        justify-content: flex-start;
    }
}

.author-website-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    transition: all 0.3s ease;
}

.author-website-btn:hover {
    border-color: var(--loopscale-blue);
    color: var(--loopscale-blue);
}

/* Author Posts Section */
.author-posts-section {
    background: var(--white);
    padding: 0 0 64px;
}

.author-posts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.author-posts-title {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.author-posts-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Author Post Card - Horizontal Layout */
.author-post-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f3f4f6;
}

@media (min-width: 640px) {
    .author-post-card {
        flex-direction: row;
        gap: 24px;
    }
}

.author-post-image {
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-light);
}

@media (min-width: 640px) {
    .author-post-image {
        width: 200px;
        height: 140px;
        aspect-ratio: auto;
    }
}

.author-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.author-post-card:hover .author-post-image img {
    transform: scale(1.05);
}

.author-post-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
    color: #d1d5db;
}

.author-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-post-category {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--loopscale-blue);
    margin-bottom: 8px;
}

.author-post-category:hover {
    opacity: 0.7;
}

.author-post-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--black);
    margin-bottom: 12px;
}

.author-post-title a {
    color: inherit;
    transition: color 0.3s ease;
}

.author-post-title a:hover {
    color: var(--loopscale-blue);
}

.author-post-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--loopscale-blue);
}

.author-post-reading {
    color: var(--gray-text);
}

/* Author No Posts */
.author-no-posts {
    text-align: center;
    padding: 48px 24px;
}

.author-no-posts p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--gray-text);
    margin-bottom: 16px;
}

.author-back-link {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--loopscale-blue);
    transition: opacity 0.3s ease;
}

.author-back-link:hover {
    opacity: 0.7;
}

/* ==================== UTILITIES ==================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
