/* Policy Detail Pages */
.policy-hero {
    background: var(--dpfp-blue);
    color: white;
    padding: 80px 0 40px;
    text-align: center;
    margin-bottom: 30px;
}

.policy-hero .icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.policy-hero h1 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.3;
}

.policy-hero .hero-lead {
    font-size: 1rem;
    opacity: 0.85;
    margin: 0;
}

.policy-content {
    padding-bottom: 60px;
}

/* Policy Detail Content Styles */
.policy-detail-content {
    padding: 40px 0;
    background: #fff;
}

.breadcrumb {
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: #666;
}

.breadcrumb a {
    color: var(--dpfp-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 0.75rem;
    margin: 0 8px;
    color: #ccc;
}

.policy-full-text {
    line-height: 1.6;
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h2 {
    font-size: 1.75rem;
    color: var(--dpfp-blue);
    border-bottom: 3px solid var(--dpfp-yellow);
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.3;
}

.policy-subsection {
    margin-bottom: 25px;
    padding-left: 0;
}

.policy-subsection h3 {
    font-size: 1.3rem;
    color: var(--dpfp-dark-blue);
    margin-bottom: 15px;
    font-weight: 700;
    background: #f0f4f8;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 4px solid var(--dpfp-blue);
    line-height: 1.4;
}

.policy-subsection>p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.policy-item-detail {
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease;
}

.policy-item-detail:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.policy-item-detail h3,
.policy-item-detail h4 {
    font-size: 1.15rem;
    color: var(--dpfp-blue);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.policy-item-detail p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #444;
}

.policy-item-detail p:last-child {
    margin-bottom: 0;
}

.policy-item-detail ol,
.policy-item-detail ul {
    margin-bottom: 12px;
    padding-left: 20px;
}

.original-text-content {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid #ccc;
}

.original-text-content.open {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.original-text-toggle {
    cursor: pointer;
    color: var(--dpfp-blue);
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    user-select: none;
}

.original-text-toggle:hover {
    text-decoration: underline;
}

.original-text-toggle i {
    transition: transform 0.3s ease;
}

.original-text-toggle.active i {
    transform: rotate(180deg);
}

.note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 8px;
}

.subsection-lead {
    font-weight: bold;
    color: var(--dpfp-blue);
    margin-bottom: 15px;
    font-size: 1.05rem;
    padding: 8px 12px;
    background: #eef4fa;
    border-radius: 6px;
}

.back-to-top-page {
    text-align: center;
    margin-top: 50px;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: #f0f0f0;
    color: #333;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Tooltip System for Technical Terms */
.tooltip {
    position: relative;
    display: inline;
    border-bottom: 1px dotted var(--dpfp-blue);
    cursor: help;
    color: var(--dpfp-blue);
    font-weight: 500;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #2c3e50;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    white-space: normal;
    width: max-content;
    max-width: 280px;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border: 6px solid transparent;
    border-top-color: #2c3e50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::before,
.tooltip:hover::after,
.tooltip.tooltip-active::before,
.tooltip.tooltip-active::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Enable pointer events for active tooltips so they stay visible */
.tooltip.tooltip-active::before {
    pointer-events: auto;
}

/* Responsive adjustments for tooltips */
@media (max-width: 768px) {
    .tooltip::before {
        max-width: 200px;
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}