/* Styling for the History Card */
.col a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.history-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-img-top-placeholder {
    width: 100%;
    height: auto;
    min-height: 250px;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}


.card-body p {
    line-height: 1.8;
    font-size: 1rem;
    color: #495057;
    text-align: justify;
}


/* Styling for the Pagination Pill */
.nav-pills .nav-link {
    border-radius: 1rem;
    margin: 0 0.25rem;
    color: #007bff;
    font-weight: 600;
}

.nav-pills .nav-link.active {
    background-color: #007bff;
    color: white;
}

/* Custom Pill Navigation Styles (Horizontal by default) */
/* Active Pill State */
.nav-pills-org .nav-link-org.active {
    border: 1px solid #fff;
    /* Primary Blue border */
    background-color: #007bff;
    /* Primary Blue background */
    color: white;

}

/* Pill Container Styling */
.nav-pills-org .nav-link-org {
    border: 2px solid #fff;
    background-color: #fff;
    border-radius: 1rem;
    margin: 0 1rem;
    padding: 0 1rem;
    color: #007bff;
    font-weight: 600;
}


/* --- Mobile Optimization (Screens < 576px) --- */
@media (max-width: 767px) {

    /* 1. Stack the main UL container (nav-pills-org) vertically */
    .nav-pills-org {
        width: 100%;
        /* Ensures it takes up the width of its container */
        margin: 0;
        flex-direction: column;
        /* Stacks items vertically */
        /* Updated padding as requested: 1rem top/bottom, 1rem left/right */
        padding: 1rem 1rem !important;
        border-radius: 1.5rem;
    }

    .nav-link-org.active {
        width: 100%;
        border: 1px solid #fff;
        /* Primary Blue border */
        background-color: #007bff;
        /* Primary Blue background */
        color: white;
    }


    /* 2. Make each list item (nav-item) take full width and add vertical spacing */
    /* Note: The class in your HTML is nav-item, not nav-item-org, so I'm using nav-item here. */

    .nav-item-org {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    /* 3. Make the button (nav-link-org) take full width of its list item */
    .nav-link-org {
        /* Removed margins for the full width button on mobile */
        margin: 0;
        width: 100%;
        border-radius: 1rem;
    }
}

/* Individual Tab Styling */

        .section-header {
            font-size: 0.7rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.2em;
            color: #64748b;
            margin: 1.5rem 0 1rem 0.5rem;
            display: block;
        }
        
        .tab-card {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            margin-bottom: 0.6rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.03);
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.85rem 1.25rem;
            cursor: pointer;
            width: 100%;
            text-align: left;
        }

        .tab-card:hover {
            transform: translateX(6px);
            border-color: #1a589e;
            box-shadow: 0 4px 12px rgba(26, 88, 158, 0.08);
        }

        .tab-card.active {
            background-color: #1a589e;
            color: white;
            border-color: #1a589e;
            transform: translateX(10px);
            box-shadow: 0 8px 16px rgba(26, 88, 158, 0.15);
        }

        .tab-card i {
            width: 20px;
            text-align: center;
            color: #1a589e;
            font-size: 0.9rem;
        }

        .tab-card.active i {
            color: white;
        }

        /* Content Transitions */
        .tab-content {
            display: none;
            animation: fadeIn 0.4s ease-out;
        }
        
        .tab-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @media (max-width: 1024px) {
            .sidebar-nav {
                display: flex;
                flex-direction: column;
            }
        }