﻿/* About Us Page Cards */
.about-card {
    background-color: #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    min-width: 300px;
    height: auto;
    min-height: 450px;
    border-radius: 1.5rem;
    margin: 15px auto;
    box-shadow: 3px 2px 8px rgba(0,0,0,0.3);
    padding: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    text-align:left;
}

    .about-card:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 10px 25px rgba(0,0,0,0.4);
        outline: 2px solid #db6400;
    }

    .about-card img {
        width: 90%;
        max-height: 200px;
        object-fit: cover;
        background-color: #444;
        border-radius: 1rem;
        margin: 10px auto;
        border: 2px solid #555;
    }

.about-card-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px;
    color: #fff;
}

    .about-card-text h3 {
        font-size: 3.6em;
        font-weight: bold;
        color: #458795;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .about-card-text p {
        font-size: 2.2em;
        line-height: 1.5;
        color: #ddd;
        margin-bottom: 15px;
        flex-grow: 1;
    }

    .about-card-text a {
        display: inline-block;
        background-color: #db6400;
        color: white;
        padding: 10px 20px;
        text-decoration: none;
        border-radius: 25px;
        font-weight: bold;
        transition: background-color 0.3s ease;
        margin-top: auto;
    }

        .about-card-text a:hover {
            background-color: #b55300;
            color: white;
            text-decoration: none;
        }

.about-card-container {
    padding: 40px 20px;
    background-color: transparent;
}

    .about-card-container h1 {
        color: #fff;
        font-size: 3em;
        margin-bottom: 2rem;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }

/* Tablets */
@media (max-width: 929px) {
    .about-card {
        max-width: 350px;
        min-width: 250px;
        min-height: 400px;
        padding: 15px;
    }

    .about-card-container {
        padding: 30px 15px;
    }

        .about-card-container h1 {
            font-size: 2.5em;
        }

    .about-card-text h3 {
        font-size: 1.5em;
    }

    .about-card-text p {
        font-size: 1em;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .about-card {
        font-size: 2.2em;
        max-width: 100%;
        min-width: 280px;
        min-height: 350px;
        margin: 10px auto;
        padding: 15px;
    }

        .about-card img {
            max-height: 150px;
            width: 85%;
        }

    .about-card-container {
        padding: 20px 10px;
    }

        .about-card-container h1 {
            font-size: 2em;
        }

    .about-card-text h3 {
        font-size: 1.3em;
    }

    .about-card-text p {
        font-size: 0.95em;
        line-height: 1.4;
    }

    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.about-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #16697A;
    padding-top: 5.5px;
    min-width: 100px;
}

.about-icon {
    width: 3.2rem;
    height: 3.2rem;
}

.about-text {
    font-size: 1.2rem;
    color: #16697A;
    transition: filter 0.3s ease;
}

.about-link:hover .about-icon,
.about-link:hover .about-text {
    filter: brightness(150%);
}