/* 
   Ecovive Website Styles
   Modern, Clean, Eco-friendly design
*/

:root {
    /* Color Palette */
    --primary-color: #2E7D32;
    /* Forest Green */
    --primary-light: #4CAF50;
    /* A lighter green for accents/hovers */
    --primary-dark: #1B5E20;
    /* Darker green for text/footer */
    --accent-color: #81C784;
    /* Soft Green */
    --secondary-color: #263238;
    /* Dark Blue-Grey for text */
    --bg-light: #F1F8E9;
    /* Very light green tinted background */
    --bg-white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;

    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    text-align: center;
    transition: var(--transition);
}

@media (max-width: 1024px) {
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}


.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* Header */
header .container {
    width: 100%;
    max-width: none;
    padding: 0;
    /* Remove all unnecessary padding */
    margin: 0;
}

header {
    background: linear-gradient(to right, #ffffff, #004d00);
    /* Task 1: White to Dark Green */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    padding-right: 40px;
    /* Right padding for nav links balance */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    transform: scale(1.5);
    transform-origin: center left;
    margin-left: 37.8px;
    /* Exactly 1cm spacing from extreme left */
    transition: var(--transition);
}


.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    /* Task 1: White navigation font */
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: #003366;
    border-bottom: 2px solid #003366;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

section {
    padding: var(--section-padding);
}

@media (max-width: 1024px) {
    nav {
        padding-right: 20px;
    }

    .logo img {
        transform: scale(1.2);
        margin-left: 20px;
    }

    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        color: white;
        /* Contrast against dark green gradient */
    }

    nav {
        height: 80px;
        padding-right: 20px;
    }

    .logo img {
        height: 60px;
        transform: scale(1.1);
        margin-left: 15px;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        /* Matching nav height */
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 25px;
        transform: translateY(-150%);
        transition: var(--transition);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links a {
        color: var(--primary-dark);
        /* Fix: white text on white background */
    }

    .nav-links.active {
        transform: translateY(0);
    }
}


/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    margin-top: 100px;
    overflow: hidden;
    background-color: #000;
    /* Prevent white flash on load */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5%;
}

.slide.active {
    opacity: 1;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-text-overlay {
    color: #FFFFFF;
    z-index: 10;
    max-width: 45%;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide.active .hero-text-overlay {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text-overlay h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 1.5rem 0;
    text-align: left;
    line-height: 1.2;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.slide-1-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    /* Tighten line spacing */
}

.slide-2-text h1 {
    font-size: 3rem;
    font-weight: 700;
}

.slide-2-text p {
    font-weight: 600;
    white-space: nowrap;
    margin-top: 250px;
}

.hero-text-overlay p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #FFFFFF;
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

/* Responsive Layout Utilities */
.mobile-break {
    display: none;
}

.desktop-only {
    display: inline;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-text-overlay {
        max-width: 55%;
    }

    .slide-1-text h1 {
        font-size: 2.8rem;
    }

    .slide-2-text h1 {
        font-size: 2.4rem;
    }

    .hero-text-overlay p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .mobile-break {
        display: inline;
    }

    .desktop-only {
        display: none;
    }

    .hero {
        margin-top: 80px;
    }

    .slide {
        padding-left: 8%;
    }

    .hero-text-overlay {
        max-width: 90%;
    }

    .slide-1-text h1 {
        font-size: 2.5rem;
        /* Adjusted for 3-line layout */
        line-height: 1.2;
    }

    .slide-2-text h1 {
        font-size: 1.8rem;
    }

    .slide-2-text p {
        margin-top: 20px;
        white-space: normal;
        font-weight: 600;
        font-size: 1.2rem;
        /* Readable size for 2 lines */
        line-height: 1.4;
    }

    .hero-text-overlay p {
        font-size: 0.9rem;
    }
}

/* About Section */
.about {
    background-image: url('../Images/Home Page/Intor BG.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.about .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

@media (max-width: 1024px) {
    .about-content {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-text p {
        text-align: center;
    }
}


.about-text {
    flex: 2;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: justify;
    text-justify: inter-word;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content {
        flex-direction: column;
    }
}

/* Solutions Section */
.solutions {
    background-image: url('../Images/Home Page/Solution bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

#solutions .section-title {
    color: var(--white);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1cm;
}

@media (max-width: 1024px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }
}


.solution-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.solution-image-wrapper {
    width: 100%;
    height: 250px;
    /* Increased container size for full visibility */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
}

.solution-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Ensure entire image is visible, no cropping */
    border-radius: 5px;
}

.solution-card h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    min-height: 3rem;
    display: flex;
    align-items: center;
}

.solution-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.solution-card .read-more {
    margin-top: auto;
    /* Push link to bottom for horizontal alignment */
    display: block;
    color: var(--accent-red);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.solution-card .read-more:hover {
    color: var(--primary-dark);
    padding-left: 5px;
}

/* Connect with Us Section */
.connect {
    padding: 100px 0;
    background-image: url('../Images/Home Page/connect with us  bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

.connect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: -1;
}

.connect-content {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.connect-left {
    flex: 1;
    max-width: 400px;
}

/* Contact Info Block - Horizontal Layout with Icon on Left */
.contact-info-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon-inline {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-text-column {
    display: flex;
    flex-direction: column;
}

.contact-heading {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 8px 0;
}

.contact-detail {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0;
}

@media (max-width: 768px) {
    .connect-content {
        flex-direction: column;
        gap: 40px;
    }

    .connect-left,
    .connect-right {
        width: 100%;
        max-width: none;
        text-align: center;
    }

    .contact-info-block {
        text-align: center;
        align-items: center;
    }

    .contact-row {
        justify-content: center;
    }
}


.connect-right {
    flex: 1;
    max-width: 450px;
    margin-left: auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
}

.btn-submit {
    padding: 12px 35px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

.connect-footer-text {
    margin-top: 60px;
    font-size: 1.1rem;
    color: var(--text-dark);
    text-align: left;
}

/* Contact heading icon styles - Legacy support */
.contact-heading i {
    margin-right: 12px;
    font-size: 1em;
    vertical-align: middle;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .contact-heading i {
        margin-right: 10px;
    }
}

/* Stats Section */
.stats {
    background: linear-gradient(rgba(139, 0, 0, 0.4), rgba(139, 0, 0, 0.4)), url('../Images/Home Page/costofwaste.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.stats .section-title,
.stats .section-subtitle,
.stat-number {
    color: var(--white);
}

.stats .section-subtitle {
    white-space: nowrap;
    /* Task 6: One single line */
}

@media (max-width: 1024px) {
    .stats .section-subtitle {
        white-space: normal;
        max-width: 90%;
        margin: 0 auto 2rem auto;
    }
}


.blinking-text {
    font-weight: bold;
    animation: blinker 1.5s linear infinite;
    margin-bottom: 2rem;
    display: block;
    color: white !important;
    /* Task 3: White color */
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    /* Task 6: Horizontal line */
    gap: 20px;
}

@media (max-width: 768px) {
    .stats-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }

    .stat-item {
        flex: 0 0 45%;
        /* Two columns on mobile */
    }
}


/* Blog Section */
.blog {
    background-image: url('../Images/Home Page/Blog Bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.blog-card {
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-img {
    height: auto;
    position: relative;
}

.blog-img::after {
    display: none;
    /* Task 3: Remove any overlay or shades */
}

.blog-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    /* Changed from contain to cover for better look without overlays */
}

.blog-content {
    padding: 25px;
}

.blog-card h3 {
    background-color: #004d00;
    /* Task 3: Dark green background */
    color: white;
    padding: 15px;
    margin: -25px -25px 20px -25px;
    border-radius: 0;
}

/* Ribbon Section */
.ribbon-strip {
    padding: 30px 0;
    background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
    overflow: hidden;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    width: 25%;
    /* Task 7: 4 images at a time */
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.marquee-item img {
    max-height: 4cm;
    transition: transform 0.4s ease;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item img:hover {
    transform: scale(1.15);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
        /* Task 7: Continuous slide skip */
    }
}

/* Footer */
footer {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../Images/Home Page/rooter.jpg');
    /* Task 5: rooter.jpg */
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 80px;
}

@media (max-width: 1024px) {
    .footer-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .footer-col {
        width: 100%;
    }

    .contact-info li,
    .social-links,
    .subscribe-form {
        justify-content: center;
    }
}


.footer-col h3 {
    margin-bottom: 25px;
}

.contact-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.subscribe-form {
    display: flex;
    gap: 10px;
}

.subscribe-form input {
    padding: 12px 15px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.subscribe-form .btn {
    background-color: white;
    color: #064E3B;
}

.footer-bottom {
    text-align: right;
    /* Task 5: Copyright far right */
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Page Specific Styles */
.page-ribbon {
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.ribbon-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ribbon-text p {
    font-size: 1.5rem;
    font-weight: 500;
}

/* About Slider Section */
.about-slider-section {
    padding: 100px 0;
    background-color: #f1f8e9;
}

.slider-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
}

.about-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.about-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.about-slide.active {
    opacity: 1;
}

.slide-content {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 50px;
}

.slide-text {
    flex: 1;
}

.slide-text h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.slide-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: justify;
}

.slide-img {
    flex: 1;
}

.slide-img img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--primary-dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}

@media (max-width: 768px) {
    .slider-btn {
        width: 35px;
        height: 35px;
    }

    .slider-dots {
        margin-top: 30px;
    }
}


.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 10px;
}

/* Our Solutions Page Styles */
.solutions-page-hero {
    padding: 150px 0 100px 0;
    background-color: var(--primary-dark);
    color: var(--white);
}

.solutions-header {
    text-align: center;
    margin-bottom: 60px;
}

.solutions-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.solutions-header .subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .solutions-header h1 {
        font-size: 2.2rem;
    }

    .solutions-header .subtitle {
        font-size: 1.1rem;
    }
}


.solutions-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-top: 50px;
}

.solution-page-box {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.solution-page-box:hover {
    transform: translateY(-10px);
}

.box-heading {
    background-color: #003366;
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.box-heading h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.box-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    color: var(--text-color);
    flex-grow: 1;
}

.box-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    background-color: #f9f9f9;
    padding: 10px;
}

.box-image img {
    max-width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

/* Careers Page Styles */
.careers-hero {
    position: relative;
    color: var(--white);
    overflow: hidden;
    width: 100%;
}

.career-hero-bg {
    width: 100%;
    height: auto;
    display: block;
}

.wavy-box {
    background-color: rgba(0, 0, 51, 0.3);
    /* Task: navy blue color with 30% transparency */
    padding: 60px;
    text-align: center;
    border-radius: 0;
    /* Task: Change the box shape to a square. */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
    /* Center over image */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 90%;
}

@media (max-width: 768px) {
    .wavy-box {
        padding: 20px;
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin: -50px auto 30px;
        background-color: rgba(0, 0, 51, 0.8);
        /* Higher opacity for readability */
        border-radius: 15px;
    }

    .wavy-box h2 {
        font-size: 1.5rem !important;
        gap: 15px !important;
    }
}


.wavy-box h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    /* Approx 3 spaces gap */
    flex-wrap: wrap;
}

.wavy-box .career-points {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: normal;
}

.wavy-box .career-points p {
    margin: 5px 0;
}

.wavy-box .resume-link {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.wavy-box .resume-link a {
    color: var(--white);
    text-decoration: underline;
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 70%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
    }

    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 70%;
    }
}

@media (max-width: 768px) {
    .careers-hero {
        height: auto;
    }

    .wavy-box {
        padding: 30px;
        border-radius: 20px;
        /* Simpler for mobile */
        animation: none;
    }
}

.box-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.box-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    flex-grow: 1;
}

.read-more {
    color: #003366;
    font-weight: 700;
    text-decoration: underline;
    transition: var(--transition);
    margin-top: auto;
    align-self: flex-start;
}

.read-more:hover {
    color: var(--primary-color);
}

@media (max-width: 991px) {
    .solutions-page-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .solutions-page-grid {
        grid-template-columns: 1fr;
    }

    .solutions-header h1 {
        font-size: 2.2rem;
    }

    .slide-content {
        flex-direction: column;
        gap: 40px;
        padding: 0;
    }

    .slide-text {
        text-align: center;
    }

    .slide-text h2 {
        font-size: 2rem;
    }
}

/* Global Blog Hero Styles */
.page-ribbon .ribbon-text h1,
.page-ribbon .ribbon-text p {
    color: #004d00 !important;
    /* Force Dark Green override globally */
}

/* Who We Are Page - White Ribbon Text Override */
body:has(a[href="who-we-are.html"].active) .page-ribbon .ribbon-text h1,
body:has(a[href="who-we-are.html"].active) .page-ribbon .ribbon-text p {
    color: var(--white) !important;
    /* White text for Who We Are page */
}

/* Solution Details Page Styles */
.solution-details-page {
    padding-top: 100px;
    background-color: var(--bg-white);
}

.details-hero {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.details-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.3;
}

.details-content {
    padding: 80px 0;
}

.details-main {
    max-width: 1000px;
    margin: 0 auto;
}

.details-intro {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-bottom: 60px;
}

.details-image-container {
    flex: 1;
}

.main-details-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.details-intro-text {
    flex: 1.2;
}

.details-intro-text .lead {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.details-intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-color);
}

.details-section {
    margin-bottom: 60px;
}

.details-section h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.details-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-light);
    border-radius: 2px;
}

.details-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


.details-list-box {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
    border-left: 5px solid var(--primary-color);
}

.details-list-box h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.details-list-box h3 i {
    color: var(--primary-color);
}

.details-list-box ul {
    list-style: none;
}

.details-list-box li {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.details-list-box li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.details-image-grid-section {
    padding: 60px 0 100px 0;
}

.details-ribbon-section {
    padding-bottom: 60px;
}

.details-ribbon img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.details-image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.details-image-grid img {
    width: 100%;
    height: auto;
    /* Show real size (proportional) */
    border-radius: 15px;
    transition: var(--transition);
    object-fit: contain;
    /* Don't crop */
}

.details-image-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
    .details-intro {
        flex-direction: column;
        text-align: center;
    }

    .details-section p {
        text-align: center;
    }

    .details-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .details-hero h1 {
        font-size: 1.8rem;
    }
}

/* Blog Post Detail */
.blog-post-detail {
    padding: 80px 0;
    line-height: 1.8;
}

.blog-header h1 {
    color: #000033 !important;
    /* Dark navy blue */
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.blog-date {
    display: block;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-featured-img {
    margin-bottom: 40px;
}

.blog-featured-img img {
    width: 100%;
    border-radius: 15px;
}

.blog-body h2 {
    margin: 40px 0 20px;
    color: var(--primary-dark);
}

.blog-body p {
    margin-bottom: 20px;
}

.blog-list {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-list li {
    margin-bottom: 10px;
}

.content-with-img {
    display: flex;
    gap: 40px;
    align-items: center;
    margin: 40px 0;
}

.content-with-img .text {
    flex: 1;
}

.content-with-img .img-side {
    flex: 1;
}

.content-with-img .img-side img {
    width: 100%;
    border-radius: 10px;
}

.blog-secondary-img {
    margin: 40px 0;
    text-align: center;
}

.blog-secondary-img img {
    max-width: 80%;
    border-radius: 10px;
}

.img-caption {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

.rs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.r-item {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    border-top: 4px solid var(--accent-color);
}

.r-item h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.blog-footer {
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

@media (max-width: 768px) {
    .content-with-img {
        flex-direction: column;
    }
}

/* Back to Solutions Navigation */
.back-to-solutions {
    padding: 40px 0;
    text-align: center;
}

.back-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #003366;
    color: var(--white);
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.2);
}

.back-btn:hover {
    background-color: #002244;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

.back-btn i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .back-to-solutions {
        padding: 30px 0;
    }

    .back-btn {
        font-size: 0.9rem;
        padding: 8px 20px;
    }
}