/* Base Styles */
:root {
    --primary-color: #e91e63;
    --primary-light: #ff6090;
    --primary-dark: #b0003a;
    --secondary-color: #6a1b9a;
    --secondary-light: #9c4dcc;
    --secondary-dark: #38006b;
    --text-light: #ffffff;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --background-light: #f8f9fa;
    --background-card: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #9c27b0, #e91e63);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background-color: var(--background-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button, .btn {
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: var(--gradient);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.logo svg, .logo img, .logo i {
    margin-right: 8px;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 1rem;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--text-light);
    transition: width 0.3s ease;
}

.main-nav a:hover:after, .main-nav a.active:after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    display: none;
    z-index: 1000;
}

.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: white;
    z-index: 2000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

body.menu-open {
    overflow: hidden;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--gradient);
    color: var(--text-light);
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav ul {
    padding: 1rem 0;
}

.mobile-nav li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav li a.active {
    color: var(--primary-color);
}

.mobile-nav-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0.5rem 1rem;
}

.btn-share span {
    display: inline;
}

.btn-primary {
    background-color: var(--primary-light);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: var(--text-light);
    padding: 5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary svg, .btn-secondary i {
    margin-right: 8px;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* About Section */
.about-section {
    padding: 5rem 0;
    text-align: center;
}

.about-section h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Privacy Policy Section */
.privacy-policy-section {
    padding: 3rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.privacy-policy-section h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.privacy-policy-section .last-updated {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

.privacy-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.privacy-content section {
    margin-bottom: 2rem;
}

.privacy-content h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.privacy-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.privacy-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content ul li {
    margin-bottom: 0.5rem;
}

/* Terms and Conditions Section */
.terms-section {
    padding: 3rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.terms-section h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.terms-section .last-updated {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

.terms-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.terms-content section {
    margin-bottom: 2rem;
}

.terms-content h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.terms-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.terms-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.terms-content ul li {
    margin-bottom: 0.5rem;
}

/* Contact Page Styles */
.contact-section {
    padding: 3rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-section h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-intro {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.contact-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    background-color: rgba(233, 30, 99, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.contact-details p {
    color: var(--text-muted);
}

.contact-details a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-social {
    margin-top: 2rem;
}

.contact-social h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(233, 30, 99, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.contact-form-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.contact-form-container h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.form-success i {
    font-size: 3rem;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        order: 2;
    }

    .contact-form-container {
        order: 1;
    }
}

/* Publish Steps Section */
.publish-steps-section {
    padding: 5rem 0;
    text-align: center;
    background-color: #F9FAFB;
}

.publish-steps-section h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.publish-steps-section p {
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Advertising Pages */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.ad-placements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.ad-placement-item {
    background-color: var(--background-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.ad-placement-item:hover {
    transform: translateY(-5px);
}

.ad-placement-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.ad-placement-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.ad-placement-item p {
    color: var(--text-muted);
}

.cta-section {
    background: var(--gradient);
    color: var(--text-light);
    text-align: center;
    padding: 4rem 0;
    margin: 3rem 0;
    border-radius: var(--border-radius);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--background-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
}

.testimonial-content p {
    position: relative;
    z-index: 1;
}

.testimonial-content:before {
    content: '"';
    font-size: 5rem;
    color: rgba(233, 30, 99, 0.1);
    position: absolute;
    top: -2rem;
    left: -1rem;
    z-index: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--secondary-color);
}

.testimonial-author-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.faq-item {
    margin-bottom: 2rem;
}

.faq-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.faq-item p {
    color: var(--text-muted);
}

.final-cta {
    background-color: #f0f4f8;
    border-radius: var(--border-radius);
}

/* Calculator Page */
.calculator-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.calculator-card {
    background-color: var(--background-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.calculator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-header h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.calculator-form .form-group {
    margin-bottom: 2rem;
}

.calculator-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--secondary-dark);
}

.duration-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.duration-btn {
    background-color: #f0f4f8;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.duration-btn.active {
    background-color: var(--secondary-light);
    color: white;
    border-color: var(--secondary-light);
}

.duration-slider {
    width: 100%;
    margin: 1rem 0;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
}

.duration-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
}

.duration-display {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--secondary-dark);
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: white;
}

.price-display {
    margin: 2rem 0;
}

.price-card {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.price-header h3 {
    font-size: 1.5rem;
    color: var(--secondary-dark);
}

.discount-badge {
    background-color: #4caf50;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.price-amount {
    text-align: center;
    margin: 1.5rem 0;
}

.price-currency {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.price-secondary {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.price-details {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.price-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.calculator-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background-color: var(--background-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.info-card ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-card li {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.testimonial-mini {
    background-color: var(--background-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Features Section */
.features {
    padding: 3rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--background-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(156, 39, 176, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon svg, .feature-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-muted);
}

/* Story Cards */
.stories-section {
    padding: 3rem 0;
}

.stories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.stories-header h2 {
    font-size: 2rem;
    color: var(--secondary-dark);
}

.stories-header a {
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.stories-header a svg, .stories-header a i {
    margin-left: 5px;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.story-card {
    background-color: var(--background-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    position: relative;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-card-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 50%, rgba(233, 30, 99, 0.1) 50%);
}

.story-card-header {
    padding: 1.5rem;
    padding-bottom: 0;
}

.story-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-dark);
    line-height: 1.3;
}

.story-card-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.story-card-author {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(156, 39, 176, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: var(--secondary-color);
    font-weight: 600;
}

.author-name {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.story-card-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.story-card-date svg, .story-card-date i {
    margin-right: 5px;
}

.story-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background-color: rgba(156, 39, 176, 0.1);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.story-card-content {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.story-card-stats {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.story-card-stats svg, .story-card-stats i {
    margin-right: 5px;
}

.story-card-reactions {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.reaction-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.reaction-btn {
    background-color: rgba(156, 39, 176, 0.05);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.reaction-btn:hover {
    background-color: rgba(156, 39, 176, 0.1);
    color: var(--secondary-color);
}

.reaction-btn svg, .reaction-btn i {
    margin-right: 5px;
}

.reaction-count {
    margin-left: 5px;
    font-weight: 600;
}

.story-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
}

.story-card-footer a {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.story-card-footer a svg, .story-card-footer a i {
    margin-left: 5px;
}

/* Story Detail Page */
.story-detail {
    max-width: 800px;
    margin: 3rem auto;
    background-color: var(--background-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

.story-detail-header {
    margin-bottom: 2rem;
}

.story-detail-title {
    font-size: 2.5rem;
    color: var(--secondary-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.story-detail-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.story-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.story-detail-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.story-detail-content p:last-child {
    margin-bottom: 0;
}

.story-detail-reactions {
    margin-top: 3rem;
    text-align: center;
}

.story-detail-reactions h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.reaction-buttons-large {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.reaction-btn-large {
    background-color: rgba(156, 39, 176, 0.05);
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.reaction-btn-large:hover {
    background-color: rgba(156, 39, 176, 0.1);
    color: var(--secondary-color);
}

.reaction-btn-large svg, .reaction-btn-large i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.story-detail-footer {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.share-btn {
    background-color: var(--primary-light);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.share-btn svg, .share-btn i {
    margin-right: 8px;
}

.share-btn:hover {
    background-color: var(--primary-dark);
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 3rem auto;
    background-color: var(--background-card);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    width: 100%;
}

.form-container h2 {
    font-size: 2rem;
    color: var(--secondary-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    -webkit-appearance: none; /* Remove default iOS styling */
    appearance: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.2);
}

/* Password field with toggle button */
.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field .form-control {
    padding-right: 40px; /* Make room for the toggle button */
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Improve touch targets for mobile */
input[type="checkbox"], input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236a1b9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

textarea.form-control, .admin-form-textarea {
    min-height: 150px;
    resize: vertical;
    white-space: pre-wrap;
    line-height: 1.6;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    min-height: 44px; /* Minimum touch target size */
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-submit {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px; /* Minimum touch target size */
}

.form-submit:hover {
    background-color: var(--primary-dark);
}

/* Form Grid for side-by-side fields */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Search and Filter */
.search-filter-container {
    background-color: var(--background-card);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    -webkit-appearance: none;
    appearance: none;
}

.search-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.2);
}

.search-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    min-height: 44px; /* Minimum touch target size */
    border: none;
    cursor: pointer;
}

.search-btn:hover {
    background-color: var(--primary-dark);
}

.search-reset-btn {
    background-color: var(--background-light);
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    min-height: 44px; /* Minimum touch target size */
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-reset-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-right: 0.5rem;
    min-width: 80px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    background-color: rgba(156, 39, 176, 0.1);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 36px; /* Better touch target */
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-tag:hover, .filter-tag.active {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.sort-container {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-label {
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: var(--background-light);
    min-height: 36px; /* Better touch target */
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236a1b9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 16px;
    padding-right: 2rem;
}

/* Dashboard */
.dashboard {
    padding: 3rem 0;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    font-size: 2rem;
    color: var(--secondary-dark);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background-color: var(--background-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

.stat-card h3 {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.dashboard-content {
    background-color: var(--background-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.dashboard-content h3 {
    font-size: 1.5rem;
    color: var(--secondary-dark);
    margin-bottom: 1.5rem;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th, .dashboard-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-table th {
    font-weight: 600;
    color: var(--text-dark);
}

.dashboard-table td {
    color: var(--text-muted);
}

.dashboard-table tr:last-child td {
    border-bottom: none;
}

.dashboard-table .actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background-color: rgba(156, 39, 176, 0.1);
    color: var(--secondary-color);
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

/* Pagination */
.pagination-container {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-card);
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-link:hover, .page-link.active {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.page-nav {
    background-color: var(--background-light);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.page-ellipsis .page-link {
    background-color: transparent;
    box-shadow: none;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    max-width: 350px;
}

.flash {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease forwards;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
}

.flash-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.flash-warning {
    background-color: #fff3cd;
    color: #856404;
}

.flash svg, .flash i {
    margin-right: 10px;
    font-size: 1.2rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Footer */
footer {
    background-color: var(--secondary-dark);
    color: var(--text-light);
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-description {
    max-width: 300px;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .stories-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    /* Header & Navigation */
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
    }

    .dropdown-label, .btn-share span {
        display: none;
    }

    .dropdown-toggle {
        padding: 0.75rem;
    }

    .dropdown-toggle .fa-chevron-down {
        display: none;
    }

    /* Hero Section */
    .hero h1 {
        font-size: 3rem;
    }

    /* Story Grid */
    .stories-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    /* Story Detail */
    .story-detail {
        margin: 2rem auto;
        padding: 1.5rem;
    }

    /* Forms */
    .form-container {
        padding: 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header-container {
        padding: 0 15px;
    }

    /* Hero Section */
    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    /* Sections */
    .about-section, .features, .stories-section, .publish-steps-section, .section {
        padding: 3rem 0;
    }

    .about-section h2, .features h2, .stories-section h2, .publish-steps-section h2, .section-header h2 {
        font-size: 2rem;
    }

    /* Advertising Pages */
    .ad-placements {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .calculator-container {
        grid-template-columns: 1fr;
    }

    /* Stories */
    .stories-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .stories-grid {
        grid-template-columns: 1fr;
    }

    /* Story Detail */
    .story-detail-title {
        font-size: 2rem;
    }

    .story-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .reaction-buttons-large {
        flex-direction: column;
        align-items: stretch;
    }

    .social-share-buttons {
        justify-content: center;
        margin-top: 1.5rem;
    }

    /* Pagination */
    .pagination {
        gap: 0.3rem;
    }

    .page-link {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    /* Comments */
    .comment-form textarea {
        min-height: 100px;
    }

    /* Forms */
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    /* General */
    body {
        font-size: 0.95rem;
    }

    /* Header */
    .logo-text {
        font-size: 1.2rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    /* Hero Section */
    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Sections */
    .about-section, .features, .stories-section, .publish-steps-section, .section {
        padding: 2.5rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Advertising Pages */
    .cta-section {
        padding: 2.5rem 0;
        margin: 2rem 0;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .faq-item h3 {
        font-size: 1.1rem;
    }

    .duration-selector {
        justify-content: center;
    }

    .duration-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Forms */
    .form-container {
        padding: 1.25rem;
        border-radius: 8px;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .search-form {
        flex-direction: column;
    }

    .sort-container {
        margin-left: 0;
        margin-top: 1rem;
    }

    /* Dashboard */
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-table {
        display: block;
        overflow-x: auto;
    }

    /* Story Detail */
    .story-detail {
        padding: 1.25rem;
        margin: 1.5rem auto;
    }

    .story-detail-title {
        font-size: 1.75rem;
    }

    .story-detail-content {
        font-size: 1rem;
    }

    /* Pagination */
    .pagination {
        gap: 0.25rem;
    }

    .page-link {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .pagination-info {
        font-size: 0.8rem;
    }

    /* Comments */
    .comment {
        padding: 1rem;
    }

    /* Footer */
    footer {
        padding: 2.5rem 0 1.5rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
