/*
Theme Name: Viralchemy WordPress Theme
Theme URI: https://viralchemydm.com
Author: Viralchemy
Author URI: https://viralchemydm.com
Description: Custom WordPress theme matching Next.js site design for Viralchemy
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: viralchemy-theme
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Navbar Styles */
nav.main-navbar {
    padding: 0.25rem;
    background-color: white;
    border: 0.5px dashed #e5e7eb;
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
    gap: 5rem;
}

.navbar-logo {
    flex-shrink: 0;
    cursor: pointer;
}

.navbar-logo img {
    width: auto;
    height: 5.75rem;
}

.navbar-menu {
    display: none;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.navbar-menu a {
    color: #374151;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s;
}

.navbar-menu a:hover {
    color: #ffe342;
}

.navbar-cta {
    display: none;
}

.cta-button {
    background-color: black;
    color: white;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #1f2937;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.cta-button span {
    font-size: 21px;
    color: white;
}

.cta-icon-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
    background-color: white;
    padding: 0.5rem;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-button:hover .cta-icon-wrapper {
    background-color: #ffe342;
}

.cta-icon-wrapper svg {
    width: 20px;
    height: 20px;
    color: black;
    position: relative;
    z-index: 10;
}

.mobile-menu-button {
    display: block;
    background-color: black;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.mobile-menu-button:hover {
    background-color: #1f2937;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.mobile-menu-button img {
    width: auto;
    height: 1.25rem;
    filter: invert(1);
}

.mobile-menu {
    display: none;
    background-color: white;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1rem 1.5rem 3.5rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu > a:not(.cta-button) {
    display: block;
    color: #374151;
    font-weight: 500;
    padding: 0.5rem 0;
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-menu > a:not(.cta-button):hover {
    color: #111827;
}

/* Mobile CTA Button Styling */
.mobile-menu .cta-button {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: black;
    color: white;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
    width: fit-content;
}

.mobile-menu .cta-button:hover {
    background-color: #1f2937;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.mobile-menu .cta-button span {
    font-size: 16px;
    color: white;
}

.mobile-menu .cta-button .cta-icon-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
    background-color: white;
    padding: 0.5rem;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu .cta-button:hover .cta-icon-wrapper {
    background-color: #ffe342;
}

.mobile-menu .cta-button .cta-icon-wrapper svg {
    width: 20px;
    height: 20px;
    color: black;
}

/* Desktop View */
@media (min-width: 768px) {
    .navbar-menu {
        display: flex;
    }
    
    .navbar-cta {
        display: block;
    }
    
    .mobile-menu-button {
        display: none;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* Main Content Area */
main {
    min-height: 60vh;
}

/* Footer Styles */
footer.main-footer {
    position: relative;
    background-color: black;
    color: white;
    overflow: hidden;
}

.footer-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.footer-container {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 3rem;
    }
}

.footer-logo-section {
    text-align: center;
}

@media (min-width: 1024px) {
    .footer-logo-section {
        grid-column: span 4;
    }
}

.footer-logo {
    width: 16rem;
    height: auto;
    margin: 0 auto 1rem;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-description {
    font-size: 0.875rem;
    color: #d1d5db;
    text-align: center;
    margin-bottom: 1.25rem;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.footer-social a {
    width: 2.25rem;
    height: 2.25rem;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.footer-social a:hover {
    transform: scale(1.1);
}

.footer-social img {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
}

.footer-links-section {
    text-align: center;
}

@media (min-width: 1024px) {
    .footer-links-section {
        grid-column: span 2;
        text-align: left;
    }
}

.footer-links-title {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #d1d5db;
}

.footer-services-section {
    text-align: center;
}

@media (min-width: 1024px) {
    .footer-services-section {
        grid-column: span 3;
        text-align: left;
    }
}

.footer-contact-section {
    text-align: center;
}

@media (min-width: 1024px) {
    .footer-contact-section {
        grid-column: span 3;
        text-align: left;
    }
}

.footer-contact-block {
    margin-bottom: 1.5rem;
}

.footer-contact-block h3 {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.footer-contact-block p {
    font-size: 0.875rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #374151;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Blog Styles */
.blog-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.blog-container h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.blog-card img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.blog-card h2 {
    font-size: 1.5rem;
    margin: 1rem;
}

.blog-card h2 a {
    color: #111827;
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: #ffe342;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin: 0 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.post-excerpt {
    margin: 1rem;
    color: #374151;
}

.read-more {
    display: inline-block;
    margin: 1rem;
    color: black;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.read-more:hover {
    color: #ffe342;
}

/* Single Post Styles */
.single-post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.blog-post h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.featured-image {
    margin: 2rem 0;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    margin: 2rem 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.post-tags {
    margin: 2rem 0;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    gap: 1rem;
}

.prev-post, .next-post {
    flex: 1;
}

.prev-post a, .next-post a {
    color: black;
    text-decoration: none;
    font-weight: 500;
}

.prev-post a:hover, .next-post a:hover {
    color: #ffe342;
}

.next-post {
    text-align: right;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination a, .pagination span {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s;
}

.pagination a:hover {
    background: black;
    color: white;
    border-color: black;
}

.pagination .current {
    background: black;
    color: white;
    border-color: black;
}

/* ============================================
   FAQ SECTION STYLES
   ============================================ */

@keyframes floatParticle {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-20px); 
    }
}

.faq-section {
    width: 100%;
    max-width: 90%;
    margin: 3rem auto;
    padding: 3rem 1rem;
}

@media (min-width: 768px) {
    .faq-section {
        padding: 5rem 1.5rem;
    }
}

.faq-container {
    max-width: 1152px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 768px) {
    .faq-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* Left Section */
.faq-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.faq-label-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .faq-label-wrapper {
        justify-content: flex-start;
    }
}

.faq-label-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px dashed #d9d9d9;
    border-radius: 33px;
    padding: 0.5rem 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.faq-sparkle-icon {
    color: #ffe342;
    transform: rotate(223deg);
}

.faq-label-text {
    color: #171717;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
}

.faq-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #171717;
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .faq-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 768px) {
    .faq-title {
        font-size: 3rem;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .faq-title {
        font-size: 3rem;
    }
}

.faq-description {
    font-size: 1rem;
    color: #212121;
    text-align: center;
    max-width: 42rem;
    margin: 0 auto;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .faq-description {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .faq-description {
        text-align: left;
        margin: 0;
    }
}

/* Right Section - FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .faq-list {
        gap: 1rem;
    }
}

.faq-item {
    position: relative;
    overflow: hidden;
    border: 1px dashed #e6e6e6;
    border-radius: 0.75rem;
    background: white;
    box-shadow: 5px 5px 15px 0px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item-open {
    background: #171717;
    border-color: #212121;
    box-shadow: none;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .faq-question {
        padding: 1.5rem;
    }
}

.faq-question-text {
    font-size: 1rem;
    font-weight: 600;
    padding-right: 1rem;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #171717;
    margin: 0;
    transition: color 0.3s ease;
}

@media (min-width: 640px) {
    .faq-question-text {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .faq-question-text {
        font-size: 1.25rem;
    }
}

.faq-item-open .faq-question-text {
    color: white;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #171717;
}

.faq-item-open .faq-icon {
    transform: rotate(0deg);
    color: white;
}

.faq-item:not(.faq-item-open) .faq-icon {
    transform: rotate(180deg);
}

.faq-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item-open .faq-answer {
    max-height: 24rem;
    opacity: 1;
}

.faq-answer-content {
    padding: 0 1.25rem 1.25rem;
}

@media (min-width: 768px) {
    .faq-answer-content {
        padding: 0 1.5rem 1.5rem;
    }
}

.faq-answer-content p {
    color: white;
    font-size: 0.875rem;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    margin: 0;
}

@media (min-width: 640px) {
    .faq-answer-content p {
        font-size: 1rem;
    }
}

/* Floating Particles */
.faq-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: none;
}

.faq-item-open .faq-particles {
    display: block;
}

.faq-particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    width: 4px;
    height: 4px;
    opacity: 1;
    filter: blur(2px);
}