/* General styles */

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    cursor: pointer;
}
#heading {
    background-image: url('/Community/Company/images/bg-1\ \(1\).png');
    background-size: cover;
    background-position: center;
    height: 250px;
    background-color: #0c121a85;
    text-shadow: 2px 2px 4px black; /* Black text shadow */
}

/* Animation styling */
@keyframes fadeIn1 {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#heading h3 {
    font-size: 4em; /* Default font size */
    font-weight: 500;
    padding-top: 60px;
    color: white;
    animation: fadeIn1 1s ease-in-out;
}

/* Media query for mobile view */
@media (max-width: 480px) {
    #heading {
        height: 150px; /* Adjusted height for mobile phones */
    }
    
    #heading h3 {
        font-size: 2em; /* Adjusted font size for mobile phones */
        padding-top: 40px;
    }
}

#alphabet-container{
    margin-left: 15px;
}

.container3 {
    margin: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
.card-body1{
    text-align:left;
    padding: 5px;
    height: auto;
}
div#company-data.col-md-3 {
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
    margin: 10px;
    margin-left: 45px;
    flex: 0 0 20%;
    height: 600px; 
    overflow-y: auto;
}
#company-data .card {
    margin-bottom: 10px;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 5px;
    transition: all 0.3s ease;
    
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.card-title {
    font-size: 16px;
    color: #343a40;
}
.card-subtitle {
    margin-bottom: 5px;
    font-size: 14px;
    color: #6c757d;
}

.letter-box {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    margin-right: 5px;
    background-color: #fff;
    border: 2px solid #333;
    border-radius: 20%;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.letter-box:hover {
    background-color:#333;
    color: #fff;
    border-color: #fff;
}

/* Media queries for responsiveness */

@media (max-width: 992px) {
    .container3 {
        margin: 10px;
    }
}

@media (max-width: 768px) {
    .container3 {
        padding: 15px;
    }
    div#company-data.col-md-3 {
        border: 1px solid #dee2e6;
        background-color: #f8f9fa;
        padding: 10px;
        border-radius: 10px;
        margin: 10px;
        flex: 1;
        height: 400px; 
        overflow-y: auto;
    }
    #alphabet-container{
        margin-left: 0px;
    }
    
}

@media (max-width: 576px) {
    .container3 {
        margin: 5px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-subtitle {
        font-size: 12px;
    }
    .letter-box {
        width: 25px;
        height: 25px;
        line-height: 25px;
        margin-bottom: 8px;
    }
    #alphabet-container{
        padding: 10px;
    }
}
