/* ============================================
   GLOBAL SHARED COMPONENTS CSS
   ============================================ */

/* ============================================
   ACHIEVEMENT CARD COMPONENT
   ============================================ */
.achievement-card {
    color: white;
    border-radius: 16px;
    padding: 0;
    height: 100%;
    transition: transform 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); */
    border: 1px solid rgba(26, 54, 93, 0.1);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.achievement-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-image img {
    width: 100%;
    height: 100%;
    border-radius: 25px;
    object-fit: cover;
    padding: 15px;
}

.achievement-text {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    /* justify-content: flex-end; */
}

.achievement-text p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    color: black;
}

.achievement-year {
    font-size: 2.25rem;
    font-weight: 700;
    color: #00399E;
    margin-bottom: 12px;
    line-height: 1.2;
    margin-left: 17px;
}

.achievement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievement-list li {
    font-size: 0.85rem;
    line-height: 1.6;
    color: black;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.achievement-list li:before {
    content: "•";
    color: #00399E;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.achievement-list li:last-child {
    margin-bottom: 0;
}

/* ============================================
   ABOUT HERO SECTION COMPONENT
   ============================================ */
.about-hero-section {
    padding: 0 !important;
    color: white;
    position: relative;
    margin-top: 0 !important;
    margin-bottom: 0;
}

.about-hero-section .carousel {
    margin: 0;
    background-color: #00399E;
    position: relative;
}

.about-hero-section .carousel-inner {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background-color: #00399E;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.about-hero-section .carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.about-hero-section .carousel-fade .carousel-item.active,
.about-hero-section .carousel-fade .carousel-item-next.carousel-item-start,
.about-hero-section .carousel-fade .carousel-item-prev.carousel-item-end {
    z-index: 1;
    opacity: 1;
    position: absolute;
}

.about-hero-section .carousel-fade .active.carousel-item-start,
.about-hero-section .carousel-fade .active.carousel-item-end {
    z-index: 0;
    opacity: 0;
    transition: opacity 0s 1.2s;
}

.about-hero-section .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    transition: opacity 1.2s ease-in-out;
}

.about-hero-section .carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    z-index: 1;
}

.about-hero-section .carousel-item .container {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-top: 120px;
    padding-bottom: 80px;
}

.about-hero-content {
    color: white;
}

.about-hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.about-hero-content .subtitle {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================
   GLOBAL HERO SECTION HEIGHT
   Matches FAQs page height for consistency
   Excludes: home page, industrial-business, industrial-commercial
   ============================================ */
.about-hero-section:not(.carousel),
.bess-hero-section,
.contact-hero-section,
.support-hero-section,
.reflex-hero-section,
.cleaning-hero-section,
.ongrid-hero-section,
.hybrid-hero-section,
.intrix-hero-section,
.intrix-lv-hero-section,
.our-story-hero-section,
.blogs-hero-section,
.careers-hero-section,
.projects-hero-section,
.events-hero-section,
.page-hero-section,
.faq-hero-section {
    min-height: 60vh !important;
    padding-top: 120px !important;
    padding-bottom: 80px !important;
}

/* Note: industrial-hero-section, hero-top-section, and hero-image-section are excluded from global height rule */

/* ============================================
   GENERAL BUTTON COMPONENTS
   ============================================ */
.hero-cta-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-learn-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 28px;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-learn-btn:hover {
    background: white;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-cta-arrow {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.hero-explore-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.hero-explore-btn button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.hero-explore-btn button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.hero-explore-btn button i {
    color: #00399E;
    font-size: 1.2rem;
}

.hero-explore-btn span {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    .achievement-image {
        height: 320px;
    }
    
    .achievement-text {
        padding: 15px;
    }
    
    .achievement-text p {
        font-size: 0.8rem;
    }
    
    .achievement-year {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .achievement-list li {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .about-hero-section .carousel-inner {
        min-height: 80vh;
    }
    
    .about-hero-section .carousel-fade .carousel-item {
        min-height: 80vh;
    }
    
    .about-hero-section .carousel-item .container {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .about-hero-content h1 {
        font-size: 3rem;
    }
    
    .about-hero-content .subtitle {
        font-size: 1.1rem;
    }
    
    .hero-learn-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    .hero-cta-arrow {
        width: 35px;
        height: 35px;
    }
    
    .hero-explore-btn button {
        width: 45px;
        height: 45px;
    }
    
    .hero-explore-btn span {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .about-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-hero-content .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-explore-btn button {
        width: 40px;
        height: 40px;
    }
    
    .hero-explore-btn button i {
        font-size: 1rem;
    }
    
    .hero-explore-btn span {
        font-size: 0.75rem;
    }
}

/* ============================================
   CHALLENGE CARD COMPONENT
   ============================================ */
.challenge-card {
    /* background-color: #00399E; */
    color: white;
    border-radius: 12px;
    padding: 30px 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    /* height: 237px; */
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.challenge-card-icon {
    /* width: 60px;
    height: 60px; */
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    /* justify-content: center; */
    /* background-color: rgba(255, 255, 255, 0.1); */
    /* border-radius: 12px; */
}

.challenge-card-icon i {
    font-size: 2rem;
    color: white;
}

.challenge-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* filter: brightness(0) invert(1); */
}

.challenge-card-title {
    font-size: 18px;
    font-weight: 600;
    /* color: white; */
    margin-bottom: 15px;
    line-height: 1.3;
}

.challenge-card-description {
    font-size: 14px;
    /* color: rgba(255, 255, 255, 0.9); */
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* ============================================
   KEY METRIC COMPONENT
   ============================================ */
.key-metric-section {
    padding: 34px 0;
    background-color: white;
    position: relative;
}

.key-metric-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.key-metric-content-wrapper {
    position: relative;
    height: 300px;
    display: flex;
    align-items: flex-end;
}

.key-metric-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.key-metric-number {
    font-size: 5rem;
    font-weight: 700;
    color: #00399E;
    line-height: 1;
    margin-bottom: 10px;
}

.key-metric-label {
    font-size: 1.25rem;
    color: #666;
    font-weight: 500;
}

.key-metric-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 300px;
}

.key-metric-bar {
    flex: 1;
    background-color: #00399E;
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 10px;
    color: white;
    font-weight: 600;
    transition: transform 0.3s ease;
    position: relative;
    border: 1px solid white;
}

.key-metric-bar:hover {
    transform: scaleY(1.05);
}

.key-metric-bar-label {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.key-metric-bar-value {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

/* ============================================
   PROVIDING SOLUTIONS COMPONENT
   ============================================ */
.providing-solutions-section {
    padding: 80px 0;
    background-color: white;
}

.providing-solutions-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00399E;
    margin-bottom: 50px;
    text-align: center;
}

.providing-solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.company-logo-card {
    background-color: white;
    /* border: 1px solid #e0e0e0; */
    border-radius: 12px;
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
    cursor: pointer;
}

.company-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #00399E;
}

.company-logo-card img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    /* filter: grayscale(100%); */
    transition: filter 0.3s ease;
}

.company-logo-card:hover img {
    filter: grayscale(0%);
}

.company-logo-card .company-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00399E;
    text-align: center;
}

/* ============================================
   APPLICATIONS CAROUSEL COMPONENT
   ============================================ */
.applications-section {
    padding: 80px 0;
    background-color: #00399E;
    color: white;
}

.applications-section {
    position: relative;
    overflow: hidden;
}

.applications-section .section-title {
    color: white;
    margin-bottom: 1rem !important;
    text-align: center;
    margin-left: 0 !important;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.applications-section .section-description {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem !important;
    text-align: center;
    margin-left: 0 !important;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.applications-carousel-wrapper {
    position: relative;
    margin-top: 2rem;
}

.applications-carousel-nav {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

/* Responsive alignment for applications carousel nav */
@media (min-width: 1200px) {
    .applications-carousel-nav {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (min-width: 1400px) {
    .applications-carousel-nav {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (min-width: 1920px) {
    .applications-carousel-nav {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 991px) {
    .applications-carousel-nav {
        left: 50%;
        transform: translateX(-50%);
        top: -50px;
    }
}

.applications-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid white;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    padding: 0;
    position: relative;
}

.applications-nav-btn:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.applications-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.applications-nav-btn i {
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    line-height: 1;
}

.applications-nav-btn .fa-arrow-left {
    transform: translate(-50%, -50%) translateX(-1px);
}

.applications-nav-btn .fa-arrow-right {
    transform: translate(-50%, -50%) translateX(1px);
}

.applications-carousel-content {
    overflow: visible;
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
}

.applications-nav-btn.carousel-control-prev,
.applications-nav-btn.carousel-control-next {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: 50px;
    height: 50px;
    opacity: 1;
}

.applications-nav-btn .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.application-card {
    background-color: white;
    color: #333;
    border-radius: 16px;
    border: none;
    padding: 0;
    height: 100%;
    min-height: 500px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.application-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00399E 0%, #0066FF 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* .application-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 57, 158, 0.25);
} */

.application-card:hover::before {
    opacity: 1;
}

.application-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #00399E 0%, #0066FF 100%);
}

.application-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 57, 158, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.application-card:hover .application-image::after {
    opacity: 1;
}

.application-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.application-card:hover .application-image img {
    transform: scale(1.1);
}

.application-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: white;
}

.application-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #00399E;
    margin-bottom: 15px;
    flex-shrink: 0;
    letter-spacing: -0.3px;
    transition: color 0.3s ease;
}

.application-card:hover .application-title {
    color: #0066FF;
}

.application-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-bottom: 0;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* ============================================
   RESPONSIVE STYLES FOR NEW COMPONENTS
   ============================================ */
@media (max-width: 768px) {
    .challenge-card {
        padding: 25px 20px;
    }
    
    .challenge-card-icon {
        width: 50px;
        height: 50px;
    }
    
    .challenge-card-icon i {
        font-size: 1.5rem;
    }
    
    .challenge-card-title {
        font-size: 1.1rem;
    }
    
    .challenge-card-description {
        font-size: 0.9rem;
    }
    
    .key-metric-section {
        padding: 60px 0;
    }
    
    .key-metric-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .key-metric-content-wrapper {
        height: auto;
        min-height: 200px;
        padding: 20px 0;
        align-items: flex-start;
    }
    
    .key-metric-number {
        font-size: 4rem;
    }
    
    .key-metric-label {
        font-size: 1.1rem;
    }
    
    .key-metric-chart {
        height: 250px;
        width: 100%;
        gap: 8px;
    }
    
    .key-metric-bar {
        padding: 12px 8px;
        min-width: 0;
    }
    
    .providing-solutions-title {
        font-size: 2rem;
    }
    
    .providing-solutions-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .company-logo-card {
        min-height: 120px;
        padding: 20px 15px;
    }
    
    .applications-carousel-wrapper {
        margin-top: 2rem;
    }
    
    .applications-carousel-nav {
        top: -74px;
        left: 15px;
    }
    
    .applications-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        background: transparent;
        border: 2px solid white;
        color: white;
    }
    
    .applications-nav-btn i {
        color: white;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: block;
        line-height: 1;
    }
    
    .applications-nav-btn .fa-arrow-left {
        transform: translate(-50%, -50%) translateX(-1px);
    }
    
    .applications-nav-btn .fa-arrow-right {
        transform: translate(-50%, -50%) translateX(1px);
    }
    
    .application-image {
        height: 200px;
    }
    
    .application-content {
        padding: 20px;
    }
    
    .application-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .key-metric-section {
        padding: 40px 0;
    }
    
    .key-metric-content-wrapper {
        height: auto;
        min-height: 150px;
        padding: 15px 0;
        align-items: flex-start;
    }
    
    .key-metric-number {
        font-size: 3rem;
    }
    
    .key-metric-label {
        font-size: 1rem;
    }
    
    .key-metric-chart {
        height: 200px;
        gap: 6px;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .key-metric-bar {
        padding: 12px 6px;
        min-width: 0;
        flex: 1 1 0;
    }
    
    .key-metric-bar-label {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }
    
    .key-metric-bar-value {
        font-size: 1rem;
    }
    
    .key-metric-section .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .key-metric-section .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }
    
    .key-metric-section .col-md-6 {
        padding-left: 15px;
        padding-right: 15px;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .key-metric-section .key-metric-chart {
        overflow: hidden;
    }
    
    .providing-solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .company-logo-card {
        min-height: 100px;
        padding: 15px 10px;
    }
}

/* Fix alignment for 1024px resolution */
@media (min-width: 768px) and (max-width: 1024px) {
    .key-metric-section {
        overflow: hidden;
    }
    
    .key-metric-section .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        width: 100%;
    }
    
    .key-metric-section .row {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .key-metric-section .col-md-6 {
        padding-left: 15px;
        padding-right: 15px;
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .key-metric-wrapper {
        gap: 30px;
    }
    
    .key-metric-chart {
        gap: 6px;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .key-metric-bar {
        padding: 12px 8px;
        min-width: 0;
        flex: 1 1 0;
    }
    
    .key-metric-bar-label {
        font-size: 0.8rem;
    }
    
    .key-metric-bar-value {
        font-size: 1.2rem;
    }
}

/* Ensure bottom alignment for screens up to 1440px */
@media (max-width: 1440px) {
    .key-metric-content-wrapper {
        align-items: flex-end !important;
    }
}

