/* ==========================================
   Guides Page Styles (from guides.css)
   ========================================== */

.guides-hero {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    background: linear-gradient(180deg, #f7faff 0, #fff 300px);
}

.guides-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--rfj-text-primary);
    margin-bottom: 0.75rem;
}

.guides-hero-subtitle {
    font-size: 1.05rem;
    color: var(--rfj-text-secondary);
    max-width: 720px;
    margin: 0 auto 2rem;
}

.guides-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0 4rem;
}

.guides-intro {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--rfj-shadow-sm);
}

.guides-intro p {
    margin: 0;
    line-height: 1.8;
    color: var(--rfj-text-secondary);
}

.guides-intro p + p {
    margin-top: 1rem;
}

.guides-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.guides-special {
    grid-column: 1 / -1;
    padding: 24px;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    background: var(--rfj-color-bg-panel);
}

.guides-special-title {
    margin: 0 0 18px;
    font-size: 20px;
}

.guides-special-title a {
    color: var(--rfj-text-primary);
}

.guides-special-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.guides-special-grid-item {
    min-width: 0;
}

.guides-card {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    overflow: hidden;
    transition: all var(--rfj-transition);
}

.guides-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rfj-shadow-md);
    border-color: var(--rfj-color-primary-border);
}

.guides-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--rfj-color-bg-soft);
}

.guides-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.guides-card-body a {
    text-decoration: none;
    color: inherit;
}

.guides-card > a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.guides-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rfj-text-primary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guides-card-note {
    font-size: 0.95rem;
    color: var(--rfj-text-secondary);
    margin: 0;
}

.guides-card-link {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--rfj-color-primary);
    word-break: break-word;
    text-decoration: none;
}

.guides-card-link:hover {
    text-decoration: underline;
}

.guides-info {
    margin-top: 2.5rem;
    background: var(--rfj-color-bg-panel);
    color: var(--rfj-text-secondary);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 1.5rem 1.75rem;
    line-height: 1.7;
    box-shadow: var(--rfj-shadow-sm);
}

.guides-info-title {
    font-weight: 700;
    color: var(--rfj-color-primary);
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.guides-info p {
    margin: 0.25rem 0;
}

.header-label {
    margin-left: 0.35rem;
}
/* ==========================================
   Responsive Styles for Post/Advisors/Guides
   ========================================== */

@media (max-width: 1200px) {
    .post-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .post-hero {
        padding: 3rem 0 2rem;
    }

    .post-hero-title {
        font-size: 2.25rem;
    }

    .featured-posts-grid-2,
    .featured-posts-grid-3,
    .featured-posts-grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-posts-grid-3 .featured-post-third {
        max-width: 100%;
    }

    .featured-post-card {
        aspect-ratio: 21/9;
    }

    .featured-post-title {
        font-size: 1.25rem;
    }

    .row-cols-4 > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .post-hero {
        padding: 2.5rem 0 1.5rem;
    }

    .post-hero-title {
        font-size: 1.875rem;
    }

    .post-hero-subtitle {
        font-size: 1rem;
    }

    .featured-posts-section {
        padding: 2rem 0;
    }

    .featured-post-card {
        aspect-ratio: 16/9;
    }

    .featured-post-title {
        font-size: 1.125rem;
    }

    .featured-post-excerpt {
        display: none;
    }

    .post-list {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .post-card-image {
        height: 180px;
    }

    .post-card-title {
        font-size: 1.125rem;
        height: calc(1.125rem * 1.45 * 2);
    }

    .post-card-excerpt {
        -webkit-line-clamp: 2;
        height: calc(0.93rem * 1.7 * 2);
    }

    .post-card-author {
        max-width: 55%;
    }

    .post-category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.75rem;
    }

    .post-tab-item {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

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

    .case-card-title {
        font-size: 0.95rem;
        height: calc(0.95rem * 1.45 * 2);
    }

    .post-meta-info-box {
        padding: 1rem 1.25rem;
        margin-bottom: 1.25rem;
    }

    .meta-info-item {
        padding: 0.4rem 0;
    }

    .meta-info-label {
        font-size: 1.2rem;
        min-width: 3rem;
    }

    .meta-info-value {
        font-size: 1.2rem;
    }

    .advisors-hero {
        padding: 2.5rem 0 2rem;
    }

    .advisors-hero-title {
        font-size: 2rem;
    }

    .advisors-content {
        padding: 2rem 0 3rem;
    }

    .advisors-intro {
        padding: 1.25rem;
    }

    .advisors-grid {
        gap: 1rem;
    }

    .advisors-card-body {
        padding: 1rem 1rem 1.25rem;
    }

    .guides-hero {
        padding: 2.5rem 0 2rem;
    }

    .guides-hero-title {
        font-size: 2rem;
    }

    .guides-content {
        padding: 2rem 0 3rem;
    }

    .guides-intro {
        padding: 1.25rem;
    }

    .guides-grid {
        gap: 1rem;
    }

    .guides-special {
        padding: 16px;
    }

    .guides-special-grid {
        grid-template-columns: 1fr;
    }

    .guides-card-body {
        padding: 1rem 1rem 1.25rem;
    }

    .header-label {
        display: none;
    }

    .row-cols-4 > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .pretty-tabs {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .pretty-tabs > li > a {
        height: 44px;
        font-size: 12px;
        gap: 3px;
        padding: 0 8px;
    }

    .pretty-tabs > li > a svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .post-hero {
        padding: 2rem 0 1.25rem;
    }

    .post-hero-title {
        font-size: 1.5rem;
    }

    .post-card-image {
        height: 160px;
    }

    .post-card-content {
        padding: 0.85rem 1rem;
    }

    .post-card-title {
        font-size: 1rem;
        height: calc(1rem * 1.45 * 2);
    }

    .post-card-meta {
        gap: 0.375rem;
        font-size: 0.75rem;
    }

    .post-card-author {
        max-width: 55%;
    }

    .post-card-badge {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.25rem 0.625rem;
        font-size: 0.6875rem;
    }

    .post-card-excerpt {
        font-size: 0.875rem;
        -webkit-line-clamp: 2;
        height: calc(0.875rem * 1.7 * 2);
    }

    .load-more-btn {
        padding: 0.875rem 2rem;
        font-size: 0.9375rem;
    }

    .case-card-title {
        font-size: 0.95rem;
        height: calc(0.95rem * 1.45 * 2);
    }

    .case-card-info-row {
        min-height: 1.3rem;
    }

    .case-card-info-label,
    .case-card-info-value {
        font-size: 0.65rem;
    }

    .case-card-info-value {
        padding: 0.05rem 0.35rem;
    }

    .case-card-meta {
        font-size: 0.75rem;
    }

    .case-card-date {
        font-size: 0.75rem;
    }
}

