/**
 * Inner Page Styles
 * Matching WordPress/Breakdance layout - Brown Theme
 */

/* Inner Page Slider - Shorter */
.inner-page-slider {
    height: 350px;
}

.inner-page-slider .slide-caption {
    display: none;
}

/* Inner Page Grid - Two columns (sidebar + content) */
.inner-page-grid {
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Page Title */
.page-title {
    font-size: 22px;
    color: #8B4513;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8B4513;
    font-weight: 600;
}

/* Content Box */
.content-box {
    background: #fff;
    padding: 25px;
    margin-bottom: 25px;
}

.content-box h2 {
    font-size: 18px;
    color: #8B4513;
    margin-bottom: 15px;
    font-weight: 600;
}

.content-box h3 {
    font-size: 16px;
    color: #8B4513;
    margin: 20px 0 10px;
    font-weight: 600;
}

.content-box p {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}

.content-box ul,
.content-box ol {
    margin: 15px 0;
    padding-left: 20px;
}

.content-box li {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* Tender Table */
.tender-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.tender-table th {
    background: #8B4513;
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
}

.tender-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #444;
    vertical-align: middle;
}

.tender-table tr:hover td {
    background: #f9f5f0;
}

.tender-table .download-link {
    display: inline-block;
    color: #444;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.tender-table .download-link:hover {
    color: #8B4513;
}

.tender-table .download-link i {
    margin-right: 5px;
}

/* No right sidebar for inner pages */
.inner-page-content {
    grid-column: span 1;
}

/* Active link in sidebar */
.infrastructure-links ul li a.active {
    color: #6B3A1F;
    font-weight: 600;
}

/* Rich Text Content from TinyMCE */
.rich-content {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}

.rich-content h1 {
    font-size: 22px;
    color: #8B4513;
    margin: 20px 0 15px;
}

.rich-content h2 {
    font-size: 18px;
    color: #8B4513;
    margin: 20px 0 12px;
}

.rich-content h3 {
    font-size: 16px;
    color: #8B4513;
    margin: 18px 0 10px;
}

.rich-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.rich-content ul,
.rich-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.rich-content li {
    margin-bottom: 8px;
}

.rich-content a {
    color: #8B4513;
    text-decoration: none;
}

.rich-content a:hover {
    text-decoration: underline;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.rich-content table th,
.rich-content table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.rich-content table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* Document List */
.document-list {
    margin-top: 20px;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.document-item:last-child {
    border-bottom: none;
}

.document-title {
    flex: 1;
    font-size: 14px;
    color: #444;
    padding-right: 20px;
}

.document-download {
    color: #444;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.document-download:hover {
    color: #8B4513;
}

.document-download i {
    margin-right: 5px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #888;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.empty-state p {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 992px) {
    .inner-page-grid {
        grid-template-columns: 1fr;
    }
    
    .left-sidebar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        order: 2;
    }
    
    .infrastructure-links {
        grid-column: span 3;
    }
    
    .inner-page-content {
        order: 1;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .inner-page-slider {
        height: 200px;
    }
    
    .left-sidebar {
        grid-template-columns: 1fr;
    }
    
    .infrastructure-links {
        grid-column: span 1;
    }
    
    .tender-table {
        display: block;
        overflow-x: auto;
    }
    
    .document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .document-title {
        padding-right: 0;
    }
}
