/* --- 1. Foundational Styles & Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --brand-red: #fd1900;
    --dark-gray: #333333;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --border-color: #eaeaea;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-gray);
    background-color: var(--white);
    line-height: 1.6;
}

main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* --- 2. Animations --- */
@keyframes fadeInFromBottom {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 3. Header & Navigation --- */
header {
    background-color: var(--white);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

header .logo img {
    height: 50px;
}

#desktop-navigation {
    list-style-type: none;
    display: flex;
    gap: 2rem;
}

#desktop-navigation li {
    position: relative;
}

#desktop-navigation a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 600;
    padding-bottom: 8px;
    transition: color 0.3s ease;
}

#desktop-navigation a:hover {
    color: var(--brand-red);
}

#desktop-navigation li.active-link a {
    color: var(--brand-red);
}

#desktop-navigation li.active-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--brand-red);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#search-icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

#search-icon-button svg {
    width: 24px;
    height: 24px;
    fill: var(--dark-gray);
}

/* --- 4. Hero & Page Covers --- */
@keyframes fadeInFromBottom {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    color: var(--white);
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    display: grid;
    align-items: center;
    justify-items: start;
}

.slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.slide-bg {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.slide-text {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    padding: 2rem 5%;
    text-align: left;
}

.slide.active .slide-text h1,
.slide.active .slide-text p,
.slide.active .slide-button-wrapper {
    opacity: 0;
    animation: fadeInFromBottom 1.2s ease-out forwards;
}
.slide.active .slide-text p {
    animation-delay: 0.2s;
}
.slide.active .slide-button-wrapper {
    animation-delay: 0.4s;
}

.slide-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.slide-text p {
    font-size: 1.2rem;
    font-weight: 400;
}

.slide-button-wrapper {
    margin-top: 1.5rem;
}
.slide-button {
    display: inline-block;
    background-color: var(--brand-red);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.slide-button:hover {
    background-color: #d11500;
    transform: translateY(-3px);
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 1rem;
}
.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.dot.active, .dot:hover {
    background-color: var(--brand-red);
}

/* Static Cover on other pages */
.full-width-cover {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}
.full-width-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}
.cover-title {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 900px;
    padding: 2rem 5%;
    text-align: left;
}
.cover-title h1, .cover-title p {
    opacity: 0;
    animation: fadeInFromBottom 1.2s ease-out forwards;
}
.cover-title p {
    animation-delay: 0.2s;
}
.cover-title h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.cover-title p {
    font-size: 1.2rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .slide, .full-width-cover {
        justify-items: center; /* This applies to grid items (.slide) */
        justify-content: center; /* This applies to flex items (.full-width-cover) */
    }
    .slide-text, .cover-title {
        text-align: center;
        padding: 2rem;
        max-width: 90%;
    }
    .slide-text h1, .cover-title h1 {
        font-size: 2.5rem;
    }
}

/* --- 5. Page-Specific Sections --- */
.page-intro {
    text-align: center;
    max-width: 900px;
    margin: 3rem auto 3rem auto;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}
#solutions-showcase h2, #about-page h1, #contact-page h1, #legal-page h1, #search-results-page h1 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Solution & Industry Cards */
.solutions-grid, .solutions-container, .industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.solution-block, .industry-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
    border-top: 5px solid var(--brand-red); /* Applied to both */
}
.solution-block:hover, .industry-card:hover {
    transform: scale(1.03); /* Applied to both */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15); /* Applied to both */
}
.solution-block h3, .solution-block h2, .industry-card h3 {
    color: var(--dark-gray);
}
.solution-block p, .industry-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* New Section Separator */
.section-separator {
    width: 100%;
    height: 1px;
    border: 0;
    margin: 4rem 0;
    background-image: linear-gradient(to right, transparent, var(--border-color), transparent);
}

/* --- New Benefits Section Design --- */
.benefits-section {
    text-align: center;
}
.benefits-section h2 {
    margin-bottom: 2rem;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}
.benefit-item {
    position: relative; /* Needed for the background icon */
    background-color: var(--light-gray);
    border-radius: 8px;
    overflow: hidden; /* Keeps everything inside the rounded corners */
    border-bottom: 5px solid var(--brand-red);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.benefit-bg-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.05;
}
.benefit-bg-icon svg {
    width: 150px;
    height: 150px;
    fill: var(--dark-gray);
}
.benefit-header {
    background-color: var(--dark-gray); /* Changed to dark gray */
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 2;
}
.benefit-header h4 {
    color: var(--white);
    margin: 0;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
}
.benefit-body {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}
.benefit-body p {
    margin: 0;
}

/* --- 6. Forms & Buttons --- */
.read-more-btn, .cta-button {
    display: inline-block;
    background-color: var(--brand-red);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}
.read-more-btn {
    align-self: flex-start;
}
.cta-button {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}
.read-more-btn:hover, .cta-button:hover {
    background-color: #d11500;
}
#contact-form {
    margin-top: 2rem;
    text-align: left;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--brand-red);
}

/* --- 7. Footer --- */
#main-footer {
    background-color: var(--dark-gray);
    color: #a0a0a0;
    padding: 4rem 2rem 0;
    margin-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 3rem;
}
.footer-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.footer-logo {
    height: 60px;
    flex-shrink: 0;
}
.footer-branding p {
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
}
.footer-social {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.footer-social a svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
    transition: fill 0.3s ease;
}
.footer-social a:hover svg {
    fill: var(--brand-red);
}
.footer-column h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.footer-column ul {
    list-style-type: none;
}
.footer-column ul li {
    margin-bottom: 0.5rem;
}
.footer-column ul a, .footer-column p a {
    text-decoration: none;
    color: #a0a0a0;
    transition: color 0.3s ease;
}
.footer-column ul a:hover, .footer-column p a:hover {
    color: var(--brand-red);
}
.footer-bottom {
    border-top: 1px solid #444;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}
.footer-legal-links {
    margin-top: 0.75rem;
}
.footer-legal-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-legal-links a:hover {
    color: var(--brand-red);
}
.footer-legal-links span {
    margin: 0 0.5rem;
    color: #555;
}

/* --- 8. Overlays & Modals --- */
#search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#search-overlay.is-visible {
    display: flex;
    opacity: 1;
}
#search-close-button {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 3rem;
    color: var(--dark-gray);
    cursor: pointer;
}
.search-modal-content {
    text-align: center;
}
.search-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
}
.search-form input {
    flex-grow: 1;
    border: 2px solid var(--dark-gray);
    background-color: var(--white);
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    outline: none;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}
.search-form input:focus {
    border-color: var(--brand-red);
}
.search-form button {
    background-color: var(--brand-red);
    color: var(--white);
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}
.search-form button:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

/* --- 9. Mobile & Responsive Styles --- */
#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
#mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 5px 0;
}
#mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--dark-gray);
    z-index: 1000;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out, visibility 0.3s;
    visibility: hidden;
}
#mobile-menu-panel.is-open {
    transform: translateX(0);
    visibility: visible;
}
#mobile-panel-close-button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
}
.mobile-search-form {
    display: flex;
    gap: 0.5rem;
}
.mobile-search-form input {
    width: 100%;
    border: 1px solid #666;
    background: #444;
    color: var(--white);
    border-radius: 5px;
    padding: 0.75rem;
    font-size: 1rem;
}
.mobile-search-form button {
    background-color: var(--brand-red);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 0 1rem;
    cursor: pointer;
}
.menu-separator {
    width: 100%;
    height: 1px;
    border: 0;
    margin: 1.5rem 0;
    background-image: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
#mobile-navigation {
    list-style-type: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}
#mobile-navigation li a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.75rem 0;
}
#mobile-navigation li a:hover {
    color: var(--brand-red);
}
.mobile-menu-social {
    text-align: center;
}
.mobile-menu-social p {
    color: #a0a0a0;
    margin-bottom: 1rem;
}
.mobile-menu-social .footer-social {
    justify-content: center;
}

@media (max-width: 768px) {
    #desktop-navigation, #search-icon-button {
        display: none;
    }
    #mobile-menu-toggle {
        display: block;
    }
    .slide, .full-width-cover {
        justify-items: center;
    }
    .slide-text, .cover-title {
        text-align: center;
        padding: 2rem;
        max-width: 90%;
    }
    .slide-text h1, .cover-title h1 {
        font-size: 2.5rem;
    }
    .search-form {
        flex-direction: column;
        max-width: 90%;
    }
    .search-form input, .search-form button {
        width: 100%;
    }
}
@media (min-width: 769px) {
    #desktop-navigation {
        display: flex;
    }
    #search-icon-button {
        display: block;
    }
    #mobile-menu-toggle {
        display: none;
    }
}
/* --- About Page Themed Sections --- */
#about-page-intro {
    max-width: 900px;
    margin: 0 auto;
}

.value-section {
    width: 100%;
    padding: 4rem 2rem;
    margin-top: 3rem;
}

.value-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.value-icon {
    flex-shrink: 0;
}

.value-icon svg {
    width: 80px;
    height: 80px;
}

.value-section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.value-section p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Color Schemes */
.dark-section {
    background-color: var(--dark-gray);
    color: var(--light-gray);
}
.dark-section h2, .dark-section .value-icon {
    color: var(--white);
}

.light-section {
    background-color: var(--light-gray);
    color: var(--dark-gray);
}
.light-section h2, .light-section .value-icon {
    color: var(--brand-red);
}

.brand-section {
    background-color: var(--brand-red);
    color: var(--white);
}
.brand-section h2, .brand-section .value-icon {
    color: var(--white);
}

/* Reverse layout for the middle section */
.light-section .value-content {
    flex-direction: row-reverse;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .value-content {
        flex-direction: column;
        text-align: center;
    }
    .light-section .value-content {
        flex-direction: column; /* Keep column layout */
    }
    .value-icon {
        margin-bottom: 1.5rem;
    }
}
/* --- About Page Values Grid --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-block {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border-top: 5px solid var(--brand-red);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.value-block:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.value-block h2 {
    color: var(--brand-red);
    text-align: center;
    margin-bottom: 1.5rem;
}

.value-block p {
    line-height: 1.8;
}
/* --- Sub-Navigation Bar --- */
.sub-nav-container {
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 83px; /* Height of your main header */
    z-index: 999; /* Below the main header */
}

.sub-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.sub-nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.sub-nav ul a {
    display: block;
    padding: 1rem 0.5rem;
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.sub-nav ul a:hover {
    color: var(--brand-red);
}

.sub-nav ul a.active {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
}

@media (max-width: 768px) {
    .sub-nav-container {
        top: 82px; /* Adjust for mobile header height */
    }
    .sub-nav ul {
        justify-content: space-around;
        gap: 0.5rem;
    }
    .sub-nav ul a {
        padding: 1rem 0.2rem;
        font-size: 0.9rem;
    }
}
/* --- Leadership Page --- */
.message-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    background-color: var(--light-gray);
    padding: 3rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.message-profile {
    text-align: center;
}

.message-profile img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--brand-red);
    margin-bottom: 1rem;
}

.message-profile h3 {
    margin-bottom: 0.25rem;
}

.profile-title {
    color: #555;
    font-weight: 600;
}

.message-text h2 {
    color: var(--brand-red);
    margin-top: 0;
}

.message-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .message-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }
    .message-text {
        text-align: left;
    }
}
/* --- Leadership Team Section --- */
.leadership-team-section {
    text-align: center;
}

.leadership-team-section .page-intro {
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    border: 4px solid var(--light-gray);
}

.team-member-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

/* Simplified style for the single-line title */
.team-member-card p {
    color: var(--brand-red);
    font-weight: 600;
    min-height: 2.4em; /* Ensures consistent vertical alignment */
}
/* --- Newsroom Page "Coming Soon" --- */
.coming-soon-container {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--light-gray);
    border-radius: 8px;
    margin-top: 2rem;
}

.coming-soon-icon svg {
    width: 60px;
    height: 60px;
    fill: var(--brand-red);
    margin-bottom: 1.5rem;
}

.coming-soon-container h2 {
    color: var(--dark-gray);
    font-size: 2rem;
}

.coming-soon-container p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}
/* --- Careers Page --- */
.job-listings {
    display: grid;
    gap: 1.5rem;
}

.job-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--brand-red); /* Added red top border */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added transition */
}

.job-card:hover {
    transform: scale(1.03); /* Added zoom effect */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15); /* Increased drop shadow */
}

.job-card h3 {
    margin-bottom: 0.25rem;
}

.job-card span {
    display: block;
    color: #555;
    font-weight: 600;
    margin-bottom: 1rem;
}

.job-card p {
    margin-bottom: 1.5rem;
}

.view-details-btn { /* Renamed from apply-now-btn for clarity */
    display: inline-block;
    background-color: var(--brand-red);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}
.view-details-btn:hover {
    background-color: #d11500;
}

.application-info {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* --- Job Modals (Details & Application) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}
.modal-overlay.is-visible {
    display: flex;
    opacity: 1;
}
.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
}
.modal-content h2 {
    margin-top: 0;
}
#modal-job-title {
    color: var(--brand-red);
    margin-bottom: 2rem;
}
#application-form input[type="file"] {
    padding: 0.5rem;
}
.job-details-content {
    text-align: left;
}
.job-details-content h2 {
    margin-top: 0;
}
.job-details-content span {
    display: block;
    color: #555;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.job-details-content h4 {
    color: var(--brand-red);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.job-details-content ul {
    list-style-position: inside;
    padding-left: 0;
}
.job-details-content li {
    margin-bottom: 0.5rem;
}
.job-details-content .apply-now-btn {
    margin-top: 2rem;
    display: inline-block;
    background-color: var(--brand-red);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}
.job-details-content .apply-now-btn:hover {
    background-color: #d11500;
}
/* --- Innovations Page --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--brand-red); /* Add this line */
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon svg {
    width: 50px;
    height: 50px;
    fill: var(--brand-red);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}
/* --- OSIRIS Architecture Page (Enhanced) --- */
.text-center {
    text-align: center;
}
.diagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: center;
}
/* Two Cards Section with Animated Infinity Link */
.osiris-layers-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 3rem 0;
}
.layer-card {
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    min-width: 250px;
    z-index: 2;
}
.layer-card h3 {
    margin: 0;
    color: var(--brand-red);
}
@keyframes flow {
    to { stroke-dashoffset: -160; }
}
.infinity-link.animated {
    width: 100px;
    margin: 0 -20px;
    z-index: 1;
}
.infinity-link.animated svg {
    overflow: visible;
}
.infinity-link.animated .infinity-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 3;
}
.infinity-link.animated .infinity-flow {
    fill: none;
    stroke: var(--brand-red);
    stroke-width: 3;
    stroke-dasharray: 8;
    stroke-dashoffset: 0;
    animation: flow 4s linear infinite;
}

/* Pyramid Section */
.pyramid-visualization-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: flex-end;
    min-height: 300px;
}
.pyramid-labels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-end;
    height: 300px;
}
.pyramid-label-item {
    text-align: right;
    padding-right: 1.5rem;
    border-right: 2px solid var(--border-color);
}
.pyramid-label-item h4 {
    margin: 0 0 0.5rem 0;
}
.pyramid-label-item p {
    font-size: 0.9rem;
    color: #555;
    opacity: 0.7;
    transform: scale(0.98);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.pyramid-visualization-wrapper:hover .pyramid-label-item p {
    opacity: 1;
    transform: scale(1);
}
.pyramid-container-visual {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
}
.pyramid-layer-visual {
    position: relative;
    background-color: var(--dark-gray);
    transition: all 0.3s ease;
}
.pyramid-container-visual:hover .pyramid-layer-visual {
    background-color: var(--brand-red);
}
.deploy-layer {
    height: 60px; /* 20% of 300px */
    width: 120px;
    clip-path: polygon(50% 100%, 100% 0, 0 0); /* Corrected triangle */
}
.analyze-layer {
    height: 90px; /* 30% of 300px */
    width: 240px;
    clip-path: polygon(25% 100%, 100% 0, 0 0, 0 0);
    transform: perspective(10px) rotateX(1deg); /* Slight 3D effect */
    margin-bottom: -1px;
}
.learn-layer {
    height: 150px; /* 50% of 300px */
    width: 360px;
    clip-path: polygon(16.67% 100%, 100% 0, 0 0, 0 0);
    transform: perspective(15px) rotateX(1deg); /* Slight 3D effect */
    margin-bottom: -1px;
}


/* UserView Section */
@keyframes rotate-reverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}
.app-visualizer-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 360px;
}
.app-visualizer {
    position: relative;
    width: 300px;
    height: 300px;
}
.app-ring {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: rotate 60s linear infinite;
}
.app-ring.ring2 {
    width: 70%;
    height: 70%;
    top: 15%; left: 15%;
    animation: rotate-reverse 45s linear infinite;
}
.app-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.app-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--brand-red);
}
.ring1 .app-icon:nth-child(1) { top: -30px; left: calc(50% - 30px); }
.ring1 .app-icon:nth-child(2) { top: calc(25% - 30px); right: -15px; }
.ring1 .app-icon:nth-child(3) { top: calc(75% - 30px); right: -15px; }
.ring1 .app-icon:nth-child(4) { bottom: -30px; left: calc(50% - 30px); }
.ring1 .app-icon:nth-child(5) { top: calc(75% - 30px); left: -15px; }
.ring1 .app-icon:nth-child(6) { top: calc(25% - 30px); left: -15px; }
.ring2 .app-icon:nth-child(1) { top: -30px; left: calc(50% - 30px); }
.ring2 .app-icon:nth-child(2) { right: -30px; top: calc(50% - 30px); }
.ring2 .app-icon:nth-child(3) { bottom: -30px; left: calc(50% - 30px); }
.ring2 .app-icon:nth-child(4) { left: -30px; top: calc(50% - 30px); }
.ring2 .app-icon:nth-child(5) { top: 15%; left: 15%; }
/* --- Innovations Benefits Page --- */
.benefits-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.benefit-card {
    position: relative; /* Needed for the background icon */
    background-color: var(--light-gray);
    border-radius: 8px;
    overflow: hidden; /* Keeps everything inside the rounded corners */
    border-bottom: 5px solid var(--brand-red);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.benefit-card-bg-icon {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.05;
}

.benefit-card-bg-icon svg {
    width: 150px;
    height: 150px;
    fill: var(--dark-gray);
}

.benefit-card-header {
    background-color: var(--dark-gray); /* Changed from --brand-red */
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 2;
}

.benefit-card-header h3 {
    color: var(--white);
    margin: 0;
    text-align: center;
}

.benefit-card-body {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}
/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.contact-details h3 {
    color: var(--brand-red);
    margin-bottom: 1rem;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    margin-bottom: 0.75rem;
}

.contact-list a {
    color: var(--brand-red);
    font-weight: 600;
    text-decoration: none;
}
.contact-list a:hover {
    text-decoration: underline;
}

.contact-form-container {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
}
/* --- Contact Page Icon Fix --- */
.contact-details .footer-social a svg {
    fill: var(--dark-gray);
}
/* --- Homepage Extra Sections --- */
#home-approach, #home-industries {
    padding: 3rem 0;
}

#home-approach h2, #home-industries h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Approach Section */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
}

.approach-icon svg {
    width: 50px;
    height: 50px;
    fill: var(--brand-red);
    margin-bottom: 1rem;
}

.approach-item h3 {
    margin-bottom: 0.5rem;
}

/* Industries Section */
.home-industries-grid {
    display: grid;
    /* This will create 3 equal columns */
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.industry-link-card {
    display: block;
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-gray);
    border-left: 5px solid var(--border-color);
    transition: all 0.3s ease;
}

.industry-link-card:hover {
    border-left-color: var(--brand-red);
    background-color: var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.industry-link-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.industry-link-card span {
    font-weight: 600;
    color: var(--brand-red);
}
/* --- OSIRIS Pyramid Visualization --- */
.pyramid-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pyramid-layer {
    position: relative;
    height: 100px; /* Height of each layer */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s ease;
}

.pyramid-layer:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    box-shadow: 0 0 20px var(--brand-red);
}

/* Creating the pyramid shape with clip-path */
.deploy-layer {
    width: 120px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%);
    background-color: var(--dark-gray);
}
.analyze-layer {
    width: 240px;
    margin-top: -1px; /* Overlap borders */
    clip-path: polygon(12.5% 0%, 87.5% 0%, 100% 100%, 0% 100%);
    background-color: #6c757d;
}
.learn-layer {
    width: 360px;
    margin-top: -1px; /* Overlap borders */
    clip-path: polygon(8.33% 0%, 91.67% 0%, 100% 100%, 0% 100%);
    background-color: var(--dark-gray);
}
/* --- Interactive Pyramid Section --- */
.pyramid-section-interactive {
    padding: 2rem 0;
}

.pyramid-container-interactive {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.pyramid-layer-interactive {
    position: relative;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    background-color: var(--dark-gray);
    transition: background-color 0.3s ease;
    margin-bottom: -1px; /* Overlap layers slightly */
}

.pyramid-layer-interactive:hover {
    background-color: var(--brand-red);
}

.deploy-layer {
    width: 120px;
    height: 80px; /* Adjusted height for triangle */
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.analyze-layer {
    width: 240px;
    height: 90px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%);
}
.learn-layer {
    width: 360px;
    height: 150px;
    clip-path: polygon(16.67% 0%, 83.33% 0%, 100% 100%, 0% 100%);
}

.layer-popup {
    position: absolute;
    bottom: 105%; /* Position above the layer */
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    background-color: var(--brand-red);
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 400;
}

.pyramid-layer-interactive:hover .layer-popup {
    opacity: 1;
    visibility: visible;
}

/* Arrow for the popup */
.layer-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--brand-red) transparent transparent transparent;
}
/* --- OSIRIS Architecture Page (Final) --- */
.text-center {
    text-align: center;
}
.diagram-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    margin-top: 1.5rem;
}

/* Two Cards Section with Animated Infinity Link */
.osiris-layers-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 3rem 0;
}
.layer-card {
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    min-width: 250px;
    z-index: 2;
}
.layer-card h3 {
    margin: 0;
    color: var(--brand-red);
}
@keyframes flow {
    to { stroke-dashoffset: -160; }
}
.infinity-link.animated {
    width: 100px;
    margin: 0 -20px;
    z-index: 1;
}
.infinity-link.animated svg {
    overflow: visible;
}
.infinity-link.animated .infinity-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 3;
}
.infinity-link.animated .infinity-flow {
    fill: none;
    stroke: var(--brand-red);
    stroke-width: 3;
    stroke-dasharray: 8;
    stroke-dashoffset: 0;
    animation: flow 4s linear infinite;
}

/* Side-by-Side Diagram Grid */
.diagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: center;
}

/* Pyramid Section */
.pyramid-wrapper {
    position: relative;
    height: 300px; /* Total height of pyramid */
}
.pyramid-container-final, .pyramid-labels-final {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 360px; /* Width of the base */
    height: 100%;
}
.pyramid-layer-final {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark-gray);
    transition: background-color 0.3s ease;
}
.pyramid-container-final:hover .pyramid-layer-final {
    background-color: var(--brand-red);
}
.learn-layer {
    height: 150px; /* 50% */
    width: 360px;
    clip-path: polygon(16.67% 0%, 83.33% 0%, 100% 100%, 0% 100%);
}
.analyze-layer {
    height: 240px; /* 50% + 30% */
    width: 240px;
    clip-path: polygon(12.5% 37.5%, 87.5% 37.5%, 100% 100%, 0% 100%);
}
.deploy-layer {
    height: 300px; /* 100% */
    width: 120px;
    clip-path: polygon(0% 80%, 100% 80%, 50% 100%);
}
.pyramid-labels-final span {
    position: absolute;
    left: -10px;
    transform: translateX(-100%);
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}
.label-learn { top: 225px; /* 150/2 + 150 */ }
.label-analyze { top: 105px; /* 90/2 + 60 */ }
.label-deploy { top: 30px; /* 60/2 */ }

/* UserView Section */
@keyframes rotate-reverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}
.app-visualizer-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 360px;
}
.app-visualizer {
    position: relative;
    width: 300px;
    height: 300px;
}
.app-ring {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: rotate 60s linear infinite;
}
.app-ring.ring2 {
    width: 70%;
    height: 70%;
    top: 15%; left: 15%;
    animation: rotate-reverse 45s linear infinite;
}
.app-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.app-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--brand-red);
}
.ring1 .app-icon:nth-child(1) { top: -30px; left: calc(50% - 30px); }
.ring1 .app-icon:nth-child(2) { top: calc(25% - 30px); right: -15px; }
.ring1 .app-icon:nth-child(3) { top: calc(75% - 30px); right: -15px; }
.ring1 .app-icon:nth-child(4) { bottom: -30px; left: calc(50% - 30px); }
.ring1 .app-icon:nth-child(5) { top: calc(75% - 30px); left: -15px; }
.ring1 .app-icon:nth-child(6) { top: calc(25% - 30px); left: -15px; }
.ring2 .app-icon:nth-child(1) { top: -30px; left: calc(50% - 30px); }
.ring2 .app-icon:nth-child(2) { right: -30px; top: calc(50% - 30px); }
.ring2 .app-icon:nth-child(3) { bottom: -30px; left: calc(50% - 30px); }
.ring2 .app-icon:nth-child(4) { left: -30px; top: calc(50% - 30px); }
.ring2 .app-icon:nth-child(5) { top: 15%; left: 15%; }
/* --- OSIRIS Visualization Section --- */
.osiris-visualization-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
    margin: 3rem 0;
}

.desc-block {
    padding: 1.5rem;
}
.desc-left {
    text-align: right;
}
.desc-right {
    text-align: left;
}

.desc-block h3 {
    color: var(--brand-red);
    margin-bottom: 0.5rem;
}

.video-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    line-height: 0; /* Fixes extra space below video */
}

.video-container video {
    width: 100%;
    display: block;
}

@media (max-width: 992px) {
    .osiris-visualization-container {
        grid-template-columns: 1fr;
    }
    .desc-left, .desc-right {
        text-align: center;
    }
    .desc-left { order: 2; }
    .video-container { order: 1; }
    .desc-right { order: 3; }
}
/* --- OSIRIS Mapping Section --- */
.osiris-mapping-section {
    margin-top: 3rem;
}

.mapping-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.mapping-row {
    display: grid;
    grid-template-columns: 150px 50px 1fr;
    align-items: center;
    gap: 1.5rem;
}

.mapping-source {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.mapping-source h4 {
    margin: 0;
    font-size: 1.5rem;
}

.mapping-arrow {
    font-size: 3rem;
    color: var(--brand-red);
    text-align: center;
}

.mapping-product {
    margin: 0; /* Override default margins if any */
}

@media (max-width: 768px) {
    .mapping-row {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 1rem;
    }
    .mapping-arrow {
        transform: rotate(90deg); /* Point arrow down */
    }
}
/* --- Solution Detail Page --- */
.solution-cta {
    text-align: center;
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 8px;
    margin-top: 3rem;
}

.solution-cta h2 {
    color: var(--white);
}

.solution-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.solution-cta .cta-button {
    width: auto; /* Override default 100% width */
    padding: 1rem 2.5rem;
}
/* --- Homepage Solution Card Hover Effect --- */
.solution-card-home {
    position: relative;
    overflow: hidden;
}
.solution-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}
.solution-card-home:hover .solution-card-overlay {
    opacity: 1;
}
.solution-card-overlay img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}
.solution-card-home:hover .solution-card-overlay img {
    transform: translateY(0);
}
.solution-card-overlay .read-more-btn {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
    /* This button is now centered */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
}
.solution-card-home:hover .solution-card-overlay .read-more-btn {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
.solution-card-content {
    transition: opacity 0.3s ease;
}
.solution-card-home:hover .solution-card-content {
    opacity: 0;
}
/* --- Search Results Page --- */
.results-list {
    margin-top: 2rem;
}

.results-count {
    font-weight: 600;
    color: #555;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.result-item {
    display: block;
    background-color: var(--white);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--brand-red); /* Red branded border on the left */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.result-item:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.result-item h3 {
    color: var(--dark-gray); /* Title in dark gray */
    font-weight: 700; /* Bold title */
    margin-bottom: 0.5rem;
}

.result-item p {
    color: #555; /* Regular text color */
    font-weight: 400; /* Regular font weight */
}

.result-item strong {
    background-color: #ffe0e0;
    font-weight: 700;
    color: var(--dark-gray);
}

.result-url {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #006621;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--light-gray);
    border-radius: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gray);
    border-top-color: var(--brand-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}
/* --- Blog Page --- */
.featured-post-container {
    display: block;
    background-color: var(--dark-gray);
    color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.featured-post-container:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.featured-post-link {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    text-decoration: none;
    color: inherit;
}
.featured-post-image {
    min-height: 300px;
    background-size: cover;
    background-position: center;
}
.featured-post-content {
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-post-content span {
    font-weight: 600;
    color: var(--brand-red);
    margin-bottom: 0.5rem;
}
.featured-post-content h2 {
    color: var(--white);
    font-size: 2rem;
}
.featured-post-content p {
    color: #a0a0a0;
    line-height: 1.7;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.post-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--dark-gray);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.post-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.post-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.post-card-content h3 {
    font-size: 1.25rem;
    flex-grow: 1;
}
.post-card-content p {
    font-size: 0.95rem;
    color: #555;
    margin: 1rem 0;
}
.post-card-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: #a0a0a0;
}
/* --- Single Post Page --- */
.post-cover {
    height: 60vh; /* Shorter cover for posts */
}
.post-meta {
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #eee;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}
.post-content p {
    margin-bottom: 1.5rem;
}

/* Social Sharing */
.social-share {
    margin: 3rem 0;
    text-align: center;
}
.social-share h3 {
    margin-bottom: 1rem;
}
.share-icons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: relative;
}
.share-icon {
    display: inline-block;
    padding: 0.75rem;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}
.share-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--dark-gray);
    display: block;
    transition: fill 0.3s ease;
}
.share-icon:hover {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
}
.share-icon:hover svg {
    fill: var(--white);
}

.copy-success-message {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.copy-success-message.visible {
    opacity: 1;
    visibility: visible;
    bottom: -45px;
}

/* Comments Section */
#comments-section {
    max-width: 800px;
    margin: 2rem auto 0;
}
#comment-form {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
}
.form-group-consent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.form-group-consent input {
    width: auto;
}
#comments-list {
    margin-top: 3rem;
}
/* --- Post View Counter & Star Ratings --- */
.view-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}
.view-count svg {
    width: 20px;
    height: 20px;
}

.star-rating-group {
    margin-bottom: 1.5rem;
}
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    font-size: 2rem;
    color: #ddd;
}
.star-rating input {
    display: none;
}
.star-rating label {
    cursor: pointer;
    transition: color 0.2s ease;
}
.star-rating:not(:checked) > label:hover,
.star-rating:not(:checked) > label:hover ~ label {
    color: #ffc107;
}
.star-rating > input:checked ~ label {
    color: #ffc107;
}
/* --- Single Post Enhancements --- */
.back-to-blog-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 600;
}
.back-to-blog-link:hover {
    text-decoration: underline;
}

#related-articles {
    padding: 2rem 0;
}
#related-articles h2 {
    text-align: center;
    margin-bottom: 2rem;
}
/* --- Comment Display --- */
#comments-list {
    margin-top: 3rem;
}
.comment-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--brand-red);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.comment-header h4 {
    margin: 0;
}
.comment-rating .star {
    font-size: 1.2rem;
    color: #ddd;
}
.comment-rating .star.filled {
    color: #ffc107;
}
.comment-item p {
    margin-bottom: 1rem;
}
.comment-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: #a0a0a0;
}