/* ================== CSS ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    box-shadow: none; 
  }

.about-us-section {
    background-color: #f8f8f8;
    padding: 4rem 1rem;
}

.about-page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title-2 {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    /* margin-bottom: 3rem; */
    color: #333;
    margin-top: 1.3em;
  }

  .section-title-2 a {
    color: inherit;
    text-decoration: none;
  }

.header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
}

.header p {
    font-size: 1.2rem;
    color: #666;
}

.section-paragraph {
    font-size: 20px;
    text-align: center;
    margin-top: 0.4em;
    margin-bottom: 2em;
}

.story-section {
    display: flex;
    gap: 2rem;
}

.story-title-2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
  }

.story-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
  }

.story-description-p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-top: 2.5em;
}

.text-column {
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
}

.video-column iframe {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ===================    VALUES SECTION    ================== */
.values-section {
    padding: 1rem;
}

.values-section h2 {
    text-align: center;
    margin-bottom: -0.5em;
    font-size: 40px;
    margin-top: 1em;
}

.values-grid {
    display: flex;
    gap: 2rem;
    justify-content: center; /* Center align the cards */
}

.value-card {
    position: relative; /* Necessary for absolute positioning of pseudo-elements */
    width: 390px; /* Set width for the cards */
    height: 264px; /* Set height for the cards */
    color: #000000; /* Text color */
    transition: 0.5s; /* Transition for hover effect */
    cursor: pointer; /* Change cursor on hover */
    box-shadow: none; 
}

.value-card:hover {
    transform: translateY(-20px); /* Lift effect on hover */
}

.value-card::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, #007676, #007676);
    border-radius: 1.2em; /* Rounded corners */
}

.value-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(15deg, #ffffff, #00767610);
    filter: blur(30px); /* Blur effect for the background */
}

.value-card span {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    background-color: rgba(255, 255, 255, 0.6); /* Dark overlay */
    z-index: 2; /* Layering */
    border-radius: 1em; /* Rounded corners */
}

.value-card .content {
    position: relative; /* Ensure it sits above the overlay */
    padding: 10px; /* Space around content */
    z-index: 10; /* Ensure it's above the blur effect */
    display: flex; /* Flexbox for centering */
    align-items: center; /* Vertical centering */
    justify-content: center; /* Horizontal centering */
    flex-direction: column; /* Stack icon, title, and paragraph */
    text-align: center; /* Center the text */
    font-weight: 800; /* Font weight */
    font-size: 1.2em; /* Adjust font size */
}

.value-card .content h3 {
    font-size: 20px;
    margin-bottom: 1em;
}

.value-card .content p {
    font-size: 15px;
}

.values-section .value-card {
    box-shadow: none !important; /* Forcefully remove any box shadow */
}



/* Icon styles */
.value-card .icon {
    font-size: 2em; /* Icon size */
    margin-bottom: 0.5em; /* Space below the icon */
}

.tech-section-2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: -1em;
    margin-top: 3em;
}

.slider {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
}

.slider img {
    width: 100%;
    border-radius: 8px;
}

.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
}

.slider:hover .overlay {
    opacity: 1;
}
/* ===================    MISSION SECTION   ========================= */
.mission-vision {
    margin-top: -5rem;
    margin-bottom: 0.5em;
    text-align: center; /* Center the text in the section */
}

.section-paragraph-2 {
    font-size: 20px;
    text-align: center;
    margin-top: 2em;
    margin-bottom: 2em;
}

.mission-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Adjust based on screen size */
    gap: 1rem;
    justify-items: center; /* Center the cards horizontally */
    margin-top: 2em;
}

.mission-vision h3 {
    margin-bottom: 1.5em;
    font-size: 32px;
    margin-top: 1em;
}

.cards {
    position: relative;
    width: 290px;
    height: 290px;
    color: #fff;
    transition: 0.5s;
    cursor: pointer;
}

.cards:hover {
    transform: translateY(-20px);
}

.cards::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, #007676, #007676);
    border-radius: 1.2em;
}

.cards::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 80%;
    background: linear-gradient(45deg, #007676, #00767610);
    filter: blur(10px);
}

.cards span {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2;
    border-radius: 1em;
}

.cards span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
}

.cards .contents h3 {
    position: relative;
    padding: 10px;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column; /* Stack title and paragraph */
    align-items: center; /* Center content */
    justify-content: center; /* Center content */
    font-weight: 800;
    font-size: 1.2em;
    margin-top: 2em;
}

.cards .contents p {
    position: relative;
    padding: 10px;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column; /* Stack title and paragraph */
    align-items: center; /* Center content */
    justify-content: center; /* Center content */
    font-weight: 600;
    font-size: 0.9em;
}


.cta-button {
    background-color: #4CAF50;
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #66BB6A;
}

@media (min-width: 339px) and (max-width: 649px) {
    .section-paragraph {
        margin-top: 1em;
        font-size: 15px;
    }
    .story-title-2 {
        font-size: 1.5rem;
        text-align: center;
      }
    .story-description-p {
        margin-top: 1em;
        text-align: center;
    }
    /* ===================    VALUES SECTION    ================== */
    .values-section {
        padding: 1rem;
    }

    .values-section h2 {
        margin-bottom: 0.3em;
        font-size: 25px;
        margin-top: 0.1em;
    }

    .values-grid {
        display: grid; /* Change to grid layout */
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        gap: 1rem; /* Gap between grid items */
        justify-items: center; /* Center align the cards within each grid cell */
    }

    .value-card {
        position: relative; /* Necessary for absolute positioning of pseudo-elements */
        width: 100%; /* Use full width of the grid item */
        max-width: 170px; /* Maximum width for larger screens */
        height: 290px; /* Set height for the cards */
        color: #000000; /* Text color */
        transition: 0.5s; /* Transition for hover effect */
        cursor: pointer; /* Change cursor on hover */
    }

    .value-card:hover {
        transform: translateY(-20px); /* Lift effect on hover */
    }

    .value-card::before {
        content: '';
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background: linear-gradient(45deg, #007676, #007676);
        border-radius: 1.2em; /* Rounded corners */
    }

    .value-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(15deg, #ffffff, #00767610);
        filter: blur(30px); /* Blur effect for the background */
    }

    .value-card span {
        position: absolute;
        top: 6px;
        left: 6px;
        right: 6px;
        bottom: 6px;
        background-color: rgba(255, 255, 255, 0.6); /* Dark overlay */
        z-index: 2; /* Layering */
        border-radius: 1em; /* Rounded corners */
    }

    .value-card .content {
        position: relative; /* Ensure it sits above the overlay */
        padding: 10px; /* Space around content */
        z-index: 10; /* Ensure it's above the blur effect */
        display: flex; /* Flexbox for centering */
        align-items: center; /* Vertical centering */
        justify-content: center; /* Horizontal centering */
        flex-direction: column; /* Stack icon, title, and paragraph */
        text-align: center; /* Center the text */
        font-weight: 800; /* Font weight */
        font-size: 1.2em; /* Adjust font size */
    }

    .value-card .content h3 {
        font-size: 14px;
        margin-bottom: 1em;
    }

    .value-card .content p {
        font-size: 11px;
    }

    /* Icon styles */
    .value-card .icon {
        font-size: 1em; /* Icon size */
        margin-bottom: 0.5em; /* Space below the icon */
        color: #078181;
    }
    .tech-section-2 {
        text-align: center;
        font-size: 20px;
        margin-bottom: 0.5em;
    }
    .mission-vision {
        margin-top: 1.8rem;
    }
    
    .mission-cards {
        display: grid;
        grid-template-columns: repeat(5, 1fr); /* Adjust based on screen size */
        gap: 1rem;
        justify-items: center; /* Center the cards horizontally */
    }
    
    .mission-vision h3 {
        margin-bottom: 0.5em;
        font-size: 20px;
        margin-top: 1em;
    }
    .mission-cards {
        display: block; /* Use block layout to stack cards */
    }

    .cards {
        width: 100%; /* Make cards full width */
        margin-bottom: 1rem; /* Add space between cards */
    }
    .cards .contents h3 {
        padding-top: 2em;
    }
    .cards .contents p {
        margin-top: 2em;
    }
    .section-title {
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
        margin-top: 2.5em;
      }
      .quinzey-headings-h1 {
        font-family: 'Quinzey', sans-serif;
        font-weight: 900; 
        letter-spacing: 2px; 
        color: #007676;/* Green color */
        font-size: 23px; 
    }
}