/* ============================================
   Red Eagle UAE - Professional Custom CSS
   Font: Jost
   Theme: Black + #E01F2E
   ============================================ */

/* ===== BASE ===== */
@font-face { font-family: 'FontAwesome'; src: url("data:application/font-woff2;base64,") format("woff2"); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'FontAwesome'; src: url("data:application/font-woff2;base64,") format("woff2"); font-weight: bold; font-style: normal; font-display: swap; }
.fa, .fas, .far, .fab, .fat, .fad,
.fa::before, .fas::before, .far::before, .fab::before, .fat::before, .fad::before {
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
}
.far, .far::before { font-weight: 400 !important; }
.fab, .fab::before { font-family: 'Font Awesome 5 Brands' !important; font-weight: 400 !important; }

html { scroll-behavior: smooth; }
body { font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif; font-weight: 400; -webkit-font-smoothing: antialiased; line-height: 1.65; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { line-height: 1.7; }

/* ===== COOKIE BOX ===== */
.cookie-box {
    position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
    border-top: 3px solid var(--primary); padding: 18px 24px; z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-inner {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
    max-width: 1200px; width: 100%;
}
.cookie-box .cookie-text { font-size: 14px; color: #555; flex: 1; min-width: 250px; }
.cookie-box .cookie-text a { color: var(--primary); text-decoration: underline; }
.cookie-box .cookie-accept {
    background: var(--primary); color: #fff; border: none; padding: 10px 28px;
    border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 14px; transition: all 0.3s;
    white-space: nowrap; font-family: 'Jost', sans-serif;
}
.cookie-box .cookie-accept:hover { background: #c01826; }
@media(max-width:767px){ .cookie-inner { flex-direction: column; text-align: center; } .cookie-box .cookie-text { min-width: unset; } }

/* =============================================
   HEADER — fixed, hamesha upar (z-index 10000)
   ============================================= */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10000;
    background: #fff;
    transition: background-color 0.4s ease, box-shadow 0.3s ease;
    padding: 0;
    margin: 0;
    overflow: visible;                     /* ✅ zaroori — menu cut na ho */
}
header .container { padding: 0 25px; }
header .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    min-height: 70px;
    margin: 0;
}
header .navbar-brand { line-height: 0; margin: 0; }
header .main_logo { max-height: 45px; width: auto; display: block; }
header.shrink { background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,0.1); }
header.inner-head { background: #fff; }

header .menu-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    position: static;   /* legacy absolute right:65px/top:32px override — logo/menu overlap fix */
    top: auto;
    right: auto;
}

/* =============================================
   CLOSE BUTTON
   ============================================= */
.header-close-btn {
    display: none;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #000;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Jost', sans-serif;
    z-index: 10001;
    margin-top:-10px
}
.header-close-btn:hover { background: rgba(148, 148, 148, 0.08); }
.header-close-btn i,
.header-close-btn .close-icon { font-size: 22px; font-weight: 400; line-height: 1; }
body.menu_open .header-close-btn { display: inline-flex; }
body.menu_open .burgur-btn { display: none; }
body.menu_open header .admin-btn { display: none; }

/* =============================================
   MEGA MENU — HEADER SE NIKALTA HUA (scaleY)
   — BLACK background, RED text
   ============================================= */
.megha_menu {
    background: #000;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    display: block !important;

    /* ✅ Header se nikalne wali animation */
    transform-origin: top center;            /* ✅ upar se stretch */
    transform: scaleY(0);                    /* ✅ band hone pe 0 */
    opacity: 0;
    visibility: hidden;

    transition:
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        visibility 0.3s;

    overflow-y: auto;
    max-height: calc(100vh - 70px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    padding: 0;
}
.megha_menu.open {
    transform: scaleY(1);                    /* ✅ open hone pe full */
    opacity: 1;
    visibility: visible;
}

.megha_menu .container { position: relative; z-index: 2; padding: 0 25px; }
.megha_menu .menu_line_grid { padding: 45px 0 60px; position: relative; }

/* Heading — RED */
.megha_menu .menu_links h4 {
    color: var(--primary);
    padding-left: 0;
    padding-bottom: 12px;
    font-size: 22px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(224,31,46,0.4);
    margin-bottom: 18px;
}
.megha_menu .menu_links ul { list-style: none; padding: 0; margin: 0 0 30px 0; }
.megha_menu .menu_links ul li { display: inline-block; margin-right: 5px; }

/* Menu links — RED text */
.megha_menu .menu_links ul li a {
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    padding: 4px 14px;
    display: block;
    text-transform: uppercase;
    transition: all 0.3s;
    position: relative;
    font-family: 'Jost', sans-serif;
    letter-spacing: 0.5px;
}
.megha_menu .menu_links ul li a:hover { color: #fff; }
.megha_menu .menu_links ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transition: transform 0.3s;
}
.megha_menu .menu_links ul li a:hover::after { transform: scaleX(1); }

/* Sub-menu — RED text */
.megha_menu .sub-menu {
    display: none !important;
    padding: 10px 0;
    background: rgba(224,31,46,0.1);
    border-radius: 0 0 4px 4px;
    margin: 5px 0;
}
.megha_menu .sub-menu li { display: block !important; margin: 0; }
.megha_menu .sub-menu li a {
    font-size: 14px !important;
    padding: 8px 20px !important;
    border-bottom: 1px solid rgba(224,31,46,0.3);
    color: var(--primary) !important;
    text-transform: none !important;
    font-weight: 400 !important;
}
.megha_menu .sub-menu li a:hover {
    color: #fff !important;
    background: rgba(224,31,46,0.2);
}
.megha_menu .sub-menu-parent > a .arrow_sign {
    position: absolute; right: 0; top: 0; font-size: 30px; padding: 0 12px; z-index: 555;
}
.megha_menu .sub-menu-parent > a .arrow_sign i { transition-duration: 0.4s; }

/* Menu ke andar close button — RED */
.mega_close_btn {
    position: absolute;
    top: 15px; right: 20px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(224,31,46,0.15);
    border: 1px solid rgba(224,31,46,0.4);
    color: var(--primary);
    font-size: 22px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; outline: none;
    z-index: 10001;
    transition: all 0.3s ease;
}
.mega_close_btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: rotate(90deg);
}

body.menu_open { overflow: hidden; }

/* =============================================
   HAMBURGER
   ============================================= */
@media(min-width: 992px) {
    .burgur-btn, .right_funnel { display: none; }
}
.burgur-btn {
    position: relative;
    z-index: 10001;
    display: inline-flex; align-items: center; gap: 8px;
    cursor: pointer; background: transparent; border: none;
    padding: 8px 6px; outline: none;
}
.burgur-btn .bar1, .burgur-btn .bar2, .burgur-btn .bar3 {
    width: 24px; height: 3px; background-color: #000;
    margin: 4px 0; transition: 0.4s;
}
.menu_text { color: #000; font-size: 18px; font-weight: 700; margin-left: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* ===== HOME PAGE ANIMATIONS ===== */
.home-section-anim { animation: slideInUp 1s ease both; }
@keyframes slideInUp { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: translateY(0); } }
.home-fade-in { animation: fadeIn 1.5s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.home-slide-left { animation: slideInLeft 1s ease both; }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-80px); } to { opacity: 1; transform: translateX(0); } }
.home-slide-right { animation: slideInRight 1s ease both; }
@keyframes slideInRight { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: translateX(0); } }
.home-pulse { animation: pulse 2s ease infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.home-bounce { animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-15px); } 60% { transform: translateY(-8px); } }
.home-counter { animation: countUp 2s ease both; }
@keyframes countUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.home-glow { animation: glow 3s ease infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 20px rgba(224,31,46,0.2); } 50% { box-shadow: 0 0 40px rgba(224,31,46,0.5); } }

/* ===== HERO SECTIONS ===== */
.hero-section {
    position: relative; min-height: 700px; display: flex; align-items: center; overflow: hidden;
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.65) 0%, rgba(26,26,26,0.45) 100%); z-index: 1;
}
.hero-section .hero-overlay { position: relative; z-index: 2; width: 100%; }
.hero-section .hero-content {
    font-size: 48px; font-weight: 800; color: #fff; text-transform: uppercase;
    margin-bottom: 20px; letter-spacing: 3px; animation: fadeInUp 1s ease both; text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-section .hero-subtitle {
    font-size: 22px; color: #f0f0f0; margin-bottom: 30px; animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 0 1px 10px rgba(0,0,0,0.2); font-weight: 500; line-height: 1.5;
}
.hero-section .hero-btn {
    display: inline-block; padding: 14px 36px; background: var(--primary); color: #fff;
    text-decoration: none; font-size: 16px; font-weight: 700; text-transform: uppercase;
    border-radius: 4px; transition: all 0.3s; letter-spacing: 1px; animation: fadeInUp 1s ease 0.4s both;
    box-shadow: 0 4px 15px rgba(224,31,46,0.3);
}
.hero-section .hero-btn:hover { background: #c01826; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(224,31,46,0.45); }
.hero-section .hero-image { max-width: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); animation: fadeIn 1.2s ease 0.3s both; }

.hero-services { background-image: url('assets/frontend/images/4.jpeg'); }
.hero-founder { background-image: url('assets/frontend/images/Father.jpeg'); }
.hero-sustainability { background-image: url('assets/frontend/images/23.jpeg'); }
.hero-business { background-image: url('assets/frontend/images/22.jpeg'); }
.hero-qhse { background-image: url('assets/frontend/images/QHSE-POLICY.jpg'); }
.hero-about { background-image: url('assets/frontend/images/about_us.jpg'); }
.hero-our-story { background-image: url('assets/frontend/images/about_us.jpg'); }
.hero-core-values { background-image: url('assets/frontend/images/13.jpeg'); }
.hero-social { background-image: url('assets/frontend/images/21.jpeg'); }
.hero-strategic { background-image: url('assets/frontend/images/20.jpeg'); }
.hero-environmental { background-image: url('assets/frontend/images/19.jpeg'); }
.hero-innovation { background-image: url('assets/frontend/images/18.jpeg'); }
.hero-sustainability-strategy { background-image: url('assets/frontend/images/17.jpeg'); }
.hero-risk { background-image: url('assets/frontend/images/16.jpeg'); }
.hero-partnerships { background-image: url('assets/frontend/images/15.jpeg'); }
.hero-community { background-image: url('assets/frontend/images/14.jpeg'); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-12px); } 60% { transform: translateY(-6px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 35px 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); margin-bottom: 25px; text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.feature-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 15px 40px rgba(224,31,46,0.15); }
.feature-card .icon-circle {
    width: 70px; height: 70px; border-radius: 50%; background: var(--primary);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
    transition: all 0.3s ease; font-size: 24px; color: #fff;
}
.feature-card:hover .icon-circle { transform: rotate(10deg) scale(1.1); }
.feature-card h5 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: #222; }
.feature-card p { color: #666; font-size: 14px; line-height: 1.7; }

/* ===== SERVICE CATEGORY SECTIONS ===== */
.service-category-block { margin-bottom: 50px; }
.service-category-block h3 {
    font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 20px;
    padding-bottom: 10px; border-bottom: 3px solid var(--primary); display: inline-block;
}
.service-category-block p { color: #555; font-size: 16px; line-height: 1.8; }
.service-item-list { list-style: none; padding: 0; margin: 0; }
.service-item-list li { padding: 10px 0; padding-left: 32px; position: relative; color: #444; font-size: 15px; line-height: 1.6; }
.service-item-list li::before {
    content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900;
    position: absolute; left: 0; color: var(--primary); font-size: 14px; top: 12px;
}
.service-with-image { display: flex; gap: 30px; align-items: flex-start; flex-wrap: wrap; }
.service-with-image .service-img { flex: 0 0 350px; max-width: 350px; }
.service-with-image .service-img img { width: 100%; height: 280px; object-fit: cover; border-radius: 8px; display: block; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.service-with-image .service-content { flex: 1; min-width: 300px; }
.service-with-image .service-content h3 { margin-top: 0; }
@media(max-width: 767px) { .service-with-image .service-img { flex: 0 0 100%; max-width: 100%; } }

/* ===== STAT COUNTERS ===== */
.stat-counter-box {
    background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 30px; text-align: center; transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.stat-counter-box:hover { border-color: var(--primary); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.stat-counter-box .stat-number { font-size: 42px; font-weight: 900; color: var(--primary); margin-bottom: 8px; }
.stat-counter-box .stat-label { font-size: 14px; color: #666; font-weight: 600; text-transform: uppercase; }

/* ===== INNER PAGE BANNER (height home hero jitni 80vh, bright image) ===== */
.inner_page_banner { position: relative; min-height: 80vh; display: flex; align-items: center; padding: 60px 0 40px; background-size: cover; background-position: center; margin-bottom: 40px; }
.inner_page_banner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(rgba(10,10,10,.2), rgba(10,10,10,.35)); }
.inner_page_banner .inner_banner_content { position: relative; z-index: 2; width: 100%; }
.inner_page_banner h1 { color: #fff; font-weight: 900; text-transform: uppercase; font-size: 48px; margin-bottom: 15px; letter-spacing: 2px; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.inner_page_banner .breadcrumb { background: none; padding: 0; margin: 0; }
.inner_page_banner .breadcrumb-item a { color: #eee; transition: color 0.3s; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.inner_page_banner .breadcrumb-item a:hover { color: var(--primary); }
.inner_page_banner .breadcrumb-item.active { color: var(--primary); text-shadow: 0 1px 8px rgba(0,0,0,.4); }

/* ===== PAGE SECTIONS ===== */
.page-section { padding: 80px 0; }
.page-section.bg-dark { background: #f9f9f9; }
.page-section.title-center .section-header { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-header span { color: var(--primary); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 10px; }
.section-header h2 { font-size: 36px; font-weight: 800; color: #222; margin-bottom: 15px; }
.section-header p { color: #666; font-size: 16px; line-height: 1.7; }

/* ===== IMAGE WITH DESCRIPTION ===== */
.img-description-box { border-radius: 8px; overflow: hidden; margin-bottom: 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.img-description-box img { width: 100%; height: 400px; object-fit: cover; display: block; }
.img-description-box .img-caption { background: var(--primary); color: #fff; padding: 18px 25px; font-size: 16px; font-weight: 600; }

/* ===== TESTIMONIALS ===== */
.testimonial-slide { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 40px; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.testimonial-slide:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

/* ===== CLIENT LOGOS ===== */
.client-logo-box { background: #fff; border: 1px solid #eee; padding: 30px; text-align: center; border-radius: 6px; transition: all 0.3s; height: 140px; display: flex; align-items: center; justify-content: center; }
.client-logo-box:hover { border-color: var(--primary); box-shadow: 0 6px 20px rgba(0,0,0,0.06); transform: translateY(-3px); }

/* ===== BACKGROUND PATTERNS ===== */
.bg-pattern { background-image: radial-gradient(circle, rgba(224,31,46,0.05) 1px, transparent 1px); background-size: 30px 30px; }

/* ===== SCROLL TO TOP ===== */
.back_to_top { position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 999; font-size: 18px; text-decoration: none; }
.back_to_top.visible { opacity: 1; visibility: visible; }
.back_to_top:hover { background: #c01826; transform: translateY(-3px); }

/* ===== PROJECTS SECTION ===== */
.project-card { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; transition: all 0.3s ease; margin-bottom: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); border-color: var(--primary); }
.project-card .project-img { width: 100%; height: 250px; object-fit: cover; display: block; }
.project-card .project-body { padding: 20px; }
.project-card .project-sector { font-size: 12px; color: var(--primary); text-transform: uppercase; font-weight: 600; letter-spacing: 1px; margin-bottom: 6px; }
.project-card .project-title { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 10px; line-height: 1.4; }
.project-card .project-desc { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 12px; }
.project-card .project-link { color: var(--primary); font-weight: 600; font-size: 14px; text-decoration: none; transition: color 0.3s; }
.project-card .project-link:hover { color: #c01826; }

/* ===== PROJECT DETAIL ===== */
.project-detail-hero { position: relative; border-radius: 8px; overflow: hidden; margin-bottom: 35px; }
.project-detail-hero img { width: 100%; height: 450px; object-fit: cover; display: block; }
.project-detail-hero::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%); }
.project-detail-content h2 { font-size: 28px; font-weight: 700; margin-bottom: 15px; color: var(--primary); border-bottom: 3px solid var(--primary); display: inline-block; padding-bottom: 8px; }
.project-detail-content p { font-size: 16px; color: #555; line-height: 1.8; margin-bottom: 16px; }
.project-gallery img { width: 100%; height: 300px; object-fit: cover; border-radius: 6px; margin-bottom: 15px; }

/* ===== ALTERNATING PROJECT BACKGROUNDS ===== */
.project-row-white { background: #fff; padding: 60px 0; }
.project-row-red { background: var(--primary); padding: 60px 0; }
.project-row-red .project-card { background: #fff; border: none; box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.project-row-red .project-card .project-body { padding: 25px; }
.project-row-red .project-sector { color: #E01F2E; }
.project-row-red .project-title { color: #222; }
.project-row-red .project-desc { color: #555; }
.project-row-red .project-link { color: #E01F2E; }
@media(max-width:767px){ .project-row-white, .project-row-red { padding: 40px 0; } }

/* ===== ADMIN BUTTON ===== */
.admin-btn { display: inline-flex; align-items: center; gap: 5px; }

/* ===== FORM CONSISTENCY ===== */
.form-control {
    width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 4px;
    font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif; font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-control:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(224,31,46,0.1); outline: none;
}
.form-control-file { padding: 8px 0; font-size: 14px; color: #555; }
label { font-weight: 600; font-size: 14px; color: #333; margin-bottom: 6px; display: block; }
.btn {
    display: inline-block; padding: 12px 28px; border: none; border-radius: 4px;
    font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif; font-weight: 600;
    transition: all 0.3s ease; cursor: pointer; text-decoration: none; text-align: center;
}
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: #c01826; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(224,31,46,0.3); }
.contact_form_wrap, .apply_form_wrap { border: 1px solid #eee; border-radius: 10px; padding: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.contact_form_wrap h3, .apply_form_wrap h3 { font-size: 24px; font-weight: 700; color: #222; margin-bottom: 16px; border-bottom: 2px solid var(--primary); padding-bottom: 10px; display: inline-block; }
.alert { padding: 14px 20px; border-radius: 4px; margin-bottom: 16px; font-weight: 500; font-family: 'Jost', sans-serif; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===== PAGE CENTERING ===== */
.content_section, .page-section, .middle_content { width: 100%; }
.container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 15px; }

/* =============================================
   RESPONSIVE
   ============================================= */
/* HOME HERO — shorter banner (base, all viewports) */
#banner_slider, #banner_slider .carousel-inner, #banner_slider .carousel-inner .carousel-item { height: 80vh; }
#banner_slider .carousel-inner .carousel-item img, #banner_subInner .carousel-inner .carousel-item img { height: 100%; object-fit: cover; }

@media(max-width:991px) {
    header .navbar { min-height: 65px; }
    header .main_logo { max-height: 40px; }
    .megha_menu { max-height: calc(100vh - 65px); }
    .hero-section { min-height: 500px; }
    .hero-section .hero-content { font-size: 32px; }
    .inner_page_banner { padding: 50px 0 35px; min-height: 55vh; margin-bottom: 35px; }
    .inner_page_banner h1 { font-size: 34px; }
    .burgur-btn, .right_funnel { display: inline-flex; }
    .header-close-btn { font-size: 15px; padding: 8px 12px; }
    .header-close-btn .close-icon { font-size: 18px; }
    /* HOME HERO — shorter banner */
    #banner_slider, #banner_slider .carousel-inner, #banner_slider .carousel-inner .carousel-item { height: 55vh; }
}
@media(max-width:767px) {
    header .navbar { min-height: 60px; }
    header .main_logo { max-height: 36px; }
    .megha_menu { max-height: calc(100vh - 60px); }
    .hero-section { min-height: 400px; }
    .hero-section .hero-content { font-size: 26px; letter-spacing: 1px; }
    .hero-section .hero-subtitle { font-size: 16px; }
    .section-header h2 { font-size: 28px; }
    .cookie-inner { flex-direction: column; text-align: center; }
    .cookie-box .cookie-text { min-width: unset; }
    .service-with-image .service-img { flex: 0 0 100%; max-width: 100%; }
    .megha_menu .menu_links ul li { display: block !important; }
    .megha_menu .menu_links ul li a { padding: 12px 20px; display: block; }
    .megha_menu .menu_line_grid { padding: 30px 0; }
    .inner_page_banner { padding: 40px 0 30px; min-height: 300px; margin-bottom: 30px; }
    .inner_page_banner h1 { font-size: 28px; margin-bottom: 8px; }
    /* HOME HERO — shorter banner */
    #banner_slider, #banner_slider .carousel-inner, #banner_slider .carousel-inner .carousel-item { height: 300px; }
    .banner_content h1 { font-size: 30px; }
    .about_content span { font-size: 22px; }
    .about_content h4 { font-size: 26px; }
    .inner_content h5 { font-size: 26px; }
}
/* =============================================
   GLOBAL TYPOGRAPHY BOOST — bade font sizes
   ============================================= */
body { font-size: 17px; }
p { font-size: 17px; line-height: 1.75; }
a { font-size: inherit; }

/* Headings / labels in custom components */
.section-header span { font-size: 15px; }
.section-header h2 { font-size: 40px; }
.section-header p { font-size: 18px; }
.feature-card h5 { font-size: 20px; }
.feature-card p { font-size: 16px; }
.img-description-box .img-caption { font-size: 17px; }

/* Legacy style.css text blocks */
.about_content span { font-size: 26px; }
.about_content h4 { font-size: 32px; }
.about_content p { font-size: 17px; }
.banner_content h1 { font-size: 54px; }
.banner_content p { font-size: 18px; line-height: 1.6; }
.inner_content h5 { font-size: 32px; }
.inner_content p { font-size: 17px; }
.page_detail_content { font-size: 17px; line-height: 1.85; }
.page_detail_content p { font-size: 17px; line-height: 1.85; }

/* Services / Projects */
.service-category-block h3 { font-size: 26px; }
.service-category-block p { font-size: 17px; }
.service-item-list li { font-size: 16px; }
.project-card .project-sector { font-size: 13px; }
.project-card .project-title { font-size: 20px; }
.project-card .project-desc { font-size: 16px; }
.project-card .project-link { font-size: 15px; }
.project-detail-content h2 { font-size: 30px; }
.project-detail-content p { font-size: 17px; }

/* Stat counters */
.stat-counter-box .stat-number { font-size: 46px; }
.stat-counter-box .stat-label { font-size: 15px; }

/* Forms */
.form-control, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea, select { font-size: 16px; }
label { font-size: 15px; }
.btn-lg { font-size: 17px; }

/* Mega menu / navigation */
.megha_menu .menu_links h4 { font-size: 24px; }
.megha_menu .menu_links ul li a { font-size: 16px; }
.megha_menu .sub-menu li a { font-size: 15px !important; }

/* Footer */
.site_footer { font-size: 15px; }
.footer_title { font-size: 16px; }
.footer_about { font-size: 15px; }
.footer_links li a { font-size: 15px; }
.footer_contact li a, .footer_contact li span, .footer_contact li { font-size: 15px; }
.footer_copyright, .footer_meta_links a { font-size: 15px; }

/* Cookie box */
.cookie-box .cookie-text { font-size: 15px; }

/* Home founder + story text */
.middle_content .home_grid h4 { font-size: 28px; }
.middle_content .home_grid p { font-size: 17px; }

/* ============================================================
   GLOBAL FOOTPRINT CARD — floating inside the home hero
   ============================================================ */
.main_banner { position: relative; }
.find_here_section {
    position: absolute; left: 50%; transform: translateX(-50%); bottom: 4%;
    z-index: 60; width: auto; max-width: 700px;
}
.find_here_box {
    background: rgba(255,255,255,.97); border-left: 4px solid var(--primary);
    border-radius: 4px; padding: 13px 22px; box-shadow: 0 12px 34px rgba(0,0,0,.22);
    backdrop-filter: blur(4px);
}
.find_here_box h4 { font-size: 16px; font-weight: 800; color: #222; margin: 0 0 5px; text-transform: uppercase; }
.find_here_box p { font-size: 14px; line-height: 1.6; color: #555; margin: 0; }

/* Founder text block — responsive padding */
.founder-desc { padding-left: 50px; }

/* ============================================================
   GLOBAL MOBILE RESPONSIVE FIXES (Red Eagle UAE)
   ============================================================ */
@media(max-width: 991px) {
    .founder-desc { padding-left: 24px; }
    .page-section { padding: 55px 0; }
    .find_here_section { max-width: 420px; bottom: 2%; }
}
@media(max-width: 767px) {
    html, body { overflow-x: hidden; }
    img { max-width: 100%; height: auto; }

    /* ===== Mobile header — logo + menu ab overlap nahi honge ===== */
    header .menu-nav { position: static !important; top: auto !important; right: auto !important; }
    header .navbar { flex-wrap: nowrap; }
    header .navbar-brand { max-width: 150px; }
    header .menu-nav { gap: 6px; }
    .burgur-btn { gap: 6px; padding: 6px 4px; }
    .burgur-btn .menu_text { font-size: 11px; letter-spacing: 1px; }
    .burgur-btn .bar_wrap { width: 26px; }
    .burgur-btn .bar1, .burgur-btn .bar2, .burgur-btn .bar3 { width: 26px; }
    .header-close-btn { padding: 8px 10px; font-size: 14px; }

    /* Global footprint card — hero ke neeche static */
    .find_here_section {
        position: static; transform: none; left: auto; right: auto; bottom: auto;
        width: 100%; margin-top: 6px; padding: 6px 15px 0;
    }
    .find_here_box { max-width: 100%; padding: 13px 16px; }
    .find_here_box h4 { font-size: 14px; }
    .find_here_box p { font-size: 13px; }

    /* Founder text block */
    .founder-desc { padding-left: 0; }

    /* Section spacing */
    .page-section { padding: 45px 0; }
    .content_section { padding: 30px 0; }
    .section-header { margin-bottom: 28px; }
    .section-header h2 { font-size: 26px; }
    .section-header p { font-size: 16px; }

    /* Inner banner content fits narrow screens */
    .inner_banner_content { text-align: left; }
    .inner_banner_content .breadcrumb { flex-wrap: wrap; }
    .inner_banner_summary {
        max-width: 100% !important; margin-top: 14px !important;
        padding: 12px 16px !important; font-size: 15px !important; line-height: 1.6 !important;
    }

    /* Cards / grids */
    .feature-card { padding: 26px 18px; }
    .feature-card h5 { font-size: 18px; }
    .feature-card p { font-size: 15px; }
    .project-card .project-img { height: 180px; }
    .img-description-box img { height: 220px; }
    .project-detail-hero img { height: 260px; }
    .project-gallery img { height: 200px; }
    .stat-counter-box { padding: 22px 14px; }
    .stat-counter-box .stat-number { font-size: 38px; }

    /* Legacy banner text scales down */
    .about_content span { font-size: 20px !important; }
    .about_content h4 { font-size: 24px !important; }
    .inner_content h5 { font-size: 24px !important; }
    .banner_content h1 { font-size: 28px !important; }
    .banner_content p { font-size: 16px !important; }

    /* Contact hero (inline min-height:500px wins, so force smaller) */
    .hero-section.hero-about { min-height: 320px !important; }
    .hero-section .hero-content { font-size: 24px !important; }

    /* Footer */
    .footer_col { margin-bottom: 30px; }
    .footer_top { padding: 40px 0 20px; }
    .footer_title { font-size: 15px; margin-bottom: 16px; }
    .footer_bottom_inner { flex-direction: column; gap: 10px; text-align: center; }
    .footer_meta_links { flex-wrap: wrap; justify-content: center; gap: 14px; }

    /* Mega menu drawer on small screens */
    .megha_menu { height: 70vh; }
    .megha_menu .menu_links ul li a { font-size: 15px; padding: 10px 16px; }

    /* Tables scroll instead of breaking layout */
    .table-responsive { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ============================================================
   UNIFIED INNER-PAGE LAYOUT — home wali theme, sab pages par
   ============================================================ */
.content_section { padding: 80px 0; }
.content_section > .container > .about_content,
.content_section .intro-block { max-width: 860px; margin: 0 auto 45px; text-align: center; }
.content_section .intro-block h2,
.content_section .about_content h2 {
    font-size: 32px; font-weight: 800; color: #222; margin-bottom: 15px;
    position: relative; display: inline-block; padding-bottom: 10px;
}
.content_section .intro-block h2::after,
.content_section .about_content h2::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 60px; height: 3px;
    background: var(--primary); border-radius: 2px;
}
.content_section h3 { color: #222; font-weight: 800; border-left: 4px solid var(--primary); padding-left: 12px; }
.content_section h3 a { color: inherit; }

/* Consistent card look across pages */
.cert-card, .career-card, .client_logo_box, .news-card, .job-card {
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.cert-card:hover, .career-card:hover, .client_logo_box:hover, .news-card:hover, .job-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(0,0,0,.1);
}

/* ============================================================
   PIYARI SMOOTH ANIMATIONS — har page par
   ============================================================ */
html { scroll-behavior: smooth; }

/* Micro hover animations on images */
.feature-card img, .project-card .project-img, .img-description-box img,
.news-card img, .sector-card img, .client_logo_box img {
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.feature-card:hover img, .project-card:hover .project-img,
.img-description-box:hover img, .news-card:hover img,
.sector-card:hover img, .client_logo_box:hover img {
    transform: scale(1.06);
}
.img-description-box { overflow: hidden; }

/* Button shine sweep */
.btn, .hero-btn, .btn_header_quote, .cookie-accept, .play_icon button { position: relative; overflow: hidden; }
.btn::after, .hero-btn::after, .btn_header_quote::after, .cookie-accept::after {
    content: ''; position: absolute; top: 0; left: -80%; width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg); transition: left 0.6s ease;
}
.btn:hover::after, .hero-btn:hover::after, .btn_header_quote:hover::after, .cookie-accept:hover::after { left: 120%; }

/* Gentle floating helpers */
.video_slider { animation: redFloat 5s ease-in-out infinite; }
@keyframes redFloat { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }

.clickable_btn i, .fa-angle-down { animation: redBounce 1.6s ease-in-out infinite; }
@keyframes redBounce { 0%,20%,60%,100%{ transform: translateY(0); } 40%{ transform: translateY(-12px); } 80%{ transform: translateY(-6px); } }

.founder-badge, .home-badge { animation: badgeGlow 2.4s ease-in-out infinite; }
@keyframes badgeGlow {
    0%,100% { box-shadow: 0 0 0 0 rgba(224,31,46,.4); }
    50%     { box-shadow: 0 0 0 12px rgba(224,31,46,0); }
}

/* Section reveals take a touch longer for a smooth, premium feel */
[data-aos] { transition-timing-function: cubic-bezier(0.25,0.46,0.45,0.94); }
[data-aos="zoom-in-up"] { transition-duration: 0.7s; }

/* Nicer scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #c01826; }

@media(max-width: 991px) {
    .content_section { padding: 55px 0; }
    .content_section .intro-block h2, .content_section .about_content h2 { font-size: 26px; }
}
@media(max-width: 767px) {
    .content_section { padding: 40px 0; }
    .content_section h3 { font-size: 20px; padding-left: 10px; }
    .video_slider { animation: none; }
}

/* ============================================================
   LOADER — simple: logo icon + thin spinner ring (no text)
   ============================================================ */
.site-loader {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    background: #ffffff; transition: opacity .45s ease, visibility .45s ease;
}
.site-loader.done { opacity: 0; visibility: hidden; }
.loader-logo {
    position: relative; width: 116px; height: 116px;
    display: flex; align-items: center; justify-content: center;
}
.loader-logo img {
    max-width: 88px; max-height: 64px; width: auto; height: auto;
    animation: loaderPulse 1.6s ease-in-out infinite;
}
.loader-spin {
    position: absolute; inset: 0; border-radius: 50%;
    border: 3px solid #e9ecf1; border-top-color: var(--primary);
    animation: loaderRotate .8s linear infinite;
}
@keyframes loaderRotate { to { transform: rotate(360deg); } }
@keyframes loaderPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ============================================================
   HOME HERO — modern, cinematic
   ============================================================ */
.main_banner { overflow: hidden; }

.banner_border {
    display: flex; width: 100%; flex-direction: column;
    justify-content: center; height: 100%; position: relative;
}
.banner_border::before, .banner_border::after { display: none; }
.banner_border .carousel-caption { position: static; text-align: left; padding: 0; }
.banner_content {
    background: linear-gradient(135deg, rgba(10,13,20,.62) 0%, rgba(10,13,20,.26) 100%);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px; padding: 34px 40px 30px 34px;
    backdrop-filter: blur(6px);
    box-shadow: 0 22px 60px rgba(0,0,0,.35);
    position: relative;
}
.banner_content::after { display: none; }
.banner_content h1 {
    font-size: clamp(30px, 5vw, 58px);
    font-weight: 900; letter-spacing: 1px; line-height: 1.15;
    background: linear-gradient(90deg, #fff 30%, #ffd2d6 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: #fff;
}
.banner_content p { font-size: clamp(16px, 2vw, 19px); letter-spacing: .3px; color: #f1f3f6; }

/* ============================================================
   MODERN PROFESSIONAL REDESIGN — poori website, latest CSS
   ============================================================ */
:root {
    --red-grad: linear-gradient(135deg, #f0445a 0%, #e01f2e 45%, #9e1220 100%);
    --soft: #f6f7f9;
    --shadow-1: 0 10px 30px rgba(20,22,26,.08);
    --shadow-2: 0 24px 60px rgba(20,22,26,.16);
}
html { scroll-behavior: smooth; }

/* ---- Buttons ---- */
.btn, .btn-lg, .btn_header_quote, .hero-btn, .cookie-accept {
    border-radius: 50px !important;
    letter-spacing: .5px;
}
.btn { font-weight: 700; }
.btn:hover, .hero-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(224,31,46,.3); }
.btn.primary { background: var(--red-grad); }

/* ---- Section headers ---- */
.section-header span {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(224,31,46,.08); color: var(--primary);
    padding: 7px 18px; border-radius: 50px; letter-spacing: 2px;
}
.section-header span::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: var(--primary);
    animation: badgeGlow 2.2s ease-in-out infinite;
}
.section-header h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: .4px; color: #16181d; }
.section-header.title-center h2::after {
    content: ''; display: block; width: 84px; height: 4px; margin: 14px auto 0;
    border-radius: 6px; background: var(--red-grad);
}

/* ---- Cards modern ---- */
.feature-card, .project-card, .client-logo-box, .stat-counter-box, .testimonial-slide, .contact_form_wrap, .apply_form_wrap {
    border-radius: 18px;
    border: 1px solid rgba(20,22,26,.07);
    box-shadow: var(--shadow-1);
}
.feature-card {
    position: relative; overflow: hidden; padding: 36px 26px;
    transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s ease;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--red-grad); transform: scaleX(0); transform-origin: left;
    transition: transform .45s ease;
}
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-2); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card .icon-circle { background: var(--red-grad); box-shadow: 0 12px 26px rgba(224,31,46,.35); }

.stat-counter-box {
    background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
    transition: transform .35s ease, box-shadow .35s ease;
}
.stat-counter-box:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.stat-counter-box .stat-number {
    background: var(--red-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: var(--primary);
}

.project-card { padding-bottom: 6px; }
.img-description-box { border-radius: 16px; }

/* ---- Inner banner polish ---- */
.inner_page_banner { box-shadow: 0 6px 30px rgba(0,0,0,.10); }
.inner_page_banner .inner_banner_content { padding-bottom: 36px; }
.inner_banner_summary {
    background: linear-gradient(120deg, rgba(255,255,255,.16), rgba(255,255,255,.07)) !important;
    backdrop-filter: blur(6px);
}

/* ---- Footer glow line ---- */
.site_footer::before {
    height: 5px; background: var(--red-grad);
    box-shadow: 0 0 18px rgba(224,31,46,.55);
}

/* ---- Global fine-tuning ---- */
.footer_title::after { width: 40px; height: 3px; border-radius: 3px; }
.back_to_top { background: var(--red-grad); border-radius: 12px; }
.back_to_top:hover { transform: translateY(-4px); }
.find_here_box { border-left: 5px solid #e01f2e; }

/* ============================================================
   MODERN v2 — slim header, glassy look, spacing kam, clean
   ============================================================ */

/* ---------- Slim header (desktop) ---------- */
@media(min-width: 992px) {
    header .navbar { padding: 18px 20px 18px; }
    .header.shrink .navbar { padding: 12px 20px 12px; }
    .navbar-brand { max-width: 180px; }
    .header.shrink .navbar-brand { max-width: 150px; }
    .header.shrink .navbar-brand .main_logo { display: inline-block !important; }
    .header.shrink .navbar-brand .sticky_logo { display: none !important; }
    .megha_menu, .header.shrink .megha_menu { top: 100% !important; }
    .menu_nav, .menu-nav { top: auto; }
}
/* Header pill/glass state */
.header.shrink {
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px rgba(20,22,26,.10);
}
.inner-head { background: rgba(255,255,255,.9) !important; }
/* Khtrnak blueprint divider lines — band */
.header .container::before, .shrink .navbar::before, .shrink .container::after,
.main_banner .container::before, .main_banner .container::after,
.menu_line_grid::before, .menu_line_grid::after, .menu_line_grid .row::before, .menu_line_grid .row::after,
.megha_menu .container::before, .megha_menu .container::after { display: none !important; }

/* ---------- Glassy modern cards ---------- */
.cert-card, .career-card, .job-card, .news-card, .project-card,
.client-logo-box, .contact_form_wrap, .apply_form_wrap, .feature-card {
    background: #ffffff;
    border: 1px solid rgba(20,22,26,.08);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(20,22,26,.08);
}
.cert-card:hover, .career-card:hover, .job-card:hover, .news-card:hover,
.project-card:hover, .contact_form_wrap:hover, .apply_form_wrap:hover {
    box-shadow: 0 24px 60px rgba(20,22,26,.16);
}

/* ---------- Section spacing tight (purani button jaisi 160/190px nahi) ---------- */
.page-section { padding: 70px 0; }
.middle_grid { padding: 70px 0; }
.gray_bg { padding: 70px 0; }
.media_grid { padding: 140px 30px 25px; }
.border_inner { padding: 90px 15px 26px 30px; }
.title_outer { padding-top: 80px; }
.infograph_grid { padding-top: 80px; }
.stydy_img { padding: 75px 15px 0; }
.newsroom_grid { padding: 100px 0 0; }
.save_earth { padding-top: 55px; }
.curve_contebt { padding-bottom: 120px; padding-top: 30px; }
.join_grid, .job_grid, .out_line, .studies_box, .inner_feilds.hidden_bottomline { padding-bottom: 34px; }
.content_section { padding: 70px 0; }

/* ---------- Section rows separated (apas mein na milein) ---------- */
.page-section + .page-section, .middle_grid + .middle_grid, .content_section + .content_section { margin-top: 0; }
.row { margin-left: -12px; margin-right: -12px; }
.row > .col-12, .row > .col-md-6, .row > .col-lg-4, .row > .col-lg-3, .row > .col-sm-6 { padding-left: 12px; padding-right: 12px; }
.news-card, .cert-card, .career-card, .job-card, .feature-card { margin-bottom: 24px; }

/* ---------- Glass accent rows (red gradient edge) ---------- */
.section-header.title-center h2::after { width: 70px; }

/* ---------- Mobile/tab adjustments ---------- */
@media(max-width: 991px) {
    .page-section, .middle_grid, .gray_bg, .content_section { padding: 52px 0; }
    .newsroom_grid { padding: 70px 0 0; }
    .media_grid { padding: 80px 30px 20px; }
    .border_inner { padding: 55px 15px 20px 20px; }
    .title_outer { padding-top: 45px; }
    .infograph_grid { padding-top: 45px; }
    .stydy_img { padding: 45px 15px 0; }
    .curve_contebt { padding-bottom: 80px; }
}
@media(max-width: 767px) {
    .page-section, .middle_grid, .gray_bg, .content_section { padding: 40px 0; }
    .newsroom_grid { padding: 50px 0 0; }
    .media_grid { padding: 60px 20px 16px; }
    .border_inner { padding: 40px 10px 16px 15px; }
    .title_outer { padding-top: 35px; }
    .infograph_grid { padding-top: 35px; }
    .stydy_img { padding: 35px 10px 0; }
    .curve_contebt { padding-bottom: 60px; }
    .header { padding: 8px 0 !important; }
    .header.shrink .navbar-brand { max-width: 130px; }
    .btn { letter-spacing: 0; }
}

/* ---- Responsive for new elements ---- */
@media(max-width: 991px) {
    .banner_content { padding: 26px 22px 20px; border-radius: 14px; }
    .loader-logo { width: 96px; height: 96px; }
    .loader-logo img { max-width: 70px; max-height: 52px; }
}
@media(max-width: 767px) {
    .banner_content { padding: 18px 16px 14px; border-radius: 12px; }
    .feature-card { padding: 26px 20px; }
}

/* ---- Accessibility: reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   MODERN v3 — red_curve + red_bg (text merging + counters fix)
   ============================================================ */

/* ---------- CORE EXPERTISE + COUNTERS (red_curve) ---------- */
.red_curve {
    background: linear-gradient(180deg, #f7f8fb 0%, #eef0f5 100%);
    padding: 70px 0 78px;
}
.red_curve::before, .red_curve::after { display: none !important; }
.red_curve .dark_line { position: static; }
.dark_line::before, .dark_line::after,
.curve_contebt::before, .curve_contebt::after { display: none !important; }
.curve_contebt {
    position: static; z-index: auto;
    padding: 0; border: none !important;
    background: transparent;
}
.curve_contebt .row { align-items: center; }
.curve_contebt .about_content { padding-bottom: 0; }

/* Counters ab clean grid — rotate/margin hataya (150+ neeche nahi jayega) */
.counte_grid { transform: none !important; margin: 0 !important; }
.counte_grid ul {
    display: flex; flex-wrap: wrap; gap: 16px;
    justify-content: center; align-items: stretch;
    margin: 0;
}
.counte_grid ul li {
    flex: 1 1 42%; min-width: 150px;
    background: #fff; border-radius: 16px;
    border: 1px solid rgba(20,22,26,.08);
    box-shadow: 0 10px 30px rgba(20,22,26,.08);
    padding: 30px 12px 20px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.counte_grid ul li:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(20,22,26,.16); }
.curv_counter {
    display: flex; align-items: baseline; justify-content: center; gap: 6px;
}
.counte_grid h4, .curv_counter .counter2 { color: #16181d; }
.curv_counter .counter2 { font-size: 44px; font-weight: 800; color: var(--primary); }
.curv_counter h4 { font-size: 44px; font-weight: 800; color: var(--primary); }
.counte_grid ul li p {
    font-size: 13px; color: #6b7280; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.6px;
    margin-top: 8px;
}

/* ---------- SERVICES TABS + COUNTERS (red_bg) ---------- */
.red_bg {
    background: linear-gradient(135deg, #f0445a 0%, #c31329 100%);
    border-top: 5px solid rgba(255,255,255,.14);
}
.pipe_services { border: none !important; padding: 46px 0 20px; }
.pipe_services .tab { display: flex; flex-direction: column; gap: 10px; }
.pipe_services .tab button.tablinks {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; padding: 16px 18px; margin: 0; cursor: pointer;
    transition: background .3s ease, transform .3s ease;
    text-align: left;
}
.pipe_services .tab button.tablinks:hover { background: rgba(255,255,255,.24); transform: translateX(4px); }
.pipe_services .tab button.tablinks.active {
    background: #fff;
    box-shadow: 0 16px 34px rgba(0,0,0,.20);
}
.pipe_services .tab button.tablinks h4 { color: #fff; font-size: 17px; font-weight: 600; max-width: none; }
.pipe_services .tab button.tablinks i { color: rgba(255,255,255,.75); font-size: 15px; }
.pipe_services .tab button.tablinks.active h4,
.pipe_services .tab button.tablinks.active i { color: var(--primary); }

.pipes_img {
    text-align: center; height: 100%;
    border: none !important;
    padding: 46px 0 20px; display: flex; align-items: center; justify-content: center;
}
.pipes_img .tabcontent { width: 100%; }
.buling_design_grid { height: 100%; }
.buling_design_grid::after { display: none !important; }
.buling_design_grid img {
    max-height: 300px; width: auto; border-radius: 16px;
    box-shadow: 0 26px 60px rgba(0,0,0,.30);
    object-fit: contain;
}

/* red_bg counters — clean cards side by side (pas mein nahi mileinge) */
#counter_grid { padding: 20px 0 60px; }
#counter_grid .row { margin-left: -10px; margin-right: -10px; }
#counter_grid .col-xl-4 { padding-left: 10px; padding-right: 10px; margin-bottom: 20px; }
#counter_grid .counter_content {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 16px; padding: 26px 10px;
    box-shadow: 0 12px 26px rgba(0,0,0,.12);
    text-align: center;
}
#counter_grid .count_content { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
#counter_grid .count_content .counter { font-size: 42px; font-weight: 800; color: #fff; }
#counter_grid .count_content span { font-size: 19px; color: #ffd6d9; font-weight: 700; }
#counter_grid .counter_content p {
    font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.4px;
    color: #fff; margin-top: 8px;
}

/* ---------- Clients intro (top_decription) -------- */
.top_decription { border: none !important; padding: 30px 0 10px; }

/* ---------- Responsive for the two fixed sections ---------- */
@media(max-width: 991px) {
    .red_curve, .red_bg { padding-top: 52px; }
    .counte_grid ul li { flex: 1 1 40%; }
    .curv_counter .counter2, .curv_counter h4 { font-size: 34px; }
    .counte_grid ul li p { font-size: 12px; }
    .pipe_services, .pipes_img { padding: 34px 0 10px; }
    .pipes_img img { max-height: 240px; }
    #counter_grid { padding: 26px 0 44px; }
}
@media(max-width: 767px) {
    .red_curve, .red_bg { padding: 40px 0; }
    .counte_grid { margin-top: 26px !important; }
    .counte_grid ul li { flex: 1 1 46%; min-width: 135px; padding: 22px 8px 16px; }
    .curv_counter .counter2, .curv_counter h4 { font-size: 30px; }
    .counte_grid ul li p { font-size: 10.5px; letter-spacing: 1px; }
    .pipe_services .tab button.tablinks { padding: 13px 14px; }
    .pipe_services .tab button.tablinks h4 { font-size: 15px; }
    .pipes_img img { max-height: 190px; }
    #counter_grid .count_content .counter { font-size: 32px; }
    #counter_grid .count_content span { font-size: 15px; }
    .pipes_img { padding: 20px 0 4px; }
}

/* ============================================================
   HOME DETAIL — featured projects / certs strip / latest news
   ============================================================ */
.certs-strip { padding: 60px 0 70px; background: linear-gradient(180deg, #f7f8fb 0%, #ffffff 100%); }
.certs-strip .section-header { margin-bottom: 10px; }
.certs-strip-row { justify-content: center; }
.cert-strip-item {
    text-align: center; padding: 18px 10px; margin-bottom: 20px;
    background: #fff; border: 1px solid rgba(20,22,26,.07);
    border-radius: 14px; box-shadow: 0 8px 24px rgba(20,22,26,.06);
    transition: transform .35s ease, box-shadow .35s ease;
}
.cert-strip-item:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(20,22,26,.13); }
.cert-strip-item a { display: block; text-decoration: none; }
.cert-strip-item img { max-height: 92px; max-width: 120px; object-fit: contain; margin: 0 auto 10px; display: block; }
.cert-strip-title { font-size: 12px; color: #4b5563; font-weight: 600; line-height: 1.35; }

.news-card { overflow: hidden; }
.news-card .news-img, .news-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.news-card a { text-decoration: none; }
.news-card .news-body { padding: 20px; }
.news-date { font-size: 13px; color: #9aa3b2; margin-bottom: 8px; }
.news-date i { color: var(--primary); margin-right: 5px; }
.news-card h5 { font-size: 18px; margin-bottom: 10px; }
.news-card h5 a { color: #222; }
.news-card h5 a:hover { color: var(--primary); }
.news-card p { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 12px; }
.news-link { color: var(--primary); font-weight: 600; font-size: 14px; }
.news-link:hover { color: #c01826; }
.news-home { background: #ffffff; }

@media(max-width: 767px) {
    .certs-strip { padding: 40px 0 48px; }
    .news-card .news-img, .news-card img { height: 180px; }
}

/* ============================================================
   MODERN v4 — red_curve text↔cards merge fix, founder spacing,
   counter grid gutters, header scroll chrome removal
   ============================================================ */

/* ---- CORE EXPERTISE (red_curve) — left text abhi right ke
   cards mein ghus jata tha. Grid columns ko alag karte hain. ---- */
.red_curve .curve_contebt .container > .row > [class*="col-"]:first-child {
    padding-right: 48px; /* left text column — card से अलग */
}
@media(max-width: 991px) {
    .red_curve .curve_contebt .container > .row > [class*="col-"]:first-child { padding-right: 15px; }
}

/* paragraph/text block ke andar vertical breathing */
.red_curve .curve_contebt .about_content p,
.red_curve .curve_contebt .about_content .founder_desc,
.red_curve .curve_contebt .about_content .cur_comon_outer,
.red_curve .curve_contebt .about_content .cur_comon_grid {
    max-width: 100%;
}
/* founder line "1964-2016 Founder of Red Eagle" — neeche thori si
   spacing taake footer line se chipke na lage */
.red_curve .founder_desc { padding-left: 50px; }
.red_curve .founder_desc p { margin-bottom: 4px; }
.red_curve .banner_content.founder_meta,
.red_curve .founder_meta { margin-bottom: 18px; }
.red_curve .(red_curve lion? /* remove empty marker */ {}

/* ---- COUNTER GRIDS — "150+" neeche nahi jayega, cards mein
   aatma *---- */
.counte_grid, .red_curve .counte_grid { margin: 0; }
.counte_grid ul {
    display: flex; flex-wrap: wrap; gap: 18px;
    justify-content: center; align-items: stretch; padding: 0; margin: 0; list-style: none;
}
.counte_grid ul li {
    flex: 1 1 42%; min-width: 155px;
    background: #fff; border-radius: 16px;
    border: 1px solid rgba(20,22,26,.08);
    box-shadow: 0 10px 30px rgba(20,22,26,.08);
    padding: 28px 14px 16px; text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
}
.counte_grid ul li:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(20,22,26,.14); }
.counte_grid ul li .curv_counter { justify-content: center; }
.counte_grid ul li .counter2, .counte_grid ul li h4 { font-size: 42px; font-weight: 800; color: var(--primary); line-height: 1; margin: 0; }
.counte_grid ul li p { font-size: 13px; color: #555; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin: 8px 0 0; }

/* ---- Remove merge artifacts (red_bg counter strip under services) ---- */
red_bg { } /* noop keep */
.red_bg curve_contebt::before, .red_bg curve_contebt::after { display: none !important; }

/* ---- HEADER — scroll pr border na aaye, sirf soft shadow ---- */
.header.shrink { border-bottom: none !important; box-shadow: 0 2px 18px rgba(20,22,26,.06); }
.header { border-bottom: none; }
@media(min-width: 992px) {
    .header.shrink .navbar { padding: 14px 20px; }
}
