.mission-vision, 
.video-custom-height, 
.rounded-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .mission-vision {
        width: 100%;
        height: auto; /* Let the image resize based on the container's width */
    }
    ul, ol {
        padding: 2px;
        text-align: justify !important;
    }
    li {
        font-size: clamp(0.875rem, 1.5vw, 1rem); /* Responsive font size */
    }
    .line-design {
        width: 300px;
    }
    .line2-design {
        width: 200px;
    }
    .thumbnail-preview {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .line-design {
        width: 200px;
    }
    .line2-design {
        width: 100px;
    }
    ul, ol {
        padding: 2px;
        text-align: justify !important;
    }
}

.img-fluid {
    max-width: 150px;
}

.rounded-img-container {
    border: 5px solid rgba(255, 255, 255, 0.5);
}

.thumbnail-preview {
    max-width: 100px;
    max-height: 150px;
    object-fit: cover;
    border: 1px solid #ddd;
    padding: 5px;
}

.compendium-preview {
    max-width: auto;
    max-height: auto;
    object-fit: cover;
    border: 1px solid #ddd;
    padding: 5px;
}

.text-decoration-none {
    text-decoration: none;
}

.welcome-header,
.welcome2-header {
    font-size: clamp(12px, 5vw, 24px);
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
}

.welcome-header {
    margin-bottom: 30px;
}

.line-design,
.line2-design {
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    margin: 20px auto;
    border-radius: 5px;
}

.line2-design {
    width: 100px;
}

.intro-text {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 30px;
}

.intro-text span {
    font-weight: bold;
    color: #03006b;
}

.card-body {
    position: relative;
}

/* Add a transparent overlay behind the content to ensure visibility */
.card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../../images/EAE2.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 300px 100px; /* Adjust size as needed */
    opacity: 0.1; /* Lightens the watermark */
    pointer-events: none; /* Ensures the watermark doesn’t interfere with content interaction */
    z-index: 1; /* Places the watermark behind the content */
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.cta-btn:hover {
    background: linear-gradient(90deg, #0056b3, #004080);
    color: white;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideIn {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

#welcome-section {
    padding: 2rem;
}

#welcome-section ul, 
#welcome-section ol {
    padding: 5px 10px 5px 20px;
}

.overlay {
    display: none;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loader {
    font-size: 24px;
    color: #007bff;
    margin-right: 10px;
}

.editorial-content {
    background-color: #fff;
    padding: 40px 20px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}
.editorial-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: url("{{ asset('images/EAE2.png') }}"); */
    background-image: url("../../images/EAE2.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 300px 100px; /* Adjust size as needed */
    opacity: 0.1; /* Lightens the watermark */
    pointer-events: none; /* Ensures the watermark doesn’t interfere with content interaction */
    z-index: 1; /* Places the watermark behind the content */
}

.editorial-content > * {
    position: relative;
    z-index: 2; /* Ensures the content appears above the watermark */
}

.editorial-title {
    font-size: clamp(12px, 5vw, 24px);
    color: #03006b;
    margin-bottom: 10px;
    font-weight: bold;
}

.editorial-subtitle {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
}

.editorial-member-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.editorial-member {
    background-color: #f9f9f9;
    /* border: 1px solid #ddd; */
    border-radius: 8px;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
    width: auto;
    padding: 20px;
    text-align: center;
}

.editorial-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    max-width: 120px;
}

.editorial-member h4 {
    font-size: 1rem;
    color: #03006b;
    margin: 10px 0;
    font-weight: bold;
}

.editorial-member p {
    font-size: 1rem;
    color: #333;
    margin: 5px 0;
    text-align: center;
}

.editorial-member-name {
    font-size: clamp(6px, 2vw, 12px);
    font-weight: bold !important;
    color: #03006b !important;
}

.news-content {
    background-color: #fff;
    padding: 40px 20px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}
.news-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: url("{{ asset('images/EAE2.png') }}"); */
    background-image: url("../../images/EAE2.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 300px 100px; /* Adjust size as needed */
    opacity: 0.1; /* Lightens the watermark */
    pointer-events: none; /* Ensures the watermark doesn’t interfere with content interaction */
    z-index: 1; /* Places the watermark behind the content */
}

.news-content > * {
    position: relative;
    z-index: 2; /* Ensures the content appears above the watermark */
}

.news-title {
    font-size: clamp(12px, 5vw, 24px);
    color: #03006b;
    margin-bottom: 10px;
    font-weight: bold;
}

.news-subtitle {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
}

.news-member-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.news-member {
    background-color: #f9f9f9;
    /* border: 1px solid #ddd; */
    border-radius: 8px;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
    width: auto;
    padding: 20px;
    text-align: center;
}

.news-member img,
.news-member a img {
    width: 100%;
    height: auto;
    border-radius: 1%;
    margin-bottom: 15px;
    max-width: 100%;
    display: block;
}

.news-member a {
    display: block;
    text-decoration: none;
}

.edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 65%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1%;
}

.edit-icon {
    width: 40px;
    height: 40px;
    color: #fff;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.edit-icon svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

.news-member a:hover .edit-overlay {
    opacity: 1;
}

.news-member a:hover img {
    filter: brightness(0.7);
}

.news-member h4 {
    font-size: 1rem;
    color: #03006b;
    margin: 10px 0;
    font-weight: bold;
}

.news-member img:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.news-member p {
    font-size: 1rem;
    color: #333;
    margin: 5px 0;
    text-align: center;
}

.card-news {
    height: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-image {
    /* height: 200px;
    flex-shrink: 0;
    aspect-ratio: 16/9;
    overflow: hidden; */

     height: 200px;
    overflow: hidden;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-news-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.card-news-title {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-news-title span {
    font-weight: bold;
    color: #03006b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.date-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(50%);
    background: linear-gradient(90deg, #0056b3, #03006b) !important;
    color: #fff !important;
    padding: 8px 16px;
    font-weight: 600;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(90deg, #0056b3, #03006b) !important;
    color: #fff !important;
}

.nav-tabs .nav-link {
    background: linear-gradient(90deg, #d6d6d6, #909090) !important;
    color: #000000 !important;
}
.join-us {
    position: relative;
}

.join-us::before {
    content: '';
    position: absolute;
    top: 5px; 
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../../images/EAE2.png");
    background-repeat: no-repeat;
    background-position: center 100px;
    background-size: 300px 100px; /* Adjust size as needed */
    opacity: 0.1; /* Lightens the watermark */
    pointer-events: none; /* Ensures the watermark doesn’t interfere with content interaction */
    z-index: 1; /* Places the watermark behind the content */
}

/* Adjust background position for smaller screens */
@media (max-width: 768px) {
    .join-us::before {
        background-position: center 260px; /* Center horizontally and vertically */
    }
}

.join-us span, 
.join-us em, 
.join-us p {
    position: relative;
    z-index: 2; /* Ensures text is above the overlay */
}
.img-announcement {
    max-width: 100%;
    width: 80%;
    height: auto;
}

.blink {
    font-size: 2em; 
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    0%, 100% { opacity: 1; } 
    50% { opacity: 0; }
}