.qa-section {
    padding: 100px 0;
}

/* SECTION TITLE */
.section-title {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #222;
    line-height: 1.2;
    margin-top: 50px;
}

/* ACCORDION STYLING */
.accordion-item {
    border: none;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 700;

    font-size: 1.1rem;
    padding: 20px 15px;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
    box-shadow: none !important; /* Removes blue focus ring */
}

/* Icons inside the button (The ones on the left) */
.accordion-button i {
    color: #c2102e; /* Red icon when closed */
    transition: color 0.3s ease;
}

/* ACTIVE STATE (When accordion is open) */
.accordion-button:not(.collapsed) {
    background-color: #c2102e; /* Primary Red Background */
    color: #fff;
}

.accordion-button:not(.collapsed) i {
    color: #fff; /* White icon when open */
}

/* CUSTOM TOGGLE ICON (The Arrow/Plus/Minus on the right) */
/* We hide the default bootstrap arrow and use CSS pseudo-elements for the Plus/Minus */
.accordion-button::after {
    background-image: none !important; /* Remove default chevron */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\2b"; /* Unicode for Plus sign (+) */
    color: #c2102e;
    transform: none !important;
    font-size: 1.2rem;
}

/* When active, change to Minus */
.accordion-button:not(.collapsed)::after {
    content: "\f068"; /* Unicode for Minus sign (-) */
    color: #fff;
}

/* BODY TEXT */
.accordion-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    padding: 25px;
    background-color: #fff;
}

/* IMAGE ANIMATION */
.image-wrapper {
    position: relative;
    padding: 10px;
    margin-top: 45px;
    
}

.floating-image {
    max-width: 100%;
    height: auto;
    animation: floatUpDown 3s ease-in-out infinite;
    border-radius: 10px;
}

/* ANIMATIONS */
@keyframes floatUpDown {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .qa-section {
        padding: 50px 0;
    }
    
    .image-wrapper {
        margin-top: 40px;
    }
}

.certificates-section {
    padding: 30px 0;
    background-color: #fff;
}

/* Header Styles */
.section-title {
    font-weight: 700;
    font-size: 2.2rem;
    color: #333;
    margin-top: 15px;
    margin-bottom: 20px;
}

.title-divider {
    width: 50px;
    height: 3px;
    background-color: #c2102e; /* Primary Red */
    margin: 0 auto 20px auto;
}

.section-subtitle {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.6;
    
}

/* CARD STYLES */
.cert-card {
    background: #fff;
    border: 1px solid #e0e0e0; 
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 500px;
    position: relative;
    cursor: pointer;
}

/* HOVER STATE: Main Card */
.cert-card:hover {
    border-color: #c2102e; /* Red Border on Hover */
    box-shadow: 0 10px 30px rgba(194, 16, 46, 0.15); /* Soft Red Shadow */
    transform: translateY(-5px);
}

/* Image Wrapper & Zoom Effect */
.cert-img-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.cert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth easing */
}

/* ZOOM TRIGGER */
.cert-card:hover .cert-img {
    transform: scale(1.12); /* Slight Zoom In */
}

/* Card Content */
.cert-content {
    padding: 5px 20px;
    text-align: center;
    background-color: #fff;
}

.cert-heading {
    font-size: 1rem;
    font-weight: 500;
    color: #000;
    margin-top: 0px;
    transition: color 0.3s;
}

/* Button / Arrow Styles */
.cert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    
    /* Default State (Inactive) */
    background-color: transparent;
    color: #c2102e; 
    border: 1px solid transparent; 
}


.cert-card:hover .cert-btn {
    background-color: #c2102e;
    color: #fff; /* White Arrow */
    box-shadow: 0 4px 10px rgba(194, 16, 46, 0.3);
}


.cert-btn:hover {
    transform: scale(1.1);
}

/* ANIMATION CLASSES */
.header-animate, .cert-card {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .cert-img-wrapper {
        height: 300px;
    }
    .section-title {
        font-size: 1.8rem;
    }

    .section-title {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #222;
    line-height: 1.2;
    margin-top: 10px;
}
    .cert-card {
    background: #fff;
    border: 1px solid #e0e0e0; 
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 330px;
    position: relative;
    cursor: pointer;
}
.image-wrapper {
    position: relative;
    padding: 10px;
    margin-top: 25px;
    
}
.cert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    
    /* Default State (Inactive) */
    background-color: transparent;
    color: #c2102e; 
    border: 1px solid transparent; 
}
.cert-content {
    padding: 2px 10px;
    text-align: center;
    background-color: #fff;
}
.cert-img-wrapper {
    width: 100%;
    height: 230px;
    overflow: hidden;
    position: relative;
}
.cert-heading {
    font-size: 1rem;
    font-weight: 500;
    color: #000;
    margin-top: 0px;
    transition: color 0.3s;
}
}

.iso-section {
    padding: 60px 0;
    background-color: #fff;
}

/* Header Styling */
.iso-title {
    font-weight: 700;
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.title-line {
    width: 60px;
    height: 4px;
    background-color: #c2102e; /* Brand Red */
    border-radius: 2px;
}

/* CARD CONTAINER */
.iso-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Hover Effect: Red Border & Lift */
.iso-card:hover {
    border-color: #c2102e;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(194, 16, 46, 0.15);
}

/* IMAGE AREA */
.card-image-box {
    width: 100%;
    height: 250px; 
    overflow: hidden;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Zoom Effect on Hover */
.iso-card:hover .cert-img {
    transform: scale(1.08);
}

/* BOTTOM AREA (Text + Button) */
.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes text left, button right */
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.cert-name {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
}

/* RED ARROW BUTTON */
.arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #c2102e; /* Solid Red */
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(194, 16, 46, 0.3);
}

.arrow-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

/* Button Hover Interaction */
.arrow-btn:hover {
    background-color: #a00b24; /* Darker Red */
    transform: scale(1.1);
    color: #fff;
}

.arrow-btn:hover i {
    transform: translateX(3px); /* Move arrow slightly right */
}

/* ANIMATION CLASSES */
.fade-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, border-color 0.4s ease, box-shadow 0.4s ease; /* Mix transitions */
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-image-box {
        height: 300px;
    }
    .iso-title {
        font-size: 1.75rem;
    }

}

