/* Custom Styles for Sodo66 Theme */

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    background: var(--light-bg);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Post Content */
.post-content {
    font-size: 18px;
    line-height: 1.8;
}

.post-content h2 {
    color: var(--primary-color);
    margin: 30px 0 20px;
    font-size: 28px;
}

.post-content h3 {
    color: var(--secondary-color);
    margin: 25px 0 15px;
    font-size: 22px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.post-content li {
    margin-bottom: 10px;
}

/* Comments */
.comments-area {
    margin-top: 40px;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 10px;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-author {
    font-weight: bold;
    color: var(--primary-color);
}

.comment-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Search Form */
.search-form {
    display: flex;
    max-width: 500px;
    margin: 20px 0;
}

.search-field {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.search-submit {
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.search-submit:hover {
    background: #e55c00;
}

/* Widget Styles */
.widget {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.widget-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-bg);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Buttons */
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #e55c00;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.cta-button.secondary {
    background: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-button.secondary:hover {
    background: #333;
}

/* Table of Contents */
.toc {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid var(--primary-color);
}

.toc-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.toc ul {
    list-style: none;
    margin-left: 0;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Alert Boxes */
.alert {
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.alert-info {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #1976d2;
}

.alert-success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #388e3c;
}

.alert-warning {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    color: #f57c00;
}

.alert-danger {
    background: #ffebee;
    border-left: 4px solid #f44336;
    color: #d32f2f;
}

/* Testimonial */
.testimonial {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.testimonial-content {
    font-style: italic;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

/* FAQ */
.faq-item {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
}

.faq-question {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
    cursor: pointer;
}

.faq-answer {
    color: var(--text-color);
    line-height: 1.8;
}

/* Stats Counter */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 20px;
    width: 2px;
    height: calc(100% - 20px);
    background: var(--border-color);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-year {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 18px;
}

.timeline-content {
    margin-top: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .search-form {
        max-width: 100%;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.content-box {
    animation: fadeIn 0.6s ease-out;
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--light-bg);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #e55c00;
    transform: translateY(-5px);
}
