/* Base styles */

* {
    margin: 0;
    padding: 0;
  
}
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

#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-container1{
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        } */
}
#alphabet-container1{
margin-left: 0px;
}
#alphabet-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 9px;
    
}
#search-box{
    width: 40%;
}
.btn{
    margin-left: 5px;
    margin-top: 0px;
}
#disclaimer {
    color: #ff000096;
   
    } 


.letter-box {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    margin: 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;
}

.list-group-item {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.list-group-item:hover {
    background-color: #f1f1f1;
}

#companies {
    margin-bottom: 20px;
}

#companies ul {
    padding: 0;
    list-style-type: none;
    border: 1px solid #000;
    border-radius: 10px;
    padding: 10px;
    background-color: #c0c5c73d;
    overflow-y: auto;
    max-height: 515px; /* Adjust height as necessary */
}

#companies ul li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 5px;
    border-radius: 10px;
}

#companies ul li:last-child {
    border-bottom: none;
}

.image-container img {
    width: 100%;
    height: 250px;
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 5px;
    background-color: #f0f0f0;
    margin-bottom: 10px;
    animation: fadeIn 1s ease-in-out;
}
/* Keyframe animation for images */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* Responsive styles */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
        flex-direction: row;
    }

    #companies {
        padding-left: 15px;
        padding-right: 15px;
    }

    #companies ul {
        padding-left: 0;
        padding-right: 0;
    }
    #search-box{
        width: 100%;
    }
    .btn{
        margin-left: 5px;
        margin-top: 5px;
    } 
}

@media (max-width: 576px) {
    .row {
        flex-direction: row;
    }

    .letter-box {
        width: 25px;
        height: 25px;
        line-height: 25px;
        margin-bottom: 8px;
    }

    .col-md-8, .col-md-4 {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    #alphabet-container {
        padding: 10px;
        justify-content: left;
    }

    #disclaimer {
        margin-left: 0;
    }

    #companies ul {
        max-height: 400px; /* Adjust height as necessary for smaller screens */
    }
   
}

.count-box {
    font-weight: bold;
    margin-top: 12px;
}
.btn {
    color: #fff;
    background-color: #330f4A;
    border-color: #330f4A;
}
.btn:hover {
    color: #fff;
    background-color: #4a1a5b;
    border-color: #4a1a5b;
}