/* 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). */

/* ============ Sitewide font consolidation — everything routes through Inter ============ */
/* main.css defines every typeface as a --tp-ff-* custom property and every
   font-family declaration in that 41k-line file (300+ of them) reads through
   one of these variables, so redefining the variables here reroutes the whole
   site without touching main.css or any template. --tp-ff-fontawesome is the
   icon font and is deliberately left alone -- overriding it would blank out
   every icon glyph sitewide. */
:root {
    --tp-ff-teko: 'Inter', sans-serif;
    --tp-ff-body: 'Inter', sans-serif;
    --tp-ff-heading: 'Inter', sans-serif;
    --tp-ff-inter: 'Inter', sans-serif;
    --tp-ff-p: 'Inter', sans-serif;
    --tp-ff-besley: 'Inter', sans-serif;
    --tp-ff-mango-thin: 'Inter', sans-serif;
    --tp-ff-mango-light: 'Inter', sans-serif;
    --tp-ff-mango: 'Inter', sans-serif;
    --tp-ff-mango-medium: 'Inter', sans-serif;
    --tp-ff-mango-semibold: 'Inter', sans-serif;
    --tp-ff-mango-bold: 'Inter', sans-serif;
    --tp-ff-clash: 'Inter', sans-serif;
    --tp-ff-clash-light: 'Inter', sans-serif;
    --tp-ff-clash-regular: 'Inter', sans-serif;
    --tp-ff-clash-medium: 'Inter', sans-serif;
    --tp-ff-clash-semibold: 'Inter', sans-serif;
    --tp-ff-clash-bold: 'Inter', sans-serif;
    --tp-ff-grotesk: 'Inter', sans-serif;
    --tp-ff-platform: 'Inter', sans-serif;
    --tp-ff-playfair: 'Inter', sans-serif;
    --tp-ff-satisfy: 'Inter', sans-serif;
    --tp-ff-dirtyline: 'Inter', sans-serif;
    --tp-ff-phudu: 'Inter', sans-serif;
    --tp-ff-poppins: 'Inter', sans-serif;
    --tp-ff-onest: 'Inter', sans-serif;
    --tp-ff-marcellus: 'Inter', sans-serif;
    --tp-ff-jakarta: 'Inter', sans-serif;
}

/* ============ 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;
}

/* ============ Blog: index card grid + shared sidebar ============ */
.blog-card-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.blog-card-item {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    border-radius: 16px;
    padding: 12px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.blog-card-item:hover {
    box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.16);
    transform: translateY(-2px);
}
.blog-card-item__media {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.blog-card-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-card-item__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.blog-card-item__title {
    font-family: var(--tp-ff-grotesk, 'Space Grotesk', sans-serif);
    font-size: 19px;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-item__title a {
    color: #1A1A1A;
    text-decoration: none;
}
.blog-card-item__title a:hover {
    color: #E31E24;
}
.blog-card-item__excerpt {
    font-size: 14px;
    margin: 0 0 16px;
    color: #4A4A4A;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-item__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #8A8D91;
    margin-bottom: 14px;
}
.blog-card-item__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.blog-card-item__readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #E31E24;
    text-decoration: none;
    width: fit-content;
}
.blog-card-item__readmore svg {
    transition: transform 0.2s ease;
}
.blog-card-item:hover .blog-card-item__readmore svg {
    transform: translateX(3px);
}
.blog-card-list__pagination {
    margin-top: 8px;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.blog-sidebar-widget__title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1A1A1A;
    margin: 0 0 16px;
}
.blog-sidebar-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F8F9FA;
    border: 1px solid #EAEAEA;
    border-radius: 999px;
    padding: 12px 16px;
}
.blog-sidebar-search svg {
    color: #8A8D91;
    flex: none;
}
.blog-sidebar-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #1A1A1A;
    width: 100%;
}
.blog-sidebar-cat-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.blog-sidebar-cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
    text-decoration: none;
    color: #4A4A4A;
    font-size: 14px;
    border-bottom: 1px solid #EAEAEA;
}
.blog-sidebar-cat-list a:last-child {
    border-bottom: none;
}
.blog-sidebar-cat-list a:hover {
    color: #E31E24;
}
.blog-sidebar-cat-list a span {
    font-size: 11px;
    font-weight: 700;
    color: #8A8D91;
    background: #F8F9FA;
    border-radius: 999px;
    padding: 2px 8px;
    font-variant-numeric: tabular-nums;
}
.blog-sidebar-recent-item {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}
.blog-sidebar-recent-item:last-child {
    margin-bottom: 0;
}
.blog-sidebar-recent-item__thumb {
    display: block;
    flex: none;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
}
.blog-sidebar-recent-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-sidebar-recent-item__cat {
    font-size: 11px;
    font-weight: 700;
    color: #E31E24;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.blog-sidebar-recent-item__title {
    font-size: 13.5px;
    line-height: 1.3;
    margin: 2px 0 4px;
}
.blog-sidebar-recent-item__title a {
    color: #1A1A1A;
    text-decoration: none;
}
.blog-sidebar-recent-item__title a:hover {
    color: #E31E24;
}
.blog-sidebar-recent-item__date {
    font-size: 12px;
    color: #8A8D91;
}

/* ============ Blog: post detail page ============ */
.blog-post__header {
    margin-bottom: 28px;
}
.blog-post__kicker {
    display: inline-block;
    color: #C81A20;
    background: #FDEBEC;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
    text-decoration: none;
}
.blog-post__title {
    font-family: var(--tp-ff-grotesk, 'Space Grotesk', sans-serif);
    font-size: 38px;
    line-height: 1.15;
    color: #1A1A1A;
    margin: 0 0 18px;
}
.blog-post__meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #8A8D91;
    padding-bottom: 24px;
    border-bottom: 1px solid #EAEAEA;
}
.blog-post__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.blog-post__hero {
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 20px 44px -28px rgba(0, 0, 0, 0.3);
}
.blog-post__hero img {
    width: 100%;
    display: block;
    max-height: 520px;
    object-fit: cover;
}
.blog-post__body {
    font-size: 16px;
    line-height: 1.75;
    color: #4A4A4A;
}
.blog-post__body p {
    margin: 0 0 20px;
    text-align: justify;
}
.blog-post__body h1,
.blog-post__body h2,
.blog-post__body h3,
.blog-post__body h4,
.blog-post__body h5,
.blog-post__body h6 {
    font-family: var(--tp-ff-grotesk, 'Space Grotesk', sans-serif);
    color: #1A1A1A;
    line-height: 1.3;
    margin: 32px 0 14px;
}
.blog-post__body h2 { font-size: 24px; }
.blog-post__body h3 { font-size: 20px; }
.blog-post__body ul,
.blog-post__body ol {
    margin: 0 0 20px;
    padding-left: 22px;
}
.blog-post__body li {
    margin-bottom: 8px;
}
.blog-post__body a {
    color: #E31E24;
    text-decoration: underline;
    text-decoration-color: rgba(227, 30, 36, 0.35);
}
.blog-post__body a:hover {
    text-decoration-color: #E31E24;
}
.blog-post__body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 12px 0;
}
.blog-post__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
}
.blog-post__body th,
.blog-post__body td {
    border: 1px solid #EAEAEA;
    padding: 10px 12px;
    text-align: left;
}
@media (max-width: 991px) {
    .blog-card-item {
        grid-template-columns: 1fr;
    }
    .blog-post__title {
        font-size: 28px;
    }
    .blog-post__hero img {
        max-height: 320px;
    }
}

/* ============ Pagination (blog/portfolio/services, shared component) ============ */
/* main.css styles this as 50px white-on-transparent circles (dark-theme
   leftover, never converted in Phase 1) -- the ellipsis and inactive page
   numbers rendered as white text on this page's white background, i.e.
   invisible. Replaced with flat minimal numbers: no bubble, no border. */
.basic-pagination ul li a,
.basic-pagination ul li span {
    height: auto;
    width: auto;
    min-width: 32px;
    line-height: 1;
    padding: 8px 4px;
    border-radius: 0;
    border: none;
    background: transparent;
    color: #4A4A4A;
    font-weight: 600;
    font-size: 15px;
}
.basic-pagination ul li:hover a {
    background: transparent;
    color: #E31E24;
}
.basic-pagination ul li.active span {
    background: transparent;
    color: #E31E24;
}
.basic-pagination ul li.disabled span {
    color: #8A8D91;
    font-weight: 400;
    cursor: default;
}
