/*--------------------------------------------------------------

  Template Name: Asbab eCommerce HTML5 Template.
  Description: Asbab is a unique website template designed in HTML with a simple & beautiful look.

---------------------------------------------------------------*/

/* ----------------------------------------------------
	You can put your custom css code here:
-------------------------------------------------------*/
.main__menu li.active{
    background-color: #E94F09;
}

/* Active Menu Item */
.main__menu li > a {
    padding: 5px 5px;
}
/* Active Menu Item */
.main__menu li.active > a {
    background: #E94F09;
    color: #ffffff !important;
    padding: 8px 20px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    font-weight: bold;
}

/* Active Menu Item Hover */
.main__menu li.active > a:hover {
    background: linear-gradient(135deg, #E94F09 0%, #667eea 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

/* Non-active Menu Items Hover */
.main__menu li:not(.active) > a:hover {
    color: #fff;
    background-color: #E94F09;
    border-radius: 5px;
}

/* Dropdown Menu */
.main__menu li.drop .dropdown {
    margin-top: 10px;
}

/* Dropdown Items */
.main__menu .dropdown li a {
    padding: 10px 20px;
    display: block;
    transition: all 0.3s ease;
}

.main__menu .dropdown li a:hover {
    background-color: #f8f9fa;
    color: #667eea;
    padding-left: 25px;
}

/* Add smooth transitions */
.main__menu li a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cusom-logo{
    height: 60px;
    width:auto;
    display: block;
}
.main__menu li a {
    white-space: nowrap;   /* Prevent text from breaking into multiple lines */
    overflow: hidden;      /* Optional: hides overflow if too long */
    text-overflow: ellipsis; /* Optional: adds "..." for overflow */
    display: inline-block;  /* Ensures nowrap works reliably */
}
.image-wrapper {
    width: 100%;
    height: 200px;        /* Set desired uniform height */
    overflow: hidden;
    display: block;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* Makes image fill the container proportionally */
    object-position: center; /* Center the image */
    transition: transform 0.4s ease;
}

.image-wrapper:hover img {
    transform: scale(0.95); /* Zoom out on hover */
}

.service-name {
    text-align: center;
    font-size: 1rem;
    margin-top: 8px;
    font-weight: 800;
    color: #333;
    text-transform: capitalize !important;
}

.category a:hover .service-name {
    color: #E94F09; /* change to red on hover */
}
.category:hover .service-name {
    color: #E94F09; /* change to red on hover */
}

/* Vision Mission Values Section Styles */
.htc__vision__mission__area {
    position: relative;
    overflow: hidden;
}

.vmv__single {
    padding: 40px 30px;
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    height: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.vmv__single:hover {
    border-color: #c87065;
    box-shadow: 0 5px 20px rgba(200, 112, 101, 0.15);
    transform: translateY(-5px);
}

.vmv__icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E94F09 0%, #e94f09 100%);
    transition: all 0.3s ease-in-out;
}

.vmv__icon i {
    font-size: 36px;
    color: #fff;
    line-height: 80px;
}

.vmv__single:hover .vmv__icon {
    transform: rotateY(360deg);
    background: linear-gradient(135deg, #e94f09 0%, #c87065 100%);
}

.vmv__content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vmv__content p {
    font-size: 16px;
    line-height: 26px;
    color: #666;
    margin: 0;
    color: black;
    text-align: justify;
}

/* Core Values List Styles */
.core__values__list {
    margin-top: 20px;
    text-align: left;
}

.value__item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.value__item:last-child {
    border-bottom: none;
}

.value__item:hover {
    padding-left: 10px;
}

.value__item i {
    font-size: 18px;
    color: #c87065;
    margin-right: 12px;
    margin-top: 3px;
    min-width: 20px;
}

.value__item strong {
    color: #333;
    font-weight: 600;
    margin-right: 5px;
}

.value__item span {
    color: #666;
    font-size: 14px;
    color: black;
}

/* Section Title Enhancement */
.htc__vision__mission__area .section__title--2 h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.htc__vision__mission__area .section__title--2 p {
    font-size: 16px;
    color: #777;
}

/* Responsive Styles */
@media only screen and (max-width: 991px) {
    .vmv__single {
        margin-bottom: 30px;
    }

    .vmv__content h3 {
        font-size: 22px;
    }
}

@media only screen and (max-width: 767px) {
    .vmv__icon {
        width: 70px;
        height: 70px;
        line-height: 70px;
    }

    .vmv__icon i {
        font-size: 32px;
        line-height: 70px;
    }

    .vmv__content h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .vmv__content p {
        font-size: 14px;
        line-height: 24px;
    }

    .htc__vision__mission__area .section__title--2 h2 {
        font-size: 28px;
    }
}

@media only screen and (max-width: 479px) {
    .vmv__single {
        padding: 30px 20px;
    }

    .value__item {
        font-size: 13px;
    }
}

/* Animation on Scroll (Optional - requires additional JS) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vmv__single {
    animation: fadeInUp 0.6s ease-out;
}

.vmv__single:nth-child(1) {
    animation-delay: 0.1s;
}

.vmv__single:nth-child(2) {
    animation-delay: 0.2s;
}

.vmv__single:nth-child(3) {
    animation-delay: 0.3s;
}

.brand__list li {
    height: 120px;               /* same height for all */
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand__list li img {
    max-height: 100px;           /* control image size */
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;         /* keep proportion */
}

.brand-slider {
    overflow: hidden;
    width: 100%;
    padding: 50px 0px !important;
}

.brand-track {
    display: flex;
    width: max-content;
    animation: scroll 25s linear infinite;
}

.brand-item {
    flex: 0 0 auto;
    margin-right: 40px;
}

.brand-item img {
    height: 60px; /* adjust */
    display: block;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
.ht__bl__title h1 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #222;
}
 .certificate-wrapper {
     text-align: center;
 }

.certificate-image {
    max-width: 100%;
    max-height: 600px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.certificate-image:hover {
    transform: scale(1.02);
}


/* Header Styles */
.about_section header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.about_section header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.about_section header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    animation: fadeInDown 1s ease-out;
}

.about_section header .subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

/* Certificate Badge */
.about_section .certificate-badge {
    background: white;
    color: #667eea;
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 20px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
    position: relative;
    z-index: 1;
}

/* Section Styles */
.about_section section {
    background: white;
    margin: 30px 0;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: fadeIn 1s ease-out;
    transition: transform 0.3s ease;
}

.about_section section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.about_section h2 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

.about_section h3 {
    color: #764ba2;
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Vision Section */
.about_section .vision-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    font-size: 1.2em;
    font-style: italic;
    padding: 50px;
}

.about_section .vision-section h2 {
    color: white;
    border-bottom-color: white;
}

/* Services Grid */
.about_section .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.about_section .service-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.about_section .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-left-color: #764ba2;
}

.about_section .service-card h3 {
    margin-top: 0;
    font-size: 1.3em;
    color: #667eea;
}

.about_section .service-card ul {
    list-style: none;
    padding-left: 0;
}

.about_section .service-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.about_section .service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Why Choose Us */
.about_section .features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.about_section .feature-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.about_section .feature-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
}

.about_section .feature-item h4 {
    color: #667eea;
    font-size: 1.2em;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.about_section .feature-item:hover h4,.about_section .feature-item:hover p {
    color: white;
}

.about_section .icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    section {
        padding: 25px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Accreditation Info */
.about_section .accreditation-info {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.about_section .accreditation-info div {
    text-align: center;
}

.about_section .accreditation-info strong {
    display: block;
    font-size: 1.5em;
    margin-bottom: 5px;
}
