/* BCMS Default Theme Styles - Bayes-inspired Corporate Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    min-height: 100vh;
}

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

/* Header - Bayes-inspired design */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    padding-right: 10.5rem;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #2c5aa0;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
}

.site-logo {
    display: block;
    max-height: 2.5em;
    max-width: min(200px, 40vw);
    width: auto;
    height: auto;
    object-fit: contain;
}

.site-nav {
    display: flex;
    gap: 1.2rem;
    margin-left: auto;
}

.site-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.site-nav a:hover {
    background-color: #f5f5f5;
    color: #2c5aa0;
}

.site-nav-search {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.35);
    background-color: #fff;
    box-sizing: border-box;
}

.site-nav-search:hover {
    background-color: #f5f5f5;
    color: #2c5aa0;
}

.site-nav-search-icon {
    flex-shrink: 0;
}

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

/* Hero Section - Bayes-inspired */
.hero-section {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    color: white;
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* Points Section */
.points-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: #2c5aa0;
    margin-bottom: 4rem;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #1e3a8a);
    border-radius: 2px;
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.point-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(44, 90, 160, 0.15);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(44, 90, 160, 0.1);
    position: relative;
    overflow: hidden;
}

.point-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #1e3a8a);
}

.point-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(44, 90, 160, 0.25);
}

.point-number {
    background: linear-gradient(135deg, #2c5aa0, #1e3a8a);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.point-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.point-card h3 a {
    color: #2c5aa0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.point-card h3 a:hover {
    color: #1e3a8a;
    text-decoration: none;
}

.point-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* Description Section */
.description-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.description-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(44,90,160,0.1)"/></pattern></defs><rect width="60" height="60" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.description-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.description-content p {
    font-size: 1.2rem;
    line-height: 2;
    color: #444;
    font-weight: 400;
}

.page-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-content h2 {
    color: #007cba;
    margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    position: relative;
    margin-top: 4rem;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.site-footer p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
    font-weight: 300;
}

/* News Section */
.news-section {
    padding: 5rem 0;
    background: #fff;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-left: 4px solid #2c5aa0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    transition: background 0.2s;
}

.news-item:hover {
    background: #e9ecef;
}

.news-label {
    background: #2c5aa0;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.news-title {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

.news-title:hover {
    color: #2c5aa0;
}

.news-date {
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
}

/* Content Cover Image */
.content-cover {
    margin: -2rem -1rem 2rem;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.content-cover img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

/* Content Summary */
.content-summary {
    background: #f8f9fa;
    border-left: 4px solid #2c5aa0;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.content-summary p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.content-author {
    color: #555;
    font-size: 0.9rem;
}

/* Content Quote */
.content-body blockquote::before {
    position: absolute;
    content: "“";
    font-size: 30px;
}

.content-body blockquote {
    background: #f8f9fa;
    border-left: 4px solid #2c5aa0;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    color: #444;
}

.content-body blockquote p {
    margin: 2rem 0 0.75rem;
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
}

.content-body blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-style: normal;
    color: #666;
    text-align: right;
}

/* Content Preview Styles */
.content-preview {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.content-header {
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.content-title {
    color: #333;
    font-size: 2em;
    margin-bottom: 15px;
}

.content-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 25px;
}

.content-type {
    background: #007cba;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
}

.status {
    padding: 5px 10px;
    border-radius: 3px;
    margin-left: 15px;
}

.status-published {
    background: #28a745;
    color: white;
}

.status-draft {
    background: #ffc107;
    color: black;
}

.content-body {
    font-size: 1.1em;
    line-height: 1.6;
}

.content-field {
    margin-bottom: 20px;
}

.field-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 3px;
    margin: 10px 0;
}

/* Corporate Site Enhancements */
.content-card a {
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
}

.content-card a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.content-meta {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.content-meta .content-type {
    margin-right: 0.5rem;
}

.content-card p {
    color: #666;
    line-height: 1.5;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.content-section h3 {
    border-bottom: 2px solid #007cba;
    padding-bottom: 0.5rem;
}

/* Content Detail Page Styles */
.content-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.content-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
}

.content-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.content-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.content-meta .content-type {
    background-color: #007cba;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.content-meta .status {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.status-published {
    background-color: #28a745;
    color: white;
}

.status-draft {
    background-color: #ffc107;
    color: #212529;
}

.content-body {
    line-height: 1.7;
    font-size: 1.1rem;
}

.content-heading {
    color: #333;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.content-heading:first-child {
    margin-top: 0;
}

.content-text {
    margin: 1.5rem 0;
}

.content-text p {
    margin-bottom: 1rem;
    color: #444;
}

.content-image {
    margin: 2rem 0;
    text-align: center;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.content-button {
    margin: 2rem 0;
    text-align: center;
}

/* Enhanced Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
    box-shadow: 0 8px 25px rgba(168, 237, 234, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #fed6e3 0%, #a8edea 100%);
    color: #333;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(168, 237, 234, 0.4);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding-right: 0;
    }

    .site-nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        margin-left: 0;
    }

    .site-nav-search {
        position: static;
        transform: none;
        margin: 0.25rem auto 0;
    }

    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .points-section {
        padding: 4rem 0;
    }
    
    .points-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .search-results-grid {
        grid-template-columns: 1fr;
    }
    
    .point-card {
        padding: 2rem 1.5rem;
    }
    
    .description-section {
        padding: 4rem 0;
    }
    
    .description-content {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .description-content p {
        font-size: 1.1rem;
        line-height: 1.8;
    }
    
    .content-detail {
        padding: 1rem 0.5rem;
    }
    
    .content-title {
        font-size: 2rem;
    }
    
    .content-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .point-card {
        padding: 1.5rem;
    }
    
    .description-content {
        padding: 1.5rem;
    }
}

/* Contact Form */
.contact-section {
    padding: 4rem 0;
}

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

.contact-description {
    color: #666;
    margin-top: 0.75rem;
    font-size: 1.05rem;
}

.contact-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

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

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.form-required {
    color: #e53e3e;
    margin-left: 0.25rem;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.bcms-form-recaptcha {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.form-submit {
    margin-top: 1.5rem;
    text-align: center;
}

.form-error {
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    color: #991b1b;
}

.form-error-recaptcha {
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: center;
}

.form-error p {
    margin: 0;
}

.contact-thanks {
    max-width: 640px;
    margin: 2rem auto 0;
    padding: 1rem 1.5rem;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    color: #166534;
    text-align: center;
}

/* Search page */
.search-page {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.search-page .section-title {
    margin-bottom: 2.5rem;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0.75rem;
    max-width: 42rem;
    margin: 0 auto 2rem;
    width: 100%;
}

.search-form-input {
    flex: 1 1 14rem;
    min-width: 0;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.search-form-input:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.15);
}

.search-form-submit {
    flex-shrink: 0;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: #2c5aa0;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s ease;
}

.search-form-submit:hover {
    background: #1e3a8a;
}

.search-results-summary {
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
}

.search-results-grid {
    margin-top: 0;
}

@media (min-width: 769px) {
    .search-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.search-results-empty-wrap {
    text-align: center;
    padding: 4rem 0;
}

.search-results-empty {
    color: #888;
    text-align: center;
}
