﻿/* Resources Hero Section */
.resources-hero {
    padding: 140px 0 80px;
    color: white;
    text-align: center;
    position: relative;
}

.resources-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.resources-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.resources-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.resources-hero .breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.resources-hero .breadcrumbs a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.resources-hero .breadcrumbs a:hover {
    opacity: 0.8;
}

.resources-hero .breadcrumbs span {
    margin: 0 10px;
    opacity: 0.7;
}

/* Resource Categories Section */
.categories-section {
    padding: 80px 0;
    background-color: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.category-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 122, 141, 0.2);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 122, 141, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 1.5rem;
}

.category-content {
    flex: 1;
}

.category-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.category-content p {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 20px;
}

.category-cta {
    display: flex;
    align-items: center;
    color: var(--accent);
    font-weight: 500;
    margin-top: auto;
}

.category-cta i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.category-card:hover .category-cta i {
    transform: translateX(3px);
}

/* Latest Resources Section */
.latest-resources {
    padding: 80px 0;
    background-color: #f8fafc;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.resource-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.resource-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.resource-type {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.resource-content {
    padding: 25px;
}

.resource-date {
    font-size: 0.85rem;
    color: var(--text-medium);
    display: block;
    margin-bottom: 10px;
}

.resource-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary);
    line-height: 1.3;
}

.resource-content p {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 20px;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}

.resource-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.resource-link:hover i {
    transform: translateX(3px);
}

.view-all {
    text-align: center;
    margin-top: 50px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background: var(--accent);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: var(--hover-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 122, 141, 0.2);
}

.btn-view-all i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-view-all:hover i {
    transform: translateX(3px);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .resources-hero {
        padding: 120px 0 60px;
    }
    
    .categories-section,
    .latest-resources {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .resources-hero h1 {
        font-size: 2.2rem;
    }
    
    .resources-hero .subtitle {
        font-size: 1.1rem;
    }
    
    .categories-grid,
    .resources-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .resources-hero {
        padding: 100px 0 50px;
    }
    
    .resources-hero h1 {
        font-size: 1.8rem;
    }
    
    .category-card,
    .resource-card {
        padding: 20px;
    }
    
    .resource-image {
        height: 150px;
    }
    
    .btn-view-all {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Educational Guides Section */
.guides-section {
    padding: 80px 0;
    background-color: white;
}

.guides-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0 40px;
    flex-wrap: wrap;
}

.guides-tab-btn {
    padding: 10px 25px;
    background: rgba(0, 0, 0, 0.03);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.guides-tab-btn.active {
    background: var(--accent);
    color: white;
}

.guides-tab-btn:hover:not(.active) {
    background: rgba(0, 122, 141, 0.1);
}

.guides-tab {
    display: none;
}

.guides-tab.active {
    display: block;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.guide-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.guide-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #00a86b;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.guide-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.guide-content {
    padding: 25px;
}

.guide-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.guide-content p {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 20px;
}

.guide-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.guide-meta i {
    margin-right: 5px;
    color: var(--accent);
}

.guide-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.guide-btn:hover {
    background: var(--hover-accent);
    box-shadow: 0 5px 15px rgba(0, 122, 141, 0.2);
}

/* FAQ Preview Section */
.faq-preview {
    padding: 80px 0;
    background-color: #f8fafc;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    text-align: left;
    border: none;
    background: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--primary);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 122, 141, 0.03);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    color: var(--text-medium);
    line-height: 1.7;
    padding-bottom: 20px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-top: 10px;
}

.faq-cta {
    text-align: center;
    margin-top: 40px;
}

.btn-faq {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: var(--accent);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-faq:hover {
    background: var(--hover-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 122, 141, 0.2);
}

.btn-faq i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-faq:hover i {
    transform: translateX(3px);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .guides-section,
    .faq-preview {
        padding: 60px 0;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .guide-image {
        height: 180px;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .guides-tabs {
        justify-content: flex-start;
    }
    
    .guide-content {
        padding: 20px;
    }
    
    .guide-meta {
        flex-direction: column;
        gap: 8px;
    }
}