/* Home Page Styles */
.home-hero {
    position: relative;
    height: calc(100vh - 100px);
    padding-bottom: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-supporting {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 24px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.hero-ctas .btn-icon {
    width: 18px;
    height: 18px;
}

.hero-search-wrap {
    min-width: 200px;
}

.hero-search-wrap .search-form {
    display: flex;
    gap: 8px;
}

.hero-search-wrap .search-field {
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    min-width: 180px;
}

.hero-search-wrap .search-submit {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background: #ff6b35;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.home-hubs {
    padding: 64px 0 80px;
    background: #f5f6f8;
}

.hubs-header {
    text-align: left;
    margin-bottom: 48px;
}

.hubs-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px;
}

.hubs-intro {
    font-size: 1.05rem;
    color: #6b7280;
    margin: 0;
}

.hub-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.hub-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hub-card-inner {
    padding: 28px 24px;
}

.hub-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.hub-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hub-card-title a:hover {
    color: #ff6b35;
}

.hub-card-description {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 16px;
}

.hub-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff6b35;
    text-decoration: none;
    margin-bottom: 20px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.hub-card-cta:hover {
    color: #e55a2b;
    gap: 12px;
}

.hub-card-cta .btn-icon {
    width: 16px;
    height: 16px;
}

.hub-card-children {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.hub-card-children li {
    margin: 0 0 8px;
}

.hub-card-children li:last-child {
    margin-bottom: 0;
}

.hub-card-children a {
    font-size: 0.9rem;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hub-card-children a:hover {
    color: #ff6b35;
}

.home-browse {
    margin: 80px 0;
}

.home-browse .section-title {
    text-align: center;
    margin-bottom: 32px;
}

.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px 24px;
}

.browse-group {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.browse-parent {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.browse-parent a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.browse-parent a:hover {
    color: #ff6b35;
}

.browse-children {
    list-style: none;
    padding: 0;
    margin: 0;
}

.browse-children li {
    margin: 0 0 6px;
}

.browse-children a {
    font-size: 0.9rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.browse-children a:hover {
    color: #ff6b35;
}

.home-stats {
    padding: 48px 0 72px;
    background: #f5f6f8;
}

.stats-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 56px 56px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.stats-header {
    text-align: left;
    margin-bottom: 48px;
}

.stats-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.stats-subtitle {
    font-size: 1.05rem;
    color: #6b7280;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: left;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: #2c3e50;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
}

@media (max-width: 1024px) {
    .stats-card {
        padding: 40px 32px 44px;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 24px;
    }

    .stat-number {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    .home-stats {
        padding: 32px 0 48px;
    }

    .stats-card {
        padding: 32px 24px 36px;
        border-radius: 20px;
    }

    .stats-header {
        margin-bottom: 36px;
    }

    .stats-title {
        font-size: 1.5rem;
    }

    .stats-subtitle {
        font-size: 0.95rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

.home-section {
    margin: 80px 0;
    width: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.section-title {
    margin: 0 auto;
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #fff;
}

/* Mobile link wrapper - hidden on desktop */
.section-link-mobile-wrapper {
    display: none;
}

.section-link-mobile {
    display: none;
}

.section-link:hover,
.section-link:visited,
.section-link:focus {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    color: #fff;
}

.section-link .btn-icon {
    width: 24px;
    height: 24px;
}

/* Features Section */
.home-features {
    padding: 80px 0;
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: translateY(-5px);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50 !important;
    margin: 0 0 12px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
    margin: 0;
}

/* Categories with Posts Section */
.home-categories-with-posts {
    padding: 80px 0;
    background: #ffffff;
}

.categories-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.category-posts-section {
    background: #ffffff;
}

.category-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.category-posts-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50 !important;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.category-posts-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-posts-title a:hover {
    color: #ff6b35;
}

.category-posts-count {
    font-size: 0.95rem;
    color: #7f8c8d;
}

.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

/* Ensure post cards in category sections are styled correctly */
.category-posts-section .post-card {
    height: 100%;
}

.category-posts-section .entry-title {
    color: #2c3e50 !important;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.category-posts-section .entry-title a {
    color: #2c3e50 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-posts-section .entry-title a:hover {
    color: #ff6b35 !important;
}

.category-posts-footer {
    text-align: center;
}

.category-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff6b35;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.category-view-all:hover {
    gap: 12px;
    color: #e55a2b;
}

.category-view-all svg {
    width: 16px;
    height: 16px;
}

/* Featured Categories */
.home-categories {
    padding: 60px 0;
    background: #f8f9fa;
    width: 100%;
    box-sizing: border-box;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-info {
    padding: 25px;
}

.category-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.category-count {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0;
}

/* Posts Grid - 3 Columns */
.posts-grid-3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}



/* Responsive Home Page Styles */
@media (max-width: 1024px) {
    .posts-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .category-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 80px 0;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-supporting {
        font-size: 0.95rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-search-wrap {
        width: 100%;
        max-width: 280px;
    }

    .home-hubs {
        padding: 48px 0 64px;
    }

    .hub-cards-grid {
        grid-template-columns: 1fr;
    }

    .browse-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Hide desktop link, show mobile link below content */
    .section-link-desktop {
        display: none;
    }

    .section-link-mobile-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 2px solid #e0e0e0;
    }

    .section-link-mobile {
        display: inline-flex;
    }

    .home-section {
        margin: 60px 0;
    }

    .home-categories {
        padding: 40px 0;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-image {
        height: 180px;
    }

    .posts-grid-3col {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-features {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .home-categories-with-posts {
        padding: 60px 0;
    }

    .categories-posts-grid {
        gap: 40px;
    }

    .category-posts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .category-posts-title {
        font-size: 1.5rem;
    }

    .category-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-posts-section .entry-title {
        font-size: 1rem;
    }
}

/* FAQ Section */
.home-faq-section {
    padding: 80px 0;
    margin-bottom: 80px;
    background: #f8f9fa;
    border-radius: 12px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.faq-question {
    width: 100%;
    padding: 24px 28px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question-text {
    font-size: 1.125rem;
    line-height: 140%;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: #ff6b35;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 28px;
}

.faq-answer[aria-hidden="false"] {
    max-height: 500px;
    padding: 0 28px 24px 28px;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555555;
    margin: 0;
    padding-top: 8px;
}

@media (max-width: 768px) {
    .home-faq-section {
        padding: 60px 0;
        margin-bottom: 60px;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-question-text {
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-answer[aria-hidden="false"] {
        padding: 0 20px 20px 20px;
    }

    .faq-answer p {
        font-size: 0.95rem;
    }
}

.home-intro-section {
    padding: 64px 0;
    width: 100%;
    background: #fff;
}

.home-intro-section .home-intro-block {
    text-align: left;
}

.home-intro-section--closing {
    padding: 56px 0 48px;
    background: #fff;
}

.home-intro-section--closing .home-intro-block {
    text-align: left;
}

.home-intro-block {
    max-width: 100%;
    width: 100%;
}

.home-intro-block--compact {
    margin: 56px 0 64px;
    max-width: 100%;
    width: 100%;
}

.home-intro-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.35;
    color: #2c3e50;
}

.home-intro-block--compact .home-intro-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.home-intro-block p {
    font-size: 1.0625rem;
    line-height: 1.75;
    margin: 0 0 1.125rem;
    color: #4b5563;
}

.home-intro-block p:last-child {
    margin-bottom: 0;
}

.home-intro-block--compact p {
    font-size: 1rem;
    color: #555555;
}

@media (max-width: 768px) {
    .home-intro-section {
        padding: 44px 0;
    }

    .home-intro-section--closing {
        padding: 44px 0 40px;
    }

    .home-intro-block {
        max-width: 100%;
    }

    .home-intro-block--compact {
        margin: 40px 0 48px;
    }

    .home-intro-title {
        font-size: 1.5rem;
    }

    .home-intro-block--compact .home-intro-title {
        font-size: 1.3125rem;
    }

    .home-intro-block p {
        font-size: 1rem;
    }

    .home-intro-block--compact p {
        font-size: 0.9375rem;
    }
}

