/* Simple card animations and hover effects only */

/* Card hover animations and equal height */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* ASRMT Tasks section redesign */
.info {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 25px 15px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.info:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.info .icon {
    transition: transform 0.3s ease, color 0.3s ease;
    margin-bottom: 20px;
    font-size: 48px;
    color: #f39c12;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 50%;
}

.info:hover .icon {
    transform: scale(1.15);
    background: rgba(243, 156, 18, 0.2);
}

.info .description {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    text-align: center;
}

.info .description p {
    margin: 0;
    padding: 0;
}

/* Project cards clean design with equal height */
.card-plain {
    display: flex;
    flex-direction: column;
    height: 350px;
    margin-bottom: 30px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card-plain .image {
    height: 180px;
    flex-shrink: 0;
    position: relative;
}

.card-plain .content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-plain .content .category {
    background: #f39c12;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    width: fit-content;
    margin-bottom: 15px;
}

.card-plain .content .title {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    text-align: left;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.card-plain .content a {
    text-decoration: none;
    color: inherit;
}

.card-plain .content a:hover .title {
    color: #f39c12;
}

/* About/Mission/Goal section - Single integrated cards */
.section-description .description-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.section-description .description-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(243, 156, 18, 0.08), transparent);
    transition: left 0.8s ease;
}

.section-description .description-card:hover:before {
    left: 100%;
}

.section-description .description-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.section-description .card-content {
    display: flex;
    align-items: center;
    padding: 40px;
    gap: 40px;
}

.section-description .text-content {
    flex: 1;
}

.section-description .text-content h2 {
    color: #f39c12;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    transition: color 0.3s ease;
}

.section-description .text-content h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.section-description .description-card:hover .text-content h2:after {
    width: 100px;
}

.section-description .text-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    text-align: justify;
    transition: color 0.3s ease;
    margin: 0;
}

.section-description .description-card:hover .text-content p {
    color: #555;
}

.section-description .image-content {
    flex: 0 0 300px;
    overflow: hidden;
    border-radius: 12px;
}

.section-description .image-content img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 12px;
}

.section-description .description-card:hover .image-content img {
    transform: scale(1.08);
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .section-description .card-content {
        flex-direction: column;
        padding: 30px 20px;
        gap: 25px;
        text-align: center;
    }
    
    .section-description .image-content {
        flex: none;
        width: 100%;
        max-width: 350px;
    }
    
    .section-description .image-content img {
        height: 200px;
    }
    
    .section-description .text-content h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .section-description .description-card:hover .text-content h2:after {
        width: 80px;
    }
}

/* Consistent title styling for all sections */
.section h2.section-title {
    color: #f39c12;
    font-weight: 600;
    margin-bottom: 50px;
    position: relative;
    transition: color 0.3s ease;
    text-align: center;
}

.section h2.section-title:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.section:hover h2.section-title:after {
    width: 120px;
}

/* Override for description cards titles (they have their own styling) */
.section-description .text-content h2.section-title:after {
    bottom: -8px;
    left: 0;
    transform: none;
    width: 60px;
}

.section-description .description-card:hover .text-content h2.section-title:after {
    width: 100px;
}

/* Responsive adjustments for tasks section */
@media (max-width: 768px) {
    .info {
        height: auto;
        min-height: 350px;
        margin-bottom: 20px;
    }
    
    .info .icon {
        font-size: 40px;
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .info .description {
        font-size: 13px;
    }
}

/* Project Modal Styling */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    background: #f39c12;
    color: white;
    border-radius: 8px 8px 0 0;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
    font-size: 28px;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 30px;
}

.project-description p {
    text-align: justify;
}

/* Remove navbar fixes - use original behavior */