/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/


/* Blog Card Redesign */
.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.blog-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 240px;
    border-radius: 20px 20px 0 0;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
    /* Optional: filter: grayscale(100%); if you want the grayscale to color effect */
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
    /* filter: grayscale(0%); */
}

.blog-detail {
    padding: 25px;
}

.blog-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-meta i {
    color: #8dc63f;
    font-size: 16px;
}

.blog-title h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 12px;
}

.blog-title h3 a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title h3 a:hover {
    color: #8dc63f;
}

.blog-content p {
    font-size: 15px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Footer Redesign */
#footer {
    font-family: 'Poppins', sans-serif;
    /* or existing theme font */
}

#footer .footer-head {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    text-transform: capitalize;
}

#footer ul.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer ul.footer-links li {
    margin-bottom: 12px;
}

#footer ul.footer-links li a {
    color: #cfdeff;
    font-size: 14px;
    transition: color 0.3s ease;
}

#footer ul.footer-links li a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Right Section Styles */
.footer-right-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    margin-top: -10px;
    /* Slight offset */
}

.footer-right-section .footer-address-info {
    padding: 15px 0;
}

.location-list {
    margin-top: 20px;
}

.loc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    color: #cfdeff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.loc-item:last-child {
    border-bottom: none;
}

.loc-item span {
    font-size: 15px;
}

.loc-item i {
    font-size: 12px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.loc-item:hover,
.loc-item.active {
    color: #fff;
}

.loc-item:hover i,
.loc-item.active i {
    opacity: 1;
    color: #1075b2;
    /* Theme green */
    transform: translate(2px, -2px);
}

.footer-address-info h5 {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    opacity: 0.8;
}

.footer-socials .social-icon {
    margin-right: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none !important;
}

.footer-socials .social-icon i {
    color: #fff !important;
}

.footer-socials .social-icon:hover {
    background-color: #1075b2;
}

/* Adjust dark background */
#footer.dark {
    background-color: #0e2b65 !important;
    background-image: linear-gradient(135deg, #0e2244 0%, #1a4c9c 100%);
}

#footer .footer-head {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    text-transform: capitalize;
    text-align: inherit;
    /* Allow parent alignment */
}

/* Force alignments based on language direction */
html[lang="ar"] #footer,
body.rtl #footer {
    text-align: right;
}

html[lang="en-US"] #footer,
body:not(.rtl) #footer {
    text-align: left;
}

/* Contact Box Styling */
.footer-right-section {
    background: rgba(255, 255, 255, 0.05);
    /* Subtle box background */
    border-radius: 15px;
    padding: 30px !important;
    text-align: inherit;
    /* Follows direction */
    height: 100%;
    /* Fill height */
}

.footer-logo {
    display: inline-block;
    max-height: none !important;
    /* Override inline style limitation */
    height: 55px !important;
    /* Increased size */
    width: auto;
    margin-bottom: 20px;
}

.footer-address-info h5 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-address-info p {
    color: #ccc;
    line-height: 1.6;
}

/* Social Icons Alignment */
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    /* Align to start */
    margin-top: 15px;
}

.footer-socials .social-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    margin: 0 !important;
    border: none !important;
    color: #fff !important;
    transition: all 0.3s ease;
    line-height: 1 !important;
}

.footer-socials .social-icon:hover {
    background: #1075b2 !important;
    transform: translateY(-3px);
}

.footer-socials .social-icon i {
    line-height: 0 !important;
    color: inherit !important;
    margin: 0 !important;
}

/* Newsletter Styles */
#widget-subscribe-form {
    max-width: 100%;
}

/* Target the Bootstrap input-group generated by PHP */
#widget-subscribe-form .input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Hide the prepend icon container */
#widget-subscribe-form .input-group-prepend {
    display: none !important;
}

#widget-subscribe-form input[type="email"],
#widget-subscribe-form input[type="text"] {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50px !important;
    padding: 12px 20px !important;
    color: #fff !important;
    width: auto !important;
    flex: 1 1 auto !important;
    margin-bottom: 0 !important;
    text-align: inherit;
    height: 50px !important;
}

/* Button Container */
#widget-subscribe-form .input-group-append {
    display: flex !important;
    margin: 0 !important;
    width: auto !important;
}

#widget-subscribe-form button,
#widget-subscribe-form input[type="submit"] {
    background-color: #1075b2 !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 0 30px !important;
    border: none !important;
    font-weight: 700 !important;
    width: auto !important;
    height: 50px !important;
    text-transform: uppercase;
    white-space: nowrap;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Copyrights Alignment */
#copyrights .row {
    align-items: center !important;
    /* Force vertical centering */
}

#mega-menu-wrap-header #mega-menu-header>li.mega-menu-item>a.mega-menu-link,
.lang-cont .lang-anchor .lang-text {
    color: #fff !important;
}

@media (max-width: 991px) {
    #mega-menu-wrap-header #mega-menu-header>li.mega-menu-item>a.mega-menu-link,
.lang-cont .lang-anchor .lang-text {
    color: #000 !important;
}

}

#header.sticky-header #mega-menu-wrap-header #mega-menu-header>li.mega-menu-item>a.mega-menu-link,
#header.sticky-header .lang-cont .lang-anchor .lang-text,
.wp-singular.page-template .lang-cont .lang-anchor .lang-text{
    color: #000 !important;
}

/* Latest Works Card Redesign */
.work-card {
    position: relative;
    height: 380px;
    /* Adjust based on preference */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
}

.work-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.work-card:hover .work-card-bg {
    transform: scale(1.05);
}

.work-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.work-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    /* RTL will flip this via direction */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 8px 15px;
    border-radius: 30px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
}

.work-card-badge i {
    color: #1075b2;
    /* Brand Green */
}

/* RTL adjustment for Badge if needed, but direction often handles it */
html[lang="ar"] .work-card-badge {
    left: auto;
    right: 20px;
}

.work-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    z-index: 2;
    color: #fff;
}

.work-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
    text-transform: capitalize;
}

.work-card-subtitle {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.work-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.work-card-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-width: 80%;
}

.work-card-btn {
    width: 40px;
    height: 40px;
    background: #1075b2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: background 0.3s ease;
}

.work-card-btn:hover {
    background: #fff;

    color: #1075b2;
}

/* ----------------------------------------------------------------
	Feature Cards Redesign
-----------------------------------------------------------------*/
.feature-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    /* Ensure full height for equal columns */
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card-img img {
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-card-img img {
    transform: scale(1.1) rotate(2deg);
}

.feature-card h4 {
    letter-spacing: -0.5px;
}

/* ----------------------------------------------------------------
	Strategy Section Redesign
-----------------------------------------------------------------*/
.strategy-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.strategy-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(144, 196, 68, 0.1);
    /* Brand Green Tint */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1075b2;
    font-size: 20px;
}

.strategy-card h5 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* RTL/LTR specific alignments */
/* Default (LTR) - Left Column */
.strategy-card.card-right {
    flex-direction: row-reverse;
    text-align: right;
    padding: 5px 15px;
}

/* RTL Overrides handled by direction: rtl in body usually, 
   but specific flex-direction might need check based on HTML lang */

html[lang="ar"] .strategy-card.card-right {
    flex-direction: row;
    /* In AR, right column is actually visually left? No, usually right. */
    text-align: right;
    padding: 5px 15px;
}

html[lang="ar"] .strategy-card.card-left {
    text-align: right;
    flex-direction: row;
    padding: 5px 15px;
}


.strategy-image-container {
    position: relative;
    padding: 20px;
}

.strategy-main-img {
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.strategy-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: rgba(144, 196, 68, 0.2);
    border-radius: 50%;
    z-index: 1;
    filter: blur(40px);
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.5;
    }
}

/* ----------------------------------------------------------------
	Engineering (Video) Section
-----------------------------------------------------------------*/
.video-section-container {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.video-bg-col {
    position: relative;
}

.video-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Slight darken */
}

.video-content-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-content-wrapper {
    max-width: 500px;
    padding: 20px;
}

.video-play-btn-lg {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.video-play-btn-lg:hover {
    transform: scale(1.02);
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1075b2;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.video-play-btn-lg:hover .play-icon-overlay {
    background: #1075b2;
    color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

/* ----------------------------------------------------------------
	Info Section ("What you don't know")
-----------------------------------------------------------------*/
.info-section-wrapper {
    position: relative;
    padding: 60px 0;
}

.info-content-col {
    padding-left: 50px;
}

/* RTL adjustment for Info Section */
html[lang="ar"] .info-content-col {
    padding-left: 15px;
    padding-right: 50px;
}

.divider {
    width: 60px;
    height: 3px;
    background: #1075b2;
    margin-top: 20px;
}

.divider.divider-left {
    margin-right: auto;
}

html[lang="ar"] .divider.divider-left {
    margin-left: auto;
    margin-right: 0;
}

.hover-effect {
    transition: all 0.3s ease;
}

.hover-effect:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.shadow-md {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.rounded-lg {
    border-radius: 0.5rem !important;
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}