/* ============================================
   Integrus Educational Solutions
   Brand: Royal Blue #003DA5 | Gold #C8A951
   Style: Classic and Professional
   ============================================ */

/* --- Global --- */
body {
    color: #1a1a2e;
    -webkit-font-smoothing: antialiased;
}

/* --- Header --- */
.wp-block-group.has-base-background-color {
    border-bottom: 3px solid #C8A951;
}

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
    color: #003DA5;
}

h1 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

h2 {
    font-weight: 700;
}

h3 {
    font-weight: 600;
    color: #002366;
}

/* --- Buttons --- */
.wp-block-button__link {
    background-color: #003DA5;
    color: #ffffff;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    padding: 0.75rem 1.5rem;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
    background-color: #C8A951;
    color: #1a1a2e;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    border: 2px solid #003DA5;
    color: #003DA5;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: #003DA5;
    color: #ffffff;
    border-color: #003DA5;
}

/* --- Navigation --- */
.wp-block-navigation a {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #1a1a2e;
    transition: color 0.2s ease;
}

.wp-block-navigation a:hover {
    color: #003DA5;
    text-decoration: none;
}

/* --- Cover Block (Hero Sections) --- */
.wp-block-cover {
    border-radius: 0;
}

/* --- Blockquotes / Testimonials --- */
.wp-block-quote {
    border-left: 4px solid #C8A951;
    background: #f7f8fc;
    padding: 1.5rem 2rem;
    border-radius: 8px;
}

.wp-block-quote cite {
    color: #003DA5;
    font-style: normal;
    font-weight: 600;
}

/* --- Separator --- */
.wp-block-separator {
    border-color: #C8A951;
    opacity: 0.6;
}

/* --- Columns (service cards, value props) --- */
.wp-block-columns .wp-block-column {
    padding: 1.5rem;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.wp-block-columns .wp-block-column:hover {
    box-shadow: 0 4px 20px rgba(0, 61, 165, 0.08);
}

/* --- Stats / Impact Numbers --- */
.wp-block-column p[style*="font-size:2.5em"] {
    color: #003DA5 !important;
}

/* --- Footer --- */
footer, .wp-block-template-part:last-child {
    border-top: 3px solid #C8A951;
}

/* --- Forms --- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0.6rem 0.8rem;
    transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: #003DA5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 61, 165, 0.15);
}

/* --- WooCommerce Accents --- */
.woocommerce .button,
.wc-block-components-button {
    background-color: #003DA5;
    color: #ffffff;
}

.woocommerce .button:hover,
.wc-block-components-button:hover {
    background-color: #C8A951;
    color: #1a1a2e;
}

/* --- Gold accent underline for key headings --- */
.entry-content h2::after,
.wp-block-heading:where(h2)::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background: #C8A951;
    margin-top: 0.5rem;
}

.has-text-align-center::after {
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero Cover Blocks — text readability --- */
.wp-block-cover .wp-block-cover__inner-container h1,
.wp-block-cover .wp-block-cover__inner-container h2 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.wp-block-cover .wp-block-cover__inner-container p {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Override gold h2 underline inside cover blocks */
.wp-block-cover .wp-block-heading:where(h2)::after {
    display: none;
}

/* Outline buttons on cover — white border, white text */
.wp-block-cover .is-style-outline .wp-block-button__link {
    border-color: #ffffff;
    color: #ffffff;
}

.wp-block-cover .is-style-outline .wp-block-button__link:hover {
    background-color: #ffffff;
    color: #003DA5;
    border-color: #ffffff;
}

/* --- Active nav item - gold underline --- */
.wp-block-navigation-item.current-nav-item > a {
    border-bottom: 3px solid #C8A951;
    padding-bottom: 4px;
}

/* --- Portal Options comparison table --- */
.wp-block-table table {
    width: 100%;
    table-layout: auto !important;
    white-space: nowrap;
    font-size: 0.85rem;
    overflow-x: auto;
    display: block;
}

.wp-block-table table th,
.wp-block-table table td {
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
}

.wp-block-table table th:first-child,
.wp-block-table table td:first-child {
    font-weight: 600;
    position: sticky;
    left: 0;
    background: #ffffff;
    z-index: 1;
}

.wp-block-table table thead th {
    background: #003DA5;
    color: #ffffff;
    font-weight: 600;
}

.wp-block-table table thead th:first-child {
    background: #003DA5;
    color: #ffffff;
}

.wp-block-table table tbody tr:nth-child(even) {
    background-color: #f7f8fc;
}

.wp-block-table table tbody tr:nth-child(even) td:first-child {
    background-color: #f7f8fc;
}
