/*
Theme Name:  Portal Blog
Theme URI:   https://wordpress.org/themes/
Author:      High Performance Build Engine
Author URI:  https://wordpress.org/
Description: High Performance PageSpeed 95+ Core Web Vitals WordPress Theme with Primary Background All-White No-Hover Rules, Form Black Shadow Styling, Transparent Single/Page Container, High-Readability Typography System (h2-h6, Backlinks, Bold, Lists), Rounded-Square Pagination, 4-Tier Fallback Image Engine, and Sticky Sidebar on All Templates.
Version:     1.0.0
Text Domain: portal-blog
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags:        custom-logo, custom-menu, featured-images, translation-ready, sticky-post, theme-options, threaded-comments

==================================================
1. CORE BASE STYLES & RESET
==================================================
*/

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
    background-color: #fafafa;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #003366;
    --primary-dark: #001f3f;
    --primary-light: #1a4d80;
    --accent-gold: #f59e0b;
}

/* ==================================================
   2. GLOBAL INBOUND & OUTBOUND LINKS PRIMARY COLOR
   ================================================== */
a, 
.entry-content a, 
.widget a, 
.breadcrumb a, 
.comment-list a,
.site-main a {
    color: #003366;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease-in-out, text-decoration-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

a:hover, 
.widget a:hover, 
.breadcrumb a:hover, 
.comment-list a:hover,
.site-main a:hover {
    color: #001f3f;
    text-decoration: underline;
}

/* ==================================================
   3. PRIMARY BACKGROUND (#003366): ALL WHITE & NO HOVER
   ================================================== */
header, 
footer, 
[data-role="sec7-travel-section"],
.bg-\[\#003366\],
.bg-primary {
    background-color: var(--primary-color, #003366) !important;
    color: #ffffff !important;
}

header *, 
footer *, 
[data-role="sec7-travel-section"] *,
.bg-\[\#003366\] *,
.bg-primary * {
    color: #ffffff !important;
}

header a, 
footer a, 
[data-role="sec7-travel-section"] a,
.bg-\[\#003366\] a,
.bg-primary a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

/* NO HOVER COLOR CHANGE ON PRIMARY BACKGROUND SECTIONS */
header a:hover, 
footer a:hover, 
[data-role="sec7-travel-section"] a:hover,
.bg-\[\#003366\] a:hover,
.bg-primary a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.entry-content a {
    color: #003366 !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(0, 51, 102, 0.4) !important;
    text-underline-offset: 4px !important;
    text-decoration-thickness: 2px !important;
}

.entry-content a:hover {
    color: #001f3f !important;
    text-decoration-color: #003366 !important;
    background-color: #eff6ff !important;
    border-radius: 0.25rem !important;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    margin-left: -0.25rem !important;
    margin-right: -0.25rem !important;
}

/* ==================================================
   4. FORM BLACK SHADOW & HIGH READABILITY STYLING
   ================================================== */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpforms-form input,
.wpforms-form textarea,
.contact-form input,
.contact-form textarea,
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
    width: 100%;
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    margin-top: 0.375rem !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.07) !important;
    transition: all 0.2s ease-in-out !important;
}

.comment-form input:focus,
.comment-form textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus,
#respond input:focus,
#respond textarea:focus {
    outline: none !important;
    border-color: #003366 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 51, 102, 0.2), 0 4px 6px -2px rgba(0, 51, 102, 0.1) !important;
}

.comment-form input[type="submit"],
.wpcf7 input[type="submit"],
.wpforms-form button[type="submit"],
.contact-form button[type="submit"],
#respond input[type="submit"] {
    background-color: #003366 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1.75rem !important;
    border: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25) !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
}

.comment-form input[type="submit"]:hover,
.wpcf7 input[type="submit"]:hover,
.contact-form button[type="submit"]:hover,
#respond input[type="submit"]:hover {
    background-color: #001f3f !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.35) !important;
}

/* ==================================================
   5. HIGH-READABILITY ARTICLE TYPOGRAPHY (.entry-content)
   ================================================== */
.entry-content {
    color: #0f172a;
    font-size: 1.0625rem;
    line-height: 1.75;
}

.entry-content p {
    margin-bottom: 1.25rem;
    color: #0f172a;
}

.entry-content h2 {
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: 900;
    color: #020617;
    border-left: 4px solid #003366;
    padding-left: 0.875rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .entry-content h2 {
        font-size: 2rem;
    }
}

.entry-content h3 {
    font-size: 1.375rem;
    line-height: 1.35;
    font-weight: 800;
    color: #0f172a;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.entry-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid rgba(0, 51, 102, 0.25);
    padding-bottom: 0.25rem;
    display: inline-block;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.entry-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.entry-content h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

.entry-content strong, .entry-content b {
    font-weight: 900;
    color: #020617;
}

.entry-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.entry-content ul li::marker {
    color: #003366;
}

.entry-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.entry-content ol li::marker {
    color: #003366;
    font-weight: 700;
}

.entry-content li {
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.entry-content u {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: #94a3b8;
    text-decoration-thickness: 1px;
}

/* ==================================================
   6. EXACT ROUNDED-SQUARE NUMERIC PAGINATION
   ================================================== */
.theme-pagination, .navigation.pagination, .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.theme-pagination .page-numbers, 
.navigation.pagination .page-numbers, 
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.375rem;
    height: 2.375rem;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.theme-pagination .page-numbers:hover, 
.navigation.pagination .page-numbers:hover, 
.pagination .page-numbers:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
    color: #003366;
}

.theme-pagination .page-numbers.current, 
.navigation.pagination .page-numbers.current, 
.pagination .page-numbers.current {
    background-color: #003366 !important;
    color: #ffffff !important;
    border-color: transparent !important;
    font-weight: 900 !important;
}

.theme-pagination .page-numbers.dots, 
.navigation.pagination .page-numbers.dots, 
.pagination .page-numbers.dots {
    border-color: transparent;
    background-color: transparent;
    color: #94a3b8;
    box-shadow: none;
}

.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1.25rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1.25rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: 1.25rem; }

.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px;
}
