/* ===================================
   Tender Detail Page CSS
   =================================== */

/* Layout Grid */
.tender-layout-grid {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 40px;
    align-items: start;
}

.tender-main-col {
    min-width: 0; /* Prevents overflow in grid items */
}

.tender-detail-container {
    background: #fff;
    padding: 30px;
    border: 1px solid #e8f4fd;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(109,191,232,0.05);
}

.tender-detail-header {
    margin-bottom: 24px;
}

.btn-back-tenders {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6dbfe8;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    margin-bottom: 20px;
}

.btn-back-tenders:hover {
    color: #1a3a5c;
    transform: translateX(-4px);
}

.tender-title-main {
    font-size: 2rem;
    color: #1a3a5c;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 16px;
}

.tender-meta-details {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #e8f4fd;
    padding-bottom: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tender-detail-image-wrap {
    width: 100%;
    max-height: 480px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tender-detail-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tender-detail-body {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.85;
    margin-bottom: 40px;
}

.tender-detail-body p {
    margin-bottom: 20px;
}

.tender-detail-body h3 {
    font-size: 1.4rem;
    color: #1a3a5c;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
}

.tender-detail-body ul, 
.tender-detail-body ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.tender-detail-body li {
    margin-bottom: 10px;
    list-style: disc outside !important;
}

.tender-detail-body ol li {
    list-style: decimal outside !important;
}

.tender-detail-body strong {
    color: #1a3a5c;
}

.tender-detail-body a {
    color: #6dbfe8;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

.tender-detail-body a:hover {
    color: #1a3a5c;
}

/* Post Tags Section */
.tender-tags-section {
    border-top: 1px solid #e8f4fd;
    border-bottom: 1px solid #e8f4fd;
    padding: 20px 0;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tags-title {
    font-weight: 700;
    color: #1a3a5c;
    font-size: 0.95rem;
}

.tender-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tender-tag {
    background: #f4f9fd;
    border: 1px solid #d6eaf8;
    color: #1a3a5c;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.2s, border-color 0.2s;
}

.tender-tag:hover {
    background: #6dbfe8;
    border-color: #6dbfe8;
    color: #fff;
    cursor: pointer;
}

/* Comment Form Styles */
.tender-comment-section {
    margin-top: 40px;
}

.section-subtitle {
    font-size: 1.5rem;
    color: #1a3a5c;
    font-weight: 700;
    margin-bottom: 15px;
}

.comment-notes {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 24px;
}

.comment-form .form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-form .form-row {
    display: flex;
    gap: 20px;
}

.comment-form .form-row .col {
    flex: 1;
}

.comment-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 0;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid #d6eaf8;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
    background: #fdfeff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #6dbfe8;
    box-shadow: 0 0 0 3px rgba(109, 191, 232, 0.15);
}

.btn-submit-comment {
    background: #1a3a5c;
    color: #fff;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.btn-submit-comment:hover {
    background: #6dbfe8;
}

/* Sidebar Widgets Styles */
.tender-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: #fff;
    padding: 24px;
    border: 1px solid #e8f4fd;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(109,191,232,0.03);
}

.sidebar-widget .widget-title {
    font-size: 1.15rem;
    color: #1a3a5c;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #6dbfe8;
    display: inline-block;
}

/* Sidebar Search Form */
.sidebar-search-form {
    display: flex;
    position: relative;
}

.sidebar-search-form input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border: 1px solid #d6eaf8;
    border-radius: 6px;
    font-size: 0.93rem;
    outline: none;
    background: #fdfeff;
}

.sidebar-search-form input:focus {
    border-color: #6dbfe8;
}

.sidebar-search-form button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 44px;
    border: none;
    background: transparent;
    color: #6dbfe8;
    font-size: 1.05rem;
    cursor: pointer;
    transition: color 0.2s;
}

.sidebar-search-form button:hover {
    color: #1a3a5c;
}

/* Sidebar Lists */
.sidebar-list {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none !important;
}

.sidebar-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #e8f4fd;
    font-size: 0.93rem;
    line-height: 1.45;
    color: #555;
    margin-bottom: 0;
    list-style: none !important;
}

.sidebar-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-list li:first-child {
    padding-top: 0;
}

.sidebar-list a {
    color: #1a3a5c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.sidebar-list a:hover {
    color: #6dbfe8;
}

.recent-post-link {
    display: block;
    margin-bottom: 6px;
}

.recent-post-date {
    display: block;
    font-size: 0.8rem;
    color: #999;
}

.comment-author-meta {
    font-weight: 700;
    color: #1a3a5c;
}

.cat-count {
    color: #999;
    font-size: 0.85rem;
    margin-left: 4px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .tender-layout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .tender-title-main {
        font-size: 1.5rem;
    }
    .tender-detail-body {
        font-size: 0.98rem;
    }
    .comment-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}
