/* Extracted from about.html */

.hover-white {
    transition: color 0.2s;
}

.hover-white:hover {
    color: white !important;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.entry-content {
    color: var(--bs-body-color) !important;
    font-weight: 400;
    font-size: 1.05rem !important;
}

.entry-content h2 {
    color: var(--bs-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    border-bottom: 2px solid rgba(12, 24, 68, 0.06);
    padding-bottom: 0.5rem;
}

.entry-content h3 {
    color: #1e293b;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    border-left: 4px solid var(--bs-secondary);
    padding-left: 1rem;
}

.entry-content p {
    margin-bottom: 1.75rem;
}

.shadow-soft {
    box-shadow: var(--shadow-soft-md);
}

.bg-body-bg {
    background-color: #f8fafc;
}

.honor-card {
    transition: all 0.3s;
    border-radius: 1rem;
}

.honor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(12, 24, 68, 0.12) !important;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--theme-footer-link-color);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--bs-warning);
    transform: translateX(4px);
}

.hover-primary {
    transition: color 0.2s;
}

.hover-primary:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}


/* Extracted from cases.html */

.modern-archive-card {
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modern-archive-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft-lg) !important;
}

.footer-links a {
    color: var(--theme-footer-link-color);
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--bs-warning);
    transform: translateX(5px);
}

.hover-primary:hover {
    color: var(--bs-warning) !important;
}


/* Extracted from contact.html */

.form-control,
.form-select {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    border-color: rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(12, 24, 68, 0.1);
}

.contact-info-card {
    transition: all 0.3s;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(12, 24, 68, 0.12) !important;
}

.footer-links a:hover {
    color: var(--bs-warning);
    transform: translateX(5px);
}

.hover-primary:hover {
    color: var(--bs-primary) !important;
}


/* Extracted from index.html */

/* Utilities */
.shadow-soft {
    box-shadow: var(--shadow-soft-md);
}

/* Micro-interactions */
.service-modern-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid transparent !important;
}

.service-modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft-lg);
    border-color: rgba(37, 99, 235, 0.1) !important;
}

.icon-wrapper {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-modern-card:hover .icon-wrapper {
    background-color: var(--bs-secondary) !important;
    color: white !important;
    transform: scale(1.1);
}

.service-modern-card:hover .icon-wrapper.text-warning {
    background-color: var(--bs-warning) !important;
    color: white !important;
}

.feature-card {
    transition: background-color 0.3s;
    border-radius: 1rem;
}

.feature-card:hover {
    background-color: rgba(37, 99, 235, 0.05) !important;
}

.news-modern-card img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-modern-card:hover img {
    transform: scale(1.08);
}

.news-modern-card .card-title a {
    transition: color 0.2s ease;
}

.news-modern-card:hover .card-title a {
    color: var(--bs-secondary) !important;
}

/* Stats counter */
.stat-card {
    border-left: 4px solid var(--bs-primary);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(12, 24, 68, 0.12) !important;
}

/* Footer Custom Styles */
.footer-links li {
    margin-bottom: 0.8rem;
}


/* Extracted from news-detail.html */

.modern-archive-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 1rem;
    overflow: hidden;
}

.modern-archive-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft-lg);
    border-color: rgba(37, 99, 235, 0.1) !important;
}

.modern-archive-card img.object-fit-cover {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modern-archive-card:hover img.object-fit-cover {
    transform: scale(1.08);
}

.modern-archive-card .card-title a {
    transition: color 0.2s;
}

.modern-archive-card:hover .card-title a {
    color: var(--bs-secondary) !important;
}


/* Extracted from news.html */


/* Extracted from services.html */

/* Section anchor offset for fixed header */
.scroll-anchor {
    scroll-margin-top: 130px;
}

/* Modern Card Styles */
.route-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.route-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft-lg);
    border-color: rgba(37, 99, 235, 0.1);
}

.route-card .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.route-card:hover .icon-circle {
    transform: scale(1.1);
}

/* Service section separator */
.service-section {
    border-left: 5px solid var(--bs-primary);
    padding-left: 1.5rem;
    margin-bottom: 3rem;
}

.service-section.secondary {
    border-color: var(--bs-secondary);
}

.service-section.warning {
    border-color: var(--bs-warning);
}

.service-section.info {
    border-color: var(--bs-info);
}

/* =============================================
   Timeline Component Fixes
   ============================================= */
.timeline-modern {
    position: relative;
    padding-left: 3rem;
    /* 48px */
}

.timeline-modern-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1rem;
    /* 16px */
    width: 3px;
    background: linear-gradient(to bottom, #2563EB, #0C1844);
    border-radius: 2px;
}

.timeline-modern-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-modern-bullet {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    left: -2rem;
    /* Move exactly back 32px (48px - 16px = 32px to center on the string) */
    top: 0.25rem;
    transform: translateX(-8.5px);
    /* Fine-tune centering */
}

.timeline-modern-bullet-primary {
    background-color: #2563EB;
}

.timeline-modern-bullet-warning {
    background-color: #F59E0B;
}

.text-justify {
    text-align: justify;
}

/* =============================================
   Footer High Contrast Overrides
   ============================================= */
.site-footer .text-primary {
    color: var(--theme-footer-highlight-color, var(--bs-warning)) !important;
}

.site-footer .text-white-50 {
    color: var(--theme-footer-text-color) !important;
    opacity: 1 !important;
}

.site-footer .text-white {
    color: #ffffff !important;
}

/* =============================================
   Navigation Dropdown Hover Behavior
   ============================================= */
@media (min-width: 992px) {
    .navbar-expand-lg .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeInDropdown 0.2s ease-in-out;
    }

    .navbar-expand-lg .dropdown-menu {
        /* Optional: add slight transition/delay if needed, here we just use display */
    }
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}