/* Inline styles moved to external CSS for better performance */

/* Header Height Fix - 80px */
#header-sticky.td-header__area {
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

#header-sticky.td-header__area .container,
#header-sticky.td-header__area .row {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Footer Height Fix - 80px to match header */
.td-footer-area {
    padding: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    display: flex;
    align-items: center;
}

footer {
    border-top: none !important;
    border-bottom: none !important;
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
}

.td-footer-bottom {
    padding: 0;
    border-top: none !important;
    border-bottom: none !important;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Ensure footer has consistent 80px height */
footer .td-footer-bottom {
    min-height: 80px !important;
    height: 80px !important;
    display: flex;
    align-items: center;
}

footer .td-footer-bottom .row {
    width: 100%;
    margin: 0;
}

/* Override bootstrap margin classes for consistent footer height */
footer .mt-45 {
    margin-top: 0 !important;
}

footer .mb-20 {
    margin-bottom: 0 !important;
}

.td-footer-copyright p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.td-footer-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

@media (max-width: 991px) {
    #header-sticky.td-header__area {
        height: 80px !important;
    }

    .td-footer-area {
        height: 80px !important;
        padding: 0 !important;
    }

    footer .td-footer-bottom {
        min-height: 80px !important;
        height: 80px !important;
    }
}

@media (max-width: 768px) {
    #header-sticky.td-header__area {
        height: 80px !important;
    }

    .td-footer-area {
        height: 80px !important;
        padding: 0 !important;
    }
    
    .td-footer-bottom .row {
        flex-direction: column;
        text-align: center !important;
    }
    
    .td-footer-bottom .row > div {
        width: 100%;
        text-align: center !important;
    }
    
    .td-footer-copyright {
        margin-bottom: 15px !important;
    }
    
    .td-footer-social {
        justify-content: center !important;
    }
    
    footer .td-footer-bottom {
        min-height: 80px !important;
        height: 80px !important;
    }
}

/* Service detail text left align with bottom image */
.td-service-hero-content {
    margin-left: 0 !important;
    text-align: left;
}

.td-service-hero-content p,
.td-service-hero-content h2,
.td-service-hero-content .td-about-main-feature-list {
    text-align: left;
}

/* Team section background */
.td-team-area {
    background-color: #ffffff;
    padding: 80px 0;
}

/* Contact section background */
.td-contact-main {
    background-color: #ffffff;
    padding: 80px 0;
}

/* Footer social icons */
.td-footer-social a i.fab.fa-behance {
    font-size: 18px;
}

/* Google Maps iframe */
.google-maps-iframe {
    border: 0;
}

/* Team Details Page - Show only one team member at a time */
.team-member-section {
    display: none !important;
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.team-member-section.active {
    display: block !important;
    opacity: 1;
}

/* Team Details Navigation Arrows */
.td-team-image-navigation {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-start;
    align-items: center;
}

.td-team-nav-prev,
.td-team-nav-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #4a4a4a;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    text-decoration: none;
}

.td-team-nav-prev:hover,
.td-team-nav-next:hover {
    background-color: #2a2a2a;
    transform: scale(1.05);
}

.td-team-nav-prev svg,
.td-team-nav-next svg {
    width: 24px;
    height: 24px;
    display: block;
}

.td-team-nav-prev svg path,
.td-team-nav-next svg path {
    stroke: white;
    stroke-width: 1.5;
}

/* Team Details Image Size - Increased */
.td-team-details-thumb img {
    max-width: 650px !important;
    width: 80%;
    height: auto;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .td-team-details-thumb img {
        max-width: 100% !important;
    }
}

/* Team Details Page - Reduce top spacing to max 30px */
body.team-details-page .td-breadcrumb-spacing,
body.team-details-page .td-breadcrumb-area.td-breadcrumb-spacing {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

@media (max-width: 991px) {
    body.team-details-page .td-breadcrumb-spacing,
    body.team-details-page .td-breadcrumb-area.td-breadcrumb-spacing {
        padding-top: 30px !important;
        padding-bottom: 20px !important;
    }
}

/* Service Cards Grid Layout */
.td-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background: #E8EAED;
    border: 1px solid rgba(6, 50, 49, 0.15);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.4s ease;
    height: 100%;
    min-height: 130px;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.td-service-card::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    background: #063231;
    top: auto;
    bottom: 0;
    left: 0;
    transition: all 0.4s ease;
    z-index: -1;
    border-radius: 12px;
}

.td-service-card:hover {
    border-radius: 12px;
    border-color: #063231;
    text-decoration: none;
}

.td-service-card:hover::before {
    height: 100%;
    top: 0;
    bottom: auto;
}

.td-service-card-icon {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    position: relative;
    z-index: 1;
}

.td-service-card-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: brightness(0) saturate(100%) invert(8%) sepia(15%) saturate(2000%) hue-rotate(150deg) brightness(0.9) contrast(1.1);
}

.td-service-card:hover .td-service-card-icon img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.td-service-card-title {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #063231;
    margin: 0;
    line-height: 1.3;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.td-service-card:hover .td-service-card-title {
    color: #aff172;
}

@media (max-width: 991px) {
    .td-service-card {
        min-height: 120px;
        padding: 20px 12px;
    }
    
    .td-service-card-icon {
        margin-bottom: 10px;
        height: 36px;
    }
    
    .td-service-card-icon img {
        width: 36px;
        height: 36px;
    }
    
    .td-service-card-title {
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .td-service-card {
        min-height: 110px;
        padding: 18px 10px;
    }
    
    .td-service-card-icon {
        margin-bottom: 8px;
        height: 32px;
    }
    
    .td-service-card-icon img {
        width: 32px;
        height: 32px;
    }
    
    .td-service-card-title {
        font-size: 14px;
    }
}

/* Team Section - Center align name and tag */
.td-team-6-content {
    text-align: center !important;
}

.td-team-6-content .name {
    display: block !important;
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

.td-team-6-content .tag {
    text-align: center !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
