/* ============================================================
   MENASA IPR — Brand color override
   Primary: deep navy (matches logo)
   ============================================================ */

:root {
    --bs-primary: #1f2d3d;
    --bs-primary-rgb: 31, 45, 61;
    --bs-link-color: #1f2d3d;
    --bs-link-hover-color: #c9a86a;
    --menasa-primary: #1f2d3d;
    --menasa-primary-dark: #14202d;
    --menasa-accent: #c9a86a;
}

/* Buttons */
.btn-primary,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: var(--menasa-primary) !important;
    border-color: var(--menasa-primary) !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary.btn-hover-secondary:hover {
    background-color: var(--menasa-accent) !important;
    border-color: var(--menasa-accent) !important;
    color: #fff !important;
}
.btn-outline-primary {
    color: var(--menasa-primary) !important;
    border-color: var(--menasa-primary) !important;
}
.btn-outline-primary:hover {
    background-color: var(--menasa-primary) !important;
    color: #fff !important;
}
.btn-outline-white.btn-hover-primary:hover {
    background-color: var(--menasa-primary) !important;
    border-color: var(--menasa-primary) !important;
    color: #fff !important;
}
.btn-light.btn-hover-primary:hover {
    background-color: var(--menasa-primary) !important;
    border-color: var(--menasa-primary) !important;
    color: #fff !important;
}

/* Links / accents */
a { color: var(--menasa-primary); }
a:hover { color: var(--menasa-accent); }

.text-primary { color: var(--menasa-primary) !important; }
.bg-primary   { background-color: var(--menasa-primary) !important; }

/* Section titles */
.section-title .title,
.section-title-two .title { color: var(--menasa-primary); }
.section-title-two .sub-title { color: var(--menasa-accent); }

/* ──────────────────────────────────────────────────────────────
   Contact page — equal-height info cards
   The row uses align-items: stretch (Bootstrap default) so each
   .col matches the tallest sibling. Inside, .contact-card uses
   flex-column with the body taking flex: 1, guaranteeing all
   three cards share the exact same height regardless of content.
   ────────────────────────────────────────────────────────────── */
.contact-cards .col { display: flex; }
.contact-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    border: 1px solid #eef1f5;
    border-radius: 10px;
    padding: 40px 28px;
    box-shadow: 0 4px 14px rgba(20, 32, 45, .04);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(20, 32, 45, .10);
    border-color: var(--menasa-primary);
}
.contact-card__icon {
    flex: 0 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}
.contact-card__icon img,
.contact-card__icon svg { max-height: 56px; width: auto; }
.contact-card__title {
    flex: 0 0 auto;
    color: var(--menasa-primary);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 14px;
    line-height: 1.3;
}
.contact-card__body {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a6c7d;
    line-height: 1.7;
}
.contact-card__body a {
    color: var(--menasa-primary);
    text-decoration: none;
}
.contact-card__body a:hover {
    color: var(--menasa-accent);
    text-decoration: underline;
}

/* Social icon row inside the "Follow Us" card */
.contact-card__socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.contact-card__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--menasa-primary);
    color: #ffffff !important;
    font-size: 18px;
    text-decoration: none !important;
    transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.contact-card__socials a:hover {
    background: var(--menasa-accent);
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(201, 168, 106, .35);
}

/* Icon box / contact info icons */
.icon-box .icon img,
.contact-info .icon img { filter: none; }
.icon-box .title,
.contact-info .title { color: var(--menasa-primary); }
.icon-box .link,
.blog .info .link {
    color: var(--menasa-primary);
    font-weight: 600;
}
.icon-box .link:hover,
.blog .info .link:hover { color: var(--menasa-accent); }

/* Header — default (top of page) */
.header-section {
    transition: background-color .3s ease, box-shadow .3s ease;
}
.header-section .site-main-menu > ul > li > a {
    color: #1f2d3d;
    transition: color .25s ease;
}
.header-section .site-main-menu > ul > li:hover > a,
.header-section .site-main-menu > ul > li.active > a {
    color: var(--menasa-accent);
}

/* Header — sticky (scrolled) state: dark navy with white logo + white menu */
.header-section.is-sticky,
.header-section.sticky {
    background-color: var(--menasa-primary-dark) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
}
.header-section.is-sticky .header-logo img,
.header-section.sticky    .header-logo img {
    filter: brightness(0) invert(1);
}
.header-section.is-sticky .site-main-menu > ul > li > a,
.header-section.sticky    .site-main-menu > ul > li > a {
    color: #ffffff;
}
.header-section.is-sticky .site-main-menu > ul > li:hover > a,
.header-section.is-sticky .site-main-menu > ul > li.active > a,
.header-section.sticky    .site-main-menu > ul > li:hover > a,
.header-section.sticky    .site-main-menu > ul > li.active > a {
    color: var(--menasa-accent);
}
.header-section.is-sticky .header-mobile-menu-toggle .toggle i,
.header-section.sticky    .header-mobile-menu-toggle .toggle i {
    background-color: #ffffff;
}

/* Logo sizing (logo is wider than template default) */
.header-logo img,
.mobile-menu-logo img {
    max-height: 80px;
    width: auto;
    transition: filter .25s ease;
}
/* Keep the logo compact on mobile so the menu toggle stays visible */
@media (max-width: 575px) {
    .header-logo img {
        max-height: 48px;
    }
}
/* Mobile menu panel (dark bg): white logo + white close button */
.mobile-menu-logo img {
    filter: brightness(0) invert(1);
}
.mobile-menu-close .toggle i::before,
.mobile-menu-close .toggle i::after {
    background-color: #ffffff !important;
}
.footer-logo img {
    max-height: 70px;
    width: auto;
    /* Invert the dark logo so it reads on the dark footer */
    filter: brightness(0) invert(1);
}

/* Slider overlay & headings */
.intro-section .title { color: #fff; }
.intro-section .desc p { color: rgba(255,255,255,.88); }
.intro-section.overlay::before {
    background: linear-gradient(135deg, rgba(20,32,45,.78), rgba(20,32,45,.55));
}

/* Footer */
.footer-section { background-color: #14202d !important; color: #c7d1dc; }
.footer-section,
.footer-section p,
.footer-section li,
.footer-section span { color: #c7d1dc; }
.footer-section a {
    color: #e2e8f0 !important;
    text-decoration: none;
    transition: color .2s ease;
}
.footer-section a:hover { color: var(--menasa-accent) !important; }
.footer-section .footer-widget-content ul li {
    padding: 4px 0;
}
.footer-section .footer-widget-content ul li a {
    position: relative;
    padding-left: 0;
}
.footer-section .footer-widget-content ul li a:hover {
    padding-left: 6px;
}
.footer-widget-title {
    color: #ffffff !important;
    font-weight: 600;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}
.footer-widget-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 32px; height: 2px;
    background: var(--menasa-accent);
}
.footer-social-inline a {
    color: #ffffff !important;
    font-size: 18px;
    margin-right: 12px;
}
.footer-social-inline a:hover { color: var(--menasa-accent) !important; }
.footer-section .copyright,
.footer-section .copyright strong { color: #c7d1dc !important; }
.footer-section .copyright strong { color: #ffffff !important; }

/* Newsletter / dark CTA */
.newsletter-section .btn-primary { background: var(--menasa-accent) !important; border-color: var(--menasa-accent) !important; }
.newsletter-section .btn-primary:hover { background: #fff !important; color: var(--menasa-primary) !important; }

/* Service image thumbnail */
.service-card-image {
    margin: -32px -28px 24px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    height: 240px;
}
.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.service-card:hover .service-card-image img { transform: scale(1.04); }
.service-card-image--logo {
    background: #14202d;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-card-image--logo img {
    width: auto;
    height: 56px;
    object-fit: contain;
    opacity: .75;
}
.service-card:hover .service-card-image--logo img { transform: none; }

/* Service category card */
.service-card {
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 8px;
    padding: 32px 28px;
    height: 100%;
    transition: all .3s ease;
    box-shadow: 0 4px 18px rgba(20,32,45,.04);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(20,32,45,.10);
    border-color: var(--menasa-primary);
}
.service-card .service-number {
    display: inline-block;
    width: 44px; height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: 50%;
    background: var(--menasa-primary);
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
}
.service-card h4 { color: var(--menasa-primary); margin-bottom: 10px; }
.service-card .cat-tag { color: var(--menasa-accent); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 6px; display: block; }

/* News list */
.news-card-image {
    margin: -26px -24px 20px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    height: 260px;
}
.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.news-card:hover .news-card-image img { transform: scale(1.04); }
.news-card-image--logo {
    background: #14202d;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-card-image--logo img {
    width: auto;
    height: 56px;
    object-fit: contain;
    opacity: .75;
}
.news-card:hover .news-card-image--logo img { transform: none; }

.news-card {
    display: block;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 8px;
    padding: 26px 24px;
    height: 100%;
    transition: all .3s ease;
    text-decoration: none;
}
.news-card:hover {
    transform: translateY(-3px);
    border-color: var(--menasa-primary);
    box-shadow: 0 10px 28px rgba(20,32,45,.08);
}
.news-card .source { color: var(--menasa-accent); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.news-card .title  { color: var(--menasa-primary); font-size: 17px; margin: 10px 0 10px; line-height: 1.5; font-weight: 600; }
.news-card .meta   { color: #748494; font-size: 13px; }

/* News search bar */
.news-search {
    position: relative;
    display: flex;
}
.news-search input {
    width: 100%;
    border: 1px solid #e3e8ee;
    border-radius: 6px;
    padding: 13px 52px 13px 18px;
    font-size: 15px;
    color: var(--menasa-primary);
    background: #fff;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.news-search input:focus {
    outline: none;
    border-color: var(--menasa-accent);
    box-shadow: 0 0 0 3px rgba(201,168,106,.15);
}
.news-search button {
    position: absolute;
    top: 0; right: 0;
    height: 100%;
    width: 50px;
    border: none;
    background: var(--menasa-primary);
    color: #fff;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background .25s ease;
}
.news-search button:hover { background: var(--menasa-accent); }

/* News detail */
.news-detail-image {
    border-radius: 8px;
    overflow: hidden;
    height: 420px;
    margin-bottom: 26px;
}
.news-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
    font-size: 13px;
}
.news-detail-meta .source {
    color: var(--menasa-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.news-detail-meta .date { color: #748494; }
.news-detail-meta .featured { color: var(--menasa-accent); font-weight: 600; }
.news-detail-title {
    color: var(--menasa-primary);
    font-size: 30px;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 22px;
}
.news-detail-lead {
    color: var(--menasa-primary);
    font-size: 19px;
    line-height: 1.7;
    font-weight: 500;
    margin-bottom: 24px;
}
.news-detail-body {
    color: #4a5867;
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 30px;
}

/* Rich text (admin-authored article content) */
.news-rich h2, .news-rich h3, .news-rich h4 {
    color: var(--menasa-primary);
    font-weight: 700;
    margin: 28px 0 14px;
    line-height: 1.4;
}
.news-rich h2 { font-size: 24px; }
.news-rich h3 { font-size: 20px; }
.news-rich h4 { font-size: 18px; }
.news-rich p { margin-bottom: 18px; }
.news-rich a { color: var(--menasa-accent); text-decoration: underline; }
.news-rich ul, .news-rich ol { margin: 0 0 18px 1.4em; }
.news-rich li { margin-bottom: 8px; }
.news-rich blockquote {
    border-left: 3px solid var(--menasa-accent);
    margin: 22px 0;
    padding: 6px 0 6px 22px;
    color: var(--menasa-primary);
    font-style: italic;
}
.news-rich img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 18px 0;
}
.news-detail-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    border-top: 1px solid #eef1f5;
    padding-top: 26px;
}
.news-detail-cta .btn-back {
    color: var(--menasa-primary);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: color .25s ease;
}
.news-detail-cta .btn-back:hover { color: var(--menasa-accent); }

/* News sidebar */
.news-sidebar { position: sticky; top: 110px; }
.news-widget {
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 26px;
}
.news-widget-title {
    color: var(--menasa-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--menasa-accent);
    display: inline-block;
}
.news-mini {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f4f8;
    text-decoration: none;
}
.news-mini:last-child { border-bottom: none; padding-bottom: 0; }
.news-mini:first-child { padding-top: 0; }
.news-mini-thumb {
    flex: 0 0 70px;
    width: 70px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}
.news-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.news-mini:hover .news-mini-thumb img { transform: scale(1.06); }
.news-mini-body { display: flex; flex-direction: column; gap: 4px; }
.news-mini-title {
    color: var(--menasa-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    transition: color .25s ease;
}
.news-mini:hover .news-mini-title { color: var(--menasa-accent); }
.news-mini-date { color: #94a1b0; font-size: 12px; }

@media (max-width: 991px) {
    .news-sidebar { position: static; margin-top: 30px; }
    .news-detail-image { height: 300px; }
    .news-detail-title { font-size: 24px; }
}

/* Value cards (About) */
.value-card {
    background: #fff;
    border-left: 3px solid var(--menasa-accent);
    padding: 22px 24px;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(20,32,45,.05);
}
.value-card h5 { color: var(--menasa-primary); margin-bottom: 6px; }
.value-card p  { margin-bottom: 0; color: #5a6c7d; }

/* Page breadcrumb */
.page-breadcrumb {
    background: linear-gradient(135deg, #14202d, #1f2d3d);
    color: #fff;
    padding: 110px 0 80px;
    text-align: center;
}
.page-breadcrumb h1 { color: #fff; font-size: 44px; margin-bottom: 12px; }
.page-breadcrumb .crumbs { color: rgba(255,255,255,.7); }
.page-breadcrumb .crumbs a { color: var(--menasa-accent); }

/* Featured news block (home) */
.featured-news {
    background: linear-gradient(135deg, #1f2d3d, #14202d);
    color: #fff;
    padding: 50px 44px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.featured-news::after {
    content: "";
    position: absolute;
    right: -60px; top: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(201,168,106,.25), transparent 70%);
    border-radius: 50%;
}
.featured-news .label { color: var(--menasa-accent); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 12px; }
.featured-news h3    { color: #fff; margin: 14px 0 18px; font-size: 26px; line-height: 1.4; }
.featured-news a.read-more {
    color: #fff;
    border-bottom: 1px solid var(--menasa-accent);
    padding-bottom: 4px;
    font-weight: 600;
}
.featured-news a.read-more:hover { color: var(--menasa-accent); }

/* Tagline */
.tagline {
    text-align: center;
    color: var(--menasa-accent);
    letter-spacing: 4px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 12px 0 8px;
}

/* Contact form */
.contact-form .form-control,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    background-color: #f3f5f8;
    border: 1px solid #e3e8ee;
    border-radius: 4px;
    padding: 14px 18px;
    margin-bottom: 16px;
    width: 100%;
    font-size: 15px;
    color: #1f2d3d;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.contact-form textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.6;
    font-family: inherit;
}
.contact-form .form-control::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #8a98a8; }

.contact-form .form-control:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    background-color: #ffffff;
    outline: none;
    border-color: var(--menasa-primary);
    box-shadow: 0 0 0 3px rgba(31, 45, 61, .08);
}

/* Social icons large */
.social-large a {
    display: inline-flex;
    width: 48px; height: 48px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--menasa-primary);
    color: #fff !important;
    margin: 0 6px;
    transition: all .3s ease;
}
.social-large a:hover { background: var(--menasa-accent); transform: translateY(-3px); }

/* Misc accent overrides where template used blue */
.blog .info .link mark,
mark {
    background: transparent;
    color: var(--menasa-primary);
    border-bottom: 2px solid var(--menasa-accent);
    padding: 0;
}
