/**
 * Content Pages CSS
 * Used by: About, Privacy, Terms pages (page.html template)
 */

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */
.govt-page-wrapper {
    min-height: 100vh;
    background: #FCFCFD;
    direction: rtl;
}

.govt-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   BREADCRUMB
   ======================================== */
.content-page-breadcrumb {
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.content-page-breadcrumb .breadcrumb-link {
    color: #4F9CF9;
    text-decoration: none;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.content-page-breadcrumb .breadcrumb-link:hover {
    color: #3B82F6;
    text-decoration: none;
}

.content-page-breadcrumb .breadcrumb-separator {
    margin: 0 0.5rem;
    color: #94A3B8;
}

.content-page-breadcrumb .breadcrumb-current {
    color: #64748B;
    font-size: 0.875rem;
}

/* ========================================
   HEADER SECTION
   ======================================== */
.govt-header-bar {
    background: #FFFFFF;
    border-bottom: 4px solid #1D4ED8;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
}

.seal-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
    transition: transform 0.3s ease;
}

.seal-placeholder:hover {
    transform: scale(1.05);
}

.header-text {
    flex: 1;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.page-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

.last-updated {
    text-align: left;
}

.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    border-radius: 8px;
    color: #1e40af;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.date-badge:hover {
    background: #DBEAFE;
    transform: translateY(-1px);
}

.date-badge i {
    font-size: 0.9rem;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.page-content-wrapper {
    padding: 40px 0 60px;
}

.document-content {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
}

.document-content:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ========================================
   QUILL CONTENT STYLING
   ======================================== */
.quill-content {
    line-height: 1.8;
    color: #374151;
    font-size: 1rem;
}

.quill-content h1,
.quill-content h2,
.quill-content h3,
.quill-content h4,
.quill-content h5,
.quill-content h6 {
    color: #1f2937;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.quill-content h1 {
    font-size: 1.75rem;
    border-bottom: 3px solid #1D4ED8;
    padding-bottom: 12px;
}

.quill-content h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #E5E7EB;
    padding-bottom: 8px;
}

.quill-content h3 {
    font-size: 1.25rem;
    color: #374151;
}

.quill-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    font-size: 1rem;
}

.quill-content ul,
.quill-content ol {
    margin-right: 24px;
    margin-bottom: 1.25rem;
    padding-right: 20px;
}

.quill-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.quill-content blockquote {
    border-right: 4px solid #1D4ED8;
    padding-right: 20px;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
    background: #F9FAFB;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
}

.quill-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    overflow-x: auto;
    display: block;
}

.quill-content table tbody {
    display: table;
    width: 100%;
}

.quill-content th,
.quill-content td {
    border: 1px solid #E5E7EB;
    padding: 12px;
    text-align: right;
}

.quill-content th {
    background-color: #F9FAFB;
    font-weight: 600;
    color: #1f2937;
}

.quill-content strong {
    color: #1f2937;
    font-weight: 600;
}

.quill-content a {
    color: #1D4ED8;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.quill-content a:hover {
    color: #1e40af;
}

.quill-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* ========================================
   NO CONTENT NOTICE
   ======================================== */
.no-content-notice {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-content-notice i {
    font-size: 3rem;
    color: #D1D5DB;
    margin-bottom: 16px;
    display: block;
}

.no-content-notice p {
    font-size: 1.1rem;
    margin: 0;
}

/* ========================================
   QUICK LINKS SECTION
   ======================================== */
.quick-links-section {
    margin-top: 32px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.quick-links-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-links-title i {
    color: #1D4ED8;
    font-size: 1.25rem;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.quick-link-item:hover {
    background: #EFF6FF;
    border-color: #1D4ED8;
    color: #1D4ED8;
    text-decoration: none;
    transform: translateX(-4px);
    box-shadow: 0 2px 4px rgba(29, 78, 216, 0.1);
}

.quick-link-item i {
    font-size: 1.2rem;
    color: #1D4ED8;
    transition: transform 0.2s ease;
}

.quick-link-item:hover i {
    transform: scale(1.1);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .govt-container {
        padding: 0 16px;
    }

    .header-content {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
        padding: 20px 0;
    }
    
    .seal-placeholder {
        margin: 0 auto;
    }
    
    .page-title {
        font-size: 1.5rem;
    }

    .last-updated {
        text-align: center;
    }
    
    .document-content {
        padding: 24px;
        border-radius: 8px;
    }

    .page-content-wrapper {
        padding: 24px 0 40px;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .quill-content h1 {
        font-size: 1.5rem;
    }

    .quill-content h2 {
        font-size: 1.25rem;
    }

    .quill-content table {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .govt-container {
        padding: 0 12px;
    }
    
    .document-content {
        padding: 20px;
    }
    
    .quill-content h1 {
        font-size: 1.375rem;
    }

    .page-content-wrapper {
        padding: 20px 0 32px;
    }

    .quick-links-section {
        padding: 24px;
    }

    .seal-placeholder {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .govt-page-wrapper {
        background: white;
    }

    .govt-header-bar {
        border-bottom: 2px solid #1D4ED8;
        box-shadow: none;
    }

    .quick-links-section {
        display: none;
    }

    .document-content {
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .quill-content {
        color: black;
    }

    .quill-content a {
        color: #1D4ED8;
    }

    .page-title {
        color: black;
    }

    .date-badge {
        border: 1px solid #1D4ED8;
    }
}

