/* VisionWay Resource Hub CSS - Complete Redesign */
.resource-hub-body {
    --vw-primary: #E53935;
    --vw-secondary: #102A54;
    --vw-bg: #F8FAFC;
    --vw-card: #FFFFFF;
    --vw-text: #333333;
    --vw-light-text: #666666;
    --vw-border: #E5E7EB;
    --vw-radius: 8px;
    --vw-transition: all 0.3s ease;
    --vw-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --vw-shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.resource-hub-body {
    background-color: var(--vw-bg);
    color: var(--vw-text);
    font-family: inherit;
    line-height: 1.6;
}

.vw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.vw-section {
    padding: 60px 0;
}

.vw-section-title {
    color: var(--vw-secondary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: left;
}

/* --- Hero Section --- */
.vw-hub-hero {
    background-color: var(--vw-secondary);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
}

.vw-hub-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
}

.vw-hub-hero p.hero-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
}

.vw-search-container {
    max-width: 800px;
    margin: 0 auto 30px;
    position: relative;
}

.vw-search-bar {
    display: flex;
    background: #fff;
    border-radius: var(--vw-radius);
    overflow: hidden;
    padding: 5px;
}

.vw-search-bar input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
    outline: none;
    color: var(--vw-text);
}

.vw-search-btn {
    background: var(--vw-primary);
    color: #fff;
    border: none;
    padding: 0 30px;
    font-weight: 600;
    border-radius: calc(var(--vw-radius) - 3px);
    cursor: pointer;
    transition: var(--vw-transition);
}

.vw-search-btn:hover {
    background: #b71c1c;
}

.vw-popular-tags {
    margin-bottom: 50px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.vw-popular-tags a {
    color: #fff;
    text-decoration: underline;
    margin-left: 10px;
    transition: var(--vw-transition);
}

.vw-popular-tags a:hover {
    color: var(--vw-primary);
}

.vw-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.vw-stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.vw-stat-item span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Common Grid --- */
.vw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Article Cards --- */
.vw-article-card {
    background: var(--vw-card);
    border-radius: var(--vw-radius);
    overflow: hidden;
    box-shadow: var(--vw-shadow);
    transition: var(--vw-transition);
    display: flex;
    flex-direction: column;
}

.vw-article-card:hover {
    box-shadow: var(--vw-shadow-hover);
    transform: translateY(-5px);
}

.vw-card-img {
    height: 180px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    position: relative;
}

.vw-card-cat-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--vw-primary);
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.vw-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vw-card-content h3 {
    font-size: 1.25rem;
    color: var(--vw-secondary);
    margin: 0 0 10px;
    line-height: 1.4;
}

.vw-card-content h3 a {
    color: inherit;
    text-decoration: none;
}

.vw-card-content h3 a:hover {
    color: var(--vw-primary);
}

.vw-card-desc {
    font-size: 0.95rem;
    color: var(--vw-light-text);
    margin-bottom: 15px;
    flex: 1;
}

.vw-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--vw-light-text);
    border-top: 1px solid var(--vw-border);
    padding-top: 15px;
}

.vw-read-more {
    color: var(--vw-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.vw-read-more:hover {
    text-decoration: underline;
}

/* --- Category Cards --- */
.vw-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.vw-cat-card {
    background: var(--vw-card);
    border: 1px solid var(--vw-border);
    border-radius: var(--vw-radius);
    padding: 25px;
    text-align: center;
    transition: var(--vw-transition);
    text-decoration: none;
    color: var(--vw-text);
    display: block;
}

.vw-cat-card:hover {
    border-color: var(--vw-primary);
    box-shadow: var(--vw-shadow);
    transform: translateY(-3px);
}

.vw-cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: rgba(229, 57, 53, 0.08); /* Soft primary red background */
    color: var(--vw-primary);
    margin-bottom: 20px;
    transition: var(--vw-transition);
}

.vw-cat-card:hover .vw-cat-icon {
    background-color: var(--vw-primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(229, 57, 53, 0.2);
}

.vw-cat-card h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
    color: var(--vw-secondary);
}

.vw-cat-card p {
    font-size: 0.9rem;
    color: var(--vw-light-text);
    margin: 0;
}

/* --- Free Downloads --- */
.vw-download-card {
    display: flex;
    align-items: center;
    background: var(--vw-card);
    border: 1px solid var(--vw-border);
    border-radius: var(--vw-radius);
    padding: 20px;
    transition: var(--vw-transition);
}

.vw-download-card:hover {
    border-color: var(--vw-secondary);
    box-shadow: var(--vw-shadow);
}

.vw-download-icon {
    background: rgba(211, 47, 47, 0.1);
    color: var(--vw-primary);
    width: 60px;
    height: 60px;
    border-radius: var(--vw-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.vw-download-info {
    flex: 1;
}

.vw-download-info h3 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    color: var(--vw-secondary);
}

.vw-download-meta {
    font-size: 0.85rem;
    color: var(--vw-light-text);
}

.vw-btn-download {
    background: var(--vw-primary);
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--vw-transition);
}

.vw-btn-download:hover {
    background: #b71c1c;
}

/* --- Interactive Tools --- */
.vw-tool-card {
    background: var(--vw-secondary);
    color: #fff;
    border-radius: var(--vw-radius);
    padding: 30px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: var(--vw-transition);
}

.vw-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(13, 35, 67, 0.2);
}

.vw-tool-card h3 {
    color: #fff;
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.vw-tool-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

.vw-tool-card::after {
    content: '→';
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 1.5rem;
    opacity: 0.5;
    transition: var(--vw-transition);
}

.vw-tool-card:hover::after {
    opacity: 1;
    right: 20px;
}

/* --- Timeline (Recently Updated) --- */
.vw-timeline {
    position: relative;
    padding-left: 30px;
}

.vw-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--vw-border);
}

.vw-timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.vw-timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--vw-primary);
    border: 3px solid var(--vw-bg);
}

.vw-timeline-date {
    font-size: 0.85rem;
    color: var(--vw-primary);
    font-weight: 600;
    margin-bottom: 5px;
}

.vw-timeline-content {
    background: var(--vw-card);
    padding: 15px 20px;
    border-radius: var(--vw-radius);
    box-shadow: var(--vw-shadow);
    border: 1px solid var(--vw-border);
}

.vw-timeline-content h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    color: var(--vw-secondary);
}
.vw-timeline-content a {
    text-decoration: none;
    color: inherit;
}
.vw-timeline-content a:hover {
    color: var(--vw-primary);
}

/* --- Editor's Picks (Featured) --- */
.vw-featured-card {
    display: flex;
    background: var(--vw-card);
    border-radius: var(--vw-radius);
    overflow: hidden;
    box-shadow: var(--vw-shadow);
    margin-bottom: 30px;
}

.vw-featured-img {
    flex: 0 0 40%;
    background-size: cover;
    background-position: center;
    min-height: 250px;
}

.vw-featured-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vw-featured-content h3 {
    font-size: 1.8rem;
    color: var(--vw-secondary);
    margin: 10px 0;
}
.vw-featured-content a {
    text-decoration: none;
    color: inherit;
}

@media(max-width: 768px) {
    .vw-featured-card {
        flex-direction: column;
    }
    .vw-featured-img {
        flex: none;
        height: 200px;
    }
}

/* --- Student Toolkit --- */
.vw-toolkit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.vw-toolkit-item {
    background: var(--vw-card);
    padding: 20px;
    border-radius: var(--vw-radius);
    text-align: center;
    text-decoration: none;
    color: var(--vw-secondary);
    font-weight: 600;
    border: 1px solid var(--vw-border);
    transition: var(--vw-transition);
}

.vw-toolkit-item:hover {
    border-color: var(--vw-primary);
    background: var(--vw-primary);
    color: #fff;
}

/* --- FAQs --- */
.vw-faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.vw-faq-item {
    background: var(--vw-card);
    border: 1px solid var(--vw-border);
    border-radius: var(--vw-radius);
    margin-bottom: 15px;
    overflow: hidden;
}

.vw-faq-question {
    padding: 20px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--vw-secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vw-faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: var(--vw-transition);
}

.vw-faq-item.active .vw-faq-question::after {
    content: '-';
}

.vw-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--vw-light-text);
}

.vw-faq-item.active .vw-faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* --- CTA Section --- */
.vw-cta-section {
    background: var(--vw-secondary);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    border-radius: var(--vw-radius);
    margin: 60px 0;
}

.vw-cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.vw-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.vw-btn-primary {
    background: var(--vw-primary);
    color: #fff;
    padding: 15px 30px;
    border-radius: var(--vw-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--vw-transition);
}

.vw-btn-primary:hover {
    background: #b71c1c;
}

.vw-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 15px 30px;
    border-radius: var(--vw-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--vw-transition);
}

.vw-btn-outline:hover {
    background: #fff;
    color: var(--vw-secondary);
}

/* Hide / Show Utilities */
.vw-hidden {
    display: none !important;
}

/* Single Resource Page Styles Update */
.vw-single-hero {
    background-color: var(--vw-secondary);
    color: #fff;
    padding: 60px 0;
}
.vw-single-hero h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.vw-breadcrumb {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}
.vw-breadcrumb a {
    color: #fff;
    text-decoration: none;
}
.vw-breadcrumb a:hover {
    color: var(--vw-primary);
}
.vw-single-meta {
    display: flex;
    gap: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}
.vw-single-content-wrap {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}
.vw-single-main {
    flex: 1;
}
.vw-single-sidebar {
    width: 300px;
    flex-shrink: 0;
}
@media(max-width: 992px) {
    .vw-single-content-wrap {
        flex-direction: column;
    }
    .vw-single-sidebar {
        width: 100%;
    }
}
.vw-toc {
    background: var(--vw-card);
    padding: 20px;
    border-radius: var(--vw-radius);
    box-shadow: var(--vw-shadow);
    border: 1px solid var(--vw-border);
    position: sticky;
    top: 20px;
}
.vw-toc h4 {
    margin-top: 0;
    color: var(--vw-secondary);
    border-bottom: 1px solid var(--vw-border);
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.vw-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.vw-toc li {
    margin-bottom: 10px;
}
.vw-toc a {
    color: var(--vw-light-text);
    text-decoration: none;
    transition: var(--vw-transition);
}
.vw-toc a:hover {
    color: var(--vw-primary);
}
.vw-single-content h2, .vw-single-content h3 {
    color: var(--vw-secondary);
    margin-top: 30px;
}
.vw-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--vw-radius);
    margin: 20px 0;
}
.vw-expert-tip {
    background: rgba(211, 47, 47, 0.05);
    border-left: 4px solid var(--vw-primary);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 var(--vw-radius) var(--vw-radius) 0;
}
.vw-expert-tip h4 {
    color: var(--vw-primary);
    margin-top: 0;
}
.vw-related-resources {
    background: var(--vw-card);
    padding: 20px;
    border-radius: var(--vw-radius);
    box-shadow: var(--vw-shadow);
    border: 1px solid var(--vw-border);
    margin-top: 30px;
}
.vw-related-resources h4 {
    margin-top: 0;
    color: var(--vw-secondary);
    border-bottom: 1px solid var(--vw-border);
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.vw-related-resources ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.vw-related-resources li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--vw-border);
}
.vw-related-resources li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.vw-related-resources a {
    color: var(--vw-text);
    text-decoration: none;
    font-weight: 600;
}
.vw-related-resources a:hover {
    color: var(--vw-primary);
}
.vw-single-hero-excerpt {
    font-size: 1.2rem;
    max-width: 800px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
}

/* Action Checklist */
.vw-action-checklist {
    background: #fff;
    padding: 25px;
    border-radius: var(--vw-radius);
    margin: 30px 0;
    border: 1px solid var(--vw-border);
    border-left: 4px solid var(--vw-primary);
}
.vw-action-checklist h4 {
    margin-top: 0;
    color: var(--vw-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.vw-action-checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.vw-action-checklist li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.vw-action-checklist li:last-child {
    margin-bottom: 0;
}
.vw-action-checklist input[type="checkbox"] {
    margin-top: 5px;
}

/* Downloadable Resources */
.vw-downloadable-resources {
    background: var(--vw-bg);
    padding: 30px;
    border-radius: var(--vw-radius);
    margin: 40px 0;
    border: 1px solid var(--vw-border);
}
.vw-downloadable-resources h3 {
    margin-top: 0;
    color: var(--vw-primary);
}
.vw-downloadable-resources .vw-btn-download {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
}

/* FAQs Section */
.vw-faqs-section {
    margin: 50px 0;
}

/* Social Share */
.vw-social-share {
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid var(--vw-border);
}
.vw-social-share .vw-social-link {
    margin-left: 10px;
    color: var(--vw-primary);
}

/* Author Box */
.vw-author-box {
    display: flex;
    align-items: center;
    background: var(--vw-bg);
    padding: 20px;
    border-radius: var(--vw-radius);
    margin-bottom: 40px;
}
.vw-author-box .vw-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
}
.vw-author-box h4 {
    margin: 0 0 5px;
}
.vw-author-box p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--vw-light-text);
}

/* Post Navigation */
.vw-post-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}
.vw-post-navigation .nav-next {
    text-align: right;
}

/* Sidebar CTA */
.vw-sidebar-cta {
    background: var(--vw-card);
    padding: 30px;
    border-radius: var(--vw-radius);
    box-shadow: var(--vw-shadow);
    border: 2px solid var(--vw-secondary);
    position: sticky;
    top: 20px;
}
.vw-sidebar-cta h3 {
    margin-top: 0;
    color: var(--vw-primary);
}
.vw-sidebar-cta p {
    font-size: 0.95rem;
    color: var(--vw-light-text);
}
.vw-sidebar-cta .vw-btn-primary {
    display: block;
    text-align: center;
    margin-bottom: 15px;
    padding: 12px;
}
.vw-sidebar-cta .vw-btn-whatsapp {
    display: block;
    text-align: center;
    background: #25D366;
    color: #fff;
    padding: 12px;
    border-radius: var(--vw-radius);
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 15px;
}
.vw-sidebar-cta .vw-btn-call {
    display: block;
    text-align: center;
    border: 2px solid var(--vw-primary);
    color: var(--vw-primary);
    padding: 10px;
    border-radius: var(--vw-radius);
    text-decoration: none;
    font-weight: bold;
}
