/* Application Template Styles */

/* Base styles */
body.application-page {
    padding-top: 0 !important;
}

body.application-page.padded {
    padding-top: 0 !important;
}

/* Hero Section */
.application-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
}

/* Fallback hero without background image */
.application-hero-fallback {
    background: linear-gradient(135deg, #383838 0%, #666666 100%);
    height: 60vh;
    min-height: 400px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    color: white;
    align-items: flex-start;
    padding-top: 8rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Grey sections */
.grey-section {
    background-color: #EBEBEB;
}

/* Feature Block Section */
#feature-block {
    position: relative;
}

.feature-description h3 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #383838;
}

.feature-description {
    font-size: 1.125rem;
    line-height: 1.6;

}

.feature-image {
    position: relative;
}

.feature-image img {
    border-radius: 8px;
}

/* Application Features Section */
#application-features {
    background-color: #FAFAFA;
}

.excellence-heading {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: #383838;
    text-align: center;
}


/* Application Features Section - Bootstrap Accordion Customization */
#applicationFeaturesAccordion {
    --bs-accordion-border-width: 0;
    --bs-accordion-border-radius: 0;
    --bs-accordion-bg: transparent;
}

#applicationFeaturesAccordion .accordion-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
}

#applicationFeaturesAccordion .accordion-item:hover {
    border-radius: 0 !important;
}

#applicationFeaturesAccordion .accordion-item:last-child {
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
}

#applicationFeaturesAccordion .accordion-button {
    background-color: transparent;
    border: none;
    padding: 1.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    text-align: left;
    box-shadow: none;
    position: relative;
}

#applicationFeaturesAccordion .accordion-button:not(.collapsed) {
    background-color: transparent;
    color: #333;
    box-shadow: none;
}

#applicationFeaturesAccordion .accordion-button.collapsed {
    color: #666;
}

#applicationFeaturesAccordion .accordion-button:focus {
    border-color: transparent;
    box-shadow: none;
}

#applicationFeaturesAccordion .accordion-button::after {
    content: '+';
    background-image: none;
    width: 32px;
    height: 32px;
    background-color: transparent;
    border: 1px solid #E35205;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    flex-shrink: 0;
}

#applicationFeaturesAccordion .accordion-button:not(.collapsed)::after {
    content: '-';
    transform: none;
}

#applicationFeaturesAccordion .accordion-body {
    padding: 0;
    color: #666;
    line-height: 1.6;
    text-align: left;
}

#applicationFeaturesAccordion .accordion-collapse {
    background-color: transparent !important;
}

.application-feature-details {
    display: none;
    position: relative;
    height: 100%;
    background-color: transparent !important;
}

.application-feature-details.active {
    display: flex;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.application-feature-details img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Override grey background from products page CSS */
#application-features .app-feature-text {
    background-color: transparent !important;
}

#application-features .application-features {
    background-color: transparent !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Geological mesh visualization */
.img-box {
    position: relative;
    min-height: 400px;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}


/* Software Suite Section */
.software-suite-heading {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: #383838;
}

.software-suite-subheading {
    font-size: 1.25rem;
    line-height: 1.4;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.software-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 2rem 0;
}

.software-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    cursor: pointer;
    min-width: 140px;
}

.software-item:hover {
    transform: translateY(-5px);
    color: inherit;
    text-decoration: none;
}

.software-item:hover .software-icon svg {
    border-color: #E35205;
}

.software-icon {
    margin-bottom: 0.75rem;
}

.software-icon svg {
    width: 100px;
    height: 100px;
    /* filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.15)); */
    border: 3px solid transparent;
    border-radius: 8px;
    box-sizing: content-box;
    transition: border-color 0.2s ease;
}

.software-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    color: #7a7a7a;
}

.software-item:hover .software-title {
    color: #383838;
}

/* Ensure links don't have underlines */
.software-item {
    text-decoration: none !important;
}

.software-item:hover,
.software-item:focus {
    text-decoration: none !important;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-content {
        padding-top: 6rem;
    }
    
    .feature-heading,
    .excellence-heading,
    .software-suite-heading {
        font-size: 2rem;
    }
    
    .img-box {
        min-height: 300px;
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .application-hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-content {
        padding-top: 4rem;
    }
    
    .feature-heading,
    .excellence-heading,
    .software-suite-heading {
        font-size: 1.75rem;
    }
    
    .software-item {
        min-width: 100px;
    }
    
    .software-icon svg {
        width: 70px;
        height: 70px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .feature-card-content,
    .feature-card-icon,
    .software-item {
        transition: none;
    }
}

/* Focus styles for keyboard navigation */
.software-item:focus {
    outline: 2px solid #E35205;
    outline-offset: 4px;
    border-radius: 8px;
}

/* Animation styles - Optional fade-in on scroll */
#feature-block.animate-in,
#excellence-section.animate-in,
#software-suite.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    .application-hero {
        height: auto;
        min-height: auto;
        page-break-inside: avoid;
    }
    
    .hero-overlay {
        display: none;
    }
    
    .feature-card-content {
        max-height: none !important;
        padding: 1rem 1.5rem !important;
    }
    
    /* Show all content in print */
    #feature-block,
    #excellence-section,
    #software-suite {
        opacity: 1 !important;
        transform: none !important;
    }
}
