/**
 * KhamPay Theme Section Styles
 */

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background-color: var(--background-light);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.app-badges {
    display: flex;
    gap: 15px;
}

.app-badge img {
    height: 40px;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    margin-left: 50px;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--background-color);
}

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

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background-color: var(--background-light);
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 60px;
    left: 25px;
    width: 2px;
    height: calc(100% + 30px);
    background-color: var(--primary-light);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    margin-right: 30px;
    z-index: 1;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-light);
}

/* App Showcase Section */
.app-showcase {
    padding: 100px 0;
    background-color: var(--background-color);
}

.app-showcase .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-showcase-content {
    flex: 1;
    max-width: 500px;
}

.app-showcase-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.app-showcase-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.app-features {
    margin-bottom: 30px;
}

.app-feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.app-feature i {
    color: var(--success-color);
    margin-right: 10px;
    font-size: 18px;
}

.app-showcase-image {
    flex: 1;
    max-width: 500px;
    margin-left: 50px;
}

.app-showcase-image img {
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background-color: var(--background-light);
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.pricing-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    flex: 1;
    max-width: 350px;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.price {
    font-size: 20px;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.currency {
    font-size: 24px;
    font-weight: 600;
    margin-right: 5px;
}

.amount {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.period {
    font-size: 16px;
    color: var(--text-light);
    margin-left: 5px;
}

.pricing-features {
    margin-bottom: 30px;
}

.pricing-feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.pricing-feature i {
    margin-right: 10px;
    font-size: 16px;
}

.pricing-feature i.fa-check {
    color: var(--success-color);
}

.pricing-feature i.fa-times {
    color: var(--text-light);
}

.pricing-feature.disabled {
    color: var(--text-light);
    text-decoration: line-through;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--background-color);
}

.testimonials-slider {
    display: flex;
    overflow: hidden;
    margin-bottom: 30px;
}

.testimonial {
    flex: 0 0 100%;
    padding: 0 15px;
}

.testimonial-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 20px;
    height: 20px;
    background-color: white;
    transform: rotate(45deg);
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.05);
}

.testimonial-content p {
    font-style: italic;
    font-size: 16px;
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    padding-left: 30px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--background-light);
}

.about .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-content {
    flex: 1;
    max-width: 600px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-light);
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat h3 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat p {
    font-size: 16px;
    margin-bottom: 0;
}

.about-image {
    flex: 1;
    max-width: 500px;
    margin-left: 50px;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background-color: var(--background-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.faq-question {
    background-color: white;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 18px;
    margin-bottom: 0;
}

.faq-answer {
    background-color: var(--background-light);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--background-light);
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.contact-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background-color: var(--primary-color);
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: white;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.cta .btn-primary:hover {
    background-color: var(--background-light);
}

/* Blog/Archive Styles */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.posts-grid article {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.posts-grid article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.posts-grid .post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.posts-grid .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.posts-grid article:hover .post-thumbnail img {
    transform: scale(1.05);
}

.posts-grid .entry-header,
.posts-grid .entry-content,
.posts-grid .entry-footer {
    padding: 20px;
}

.posts-grid .entry-header {
    padding-bottom: 0;
}

.posts-grid .entry-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.posts-grid .entry-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.posts-grid .entry-content {
    padding-top: 10px;
    padding-bottom: 10px;
}

.posts-grid .entry-footer {
    padding-top: 0;
    text-align: right;
}

/* Single Post Styles */
.single .entry-header {
    margin-bottom: 30px;
}

.single .entry-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.single .entry-meta {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.single .post-thumbnail {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.single .entry-content {
    margin-bottom: 40px;
}

.single .entry-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.single .entry-categories,
.single .entry-tags {
    margin-bottom: 10px;
}

.post-navigation {
    margin-bottom: 40px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    max-width: 48%;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.post-navigation .nav-title {
    font-size: 18px;
    font-weight: 600;
}

/* Comments */
.comments-area {
    margin-bottom: 60px;
}

.comments-title {
    font-size: 24px;
    margin-bottom: 30px;
}

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

.comment {
    margin-bottom: 30px;
}

.comment-body {
    padding: 20px;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
}

.comment-meta {
    margin-bottom: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.comment-author .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.comment-metadata {
    font-size: 14px;
    color: var(--text-light);
}

.comment-content {
    margin-bottom: 15px;
}

.reply {
    text-align: right;
}

.comment-respond {
    margin-top: 40px;
}

.comment-form-comment label {
    display: block;
    margin-bottom: 10px;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.form-submit {
    margin-top: 20px;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 60px 0;
}

.error-404 .page-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.error-404 .page-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-404-widgets {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 40px 0;
    text-align: left;
}

.error-404-widgets .widget {
    flex: 1;
    max-width: 300px;
}

.error-404-widgets .widget-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.error-404-cta {
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .error-404-widgets {
        flex-direction: column;
        align-items: center;
    }
    
    .error-404-widgets .widget {
        max-width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .single .entry-title {
        font-size: 28px;
    }
    
    .post-navigation .nav-links {
        flex-direction: column;
    }
    
    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        max-width: 100%;
        margin-bottom: 20px;
    }
}