/*
Theme Name:   KT Civil
Theme URI:    https://yourwebsite.com/martex-wp/  (Replace with your theme's URL)
Author:       Your Name or Company Name
Author URI:   https://yourwebsite.com/ (Your website or author URL)
Description:  A WordPress theme based on the Martex HTML template.
Version:      1.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  martex-wp
*/

/* Home Page */

.fbox-txt .w-700, .fbox-txt p{
  text-align: left;
}
/* Slider Edit */
.hero-10-img img {
    height: 100vh; /* Full screen height */
    width: 100%;   /* Full width */
    object-fit: cover; /* Ensures image covers area without distortion */
    object-position: center; /* Centers the image */
}

@media (max-width: 768px) {
    .hero-10-img img {
        height: 60vh; /* Less height for smaller screens */
    }
}

/* Fix service image sizes */
.fbox-img {
    height: 375px; /* match your h-175 class */
    overflow: hidden; /* hide overflow to crop */
}

.fbox-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* keep aspect ratio, crop excess */
    display: block;
}

@media (max-width: 768px) {
    .fbox-img {
        height: 140px;
    }
}
@media (max-width: 480px) {
    .fbox-img {
        height: 120px;
    }
}

/* Space between each service card */
.service-card {
    margin-bottom: 30px; /* adjust as needed */
}

/* Optional: Keep excerpt at 3 lines */
.service-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* limit lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btns-group {
    text-align: left !important;
    margin-top: 10px;
    display: block !important;
}

.hero-10-video video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.hero-10-txt {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-10-video {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-page-video video {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.hero-slider-wrapper {
    padding-top: 80px;  /* Top gap */
    padding-bottom: 80px; /* Bottom gap */
}

@media (max-width: 768px) {
    .hero-slider-wrapper {
        padding-top: 50px;
        padding-bottom: 50px;
    }
}

.blog-post-img {
    height: 250px; /* same height for all */
    overflow: hidden;
    border-radius: 16px;
}

.blog-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* crops without distortion */
    object-position: center; /* centers crop */
}

.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}


/* =====================================================
   WHITE BACKGROUND — override dark theme
   ===================================================== */

body,
.page,
#page {
    background-color: #ffffff !important;
    color: #2d2926;
}

/* Keep section backgrounds that should stay dark or grey */
.bg--black-400,
.theme--dark .bg--dark,
.kt-cta-section {
    /* intentionally scoped — don't override these */
}


/* =====================================================
   ORANGE ACCENT OVERRIDES (replaces blue #0962AE)
   ===================================================== */

.btn--theme,
a.btn--theme {
    border-color: #E8821A !important;
    background-color: #E8821A !important;
    color: #fff !important;
}

.btn--theme:hover,
a.btn--theme:hover {
    border-color: #c96e10 !important;
    background-color: #c96e10 !important;
}

.color--theme,
.color--theme h1, .color--theme h2, .color--theme h3,
.color--theme h4, .color--theme h5, .color--theme h6,
.color--theme p, .color--theme a, .color--theme li,
.color--theme i, .color--theme span {
    color: #E8821A !important;
}

.shape-ico.color--theme svg,
.shape-ico.color--theme path {
    fill: #E8821A !important;
}

.wsmenu > .wsmenu-list > li.active > a,
.wsmenu > .wsmenu-list > li > a:hover {
    color: #E8821A !important;
}

.nav-theme .sm-info {
    background-color: #E8821A !important;
}


/* =====================================================
   PHOTO BANNER SECTION (Why Choose Us)
   ===================================================== */

.kt-photo-banner {
    position: relative;
}

.kt-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    z-index: 0;
}

.kt-photo-banner .container {
    position: relative;
    z-index: 1;
}

.kt-photo-banner h2,
.kt-photo-banner h6,
.kt-photo-banner p,
.kt-photo-banner .s-48,
.kt-photo-banner .s-22,
.kt-photo-banner .color--grey {
    color: #ffffff !important;
}

.about-main-content p {
    margin-bottom: 1.1em;
}


/* =====================================================
   WTC-STYLE SERVICES SECTION
   ===================================================== */

.kt-services-section {
    padding: 80px 0 80px;
    background: #fff;
}

.kt-services-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.kt-services-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #2d2926;
    margin-bottom: 14px;
}

.kt-services-header p {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.7;
}

.kt-services-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kt-service-card {
    display: flex;
    align-items: center;
    gap: 28px;
    background: #f5f5f5;
    border-radius: 14px;
    padding: 28px 32px;
    text-decoration: none !important;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.kt-service-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    transform: translateY(-2px);
    text-decoration: none !important;
    color: inherit;
}

.kt-service-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kt-service-icon i {
    font-size: 2.2rem;
    color: #E8821A;
}

.kt-service-body {
    flex: 1;
}

.kt-service-body h4 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #2d2926;
    margin-bottom: 8px;
}

.kt-service-body p {
    font-size: 0.97rem;
    color: #4b5563;
    line-height: 1.65;
    margin: 0;
}

.kt-service-arrow {
    flex-shrink: 0;
    color: #E8821A;
    font-size: 1rem;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

.kt-service-card:hover .kt-service-arrow {
    opacity: 1;
    transform: translateX(4px);
}

@media (max-width: 600px) {
    .kt-service-card {
        flex-wrap: wrap;
        gap: 16px;
        padding: 22px 20px;
    }
    .kt-service-arrow { display: none; }
    .kt-services-header h2 { font-size: 1.8rem; }
}


/* =====================================================
   CTA SECTION
   ===================================================== */

.kt-cta-section {
    background: #f5f5f5;
    padding: 80px 20px;
}

.kt-cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d2926;
    max-width: 720px;
    margin: 0 auto 32px;
    line-height: 1.35;
}

.kt-cta-btn {
    display: inline-block;
    background: #E8821A;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.kt-cta-btn:hover {
    background: #c96e10;
    color: #fff !important;
}

@media (max-width: 600px) {
    .kt-cta-section h2 { font-size: 1.5rem; }
    .kt-cta-btn { padding: 12px 28px; }
}
