/* Page Header */
.page-header {
    background: linear-gradient(rgba(0,31,84,0.8), rgba(0,31,84,0.8)), url('https://kralmotoriranian.com/public/uploads/2026-02/general-1-1770901678-0e93b1b0ec41b68a.jpg');
    background-size: cover; background-position: center;
    color: white; padding: 60px 0; text-align: center; margin-bottom: 40px;
}

/* Search Bar */
.search-box {
    position: relative; max-width: 600px; margin: -70px auto 40px auto;
    background: white; padding: 10px; border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: flex;
}
.search-input {
    border: none; flex-grow: 1; padding: 10px 20px; outline: none; border-radius: 50px;
}
.search-btn {
    background-color: var(--rasa-red); color: white; border: none;
    padding: 10px 30px; border-radius: 40px; transition: 0.3s;
}
.search-btn:hover { background-color: #c91523; }

/* Nav Pills (Tabs) */
.nav-pills .nav-link-post {
    color: var(--rasa-blue) !important; background-color: white;
    border: 1px solid #ddd; margin: 0 5px; border-radius: 30px;
    padding: 10px 25px; font-weight: bold; transition: all 0.3s;
}
.nav-pills .nav-link-post.active {
    background-color: var(--rasa-blue); color: white !important; border-color: var(--rasa-blue);
}
.nav-pills .nav-link-post:hover:not(.active) {
    background-color: #eee !important;
}

/* News Card */
.news-card {
    background: white; border: none; border-radius: 15px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s; height: 100%;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 15px 25px rgba(0,0,0,0.1); }
.news-img { object-fit: cover; width: 100%; }
.news-date {
    font-size: 0.8rem; color: #888; display: block; margin-bottom: 10px;
}
.news-date i { color: var(--rasa-red); margin-left: 5px; }
.news-title { font-size: 1.1rem; font-weight: bold; color: var(--rasa-blue); margin-bottom: 10px; }
.btn-read-more { color: var(--rasa-red); font-weight: bold; text-decoration: none; font-size: 0.9rem; }
.btn-read-more:hover { text-decoration: underline; }

/* Announcement Card (Alert Style) */
.announce-card {
    background: white; border-right: 5px solid var(--rasa-red);
    padding: 20px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px; display: flex; align-items: start;
}
.announce-icon {
    font-size: 1.5rem; color: var(--rasa-red); margin-left: 15px; background: #fff0f0;
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
}

/* Circular/Directive Card (File Style) */
.circular-card {
    background: white; border: 1px solid #e0e0e0; border-radius: 12px;
    padding: 15px; margin-bottom: 15px; display: flex; align-items: center;
    justify-content: space-between; transition: 0.2s;
}
.circular-card:hover { background-color: #fcfcfc; border-color: var(--rasa-blue); }
.circular-info { display: flex; align-items: center; }
.file-icon { font-size: 2rem; color: #6c757d; margin-left: 15px; }
.circular-meta { font-size: 0.8rem; color: #999; margin-top: 5px; }
.btn-download {
    background-color: var(--rasa-blue); color: white; border-radius: 8px;
    padding: 8px 15px; font-size: 0.85rem; text-decoration: none; display: flex; align-items: center;
}
.btn-download:hover { background-color: #003080; color: white; }



/* Breadcrumb */
.breadcrumb-area {
    background-color: white;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}
.breadcrumb-item a { color: var(--rasa-blue); text-decoration: none; }
.breadcrumb-item.active { color: var(--rasa-red); }

/* Main Content Styling */
.post-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.post-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 25px;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.post-meta span { margin-left: 20px; }
.post-meta i { color: var(--rasa-red); margin-left: 5px; }

.post-title {
    color: var(--rasa-blue);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.6;
}

.post-content {
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: justify;
    margin-bottom: 40px;
}

/* Attachments Section */
.attachments-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-top: 40px;
    border-right: 5px solid var(--rasa-blue);
}
.attachments-title {
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--rasa-blue);
    font-size: 1.1rem;
}
.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: 0.3s;
    border: 1px solid #eee;
}
.attachment-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: var(--rasa-red);
}
.file-info { display: flex; align-items: center; }
.file-icon { font-size: 1.8rem; margin-left: 15px; color: #dc3545; } /* Red for PDF */
.file-icon.zip { color: #ffc107; } /* Yellow for Zip */
.file-name { font-weight: bold; font-size: 0.95rem; }
.file-size { font-size: 0.8rem; color: #888; display: block; }

.btn-download-sm {
    background-color: var(--rasa-blue);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.2s;
}
.btn-download-sm:hover { background-color: var(--rasa-red); color: white; }

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.widget-title {
    font-weight: bold;
    color: var(--rasa-blue);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.widget-title::after {
    content: ''; position: absolute; bottom: 0; right: 0;
    width: 50px; height: 3px; background-color: var(--rasa-red);
}
.recent-post-item {
    display: flex; margin-bottom: 15px; border-bottom: 1px solid #f1f1f1; padding-bottom: 15px;
}
.recent-post-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.recent-post-img {
    width: 70px; height: 70px; border-radius: 8px; object-fit: cover; margin-left: 10px;
}
.recent-post-info h6 { font-size: 0.9rem; line-height: 1.5; margin-bottom: 5px; }
.recent-post-info a { text-decoration: none; color: #333; transition: 0.2s; }
.recent-post-info a:hover { color: var(--rasa-red); }
.recent-post-date { font-size: 0.75rem; color: #999; }
