/* =========================================================
   Megah Warisan Resources — brand theme override
   Palette drawn from the MWR logo:
   - Orange   #F58220
   - Yellow   #FCC200
   - Charcoal #333336
   - White    #FFFFFF
   ========================================================= */

:root {
    --mwr-orange: #f58220;
    --mwr-orange-dark: #d96f16;
    --mwr-yellow: #fcc200;
    --mwr-charcoal: #333336;
}

/* ---- Primary action colour ---- */
.default-btn,
.dl-btn,
.header-btn,
.pricing-footer .default-btn,
.subscribe-form .submit-btn,
#popup-search-button,
#scroll-top {
    background-color: var(--mwr-orange) !important;
    border-color: var(--mwr-orange) !important;
    color: #fff !important;
}

.default-btn:hover,
.dl-btn:hover,
.header-btn:hover,
.subscribe-form .submit-btn:hover,
#scroll-top:hover {
    background-color: var(--mwr-charcoal) !important;
    border-color: var(--mwr-charcoal) !important;
}

/* ---- Accent / highlight text ---- */
a,
.top-social li a:hover,
.dl-menu > li > a:hover,
.service-content h3 a:hover,
.blog-content h3 a:hover,
.project-inner h3 a:hover,
.read-more,
.learn-more,
.about-list i,
.pricing-list i,
.work-pro-item i,
.feature-icon,
.section-heading h2 span,
.exp-box h3,
.copyright a {
    color: var(--mwr-orange);
}

a:hover {
    color: var(--mwr-orange-dark);
}

/* ---- Section headings ---- */
.section-heading h2,
.about-content .section-heading h2,
.cta-content h2,
.pricing-head h2,
h1, h2, h3, h4 {
    color: var(--mwr-charcoal);
}
.section-heading h2::after,
.form-heading::before {
    background-color: var(--mwr-orange);
}
.cta-section h2,
.booking-form .form-heading h2 {
    color: #fff;
}
.booking-form .form-heading h2 {
    color: var(--mwr-yellow);
}

/* ---- Dark surfaces (header top bar, footer, CTA) ---- */
.top-bar,
.footer-section,
.book-section .booking-form,
.cta-section {
    background-color: var(--mwr-charcoal);
}

.booking-form .form-heading h2 {
    color: var(--mwr-yellow);
}

/* ---- Pricing highlight ---- */
.pricing-head h2 {
    color: var(--mwr-charcoal);
}
.pricing-head h2 span {
    color: var(--mwr-orange);
}
.pricing-head h2 small {
    font-size: 14px;
    font-weight: 400;
    color: #777;
}

/* ---- Odometer / counters ---- */
.counter-item .odometer,
.counter-number {
    color: var(--mwr-orange);
}

/* ---- Floating WhatsApp button ---- */
.floating-wa {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transition: transform .2s ease;
}
.floating-wa:hover {
    transform: scale(1.08);
    color: #fff !important;
}

/* ---- Video section spacing ---- */
.video-section .video-wrap {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

/* ---- Utility spacing used in content ---- */
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ---- Responsive touches ---- */
.header-logo img { max-height: 64px; width: auto; }

@media (max-width: 991px) {
    .header-logo img { max-height: 52px; }
    .section-heading h2 { font-size: 28px; line-height: 1.3; }
    .section-heading h2 br,
    .slider-content .dl-caption br,
    .cta-content h2 br { display: none; }
}

@media (max-width: 767px) {
    .header-logo img { max-height: 46px; }
    .floating-wa {
        width: 48px;
        height: 48px;
        font-size: 24px;
        right: 14px;
        bottom: 14px;
    }
    .pricing-head h2 { font-size: 30px; }
    .video-section .video-wrap { padding-bottom: 62%; }
}

/* Wide content (tables etc.) must scroll inside its own container */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---- Certification grid: exactly 6 equal-height cards, responsive ---- */
.cert-grid {
    display: flex;
    flex-wrap: wrap;
}
.cert-grid > [class*="col-"] {
    display: flex;
}
.cert-grid .blog-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 30px;
    background: #fff;
    border: 1px solid #e6e8eb;
    border-top: 3px solid var(--mwr-orange, #f7941d);
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
    transition: transform .3s ease, box-shadow .3s ease, border-top-color .3s ease;
}
.cert-grid .blog-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(18, 36, 54, .14);
    border-top-color: var(--mwr-yellow, #ffd200);
}
.cert-grid .blog-content h3 {
    transition: color .3s ease;
}
.cert-grid .blog-item:hover .blog-content h3 {
    color: var(--mwr-orange, #f7941d);
}
.cert-grid .blog-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.cert-grid .blog-content h3 {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.35;
}
.cert-grid .blog-content p {
    margin: 0;
}

/* ---- Hero slider backdrop: black-dimmed background image ---- */
.dl-slider .single-slide {
    position: relative;
    background-color: #0e1a26;
}
.dl-slider .single-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(6, 11, 16, .78) 0%, rgba(6, 11, 16, 0) 100%);
    pointer-events: none;
}
.dl-slider .dl-caption,
.dl-slider .dl-caption .inner-layer,
.dl-slider .slider-content .dl-caption.medium,
.dl-slider .slider-content .dl-caption.big,
.dl-slider .slider-content .dl-caption.small {
    color: #fff;
}
.dl-slider .dl-caption.medium .inner-layer {
    color: var(--mwr-yellow, #ffd200);
}

/* ---- Service grid: equal-height cards, responsive ---- */
.service-grid {
    display: flex;
    flex-wrap: wrap;
}
.service-grid > [class*="col-"] {
    display: flex;
}
.service-grid .service-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}
.service-grid .service-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.service-grid .service-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.service-grid .service-content p {
    flex: 1 1 auto;
}

/* ---- Pricing grid: equal-height cards, responsive ---- */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
}
.pricing-grid > [class*="col-"] {
    display: flex;
}
.pricing-grid .pricing-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}
.pricing-grid .pricing-list {
    flex: 1 1 auto;
}
.pricing-grid .pricing-footer {
    margin-top: auto;
}

/* ---- Malaysian government-style corporate footer ---- */
.gov-footer .footer-item h3 {
    position: relative;
    margin-bottom: 18px;
    padding-bottom: 8px;
    font-size: 16px;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #fff;
}
.gov-footer .footer-item h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 2px;
    background: var(--mwr-yellow, #ffd200);
}
.gov-footer .footer-item p,
.gov-footer .footer-links a,
.gov-footer .footer-policy a,
.gov-footer .footer-meta p,
.gov-footer .copyright {
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    line-height: 1.7;
}
.gov-footer .footer-links,
.gov-footer .footer-policy {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gov-footer .footer-links li {
    margin-bottom: 8px;
}
.gov-footer .footer-links a:hover,
.gov-footer .footer-policy a:hover {
    color: #fff;
    text-decoration: underline;
}
.gov-footer .certified {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}
.gov-footer .certified li {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 4px 10px;
    font-size: 12px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 3px;
}
.gov-footer .footer-social {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}
.gov-footer .footer-social li {
    display: inline-block;
    margin-right: 8px;
}
.gov-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    transition: background .2s ease;
}
.gov-footer .footer-social a:hover {
    background: var(--mwr-orange, #f7941d);
}
.gov-footer .footer-bottom {
    padding: 18px 0;
}
.gov-footer .footer-bottom p {
    margin: 0;
}
.gov-footer .footer-policy li {
    display: inline-block;
}
.gov-footer .footer-policy li:not(:last-child)::after {
    content: "|";
    margin: 0 8px;
    color: rgba(255, 255, 255, .3);
}

@media (max-width: 991px) {
    .gov-footer .text-lg-right { text-align: left; }
    .gov-footer .footer-bottom { padding: 14px 0; }
}
