/* /Applications/MAMP/htdocs/oku_apps/assets/css/page-styles.css */

/* --- Generic Styles for Static Pages --- */
.page-content .content-body {
    line-height: 1.8;
    font-size: 1.1rem;
}

.page-content .content-body h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.page-content .content-body h3 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* --- Visi & Misi Page Styles --- */
.vision-section {
    background-color: #f8f9fa;
    border-left: 5px solid var(--primary-color);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.vision-section blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: #343a40;
    margin: 0;
}

.mission-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.mission-item .mission-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    min-width: 40px;
}

.mission-item .mission-text {
    font-size: 1.1rem;
}

/* --- Sejarah (History) Timeline Styles --- */
.timeline {
    position: relative;
    padding: 2rem 0;
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #e9ecef;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 4rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 4rem;
    text-align: left;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.timeline-year {
    font-size: 1.2rem;
    font-weight: bold;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 4rem;
        padding-right: 1rem;
        text-align: left;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after {
        left: 10px;
    }
}

/* --- Arti Lambang Page Styles --- */
.emblem-section .emblem-image {
    max-width: 100%;
    height: auto;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.emblem-details dt {
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 1rem;
}

.emblem-details dd {
    margin-left: 0;
    padding-left: 1.5rem;
    border-left: 3px solid #e9ecef;
    margin-bottom: 1rem;
}

/* --- Sejarah OKU - Regents List --- */
.regents-section {
    background-color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

.regents-table thead.table-primary {
    background-color: var(--primary-color) !important; /* Ensure override */
    color: white;
}

.regents-table th {
    font-weight: 600;
}

.regents-table td {
    vertical-align: middle;
    padding: 0.9rem 0.75rem;
}

.regents-table tbody tr:hover {
    background-color: rgba(44, 90, 160, 0.1);
    cursor: default;
}

/* --- Geografis Page Styles --- */
.geo-stats-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.geo-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.geo-stats-card .stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.geo-stats-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #343a40;
}

.geo-stats-card .stat-label {
    color: #6c757d;
    font-size: 1rem;
}

.borders-section {
    background-color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

.border-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.border-item .border-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    min-width: 30px;
    text-align: center;
}

.border-item .border-label {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.25rem;
}

.border-item .border-content {
    color: #6c757d;
}

.info-highlight-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    height: 0;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border: 0;
}

/* --- Arti Lambang (Emblem Meaning) Page Styles --- */
.emblem-intro-section {
    background-color: #f8f9fa;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.emblem-intro-section .main-emblem {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.emblem-component-card {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.emblem-component-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.emblem-component-card .component-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.emblem-component-card .component-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.emblem-component-card .component-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

.color-meaning-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    height: 100%;
    border: 1px solid #e9ecef;
}

.color-meaning-card .color-swatch {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    border: 3px solid #f1f1f1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    object-fit: cover;
}

.color-meaning-card .color-name {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.5rem;
}

.color-meaning-card .color-description {
    color: #6c757d;
    font-size: 0.9rem;
}

/* --- Link Styles for External Website --- */
.page-content .footer,
.page-content footer {
    background-color: #ffffff !important;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.page-content .footer a,
.page-content footer a {
    color: #007bff !important;
    text-decoration: none;
    font-weight: 500;
}

.page-content .footer a:hover,
.page-content footer a:hover {
    text-decoration: underline;
}
/* Table styling for pages */
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

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

.page-content table th,
.page-content table tr:first-child th,
.page-content table tr:first-child td {
    background: var(--primary-color, #2c5aa0);
    color: white;
    font-weight: 600;
}

.page-content table tr:hover {
    background: #f8f9fa;
}

.page-content table tr:nth-child(even) {
    background: #f9f9f9;
}

/* Prevent images from appearing outside container */
.page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1rem auto;
}

/* Ensure content stays within bounds */
.content-body {
    overflow: hidden;
    word-wrap: break-word;
}

/* Hide any stray elements after footer */
body > img,
body > div:last-child img {
    display: none !important;
}

/* Hide content after footer */
footer ~ *,
footer + * {
    display: none !important;
}

/* Ensure body ends after footer */
body {
    overflow-x: hidden;
}

/* Hide empty paragraphs and divs */
.page-content p:empty,
.content-body p:empty,
.page-content div:empty,
.content-body div:empty {
    display: none !important;
}

/* Hide any floating content */
.page-content::after,
.content-body::after {
    content: '';
    display: table;
    clear: both;
}