/* ===== CARD STYLES ===== */

/* Base Card Style */
.card {
    border: 1px solid rgb(255, 255, 255);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.1.5s ease;
    position: relative;
    height: auto;

}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1) !important;
}

/* Card Image Container */
.card-img-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.card:hover .card-img-container img {
    transform: scale(1.05);
}

/* Card Body */
.card-body {
    padding: 1.5rem;
}

/* Card Titles */
.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, #d32f2f, #f57c00);
    border-radius: 1px;
}

/* Specialization Badge */
.specialization-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.1), rgba(245, 124, 0, 0.1));
    color: #d32f2f;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
    margin-bottom: 1rem;
}

/* Dignitaries Section */
.dignitary-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f8f9fa;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.1);
}

.dignitary-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dignitary-card .card-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Media & Events Cards */
.event-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(211, 47, 47, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

/* Internship Cards */
.internship-card {
    border-top: 4px solid transparent;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.internship-card:hover {
    border-top-color: #d32f2f;
}

.duration-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
}

/* Card Links */
.card-link {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.card-link:hover {
    color: #f57c00;
    transform: translateX(5px);
}

.card-link i {
    margin-left: 5px;
    transition: transform 0.3s ease-in-out;
}

.card-link:hover i {
    transform: translateX(3px);
}

/* Apply Buttons */
.apply-btn {
    background: linear-gradient(135deg, #d32f2f, #f57c00);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(211, 47, 47, 0.3);
    color: white;
}

/* View All Button */
.view-all-btn {
    background: transparent;
    color: #d32f2f;
    border: 2px solid #d32f2f;
    padding: 0.5rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

.view-all-btn:hover {
    background: linear-gradient(135deg, #d32f2f, #f57c00);
    color: white;
    transform: translateY(-2px);
}

/* Section Title Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #d32f2f, #f57c00);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .card-img-container {
        height: 150px;
        object-fit: cover;
    }

    .card-body {
        padding: 1.25rem;
    }

    .card-title {
        font-size: 1.1rem;
    }
}

.news-header {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 1rem;
}

.about-summary-box {
    background: #fff;
    border-left: 4px solid #194643;
    padding: 20px;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.05);
}

.highlight-text {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1em;
}

.key-points {
    margin: 20px 0;
}

.key-point {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.key-point:last-child {
    border-bottom: none;
}

.key-point i {
    color: #0052a5;
    margin-right: 15px;
    font-size: 18px;
    margin-top: 3px;
}

.key-point strong {
    color: #2c3e50;
}

.mission-statement {
    font-style: italic;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #E7A723;
}


.card .logo {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: auto;
    z-index: 20;
    /* Higher z-index to stay on top */
}

/* Make sure the header doesn't block the logo */
.card .logo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    /* Optional: if you want rounded corners */
}

.text {
    border-bottom: 1px solid #194643;
    ;

}