/* Home Page Styles */

/* Hero Section */
.modern-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgb(214, 51, 132) 0%, rgb(106, 17, 203) 90%);
    color: white;
    padding: 100px 0 120px;
    margin-bottom: 0px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    background: white;
    color: var(--secondary-color);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
    border: none;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
}

.btn-see-all {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-see-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.btn-see-all:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(214, 51, 132, 0.3);
    color: white;
}

.btn-see-all:hover::before {
    opacity: 1;
}

.hero-shape {
    position: absolute;
    opacity: 0.1;
    border-radius: 50%;
    background: white;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -50px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -100px;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 15%;
}

/* Stats Section */
.stats-section {
    padding: 40px 0 20px;
    position: relative;
    z-index: 10;
    background-color: #f8f9fa;
}

.stat-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
    border-bottom: 4px solid transparent;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(106, 17, 203, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Topic Cards (Home Page) */
.home-topic-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
    position: relative;
}

.home-topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.home-topic-body {
    padding: 20px;
}

.home-topic-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.home-topic-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-topic-meta {
    font-size: 0.85rem;
    color: #6c757d;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topic-link {
    text-decoration: none;
    color: inherit;
}

/* Writer Cards (Home Page) */
.home-writer-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
}

.home-writer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.home-writer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f8f9fa;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    overflow: hidden;
}

.home-writer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-writer-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.home-writer-topics {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonial-modern-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #fff 0%, #fef9fc 100%);
    position: relative;
    overflow: hidden;
}

.testimonial-modern-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(214, 51, 132, 0.05) 0%, rgba(214, 51, 132, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.testimonial-modern-section .section-title {
    position: relative;
    z-index: 1;
}

.swiper {
    width: 100%;
    overflow: visible;
}

.swiper-slide {
    height: auto;
    box-sizing: border-box;
}

.testimonial-card-modern {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    margin: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    height: calc(100% - 20px);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    border-bottom: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card-modern:hover {
    transform: translateY(-10px);
}

.quote-icon-modern {
    font-size: 3rem;
    color: rgba(214, 51, 132, 0.1);
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: serif;
}

.testimonial-text-modern {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: italic;
    position: relative;
}

.testimonial-user-modern {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.testimonial-avatar-wrapper {
    position: relative;
    margin-right: 15px;
}

.testimonial-avatar-modern {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(214, 51, 132, 0.2);
    overflow: hidden;
}

.testimonial-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-avatar-initials {
    font-weight: 700;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.testimonial-info-modern h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #222;
}

.testimonial-info-modern span {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
}

/* Pricing Section (Home Page) */
.home-pricing-section {
    padding: 80px 0 100px;
    background-color: #f8f9fa;
}

.home-pricing-card-wrapper {
    perspective: 1000px;
    height: 100%;
}

.home-pricing-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.02);
    top: 0;
}

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

.home-pricing-starter {
    border-top: 5px solid #20c997;
}

.home-pricing-silver {
    border-top: 5px solid #845ef7;
}

.home-pricing-gold {
    border-top: 5px solid #fcc419;
}

.home-pricing-advanced {
    border-top: 5px solid #f03e3e;
}

/* Editorial Section */
.editorial-section {
    padding: 100px 0;
    background: #fff;
}

.editorial-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

.editorial-img-wrapper {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.editorial-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.editorial-card:hover .editorial-img {
    transform: scale(1.05);
}

.editorial-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.editorial-date {
    font-size: 0.85rem;
    color: #bdc3c7;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.editorial-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.editorial-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}

.editorial-title a:hover {
    color: var(--primary-color);
}

.editorial-excerpt {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.read-more-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.read-more-link i {
    margin-left: 5px;
    transition: transform 0.2s;
}

.read-more-link:hover i {
    transform: translateX(4px);
}

.section-label {
    color: var(--primary-color);
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.section-title {
    font-weight: 800;
    margin-bottom: 20px;
    color: #212529;
    font-size: 2.5rem;
    letter-spacing: -1px;
}

/* Category Cards */
.category-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: rgba(214, 51, 132, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.category-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.category-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* Pricing Section Styles (Home Page) */
.pricing-header {
    padding: 40px 30px 20px;
    text-align: center;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.c-starter {
    color: #20c997;
}

.c-silver {
    color: #845ef7;
}

.c-gold {
    color: #e6b31e;
}

.c-advanced {
    color: #f03e3e;
}

.pricing-desc {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 10px;
    line-height: 1;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.currency {
    font-size: 1.25rem;
    font-weight: 600;
    margin-right: 4px;
    color: #212529;
}

.amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #212529;
    letter-spacing: -2px;
}

.duration {
    color: #adb5bd;
    font-weight: 500;
    font-size: 1rem;
    margin-left: 5px;
}

.pricing-features {
    padding: 0 30px 30px;
    flex-grow: 1;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    color: #495057;
    font-size: 0.95rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    margin-right: 12px;
    font-size: 1rem;
}

.pricing-footer {
    padding: 0 30px 40px;
    text-align: center;
}

.btn-pricing {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
}

.btn-pricing:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn-starter {
    background: linear-gradient(135deg, #20c997 0%, #0ca678 100%);
    box-shadow: 0 10px 20px rgba(32, 201, 151, 0.3);
}

.btn-silver {
    background: linear-gradient(135deg, #845ef7 0%, #7048e8 100%);
    box-shadow: 0 10px 20px rgba(132, 94, 247, 0.3);
}

.btn-gold {
    background: linear-gradient(135deg, #fcc419 0%, #fab005 100%);
    box-shadow: 0 10px 20px rgba(252, 196, 25, 0.3);
}

.btn-advanced {
    background: linear-gradient(135deg, #ff6b6b 0%, #fa5252 100%);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

/* Fallback Writer Card Styles */
.writer-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
}

.writer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.writer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f8f9fa;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    overflow: hidden;
}

.writer-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.writer-topics {
    color: #6c757d;
    font-size: 0.9rem;
}

.swiper-pagination-bottom {
    bottom: 0;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .modern-hero {
        padding: 80px 0;
    }
}