/* .ccms-section {
    border-radius: 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/ccms.png');
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin-top: 90px;
}

@media (max-width: 1199px) {
    .ccms-section {
        margin-top: 100px;
    }
} */

.discover-our-brand-carousel-ccms {
    position: relative;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.discover-our-brand-carousel-item-ccms {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.discover-our-brand-carousel-item-ccms.active {
    opacity: 1;
}

.discover-our-brand-carousel-item-ccms img {
    width: 100%;
    height: 100%;
     object-fit: cover;
}
.discover-our-brand-carousel-item-ccms video {
    width: 100%; 
    height: 100%;
    object-fit: cover;
}

.carousel-indicators-ccms {
    position: absolute;
    bottom: 1rem;
    top: 95%;
    left: 35%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
    visibility: hidden;
}

.carousel-indicator-ccms {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicator-ccms.active {
    background: white;
}

.carousel-control-ccms {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background-color 0.3s;
}

.carousel-control-ccms:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-control-prev-ccms {
    left: 1rem;
}

.carousel-control-next-ccms {
    right: 1rem;
}

:root {
    --brand-red: #E31E24;
    --brand-yellow: #FDB813;
    --brand-blue: #1B75BC;
    --brand-green: #39B54A;
    --brand-purple: #92278F;
}

.ccms-section {
    position: relative;
    border-radius: 20px;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin-bottom: 2rem;
    margin-top: 120px;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    background:linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

.ccms-section img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 1;
    transform: translate(-50%, -50%);
    animation: backgroundFade 1.5s ease-in-out forwards;
}


.ccms-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
}

.ccms-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    animation: splitText 1.5s ease-out forwards;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.ccms-content p {
    font-size: 1.5rem;
    line-height: 1.75;
    margin: 0 auto;
    max-width: 600px;
    opacity: 0;
    animation: slideUpFade 1s ease-out 0.5s forwards;
}

@keyframes splitText {
    0% {
        clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%);
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes backgroundFade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (max-width: 456px) {
    .ccms-section {
        margin-top: 145px;
    }
}

@media (max-width: 768px) {
    .ccms-section {
        min-height: 60vh;
        padding: 10%;
    }
    .ccms-content {
        max-width: 95%;
    }
}
.spec-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.spec-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.spec-header {
    background: #008080;
    padding: 20px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spec-header h4 {
    font-size: 1.3rem;
    font-weight: bold;
}

.spec-body {
    padding: 20px;
    text-align: center;
}

.spec-body p {
    font-size: 1rem;
    color: #333;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Custom styling for icons */
.icon {
    background: #007bff;
    padding: 12px;
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icon:hover {
    background: #0056b3;
    transform: scale(1.1);
}

/* Responsive Styling */
@media (max-width: 767px) {
    .spec-header {
        flex-direction: column;
    }

    .spec-header .icon {
        margin-bottom: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .content-desktop { display: none; }
    .content-tablet { display: block; }
}

@media (max-width: 768px), (min-width: 1025px) {
    .content-tablet { display: none; }
    .content-desktop { display: block; }
}


/* .interface-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 2px auto;
    background: linear-gradient(45deg,#1B75BC,  #39B54A);
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
} */

.interface-icon:hover {
    transform: scale(1.1);
}


.key-features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Adjust spacing between cards */
}

.feature-card {
    flex: 1 1 calc(33.33% - 30px); /* Ensures 3 cards per row with spacing */
    max-width: calc(33.33% - 30px); /* Prevents overflow */
    background: #f4f4f4;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 40px;
    margin-bottom: 15px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .feature-card {
        flex: 1 1 calc(50% - 30px); /* 2 cards per row */
        max-width: calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .feature-card {
        flex: 1 1 100%; /* 1 card per row */
        max-width: 100%;
    }
}

.interface-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px; /* Adjusts space between cards */
}

.interface-card {
    background: #f4f4f4;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 300px; /* Ensures cards align well and are responsive */
    max-width: 350px;
    text-align: center;
}

.interface-icon i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(45deg,#1B75BC,  #39B54A);
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .interface-grid {
        flex-direction: column;
        align-items: center;
    }
}




   .ccms-projects {
    background-color: #1a4a6e;
    padding: 2rem 0;
}

.ccms-projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem; /* Added responsive padding */
}

.ccms-project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16/9;
    background-color: #f4f4f4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 1rem;
    cursor: pointer;
}

.ccms-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.ccms-project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Added better positioning */
    transition: transform 0.3s ease;
    display: block; /* Added for better rendering */
    background-color: #e0e0e0; /* Added fallback background */
}

/* Image loading fallback - NEW */
.ccms-project-card img {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23e0e0e0"/><text x="50" y="45" text-anchor="middle" fill="%23666" font-size="12">Loading</text><text x="50" y="60" text-anchor="middle" fill="%23666" font-size="12">Image...</text></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100px 100px;
}

.ccms-project-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.8); /* Enhanced from 0.4 to 0.8 for better readability */
    color: white;
    text-align: center;
    transition: bottom 0.3s ease;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Added for proper padding */
}

.ccms-project-overlay h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff; /* Ensured white color */
}

.ccms-project-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
    color: #fff; /* Ensured white color */
}

.ccms-project-card:hover img {
    transform: scale(1.05); /* Reduced from 1.1 to 1.05 for smoother effect */
}

.ccms-project-card:hover .ccms-project-overlay {
    bottom: 0;
}

/* Enhanced responsive design */
@media screen and (max-width: 768px) {
    .ccms-projects-container {
        grid-template-columns: 1fr;
        padding: 0 0.5rem; /* Added responsive padding */
    }

    .ccms-project-overlay {
        padding: 1rem;
    }

    .ccms-project-overlay h3 {
        font-size: 1rem;
    }

    .ccms-project-overlay p {
        font-size: 0.8rem;
    }
}