/* Resources Pages Styles */
[/* FAQ Accordion Styles */]
.faq-item.active {
    border-color: var(--primary-300);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.1);
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none;
}

.faq-header:hover {
    background: var(--gray-50);
}

.faq-item.active .faq-header {
    background: var(--primary-50);
    border-bottom: 1px solid var(--primary-100);
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    flex: 1;
    text-align: left;
}

.faq-item.active .faq-question {
    color: var(--primary-700);
}

.faq-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: 1rem;
    flex-shrink: 0;
}

.faq-toggle i {
    font-size: 0.875rem;
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.faq-item:hover .faq-toggle {
    background: var(--primary-100);
}

.faq-item:hover .faq-toggle i {
    color: var(--primary-600);
}

.faq-item.active .faq-toggle {
    background: var(--primary-500);
    transform: rotate(45deg);
}

.faq-item.active .faq-toggle i {
    color: var(--white);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    padding: 0 2rem;
}

.faq-item.active .faq-content {
    max-height: 1500px;
    opacity: 1;
    padding: 0 2rem 2rem 2rem;
}

.faq-answer {
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
    font-size: 0.9375rem;
    display: block !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.faq-answer strong {
    color: var(--gray-800);
    font-weight: 600;
}

.faq-item.active .faq-answer {
    display: block !important;
}

.faq-answer br + br {
    line-height: 1.5;
}

.faq-content ul,
.faq-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-content li {
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

/* FAQ CTA Section */
.faq-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
}

.faq-cta h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.faq-cta p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.faq-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-cta-buttons .btn {
    min-width: 140px;
}

/* Animation classes */
.contact-faq.animate-in .faq-item {
    animation: fadeInUp 0.6s ease forwards;
}

.contact-faq.animate-in .faq-item:nth-child(1) { animation-delay: 0.1s; }
.contact-faq.animate-in .faq-item:nth-child(2) { animation-delay: 0.2s; }
.contact-faq.animate-in .faq-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-faq .faq-item h4:after {
    content: none !important;
}

.contact-faq .faq-question:after {
    content: none !important;
}

/* Search Box Styling */
.search-box {
    max-width: 600px;
    margin: 2rem auto 0;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--gray-400);
    font-size: 1rem;
    z-index: 2;
}

.search-input {
    flex: 1;
    padding: 1rem 1rem 1rem 3rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--gray-900);
    outline: none;
}

.search-input::placeholder {
    color: var(--gray-500);
}

.search-btn {
    padding: 1rem 1.5rem;
    background: var(--primary-500);
    color: var(--white);
    border: none;
    border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--primary-600);
}

.search-btn i {
    font-size: 1rem;
}

.search-clear-btn {
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.search-clear-btn:hover {
    color: var(--gray-600);
    background: var(--gray-100);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 10;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: var(--gray-700);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-item:hover {
    background: var(--gray-50);
    color: var(--primary-600);
}

.suggestion-item:not(:last-child) {
    border-bottom: 1px solid var(--gray-100);
}

#search-feedback {
    padding: 1.5rem 2rem !important;
    text-align: center;
    color: var(--gray-600) !important;
    background: var(--gray-50) !important;
    border: 1px solid var(--gray-200) !important;
    border-radius: var(--border-radius-lg) !important;
    margin: 2rem 0 !important;
    font-style: normal !important;
}

#search-feedback.results-found {
    background: var(--green-50) !important;
    color: var(--green-700) !important;
    border-color: var(--green-200) !important;
}

@media (max-width: 768px) {
    .search-box {
        margin: 1.5rem auto 0;
        padding: 0 1rem;
    }
    .search-input-wrapper {
        flex-direction: column;
        border-radius: var(--border-radius-md);
    }
    .search-input {
        padding: 0.875rem 1rem;
        text-align: center;
    }
    .search-icon {
        display: none;
    }
    .search-btn {
        width: 100%;
        border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
        justify-content: center;
    }
    .faq-category {
        padding: 1.5rem;
    }
    .category-title {
        font-size: 1.25rem;
        text-align: center;
        justify-content: center;
    }
}

/* Page Hero Section */
.page-hero {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--white) 100%);
    padding: 6rem 0 4rem;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.page-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

/* Blog/Article Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.article-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.article-image {
    width: 100%;
    height: 200px;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.article-category {
    background: var(--primary-100);
    color: var(--primary-800);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-excerpt {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-weight: 600;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.875rem;
}

.author-title {
    color: var(--gray-600);
    font-size: 0.75rem;
}

/* Help Center Styles */
.help-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.help-category {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.help-category:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.help-category-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-100);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.help-category-icon i {
    font-size: 1.5rem;
    color: var(--primary-600);
}

.help-category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.help-category-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.help-articles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-articles li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.help-articles li:last-child {
    border-bottom: none;
}

.help-articles a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.help-articles a:hover {
    color: var(--primary-600);
}

/* Search Section */
.search-section {
    background: var(--gray-50);
    padding: 4rem 0;
    text-align: center;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-600);
    color: var(--white);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-button:hover {
    background: var(--primary-700);
}

/* Featured Content */
.featured-content {
    background: var(--white);
    padding: 4rem 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.featured-article {
    background: var(--gray-50);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.featured-image {
    width: 100%;
    height: 250px;
    background: var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 4rem;
}

.featured-content-body {
    padding: 2rem;
}

.featured-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-excerpt {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.trending-sidebar {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    height: fit-content;
}

.trending-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-500);
}

.trending-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trending-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-link {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.trending-link:hover {
    color: var(--primary-600);
}

.trending-meta {
    color: var(--gray-500);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Newsletter Signup */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-description {
    font-size: 1.125rem;
    color: var(--primary-100);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-button {
    background: var(--white);
    color: var(--primary-600);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-button:hover {
    background: var(--gray-100);
    transform: translateY(-1px);
}

/* Blog-Specific Styles */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--white) 100%);
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e5e7eb" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--white);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--border-radius-full);
    border: 2px solid var(--gray-200);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-tag:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-700);
    transform: translateY(-2px);
}

.category-tag.active {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: var(--white);
}

.category-tag.active:hover {
    background: var(--primary-700);
    border-color: var(--primary-700);
}

/* Featured Article Section */
.featured-article {
    background: var(--gray-50);
    padding: 4rem 0;
}

.featured-post {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-post .post-image {
    position: relative;
    overflow: hidden;
}

.featured-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post:hover .post-image img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-600);
    color: var(--white);
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-category.featured {
    background: var(--accent-600);
}

.featured-post .post-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-excerpt {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-md);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Blog Grid Section */
.blog-grid-section {
    background: var(--white);
    padding: 4rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-600);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    flex: 1;
}

.blog-excerpt {
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.read-more:hover {
    color: var(--primary-700);
    gap: 0.75rem;
}

.read-more i {
    transition: transform 0.2s ease;
}

.read-more:hover i {
    transform: translateX(2px);
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

/* Newsletter Signup */
.newsletter-signup {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.newsletter-signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23ffffff" opacity="0.1"/></svg>');
    z-index: 1;
}

.newsletter-signup .container {
    position: relative;
    z-index: 2;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.newsletter-description {
    font-size: 1.125rem;
    color: var(--primary-100);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.newsletter-benefits {
    display: grid;
    gap: 0.75rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.benefit i {
    color: var(--accent-400);
    font-size: 1rem;
}

.newsletter-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
}

.form-group {
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 1rem 7rem 1rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.newsletter-form button {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-note {
    color: var(--gray-500);
    font-size: 0.75rem;
    text-align: center;
    margin-top: 1rem;
    line-height: 1.4;
}

/* Popular Topics */
.popular-topics {
    background: var(--gray-50);
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.topic-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius-xl);
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.topic-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.topic-card:hover .topic-icon {
    background: var(--primary-600);
    color: var(--white);
    transform: scale(1.1);
}

.topic-icon i {
    font-size: 2rem;
    color: var(--primary-600);
    transition: color 0.3s ease;
}

.topic-card:hover .topic-icon i {
    color: var(--white);
}

.topic-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.topic-card p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,10 90,90 10,90" fill="%23667eea" opacity="0.1"/></svg>');
    z-index: 1;
}

.cta .container {
    position: relative;
    z-index: 2;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cta-note {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--gray-400);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: var(--gray-600);
    background: var(--gray-100);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.modal-description {
    color: var(--gray-600);
    margin: 0;
}

.modal-form {
    padding: 2rem;
}

.modal-form .form-group {
    margin-bottom: 1rem;
}

.modal-form input,
.modal-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.modal-form input:focus,
.modal-form select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Blog Responsive Design */
@media (max-width: 768px) {
    .blog-hero {
        padding: 4rem 0 3rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-post .post-content {
        padding: 2rem;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .newsletter-title {
        font-size: 2rem;
    }
    
    .newsletter-form input {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .newsletter-form button {
        position: static;
        transform: none;
        width: 100%;
    }
    
    .topics-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .topic-card {
        padding: 1.5rem 1rem;
    }
    
    .topic-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .topic-icon i {
        font-size: 1.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-tag {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 3rem 0 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .blog-card .blog-content {
        padding: 1rem;
    }
    
    .blog-title {
        font-size: 1.125rem;
    }
    
    .featured-post .post-content {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .newsletter-title {
        font-size: 1.75rem;
    }
    
    .newsletter-form {
        padding: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .category-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .topics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .topic-card {
        padding: 1rem;
    }
    
    .topic-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }
    
    .topic-icon i {
        font-size: 1.25rem;
    }
    
    .topic-card h3 {
        font-size: 1rem;
    }
    
    .topic-card p {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-form {
        padding: 1.5rem;
    }
}

/* Enhanced FAQ Debugging and Fallback Styles */
.faq-item {
    /* Ensure FAQ items are visible */
    opacity: 1 !important;
    visibility: visible !important;
}

.faq-item.active .faq-content {
    /* Force visibility for active FAQ content with high specificity */
    max-height: 2000px !important;
    opacity: 1 !important;
    overflow: visible !important;
    padding: 0 2rem 2rem 2rem !important;
    transition: all 0.4s ease !important;
}

.faq-item.active .faq-answer {
    /* Ensure FAQ answers are fully visible */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Debug mode - uncomment the next block to show all FAQ content for troubleshooting */
/*
.faq-content {
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    padding: 0 2rem 2rem 2rem !important;
    background: rgba(255, 255, 0, 0.1) !important;
    border: 1px dashed red !important;
}
*/
