﻿.dna-card {
   
    transition: all 0.3s ease-in-out;
 
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
    
}

    .dna-card i {
   
        transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
    }

    
    /* Hover Animation */
    .dna-card:hover {
        transform: translateY(-10px) scale(1.05);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

        .dna-card:hover i {
            transform: rotate(10deg) scale(1.2);
            color: #6b5b2e; /* darker gold */
        }
/* Entrance Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}




.custom-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding:20px; 
    margin: 20px auto;
    transition: transform 0.3s ease;
    
}

    .custom-card:hover {
        transform: translateY(-4px);
    }

/* Image and Title section */
.card-image {
    width: 30%;
    display: flex;
    align-items: center; /* Vertically center image+title */
    justify-content: center;
    padding: 50px;
}

    .card-image img {
        width: 40%;
        object-fit: cover;
    }
.image-wrapper {
    text-align: center;
}
.card-title {
    margin: 12px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #c3914f;
    text-align: center;
}

/* Paragraph section */
.custom-card .card-body {
    flex: 1;
    padding: 20px;
    margin: 0;
    font-size: .9rem !important;
    line-height: 1.6;
    color: #333;
    border-left: 2px solid #c3914f; /* Start border */
    font-weight:300 !important;
     
}

/* RTL support */
[dir="rtl"] .custom-card .card-body {
    border-left: none;
    border-right: 5px solid #c3914f; /* Flip border */
    text-align: start; /* Flip text alignment */
}

/* Responsive */
@media (max-width: 768px) {
    .custom-card {
        flex-direction: column;
    }

    .card-image {
        width: 100%;
    }

    .custom-card .card-body {
        border-left: none;
        border-top: 5px solid #c3914f; /* Border on top for mobile */
        text-align: start; /* Normal readable text for small screens */
    }
}


.about-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 30px 20px;
    text-align: center;
    height: 100%;
}

    .about-card i {
        font-size: 4.5rem;
        color: #a8894b; /* gold/brown tone */
        margin-bottom: 15px;
    }

    .about-card p {
        font-size: 1rem;
        color: #333;
        line-height: 1.5;
        margin: 0;
    }