/**
 * Siaflex Developer Theme - Custom CSS
 * Preserves original site design within WordPress
 *
 * @package Siaflex
 */

/* ===========================
   GENERAL STYLES
   =========================== */
body {
    overflow-x: hidden;
}

.box-container.limit-width {
    max-width: 100%;
    overflow: hidden;
}

/* ===========================
   TOP BAR / NEWS BAR
   =========================== */
.sec-bg3.infonews {
    background-color: #f8f9fa;
    padding: 8px 0;
}

.infonews .badge.bg-purple {
    background-color: #1eb390 !important;
}

.infonews .golink {
    color: #333;
    text-decoration: none;
}

.infonews .golink:hover {
    color: #1eb390;
}

.infonews-nav .iconews {
    color: #333;
    margin-left: 15px;
    text-decoration: none;
}

.infonews-nav .iconews:hover {
    color: #1eb390;
}

.infonews-nav .tabphone {
    font-weight: 600;
}

/* ===========================
   NAVIGATION
   =========================== */
.menu-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-menu {
    padding: 10px 0;
}

.logo-menu {
    max-width: 200px;
    height: auto;
}

.main-menu .menu-item {
    display: inline-block;
    position: relative;
}

.main-menu .menu-item > a {
    color: #333;
    padding: 10px 15px;
    display: block;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}

.main-menu .menu-item > a:hover {
    color: #1eb390;
}

/* Mega Menu */
.sub-menu.megamenu {
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 20px;
    min-width: 600px;
    display: none;
    z-index: 1001;
}

.menu-item-has-children:hover > .sub-menu.megamenu {
    display: block;
}

.megamenu .service .menu-item {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.megamenu .service .text-muted {
    font-size: 13px;
}

/* Service mega menu column headers */
.megamenu .service .top-head {
    margin-bottom: 5px;
}

.megamenu .service .top-head .c-grey {
    color: #666;
}

.megamenu .service hr {
    margin: 8px 0;
    border-color: #eee;
}

/* Service sub-links */
.megamenu .service .sub-links {
    display: flex;
    flex-direction: column;
}

.megamenu .service .menu-level-1 {
    display: block;
    color: #333;
    font-weight: 700;
    padding: 4px 0;
    text-decoration: none;
    font-size: 14px;
}

.megamenu .service .menu-level-1:hover {
    color: #1eb390;
}

/* Service list max-height */
.service-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle .icon {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 4px 0;
    transition: 0.3s;
}

@media (max-width: 991px) {
    .menu-toggle {
        display: block;
        float: right;
    }

    .main-menu {
        display: none;
        width: 100%;
        text-align: left;
    }

    .menu-wrap.active .main-menu {
        display: block;
        margin-top: 30px;
    }

    .main-menu .menu-item {
        display: block;
    }

    .sub-menu.megamenu {
        position: static;
        min-width: auto;
        box-shadow: none;
    }
}

/* Language Switcher */
.language-switcher {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.language-switcher .lang-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.language-switcher .lang-btn.active {
    background: #1eb390;
    color: #fff;
    border-color: #1eb390;
}

/* ===========================
   HERO SLIDER
   =========================== */
.main-container.slider {
    position: relative;
    overflow: hidden;
}

.silder-container {
    height: 1000px !important;
}

.carousel-cell {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-cell .slider-content {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    z-index: 2;
}

.carousel-cell .svg.custom-element-right {
    position: absolute;
    right: -5%;
    top: 10%;
    max-width: 50%;
    z-index: 1;
}

.carousel-cell .heading {
    font-size: 36pt;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
}

.carousel-cell .subheading {
    font-size: 16pt;
    color: #333;
    margin-top: 15px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .silder-container {
        height: 600px !important;
    }
    .carousel-cell {
        height: 600px !important;
    }
    .carousel-cell .heading {
        font-size: 24pt !important;
    }
    .carousel-cell .subheading {
        font-size: 14pt !important;
    }
    .carousel-cell .svg.custom-element-right {
        display: none;
    }
}

/* ===========================
   SLICK CLIENTS SLIDER
   =========================== */
.slick.clients {
    padding: 70px 0;
}

.slick.clients img {
    max-width: 90% !important;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.slick.clients img:hover {
    opacity: 1;
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services .section-heading {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.services .section-subheading {
    font-size: 16px;
    margin-bottom: 40px;
}

.service-section {
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 350px;
}

.service-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-section hr {
    border-color: #eee;
}

/* ===========================
   WHY SIAFLEX SECTION
   =========================== */
.sec-bg4.exapath {
    background-color: #474d51 !important;
    padding: 80px 0;
}

.service-section2 {
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

/* ===========================
   BUTTONS
   =========================== */
.btn-default-yellow-fill {
    background-color: #f5a623 !important;
    color: #fff !important;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-default-yellow-fill:hover {
    background-color: #e6951a !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 166, 35, 0.3);
}

.btn-default-fill {
    background-color: transparent;
    border: 2px solid #ddd;
    padding: 10px 25px;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-default-fill:hover {
    border-color: #1eb390;
    color: #1eb390;
}

/* ===========================
   BANNER / PAGE HEADER
   =========================== */
.top-header {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 50px;
}

.top-header .overlay:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0);
}

.top-header .img-defaultbanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.top-header .heading {
    font-size: 36px;
    font-weight: 700;
    color: #1eb390;
}

.top-header .subheading {
    font-size: 16px;
    color: #333;
    margin-top: 15px;
}

/* ===========================
   BLOG / NEWS CARDS
   =========================== */
.blog-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

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

.blog-card .blog-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-card .blog-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card .blog-title a:hover {
    color: #1eb390;
}

/* ===========================
   CONTACT FORM
   =========================== */
.form-contact input[type="text"],
.form-contact input[type="email"],
.form-contact textarea,
.form-contact select {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-contact input:focus,
.form-contact textarea:focus,
.form-contact select:focus {
    border-color: #1eb390;
    outline: none;
}

.form-contact .position-relative > label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 1;
}

.form-contact textarea {
    padding-left: 15px;
}

.cd-select select {
    padding-left: 15px;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0 0;
    position: relative;
}

.footer .heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu .menu-item a {
    color: #aab7c4;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 0;
    display: block;
    transition: color 0.3s;
}

.footer-menu .menu-item a:hover {
    color: #1eb390;
}

.footer .copyright {
    color: #aab7c4;
    font-size: 14px;
    margin-top: 20px;
}

.footer .soc-icons {
    margin-top: 15px;
}

.footer .soc-icons a {
    color: #aab7c4;
    margin-right: 10px;
    font-size: 18px;
    transition: color 0.3s;
}

.footer .soc-icons a:hover {
    color: #1eb390;
}

.footer-bottom {
    border-top: 1px solid #3d4f5f;
    padding: 20px 0;
}

.footer-bottom .by {
    color: #aab7c4;
}

.footer .logo-bg.logo-footer {
    position: absolute;
    right: -50px;
    bottom: 0;
    opacity: 0.05;
}

/* ===========================
   GO TOP BUTTON
   =========================== */
.cd-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1eb390;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 999;
}

.cd-top:hover {
    background: #179e7e;
    transform: translateY(-3px);
}

/* ===========================
   LOADING SPINNER
   =========================== */
#spinner-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s;
}

.spinner .double-bounce1,
.spinner .double-bounce2 {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1eb390;
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.spinner .double-bounce2 {
    animation-delay: -1.0s;
}

@keyframes sk-bounce {
    0%, 100% { transform: scale(0.0) }
    50% { transform: scale(1.0) }
}

.spinner-txt {
    margin-top: 60px;
    color: #333;
    font-weight: 600;
}

/* ===========================
   COLORS & UTILITIES
   =========================== */
.c-pink { color: #ee5586; }
.c-purple { color: #7952b3; }
.c-grey { color: #999; }
.bg-purple { background-color: #1eb390 !important; }
.seccolor { color: #666; }
.mergecolor { color: #333; }
.noshadow { box-shadow: none !important; }

.bg-colorstyle { background-color: #fff; }
.bg-seccolorstyle { background-color: #f8f9fa; }

/* ===========================
   BODY BORDERS
   =========================== */
.body-borders .top-border,
.body-borders .bottom-border {
    position: fixed;
    left: 0;
    right: 0;
    height: 20px;
    z-index: 9990;
}

.body-borders .top-border { top: 0; }
.body-borders .bottom-border { bottom: 0; }

.body-borders .left-border,
.body-borders .right-border {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 9990;
}

.body-borders .left-border { left: 0; }
.body-borders .right-border { right: 0; }

/* ===========================
   PAGINATION
   =========================== */
.pagination-wrap .nav-links {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pagination-wrap .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover {
    background: #1eb390;
    color: #fff;
    border-color: #1eb390;
}

/* ===========================
   FAQ ACCORDION
   =========================== */
.accordion-button:not(.collapsed) {
    background-color: #f0faf6;
    color: #1eb390;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(30, 179, 144, 0.25);
}

/* ===========================
   RESPONSIVE SERVICE LIST
   =========================== */
.service-list-items {
    list-style: none;
    padding: 0;
}

.service-list-items li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.service-list-items li i {
    margin-right: 8px;
}

/* ===========================
   BADGE
   =========================== */
.badge.bg-purple {
    background-color: #1eb390 !important;
    font-weight: 500;
    padding: 6px 12px;
}

/* ===========================
   SECTION SPACING
   =========================== */
.sec-normal {
    padding: 80px 0;
}

.sec-bg2 {
    background-color: #f8f9fa;
}

.tophalfpadding {
    padding-top: 60px;
}

.nobottompadding {
    padding-bottom: 0;
}

.toppadding {
    padding-top: 80px;
}

.bottompadding {
    padding-bottom: 80px;
}

/* ===========================
   ADMIN BAR FIX
   =========================== */
.admin-bar .menu-wrap {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .menu-wrap {
        top: 46px;
    }
}
