/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    background: #1a1a2e;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    color: #e94560;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}
.nav {
    display: flex;
    gap: 1.5rem;
}
.nav a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.2s;
}
.nav a:hover, .nav a.active {
    color: #fff;
}

/* Main */
.main {
    min-height: calc(100vh - 200px);
}

/* ===========================================
   SECTION STYLES - Page Builder Sections
   =========================================== */

/* Hero Section */
.hero {
    padding: 5rem 2rem;
    text-align: center;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}
.hero-gradient-blue {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}
.hero-gradient-purple {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: #fff;
}
.hero-gradient-green {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: #fff;
}
.hero-dark {
    background: #1a1a2e;
    color: #fff;
}
.hero-light {
    background: #f8f9fa;
    color: #1a1a2e;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-primary {
    background: #fff;
    color: #1a1a2e;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.btn-cta {
    background: #fff;
    color: #1a1a2e;
}
.btn-cta:hover {
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: #fff;
}
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}
.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.feature-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s;
}
.feature-card:hover {
    transform: translateY(-4px);
}
.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    margin: 0 auto 1.5rem;
}
.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
}
.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Call to Action Section */
.cta-section {
    padding: 5rem 2rem;
    text-align: center;
}
.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}
.cta-primary {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: #fff;
}
.cta-secondary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}
.cta-dark {
    background: #1a1a2e;
    color: #fff;
}

/* Text Content Section */
.text-section {
    padding: 4rem 0;
}
.text-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
}
.text-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}
.text-content p { margin-bottom: 1.5rem; }
.text-content ul, .text-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.text-content li { margin-bottom: 0.5rem; }
.text-narrow .container { max-width: 700px; }
.text-medium .container { max-width: 900px; }
.text-full .container { max-width: 1100px; }

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    background: #fff;
}
.gallery-grid {
    display: grid;
    gap: 1.5rem;
}
.gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
}
.gallery-item .caption {
    text-align: center;
    margin-top: 0.75rem;
    color: #666;
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background: #f8f9fa;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.testimonial-card blockquote {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.testimonial-author strong {
    color: #1a1a2e;
}
.testimonial-author span {
    font-size: 0.9rem;
    color: #888;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: #fff;
}
.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
}
.section-desc {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}
.contact-info {
    display: grid;
    gap: 1rem;
}
.contact-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}
.contact-item strong {
    color: #1a1a2e;
    display: inline-block;
    width: 80px;
}
.contact-item a {
    color: #e94560;
    text-decoration: none;
}
.contact-item a:hover {
    text-decoration: underline;
}

/* Spacer */
.spacer-small { height: 2rem; }
.spacer-medium { height: 4rem; }
.spacer-large { height: 6rem; }
.spacer-xlarge { height: 10rem; }

/* Divider */
.divider {
    border: none;
    margin: 2rem auto;
}
.divider-solid { border-top: 1px solid #ddd; }
.divider-dashed { border-top: 1px dashed #ddd; }
.divider-dotted { border-top: 1px dotted #ddd; }
.divider-gradient {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e94560, transparent);
}
.divider-narrow { max-width: 200px; }
.divider-medium { max-width: 400px; }
.divider-full { max-width: 100%; }

/* Two Columns Section */
.two-columns {
    padding: 4rem 0;
}
.two-columns .container {
    display: grid;
    gap: 3rem;
    align-items: center;
}
.ratio-50-50 .container { grid-template-columns: 1fr 1fr; }
.ratio-60-40 .container { grid-template-columns: 60fr 40fr; }
.ratio-40-60 .container { grid-template-columns: 40fr 60fr; }
.ratio-70-30 .container { grid-template-columns: 70fr 30fr; }
.ratio-30-70 .container { grid-template-columns: 30fr 70fr; }
.column-left, .column-right {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
}
.stats-light { background: #f8f9fa; }
.stats-dark { background: #1a1a2e; color: #fff; }
.stats-primary { background: linear-gradient(135deg, #e94560, #ff6b6b); color: #fff; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.stat-number {
    font-size: 3rem;
    font-weight: 700;
}
.stats-light .stat-number { color: #e94560; }
.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: #fff;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}
.faq-item summary {
    padding: 1.25rem 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1a2e;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: #e94560;
}
.faq-item[open] summary::after {
    content: '-';
}
.faq-item p {
    padding: 0 0 1.25rem;
    color: #666;
    line-height: 1.7;
}

/* ===========================================
   LEGACY STYLES - Original CMS Styles
   =========================================== */

/* Posts Section */
.posts {
    padding: 2rem 0;
}
.posts h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #1a1a2e;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Post Card */
.post-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.post-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.post-card h3 a {
    color: #1a1a2e;
    text-decoration: none;
}
.post-card h3 a:hover {
    color: #e94560;
}
.post-card time {
    font-size: 0.85rem;
    color: #888;
    display: block;
    margin-bottom: 0.75rem;
}
.post-card p {
    color: #666;
    margin-bottom: 1rem;
}
.read-more {
    color: #e94560;
    text-decoration: none;
    font-weight: 500;
}
.read-more:hover {
    text-decoration: underline;
}

/* Article */
.article {
    background: #fff;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 2rem auto;
}
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}
.article-header h1 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}
.article-header time {
    color: #888;
    font-size: 0.9rem;
}
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}
.article-content p {
    margin-bottom: 1.5rem;
}
.article-content h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
    color: #1a1a2e;
}
.article-content h3 {
    font-size: 1.35rem;
    margin: 1.5rem 0 0.75rem;
    color: #1a1a2e;
}
.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.article-content li {
    margin-bottom: 0.5rem;
}
.article-content code {
    background: #f1f3f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 0.9em;
}
.article-content pre {
    background: #1a1a2e;
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}
.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}
.article-content a {
    color: #e94560;
}
.article-content strong {
    color: #1a1a2e;
}
.article-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}
.back-link {
    color: #e94560;
    text-decoration: none;
}
.back-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: #a0a0a0;
    padding: 2rem 0;
    text-align: center;
}
.footer p {
    margin-bottom: 0.5rem;
}
.footer strong {
    color: #e94560;
}
.footer a {
    color: inherit;
    text-decoration: none;
}
.footer a:hover {
    color: #e94560;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .article {
        padding: 1.5rem;
    }
    .article-header h1 {
        font-size: 1.75rem;
    }
    .features-grid,
    .testimonials-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .two-columns .container {
        grid-template-columns: 1fr !important;
    }
    .gallery-grid.cols-3,
    .gallery-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-title {
        font-size: 1.75rem;
    }
}
