/* Phase 1 — light theme + single red accent.
   Loaded after main.css (see resources/views/frontend/layouts/partials/styles.blade.php),
   following the same override-file pattern as spacing.css / special-cards.css / hero-responsive-fix.css.
   Scope: header-1, header-inner, footer-1, and home_main's rendered sections
   (blog/process/portfolio/text-slider/services/team/brand/testimonial/pre-footer). */

/* ============ Primary CTA button (header-1, home_main/team, etc.) ============ */
.tp-btn-yellow-green.green-solid {
    background-color: #E31E24;
    color: #FFFFFF;
}
.tp-btn-yellow-green.green-solid:hover,
.tp-btn-yellow-green.green-solid:focus {
    background-color: #C81A20;
    color: #FFFFFF;
}

/* ============ home_main: process section — decorative step number ============ */
/* Was absolutely positioned with a negative left offset behind the title
   (top:-8px; left:-30px; z-index:-1), which overlapped the step title/text
   at narrower column widths. Recolored (was hardcoded lime, missed during
   the initial color pass since it's a raw rgba, not a variable) and moved
   into normal flow above the title so it can no longer overlap anything. */
.dgm-step-number {
    position: static;
    top: auto;
    left: auto;
    z-index: auto;
    display: block;
    font-size: 56px;
    margin-bottom: 12px;
    -webkit-text-stroke: 1px rgba(227, 30, 36, 0.5);
}

/* ============ header-1 (home_main) — center the nav between logo and actions ============ */
/* Logo and the right-hand action group both grow equally (ignoring their own
   content width), which pins the nav dead-center regardless of how wide the
   logo or the button/hamburger group happen to be. Below xl, the nav is
   hidden (d-none d-xl-flex, unchanged) so this collapses to a plain
   logo-left / actions-right header. */
.tp-header-box-centered {
    justify-content: space-between;
    gap: 20px;
}
.tp-header-box-centered .tp-header-logo {
    flex: 1 1 0;
    display: flex;
    justify-content: flex-start;
}
.tp-header-box-centered .tp-header-menu {
    flex: 0 0 auto;
}
.tp-header-box-centered .ss-header-right {
    flex: 1 1 0;
    justify-content: flex-end;
}

/* ============ header-1 (home_main) — fully transparent at every scroll position ============ */
/* .header-transparent has no background of its own, so the header is already
   transparent at page load. On scroll, JS adds .header-sticky, which (via
   .sticky-white-bg, already a static class here) gives it a white 90%-opacity
   background plus a blur backdrop. Neutralized below so it never gets one. */
.tp-header-3-style.header-sticky {
    background: transparent !important;
    box-shadow: none !important;
}
.tp-header-3-style.header-sticky.tp-header-blur::after {
    display: none !important;
}

/* ============ header-1 (home_main) hamburger/offcanvas button ============ */
.tp-header-3-style .tp-header-bar button {
    background-color: #E31E24;
}
.tp-header-3-style .tp-header-bar button i {
    background-color: #FFFFFF;
}

/* ============ home_main: portfolio/project section — dark bg to light ============ */
.dgm-project-area.black-bg-5 {
    background-color: #F8F9FA !important;
}
.dgm-project-area .text-white {
    color: #1A1A1A !important;
}

/* ============ home_main: brand/text-slider marquee — dark bg to light ============ */
.tp-brand-area.black-bg-5 {
    background-color: #F8F9FA !important;
}
.tp-brand-wrapper.green-regular-bg {
    background-color: #FFFFFF !important;
    border-top: 1px solid #EAEAEA;
    border-bottom: 1px solid #EAEAEA;
}
.tp-brand-wrapper.tp-brand-style-2.black-bg-6 {
    background-color: #F1F1F1 !important;
}
.tp-brand-style-2 .tp-brand-title {
    color: #1A1A1A !important;
}
.tp-brand-style-2 .tp-brand-title::after {
    background-color: #1A1A1A !important;
}

/* ============ Footer (footer-1) — dark bg to light ============ */
.dgm-footer-area.black-bg-5,
.tp-copyright-2-area.black-bg-5 {
    background-color: #FFFFFF !important;
}
.dgm-footer-bg::after {
    display: none;
}
.dgm-footer-widget-title {
    color: #1A1A1A !important;
}
.dgm-footer-widget-paragraph p,
.dgm-footer-widget-paragraph.color-style p {
    color: #4A4A4A !important;
}
.dgm-footer-widget-menu ul li a {
    color: #4A4A4A !important;
}
.dgm-footer-widget-menu ul li a:hover {
    color: #E31E24 !important;
}
.dgm-footer-widget-social a {
    color: rgba(0, 0, 0, 0.55) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}
.dgm-footer-widget-social a:hover {
    color: #FFFFFF !important;
    border-color: #E31E24 !important;
    background-color: #E31E24 !important;
}
.dgm-footer-widget-input input {
    background-color: #F1F1F1 !important;
    color: #1A1A1A !important;
    border: 1px solid #E5E5E5 !important;
}
.dgm-footer-widget-input input::placeholder {
    color: #8A8D91 !important;
}
.dgm-footer-widget-input input:focus {
    border-color: #E31E24 !important;
}
.dgm-footer-widget-input .input-button span svg {
    color: #E31E24 !important;
}
.tp-copyright-2-left p {
    color: #4A4A4A !important;
}
.tp-copyright-2-left p a {
    color: #1A1A1A !important;
}
.tp-copyright-2-middle a,
.tp-copyright-2-right ul li a {
    color: #4A4A4A !important;
}
.tp-copyright-2-middle a:hover,
.tp-copyright-2-right ul li a:hover {
    color: #E31E24 !important;
}
.tp-copyright-2-border {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}

/* ============ custom-page.blade.php — committee/section accordion ============ */
/* Replaces the old horizontal .custom-page-tabs (unreadable/clipped on
   mobile, no scroll affordance) with a vertical single-open accordion.
   Moved here (not main.css) because main.css's <link> has no cache-busting
   query string in styles.blade.php, unlike this file -- edits here are
   guaranteed to be picked up on next load instead of silently serving a
   stale cached copy. */
.custom-page-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 1.5em;
}
.custom-page-accordion-item {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
}
.custom-page-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border: none;
    background: transparent;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.custom-page-accordion-header:hover {
    background: transparent;
}
.custom-page-accordion-item.is-active .custom-page-accordion-header {
    background: transparent;
    color: #E31E24;
}
.custom-page-accordion-icon {
    position: relative;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
}
.custom-page-accordion-icon::before,
.custom-page-accordion-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}
.custom-page-accordion-icon::before {
    width: 100%;
    height: 2px;
}
.custom-page-accordion-icon::after {
    width: 2px;
    height: 100%;
}
.custom-page-accordion-item.is-active .custom-page-accordion-icon::after {
    transform: translate(-50%, -50%) scaleY(0);
}
.custom-page-accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.custom-page-accordion-panel-inner {
    padding: 22px;
    overflow-x: auto;
}
.custom-page-accordion-panel-inner table {
    width: 100%;
    border-collapse: collapse;
}
