/**
 * file assets/css/pages/policy-pages.css
 * Policy Pages
 */

@import url('https://fonts.googleapis.com/css2?family=Quattrocento:wght@400;600;700&family=Source+Sans+Pro:wght@400;500;600;700&display=swap');

/* =========== BASE POLICY PAGE LAYOUT =========== */

.page_policy {
    background-color: #f8f9fa;
    min-height: 100vh;
    font-family: 'Quattrocento', serif;
}

.policy-main {
    max-width: 1440px;
    margin: 0 auto;
}

/* =========== BREADCRUMB NAVIGATION =========== */

.breadcrumb-container {
    margin-bottom: 0.25rem;
}

.breadcrumb {
    background: white;
    padding: 0.25rem 0.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb-item:not(:last-child):after {
    margin: 0 0.8rem;
    color: #666;
    font-weight: 600;
    font-size: 1.1rem;
}

.breadcrumb-item a {
    color: #008080;
    text-decoration: none;
    padding: 0.3rem 0.3rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.breadcrumb-item a:hover {
    background-color: rgba(0, 128, 128, 0.1);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #666;
    font-weight: 600;
}

/* =========== MAIN CONTENT STYLING =========== */

.policy-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    position: relative;
}

.content-formatted {
    line-height: 1.2;
    color: #333;
    font-size: 1.05rem;
}

/* =========== TYPOGRAPHY & HEADERS =========== */

.content-formatted h1,
.content-formatted h2,
.content-formatted h3,
.content-formatted h4,
.content-formatted h5,
.content-formatted h6 {
    font-family: 'Quattrocento', serif;
    color: #008080;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
    scroll-margin-top: 120px;
}

.content-formatted h1 {
    font-size: 2rem;
    border-bottom: 3px solid #008080;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.content-formatted h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.content-formatted h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #008080, #ff6f61);
    border-radius: 1px;
}

.content-formatted h3 {
    font-size: 1.6rem;
    color: #2c3e50;
    border-left: 4px solid #008080;
    padding-left: 1rem;
    margin-left: -1rem;
}

.content-formatted h4 {
    font-size: 1.3rem;
    color: #34495e;
    font-weight: 600;
}

/* =========== PARAGRAPH & TEXT FORMATTING =========== */

.content-formatted p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.2;
}

.content-formatted strong {
    color: #008080;
    font-weight: 600;
}

.content-formatted em {
    color: #666;
    font-style: italic;
}

/* =========== LIST STYLING =========== */

.content-formatted ul,
.content-formatted ol {
    margin-bottom: 1rem;
    padding-left: 0;
    list-style: none;
}

.content-formatted ul li,
.content-formatted ol li {
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.2;
}

.content-formatted ul li::before {
    content: "▸";
    color: #ff6f61;
    font-weight: bold;
    font-size: 1.1em;
    position: absolute;
    left: 0.5rem;
    top: 0;
}

.content-formatted ol {
    counter-reset: list-counter;
}

.content-formatted ol li {
    counter-increment: list-counter;
}

.content-formatted ol li::before {
    content: counter(list-counter) ".";
    color: #008080;
    font-weight: 600;
    position: absolute;
    left: 0;
    top: 0;
    min-width: 1.5rem;
}

/* =========== LINK STYLING =========== */

.content-formatted a {
    color: #008080;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 0 2px;
    border-radius: 3px;
}

.content-formatted a:hover {
    background-color: rgba(0, 128, 128, 0.1);
    border-bottom-color: #008080;
    text-decoration: none;
}

/* =========== TABLE STYLING =========== */

.content-formatted table,
.content-formatted-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.content-formatted th,
.content-formatted td,
.content-formatted-table th,
.content-formatted-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
    font-size: 0.85rem;
}

.content-formatted th,
.content-formatted-table th {
    background: linear-gradient(135deg, #008080 0%, #006666 100%);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.content-formatted tbody tr:hover,
.content-formatted-table tbody tr:hover {
    background-color: rgba(0, 128, 128, 0.05);
    transition: background-color 0.2s ease;
}

.content-formatted tbody tr:nth-child(even),
.content-formatted-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* =========== SIDEBAR STYLING =========== */

.policy-sidebar {
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.sentam-sidebar-submit {
    background: linear-gradient(135deg, #008080 0%, #006666 100%);
    padding: 0.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.sentam-submit-btn,
.sentam-tracking-btn {
    display: block;
    width: 100%;
    padding: 0.5rem 0.5rem;
    margin-bottom: 0.8rem;
    background: rgba(255, 255, 255, 0.95);
    color: #008080;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    z-index: 2;
}

.sentam-submit-btn:hover,
.sentam-tracking-btn:hover {
    background: #ff7f50;
    color: #008080;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: white;
    text-decoration: none;
}

.sentam-submit-btn i,
.sentam-tracking-btn i {
    margin-right: 0.8rem;
    font-size: 1.1em;
}

.sentam-sidebar-section {
    background: white;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0;
}

.sentam-sidebar-section h3 {
    color: #008080;
    font-family: 'Quattrocento', serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1rem 0.8rem 1rem;
    border-bottom: 2px solid #f0f8f8;
}

.sentam-sidebar-section h3 i {
    color: #ff6f61;
    font-size: 1.1em;
}

/* =========== NAVIGATION LINKS STYLING =========== */

.sentam-info-links {
    list-style: none;
    padding: 0 1rem 1rem 1rem;
    margin: 0;
}

.sentam-info-links li {
    margin-bottom: 0.5rem;
}

.sentam-info-links li.active {
    background: linear-gradient(135deg, #e8f4f4 0%, #f0f8f8 100%);
    border-radius: 8px;
    border-left: 4px solid #008080;
}

.sentam-info-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.sentam-info-links a:hover {
    background: linear-gradient(135deg, #f0f8f8 0%, #e8f4f4 100%);
    color: #008080;
    transform: translateX(8px);
    text-decoration: none;
}

.sentam-info-links li.active a {
    color: #008080;
    font-weight: 600;
    background: transparent;
}

.sentam-info-links i {
    width: 20px;
    text-align: center;
    color: #ff6f61;
    font-size: 1.1em;
}

.sentam-info-links li.active i {
    color: #008080;
}

/* =========== TABLE OF CONTENTS =========== */

.sentam-toc-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sentam-toc-links li {
    margin-bottom: 0.5rem;
}

.sentam-toc-links .toc-link {
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    line-height: 1.2;
    border-left: 3px solid transparent;
}

.sentam-toc-links .toc-link:hover {
    background-color: rgba(0, 128, 128, 0.1);
    color: #008080;
    border-left-color: #008080;
    transform: translateX(4px);
    text-decoration: none;
}

.sentam-toc-links .toc-link.active {
    background-color: rgba(0, 128, 128, 0.15);
    color: #008080;
    border-left-color: #008080;
    font-weight: 600;
}

.sentam-toc-links .toc-link i {
    margin-right: 0.5rem;
    margin-top: 0.1rem;
    font-size: 0.8rem;
    color: #008080;
    flex-shrink: 0;
}

/* =========== CHECKLIST GRID LAYOUT =========== */

.checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f4 100%);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.checklist-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #008080;
}

.checklist-item input[type="checkbox"] {
    margin: 0;
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
    accent-color: #008080;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.checklist-item label {
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.2;
    color: #2c3e50;
    font-weight: 500;
    margin: 0;
    -webkit-user-select: none;
    user-select: none;
}

/* =========== POLICY FOOTER =========== */

.policy-footer {
    background: white;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #008080;
}

.policy-info h5,
.policy-actions h5 {
    color: #008080;
    font-family: 'Quattrocento', serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.policy-info a {
    color: #008080;
    text-decoration: none;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.policy-info a:hover {
    background-color: rgba(0, 128, 128, 0.1);
    text-decoration: none;
}

.btn-back-to-top {
    background: linear-gradient(135deg, #008080 0%, #006666 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.btn-back-to-top:hover {
    background: linear-gradient(135deg, #ff6f61 0%, #e65a4d 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* =========== RESPONSIVE DESIGN =========== */

@media (max-width: 991.98px) {
    .policy-main {
        padding: 1rem 0.5rem;
    }
    
    .policy-content {
        padding: 1.8rem;
    }
    
    .policy-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .content-formatted h1 {
        font-size: 2rem;
    }
    
    .content-formatted h2 {
        font-size: 1.6rem;
    }
    
    .content-formatted h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 767.98px) {
    .policy-content {
        padding: 1.5rem;
    }
    
    .policy-footer {
        padding: 1.5rem;
    }
    
    .sentam-sidebar-section {
        padding: 0;
    }
    
    .content-formatted h1 {
        font-size: 1.8rem;
    }
    
    .content-formatted h2 {
        font-size: 1.5rem;
    }
    
    .content-formatted h3 {
        font-size: 1.3rem;
        margin-left: 0;
        padding-left: 0.8rem;
    }
    
    .content-formatted ul li,
    .content-formatted ol li {
        padding-left: 1.5rem;
    }
    
    .breadcrumb {
        padding: 0.8rem 1rem;
        flex-wrap: wrap;
    }
    
    .breadcrumb-item {
        font-size: 0.85rem;
    }
    
    .checklist-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .checklist-item {
        padding: 0.75rem;
    }
    
    .checklist-item label {
        font-size: 0.9rem;
    }
    
    .sentam-toc-links .toc-link {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .content-formatted table,
    .content-formatted-table {
        font-size: 0.8rem;
    }
    
    .content-formatted th,
    .content-formatted td,
    .content-formatted-table th,
    .content-formatted-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .content-formatted th,
    .content-formatted-table th {
        font-size: 0.7rem;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .policy-content {
        padding: 1rem;
    }
    
    .content-formatted {
        font-size: 1rem;
    }
    
    .content-formatted h1 {
        font-size: 1.6rem;
    }
    
    .content-formatted h2 {
        font-size: 1.3rem;
    }
    
    .content-formatted h3 {
        font-size: 1.1rem;
    }
    
    .sentam-sidebar-submit {
        padding: 1.5rem;
    }
    
    .sentam-submit-btn,
    .sentam-tracking-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .content-formatted table,
    .content-formatted-table {
        font-size: 0.75rem;
    }
    
    .content-formatted th,
    .content-formatted td,
    .content-formatted-table th,
    .content-formatted-table td {
        padding: 0.5rem 0.3rem;
        font-size: 0.7rem;
    }
    
    .content-formatted th,
    .content-formatted-table th {
        font-size: 0.65rem;
        text-align: center;
    }
}

/* =========== PRINT STYLES =========== */

@media print {
    .policy-sidebar,
    .breadcrumb-container,
    .policy-footer,
    .btn-back-to-top {
        display: none !important;
    }
    
    .policy-content {
        box-shadow: none !important;
        border: 1px solid #e0e0e0;
        page-break-inside: avoid;
    }
    
    .content-formatted h1,
    .content-formatted h2,
    .content-formatted h3,
    .content-formatted h4,
    .content-formatted h5,
    .content-formatted h6 {
        page-break-after: avoid;
        color: #008080 !important;
    }
    
    .content-formatted a {
        color: #008080 !important;
        text-decoration: underline !important;
        border-bottom: none !important;
    }
    
    .checklist-grid {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .checklist-item {
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    .content-formatted table,
    .content-formatted-table {
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #333;
    }
    
    .content-formatted th,
    .content-formatted-table th {
        background: #f0f0f0 !important;
        color: #333 !important;
    }
}

/* =========== ACCESSIBILITY ENHANCEMENTS =========== */

@media (prefers-reduced-motion: reduce) {
    .sentam-submit-btn,
    .sentam-tracking-btn,
    .sentam-info-links a,
    .btn-back-to-top,
    .toc-link,
    .content-formatted a,
    .checklist-item {
        transition: none !important;
    }
    
    .sentam-submit-btn:hover,
    .sentam-tracking-btn:hover,
    .sentam-info-links a:hover,
    .toc-link:hover,
    .checklist-item:hover {
        transform: none !important;
    }
}

/* Focus management for better keyboard navigation */
.content-formatted h2[id],
.content-formatted h3[id],
.content-formatted h4[id] {
    position: relative;
}

.content-formatted h2[id]:target,
.content-formatted h3[id]:target,
.content-formatted h4[id]:target {
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.1) 0%, rgba(255, 111, 97, 0.1) 100%);
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: 8px;
}

/* Custom scrollbar for webkit browsers */
.policy-sidebar::-webkit-scrollbar {
    width: 4px;
}

.policy-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.policy-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #008080, #006666);
    border-radius: 4px;
}

.policy-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #006666, #004d4d);
}

/* =========== CONTACT INFORMATION STYLING =========== */

.contact-info-line {
    margin: 0.2rem 0 0.8rem 0;
    padding: 0.3rem 0.5rem;
    background-color: #f8f9fa;
    border-left: 3px solid #008080;
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.2;
}

.contact-email {
    color: #008080;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
}

.contact-email:hover {
    text-decoration: underline;
    color: #006666;
}

.contact-orcid {
    color: #a6ce39;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.contact-orcid:hover {
    text-decoration: underline;
    color: #8bc34a;
}